File tree 3 files changed +73
-0
lines changed
src/shared/components/Contentful/Tabs
3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import tabsGroup from './themes/tabsGroup.scss';
23
23
import tabsGroupChildren from './themes/tabsGroupChildren.scss' ;
24
24
import underlineTheme from './themes/underline.scss' ;
25
25
import verticalTheme from './themes/vertical.scss' ;
26
+ import pillsTheme from './themes/pills.scss' ;
26
27
27
28
export const TAB_THEMES = {
28
29
Default : defaultTheme ,
@@ -31,6 +32,7 @@ export const TAB_THEMES = {
31
32
'Tabs Group Children' : tabsGroupChildren ,
32
33
Underline : underlineTheme ,
33
34
Vertical : verticalTheme ,
35
+ Pills : pillsTheme ,
34
36
} ;
35
37
36
38
export default class TabsItemsLoader extends Component {
Original file line number Diff line number Diff line change
1
+ @import ' ~styles/mixins' ;
2
+
3
+ $text-color-black : #262628 ;
4
+
5
+ .container {
6
+ @include roboto-regular ;
7
+
8
+ max-width : $screen-lg ;
9
+ margin : auto ;
10
+ }
11
+
12
+ .tablist {
13
+ @include roboto-regular ;
14
+
15
+ display : -webkit-flex ; /* Safari */
16
+ display : flex ;
17
+ -webkit-flex-direction : row ; /* Safari */
18
+ flex-direction : row ;
19
+ -webkit-justify-content : center ; /* Safari */
20
+ justify-content : center ;
21
+ list-style-type : none ;
22
+ border-bottom : none ;
23
+
24
+ @include xs-to-sm {
25
+ -webkit-flex-direction : column ; /* Safari */
26
+ flex-direction : column ;
27
+ align-items : center ;
28
+ }
29
+ }
30
+
31
+ .tab {
32
+ text-align : center ;
33
+ margin : 0 10px ;
34
+ color : $text-color-black ;
35
+ font-size : 12px ;
36
+ font-weight : 400 ;
37
+ line-height : 30px ;
38
+ cursor : pointer ;
39
+ border-radius : 15px ;
40
+ padding : 0 15px ;
41
+
42
+ @include xs-to-sm {
43
+ margin : 2px ;
44
+ }
45
+
46
+ & :hover {
47
+ background : #d4d4d4 ;
48
+ }
49
+
50
+ & .selected {
51
+ background-color : #7f7f7f ;
52
+ box-shadow : inset 0 0 2px 0 rgba (0 , 0 , 0 , 0.25 );
53
+ color : $tc-white ;
54
+ }
55
+
56
+ p {
57
+ strong {
58
+ font-weight : bold ;
59
+ }
60
+ }
61
+ }
62
+
63
+ .tabpannel {
64
+ display : none ;
65
+ }
66
+
67
+ .selectedTabPanel {
68
+ display : block ;
69
+ }
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ $gray-border-color: #e9e9e9;
9
9
10
10
display : -webkit-flex ; /* Safari */
11
11
display : flex ;
12
+ max-width : $screen-lg ;
13
+ margin : auto ;
12
14
}
13
15
14
16
.tablist {
You can’t perform that action at this time.
0 commit comments