File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed
src/shared/components/Contentful/Tabs Expand file tree Collapse file tree 2 files changed +72
-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 verticalTheme from './themes/vertical.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
+ Vertical : verticalTheme ,
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
+ $selected-color : #43d7b0 ;
5
+ $gray-border-color : #e9e9e9 ;
6
+
7
+ .container {
8
+ @include roboto-regular ;
9
+
10
+ display : -webkit-flex ; /* Safari */
11
+ display : flex ;
12
+ }
13
+
14
+ .tablist {
15
+ @include roboto-regular ;
16
+
17
+ display : -webkit-flex ; /* Safari */
18
+ display : flex ;
19
+ -webkit-flex-direction : column ; /* Safari */
20
+ flex-direction : column ;
21
+ list-style-type : none ;
22
+ border-right : 5px solid $gray-border-color ;
23
+ margin-right : 58px ;
24
+ padding : 7px 0 ;
25
+ }
26
+
27
+ .tab {
28
+ text-align : left ;
29
+ color : $text-color-black ;
30
+ font-size : 16px ;
31
+ line-height : 45px ;
32
+ font-weight : 400 ;
33
+ cursor : pointer ;
34
+ padding-right : 30px ;
35
+
36
+ & :hover ,
37
+ & .selected {
38
+ font-weight : 700 ;
39
+ position : relative ;
40
+
41
+ & ::after {
42
+ content : ' ' ;
43
+ width : 5px ;
44
+ background : $selected-color ;
45
+ height : 100% ;
46
+ right : -5px ;
47
+ top : 0 ;
48
+ display : flex ;
49
+ position : absolute ;
50
+ border-radius : 5px ;
51
+ border-top : 1px solid white ;
52
+ border-bottom : 1px solid white ;
53
+ }
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
+ flex : 1 ;
70
+ }
You can’t perform that action at this time.
0 commit comments