File tree 2 files changed +48
-2
lines changed
src/shared/components/Contentful/Tabs/themes
2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ $text-color-black: #262628;
22
22
border-bottom : none ;
23
23
24
24
@include xs-to-sm {
25
- -webkit-flex-direction : column ; /* Safari */
26
- flex-direction : column ;
25
+ overflow : auto ;
27
26
align-items : center ;
27
+ justify-content : flex-start ;
28
28
}
29
29
}
30
30
@@ -38,9 +38,11 @@ $text-color-black: #262628;
38
38
cursor : pointer ;
39
39
border-radius : 15px ;
40
40
padding : 0 15px ;
41
+ white-space : nowrap ;
41
42
42
43
@include xs-to-sm {
43
44
margin : 2px ;
45
+ padding : 0 25px ;
44
46
}
45
47
46
48
& :hover {
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ $gray-border-color: #e9e9e9;
11
11
display : flex ;
12
12
max-width : $screen-lg ;
13
13
margin : auto ;
14
+
15
+ @media (max-width : 768px ) {
16
+ flex-direction : column ;
17
+ }
14
18
}
15
19
16
20
.tablist {
@@ -24,6 +28,15 @@ $gray-border-color: #e9e9e9;
24
28
border-right : 5px solid $gray-border-color ;
25
29
margin-right : 58px ;
26
30
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
+ }
27
40
}
28
41
29
42
.tab {
@@ -35,6 +48,15 @@ $gray-border-color: #e9e9e9;
35
48
cursor : pointer ;
36
49
padding-right : 30px ;
37
50
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
+
38
60
& :hover ,
39
61
& .selected {
40
62
font-weight : 700 ;
@@ -52,6 +74,28 @@ $gray-border-color: #e9e9e9;
52
74
border-radius : 5px ;
53
75
border-top : 1px solid white ;
54
76
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
+ }
55
99
}
56
100
}
57
101
You can’t perform that action at this time.
0 commit comments