File tree Expand file tree Collapse file tree 2 files changed +114
-0
lines changed
src/shared/components/Contentful/Tabs Expand file tree Collapse file tree 2 files changed +114
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import underlineTheme from './themes/underline.scss';
26
26
import underlineDarkTheme from './themes/underline-dark.scss' ;
27
27
import verticalTheme from './themes/vertical.scss' ;
28
28
import pillsTheme from './themes/pills.scss' ;
29
+ import underlineBoxTheme from './themes/underline-box.scss' ;
29
30
30
31
export const TAB_THEMES = {
31
32
Default : defaultTheme ,
@@ -36,6 +37,7 @@ export const TAB_THEMES = {
36
37
'Underline dark' : underlineDarkTheme ,
37
38
Vertical : verticalTheme ,
38
39
Pills : pillsTheme ,
40
+ 'Underline box' : underlineBoxTheme ,
39
41
} ;
40
42
41
43
export default class TabsItemsLoader extends Component {
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
+ margin : auto ;
12
+ }
13
+
14
+ .tabListWrap {
15
+ display : flex ;
16
+ justify-content : center ;
17
+
18
+ .tablist {
19
+ @include roboto-regular ;
20
+
21
+ display : flex ;
22
+ flex-direction : row ;
23
+ justify-content : center ;
24
+ list-style-type : none ;
25
+ box-shadow : 0 2px 4px 0 rgba (0 , 0 , 0 , 0.06 );
26
+ margin : auto ;
27
+ min-height : 60px ;
28
+ border-radius : 30px ;
29
+ align-items : center ;
30
+ background-color : white ;
31
+ padding : 0 25px ;
32
+
33
+ @include xs-to-sm {
34
+ overflow-x : auto ;
35
+ white-space : nowrap ;
36
+ border : none ;
37
+ flex-direction : column ;
38
+ overflow : hidden ;
39
+ }
40
+
41
+ @media (max-width : 425px ) {
42
+ justify-content : space-between ;
43
+ }
44
+ }
45
+ }
46
+
47
+ .tab {
48
+ text-align : center ;
49
+ margin : 0 25px ;
50
+ color : #555555 ;
51
+ font-family : Barlow, sans-serif ;
52
+ font-size : 16px ;
53
+ font-weight : 600 ;
54
+ line-height : 20px ;
55
+ padding-bottom : 5px ;
56
+ cursor : pointer ;
57
+ margin-bottom : -5px ;
58
+ position : relative ;
59
+
60
+ @include xs-to-sm {
61
+ margin : 0 ;
62
+ }
63
+
64
+ & :hover ,
65
+ & .selected {
66
+ color : #2a2a2a ;
67
+
68
+ & ::after {
69
+ content : ' ' ;
70
+ border-radius : 1000vw ;
71
+ background : #43d7b0 ;
72
+ height : 3px ;
73
+ width : 15px ;
74
+ position : absolute ;
75
+ bottom : 0 ;
76
+ left : calc (50% - 7px );
77
+ border-left : 1px solid #fff ;
78
+ border-right : 1px solid #fff ;
79
+
80
+ @include xs-to-sm {
81
+ width : calc (100% - 36px );
82
+ bottom : -5px ;
83
+ }
84
+ }
85
+ }
86
+
87
+ p {
88
+ small {
89
+ color : #888894 ;
90
+ font-size : 13px ;
91
+ font-weight : 400 ;
92
+ line-height : 25px ;
93
+ text-align : left ;
94
+ }
95
+
96
+ strong {
97
+ font-weight : bold ;
98
+ }
99
+ }
100
+ }
101
+
102
+ .tabpannel {
103
+ display : none ;
104
+ }
105
+
106
+ .selectedTabPanel {
107
+ display : block ;
108
+
109
+ @include xs-to-sm {
110
+ padding : 0 15px ;
111
+ }
112
+ }
You can’t perform that action at this time.
0 commit comments