Skip to content

Commit d74f181

Browse files
committed
Pills tabs theme #3974
2 parents 9292a24 + aa49167 commit d74f181

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import tabsGroup from './themes/tabsGroup.scss';
2323
import tabsGroupChildren from './themes/tabsGroupChildren.scss';
2424
import underlineTheme from './themes/underline.scss';
2525
import verticalTheme from './themes/vertical.scss';
26+
import pillsTheme from './themes/pills.scss';
2627

2728
export const TAB_THEMES = {
2829
Default: defaultTheme,
@@ -31,6 +32,7 @@ export const TAB_THEMES = {
3132
'Tabs Group Children': tabsGroupChildren,
3233
Underline: underlineTheme,
3334
Vertical: verticalTheme,
35+
Pills: pillsTheme,
3436
};
3537

3638
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-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+
}

src/shared/components/Contentful/Tabs/themes/vertical.scss

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ $gray-border-color: #e9e9e9;
99

1010
display: -webkit-flex; /* Safari */
1111
display: flex;
12+
max-width: $screen-lg;
13+
margin: auto;
1214
}
1315

1416
.tablist {

0 commit comments

Comments
 (0)