Skip to content

Commit c20aadb

Browse files
committed
desktop version
1 parent dedd15a commit c20aadb

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import underlineTheme from './themes/underline.scss';
2626
import underlineDarkTheme from './themes/underline-dark.scss';
2727
import verticalTheme from './themes/vertical.scss';
2828
import pillsTheme from './themes/pills.scss';
29+
import underlineBoxTheme from './themes/underline-box.scss';
2930

3031
export const TAB_THEMES = {
3132
Default: defaultTheme,
@@ -36,6 +37,7 @@ export const TAB_THEMES = {
3637
'Underline dark': underlineDarkTheme,
3738
Vertical: verticalTheme,
3839
Pills: pillsTheme,
40+
'Underline box': underlineBoxTheme,
3941
};
4042

4143
export default class TabsItemsLoader extends Component {
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
@import "~styles/mixins";
2+
3+
$container-background-gray: #ebebeb;
4+
$text-color-black: #262628;
5+
$text-color-gray: #888894;
6+
$text-color-pannel: #4a4a4a;
7+
8+
.container {
9+
@include roboto-regular;
10+
11+
margin: auto;
12+
}
13+
14+
.tabListWrap {
15+
display: flex;
16+
justify-content: center;
17+
18+
.tablist {
19+
@include roboto-regular;
20+
21+
display: flex;
22+
flex-direction: row;
23+
justify-content: center;
24+
list-style-type: none;
25+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
26+
margin: auto;
27+
min-height: 60px;
28+
border-radius: 30px;
29+
align-items: center;
30+
background-color: white;
31+
padding: 0 25px;
32+
33+
@include xs-to-sm {
34+
overflow-x: auto;
35+
white-space: nowrap;
36+
border: none;
37+
flex-direction: column;
38+
overflow: hidden;
39+
}
40+
41+
@media (max-width: 425px) {
42+
justify-content: space-between;
43+
}
44+
}
45+
}
46+
47+
.tab {
48+
text-align: center;
49+
margin: 0 25px;
50+
color: #555555;
51+
font-family: Barlow, sans-serif;
52+
font-size: 16px;
53+
font-weight: 600;
54+
line-height: 20px;
55+
padding-bottom: 5px;
56+
cursor: pointer;
57+
margin-bottom: -5px;
58+
position: relative;
59+
60+
@include xs-to-sm {
61+
margin: 0;
62+
}
63+
64+
&:hover,
65+
&.selected {
66+
color: #2a2a2a;
67+
68+
&::after {
69+
content: '';
70+
border-radius: 1000vw;
71+
background: #43d7b0;
72+
height: 3px;
73+
width: 15px;
74+
position: absolute;
75+
bottom: 0;
76+
left: calc(50% - 7px);
77+
border-left: 1px solid #fff;
78+
border-right: 1px solid #fff;
79+
80+
@include xs-to-sm {
81+
width: calc(100% - 36px);
82+
bottom: -5px;
83+
}
84+
}
85+
}
86+
87+
p {
88+
small {
89+
color: #888894;
90+
font-size: 13px;
91+
font-weight: 400;
92+
line-height: 25px;
93+
text-align: left;
94+
}
95+
96+
strong {
97+
font-weight: bold;
98+
}
99+
}
100+
}
101+
102+
.tabpannel {
103+
display: none;
104+
}
105+
106+
.selectedTabPanel {
107+
display: block;
108+
109+
@include xs-to-sm {
110+
padding: 0 15px;
111+
}
112+
}

0 commit comments

Comments
 (0)