Skip to content

Commit 58e2623

Browse files
committed
for #4697
1 parent 8c6ea7a commit 58e2623

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

src/shared/components/Contentful/Tabs/themes/underline.scss

+23-7
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,47 @@ $text-color-pannel: #4a4a4a;
2525
border-bottom: 5px solid #e9e9e9;
2626

2727
@include xs-to-sm {
28-
-webkit-flex-direction: column; /* Safari */
29-
flex-direction: column;
30-
align-items: center;
28+
overflow-x: auto;
29+
white-space: nowrap;
30+
border: none;
31+
justify-content: space-between;
32+
margin: 0 16px;
3133
}
3234
}
3335

3436
.tab {
3537
text-align: center;
36-
margin: 0 20px;
38+
margin: 0 25px;
3739
color: $text-color-black;
3840
font-size: 20px;
3941
font-weight: 400;
4042
line-height: 25px;
4143
padding-bottom: 15px;
4244
cursor: pointer;
4345
margin-bottom: -5px;
46+
position: relative;
4447

4548
@include xs-to-sm {
46-
margin: 2px;
49+
margin: 0;
50+
margin-right: 36px;
51+
52+
&:last-child {
53+
margin-right: 0;
54+
}
4755
}
4856

4957
&:hover,
5058
&.selected {
51-
border-bottom: 5px solid #43d7b0;
52-
border-radius: 3px;
59+
&::after {
60+
content: '';
61+
border-radius: 2.5px;
62+
background: #43d7b0;
63+
height: 5px;
64+
width: 100%;
65+
position: absolute;
66+
bottom: 0;
67+
left: 0;
68+
}
5369
}
5470

5571
p {

0 commit comments

Comments
 (0)