File tree 3 files changed +122
-8
lines changed
src/shared/components/Contentful/Tabs
3 files changed +122
-8
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import zurichTheme from './themes/zurich.scss';
22
22
import tabsGroup from './themes/tabsGroup.scss' ;
23
23
import tabsGroupChildren from './themes/tabsGroupChildren.scss' ;
24
24
import underlineTheme from './themes/underline.scss' ;
25
+ import underlineDarkTheme from './themes/underline-dark.scss' ;
25
26
import verticalTheme from './themes/vertical.scss' ;
26
27
import pillsTheme from './themes/pills.scss' ;
27
28
@@ -31,6 +32,7 @@ export const TAB_THEMES = {
31
32
'Tabs Group' : tabsGroup ,
32
33
'Tabs Group Children' : tabsGroupChildren ,
33
34
Underline : underlineTheme ,
35
+ 'Underline dark' : underlineDarkTheme ,
34
36
Vertical : verticalTheme ,
35
37
Pills : pillsTheme ,
36
38
} ;
Original file line number Diff line number Diff line change
1
+ @import " ~styles/mixins" ;
2
+
3
+ $container-background-gray : #ebebeb ;
4
+ $text-color-black : #262628 ;
5
+ $text-color-gray : #888894 ;
6
+ $text-color-pannel : #4a4a4a ;
7
+
8
+ .container {
9
+ @include roboto-regular ;
10
+
11
+ max-width : $screen-md ;
12
+ margin : auto ;
13
+ }
14
+
15
+ .tablist {
16
+ @include roboto-regular ;
17
+
18
+ display : -webkit-flex ; /* Safari */
19
+ display : flex ;
20
+ -webkit-flex-direction : row ; /* Safari */
21
+ flex-direction : row ;
22
+ -webkit-justify-content : center ; /* Safari */
23
+ justify-content : center ;
24
+ list-style-type : none ;
25
+ border-bottom : 5px solid #fff ;
26
+
27
+ @include xs-to-sm {
28
+ overflow-x : auto ;
29
+ white-space : nowrap ;
30
+ border : none ;
31
+ margin-left : 16px ;
32
+ }
33
+
34
+ @media (max-width : 425px ) {
35
+ justify-content : space-between ;
36
+ }
37
+ }
38
+
39
+ .tab {
40
+ text-align : center ;
41
+ margin : 0 25px ;
42
+ color : #fff ;
43
+ font-size : 20px ;
44
+ font-weight : 400 ;
45
+ line-height : 25px ;
46
+ padding-bottom : 15px ;
47
+ cursor : pointer ;
48
+ margin-bottom : -5px ;
49
+ position : relative ;
50
+
51
+ @include xs-to-sm {
52
+ margin : 0 ;
53
+ padding-right : 36px ;
54
+ border-bottom : 5px solid #fff ;
55
+ }
56
+
57
+ & :hover ,
58
+ & .selected {
59
+ & ::after {
60
+ content : ' ' ;
61
+ border-radius : 1000vw ;
62
+ background : #43d7b0 ;
63
+ height : 5px ;
64
+ width : 100% ;
65
+ position : absolute ;
66
+ bottom : 0 ;
67
+ left : 0 ;
68
+
69
+ @include xs-to-sm {
70
+ width : calc (100% - 36px );
71
+ bottom : -5px ;
72
+ }
73
+ }
74
+ }
75
+
76
+ p {
77
+ small {
78
+ color : #888894 ;
79
+ font-size : 13px ;
80
+ font-weight : 400 ;
81
+ line-height : 25px ;
82
+ text-align : left ;
83
+ }
84
+
85
+ strong {
86
+ font-weight : bold ;
87
+ }
88
+ }
89
+ }
90
+
91
+ .tabpannel {
92
+ display : none ;
93
+ }
94
+
95
+ .selectedTabPanel {
96
+ display : block ;
97
+
98
+ @include xs-to-sm {
99
+ padding : 0 15px ;
100
+ }
101
+ }
Original file line number Diff line number Diff line change @@ -28,15 +28,18 @@ $text-color-pannel: #4a4a4a;
28
28
overflow-x : auto ;
29
29
white-space : nowrap ;
30
30
border : none ;
31
+ margin-left : 16px ;
32
+ }
33
+
34
+ @media (max-width : 425px ) {
31
35
justify-content : space-between ;
32
- margin : 0 16px ;
33
36
}
34
37
}
35
38
36
39
.tab {
37
40
text-align : center ;
38
41
margin : 0 25px ;
39
- color : $text-color-black ;
42
+ color : #2a2a2a ;
40
43
font-size : 20px ;
41
44
font-weight : 400 ;
42
45
line-height : 25px ;
@@ -47,24 +50,28 @@ $text-color-pannel: #4a4a4a;
47
50
48
51
@include xs-to-sm {
49
52
margin : 0 ;
50
- margin-right : 36px ;
51
-
52
- & :last-child {
53
- margin-right : 0 ;
54
- }
53
+ padding-right : 36px ;
54
+ border-bottom : 5px solid #e9e9e9 ;
55
55
}
56
56
57
57
& :hover ,
58
58
& .selected {
59
59
& ::after {
60
60
content : ' ' ;
61
- border-radius : 2.5 px ;
61
+ border-radius : 1000 vw ;
62
62
background : #43d7b0 ;
63
63
height : 5px ;
64
64
width : 100% ;
65
65
position : absolute ;
66
66
bottom : 0 ;
67
67
left : 0 ;
68
+ border-left : 1px solid #fff ;
69
+ border-right : 1px solid #fff ;
70
+
71
+ @include xs-to-sm {
72
+ width : calc (100% - 36px );
73
+ bottom : -5px ;
74
+ }
68
75
}
69
76
}
70
77
@@ -89,4 +96,8 @@ $text-color-pannel: #4a4a4a;
89
96
90
97
.selectedTabPanel {
91
98
display : block ;
99
+
100
+ @include xs-to-sm {
101
+ padding : 0 15px ;
102
+ }
92
103
}
You can’t perform that action at this time.
0 commit comments