Newer
Older
:host {
display: block;
}
.hy-tabs__container {
.hy-tablist-container {
border-bottom: 1px solid var(--grayscale-tabs-border);
position: relative;
}
.hy-tab-scroll {
background-color: var(--brand-main-light);
border-radius: 50%;
border: 0;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
padding: 0;
position: absolute;
top: 50%;
transform: translateY(-50%);
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
&.is-hidden {
display: none;
visibility: hidden;
}
&.is-disabled {
background-color: var(--grayscale-medium);
&:hover {
cursor: none;
}
}
&:focus,
&:hover {
outline: none;
cursor: pointer;
}
svg {
fill: var(--grayscale-white);
height: 16px;
margin: 8px;
position: relative;
width: 16px;
@include breakpoint($narrow) {
height: 18px;
margin: 9px; //36x36
width: 18px;
}
@include breakpoint($wide) {
height: 24px;
margin: 10px; //44x44
width: 24px;
}
}
&__left {
Ekaterina Kondareva
committed
left: 2px;
Ekaterina Kondareva
committed
right: 2px;
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
svg {
left: 1.5px;
}
}
}
[role='tablist'] {
display: flex;
flex-direction: row;
margin: 0 0 -0.1em;
overflow: scroll;
position: relative;
white-space: nowrap;
&::-webkit-scrollbar {
display: none;
}
}
[role='tab'] {
@include font-size(14px, 16px);
align-items: center;
background-color: var(--grayscale-background-box);
border: 0;
color: var(--grayscale-black);
display: flex;
flex-direction: row;
flex-shrink: 0;
font-family: var(--main-font-family);
font-weight: 600;
justify-content: center;
letter-spacing: -0.44px;
Ekaterina Kondareva
committed
margin: 0 4px 0 0;
max-width: calc(100% / 12 * 3);
min-height: 44px;
min-width: 100px;
padding: 8px;
position: relative;
white-space: normal;
span.tab-title {
padding: 8px;
}
@include breakpoint($narrow) {
@include font-size(18px, 24px);
letter-spacing: -0.56px;
Ekaterina Kondareva
committed
margin: 0 8px 0 0;
padding: 8px 12px;
span.tab-title {
padding: 8px 12px;
}
}
Ekaterina Kondareva
committed
@include breakpoint($medium) {
padding: 8px 16px;
span.tab-title {
padding: 8px 16px;
}
}
Ekaterina Kondareva
committed
}
// No sidebar
[role='tab'].large {
Ekaterina Kondareva
committed
margin: 0 12px 0 0;
}
}
[role='tab'][aria-selected='true'] {
background: var(--grayscale-white);
border: 1px solid var(--grayscale-tabs-border);
border-bottom-width: 0;
box-shadow: inset 0 1px 0 0 #d2d2d2, inset -1px 1px 0 0 #d2d2d2, inset 1px 1px 0 0 #d2d2d2,
0 -4px 8px -4px rgba(0, 0, 0, 0.1);
font-weight: bold;
margin-bottom: -1px;
padding-bottom: 9px;
}
[role='tab']:hover,
[role='tab']:focus,
[role='tab']:active {
border-radius: 0;
color: inherit;
cursor: pointer;
text-decoration: none;
}
[role='tab']:hover::before,
[role='tab']:focus::before {
}
[role='tabpanel'] {
border-top: 1px solid var(--grayscale-medium);