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 {
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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;
margin: 0 8px 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;
padding: 8px 12px;
span.tab-title {
padding: 8px 12px;
}
}
@include breakpoint($medium) {
padding: 8px 16px;
span.tab-title {
padding: 8px 16px;
}
}
@include breakpoint($overwide) {
margin-right: 12px;
}
}
[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);