Skip to content

Commit aa49167

Browse files
committed
Pills theme
1 parent 67e4338 commit aa49167

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

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

+2
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 pillsTheme from './themes/pills.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+
Pills: pillsTheme,
3234
};
3335

3436
export default class TabsItemsLoader extends Component {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
}

0 commit comments

Comments
 (0)