Skip to content

Commit efecaa6

Browse files
committed
Update for #5764
1 parent e0c494c commit efecaa6

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ $text-color-black: #262628;
2222
border-bottom: none;
2323

2424
@include xs-to-sm {
25-
-webkit-flex-direction: column; /* Safari */
26-
flex-direction: column;
25+
overflow: auto;
2726
align-items: center;
27+
justify-content: flex-start;
2828
}
2929
}
3030

@@ -38,9 +38,11 @@ $text-color-black: #262628;
3838
cursor: pointer;
3939
border-radius: 15px;
4040
padding: 0 15px;
41+
white-space: nowrap;
4142

4243
@include xs-to-sm {
4344
margin: 2px;
45+
padding: 0 25px;
4446
}
4547

4648
&:hover {

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

+44
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ $gray-border-color: #e9e9e9;
1111
display: flex;
1212
max-width: $screen-lg;
1313
margin: auto;
14+
15+
@media (max-width: 768px) {
16+
flex-direction: column;
17+
}
1418
}
1519

1620
.tablist {
@@ -24,6 +28,15 @@ $gray-border-color: #e9e9e9;
2428
border-right: 5px solid $gray-border-color;
2529
margin-right: 58px;
2630
padding: 7px 0;
31+
32+
@media (max-width: 768px) {
33+
flex-direction: row;
34+
border-right: none;
35+
margin-right: 0;
36+
margin-bottom: 15px;
37+
overflow: auto;
38+
padding: 0;
39+
}
2740
}
2841

2942
.tab {
@@ -35,6 +48,15 @@ $gray-border-color: #e9e9e9;
3548
cursor: pointer;
3649
padding-right: 30px;
3750

51+
@media (max-width: 768px) {
52+
padding-right: 20px;
53+
border-bottom: 5px solid $gray-border-color;
54+
55+
&:first-child {
56+
padding-left: 7px;
57+
}
58+
}
59+
3860
&:hover,
3961
&.selected {
4062
font-weight: 700;
@@ -52,6 +74,28 @@ $gray-border-color: #e9e9e9;
5274
border-radius: 5px;
5375
border-top: 1px solid white;
5476
border-bottom: 1px solid white;
77+
78+
@media (max-width: 768px) {
79+
display: none;
80+
}
81+
}
82+
83+
p {
84+
position: relative;
85+
86+
&::after {
87+
@media (max-width: 768px) {
88+
content: '';
89+
background: $selected-color;
90+
height: 5px;
91+
width: 100%;
92+
display: flex;
93+
position: absolute;
94+
border-radius: 15%;
95+
border-left: 2px solid white;
96+
border-right: 2px solid white;
97+
}
98+
}
5599
}
56100
}
57101

0 commit comments

Comments
 (0)