File tree 2 files changed +71
-0
lines changed
src/shared/components/Contentful/Tabs
2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,15 @@ 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 pillsTheme from './themes/pills.scss' ;
25
26
26
27
export const TAB_THEMES = {
27
28
Default : defaultTheme ,
28
29
Zurich : zurichTheme ,
29
30
'Tabs Group' : tabsGroup ,
30
31
'Tabs Group Children' : tabsGroupChildren ,
31
32
Underline : underlineTheme ,
33
+ Pills : pillsTheme ,
32
34
} ;
33
35
34
36
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-md ;
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
+ }
You can’t perform that action at this time.
0 commit comments