Skip to content

Commit 9292a24

Browse files
committed
Vertical tabs theme #3974
1 parent 67e4338 commit 9292a24

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

src/shared/components/Contentful/Tabs/Tabs.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ import zurichTheme from './themes/zurich.scss';
2222
import tabsGroup from './themes/tabsGroup.scss';
2323
import tabsGroupChildren from './themes/tabsGroupChildren.scss';
2424
import underlineTheme from './themes/underline.scss';
25+
import verticalTheme from './themes/vertical.scss';
2526

2627
export const TAB_THEMES = {
2728
Default: defaultTheme,
2829
Zurich: zurichTheme,
2930
'Tabs Group': tabsGroup,
3031
'Tabs Group Children': tabsGroupChildren,
3132
Underline: underlineTheme,
33+
Vertical: verticalTheme,
3234
};
3335

3436
export default class TabsItemsLoader extends Component {
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
}

0 commit comments

Comments
 (0)