@elliemae/ds-basic 2.0.0-alpha.11 → 2.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,272 +0,0 @@
1
- // ********************************************
2
- // container definition
3
- $tabs-container: #{$prefix}-tabs;
4
- $tab-bar-container: #{$tabs-container}-tab-bar;
5
- $panels-container: #{$tabs-container}-panels;
6
-
7
- // ********************************************
8
- // element definition
9
- $tab-el: #{$tab-bar-container}__tab;
10
- $tab-list-el: #{$tabs-container}__list;
11
- $subtab-list-el: #{$tabs-container}__subtabs-list;
12
- $tab-separator-el: #{$tabs-container}__tab-separator;
13
-
14
- .#{$tabs-container} {
15
- &__tab-bar-container {
16
- display: flex;
17
- }
18
- }
19
-
20
- .#{$tab-bar-container} {
21
- &__list {
22
- position: relative;
23
- border-bottom: border-size() solid color(neutral, 400);
24
- display: flex;
25
- flex-wrap: nowrap;
26
- flex: 1;
27
-
28
- &:not(&--carousel) {
29
- padding-left: 16px;
30
- }
31
- }
32
-
33
- &__list--carousel {
34
- max-width: 100%;
35
- }
36
-
37
- &__subtabs-list {
38
- position: relative;
39
- display: flex;
40
- align-items: center;
41
- flex-wrap: nowrap;
42
- flex: 1;
43
-
44
- .#{$tab-el} {
45
- text-transform: capitalize;
46
- padding-bottom: 0;
47
- padding-top: 0;
48
- }
49
-
50
- &--carousel {
51
- max-width: 100%;
52
- }
53
-
54
- &:not(&--carousel) {
55
- padding-left: 16px;
56
- }
57
- }
58
-
59
- &__tab {
60
- position: relative;
61
- @include button-link();
62
- @include transition(duration(fast) easing(out));
63
- text-transform: uppercase;
64
- white-space: nowrap;
65
- padding: 2px 0;
66
- margin-right: space(s);
67
- letter-spacing: 0px;
68
- line-height: 1.3;
69
- color: color(neutral, 700);
70
-
71
- @include onlySafariAndFirefox {
72
- -webkit-text-stroke: 0.4px transparent;
73
- }
74
-
75
- &:not(:first-child) {
76
- margin-left: space(s);
77
- }
78
-
79
- &--active {
80
- &:not(&--disabled) {
81
- @include body-text-style("semibold");
82
- color: color(neutral, 700);
83
- line-height: 1.3;
84
-
85
- @include safariAndFirefoxBold(color(neutral, 700))
86
- }
87
- }
88
-
89
- &:not(&--disabled) {
90
- &:hover,
91
- &:focus {
92
- outline: none;
93
- color: color(brand-primary, 600);
94
-
95
- @include safariAndFirefoxBold(color(brand-primary, 600))
96
- }
97
- }
98
-
99
- &--disabled {
100
- color: color(neutral, 500);
101
- cursor: default;
102
-
103
- &:focus {
104
- outline: none;
105
- }
106
- }
107
-
108
- &--separator:not(:last-child):after {
109
- content: "";
110
- position: absolute;
111
- width: border-size(m);
112
- right: -18px;
113
- top: 1.4px;
114
- height: space(xs) * 1.6;
115
- background-color: color(neutral, 400);
116
- }
117
- }
118
-
119
- &__selection-indicator {
120
- position: absolute;
121
- margin-top: space(xxs);
122
- border-bottom: border-size(xl) solid color(brand-primary, 600);
123
- pointer-events: none;
124
- @include transition(duration(base) easing(in));
125
- }
126
- }
127
-
128
- .#{$panels-container} {
129
- &__panel {
130
- &:focus {
131
- outline: none;
132
- }
133
- padding-top: space(xs);
134
- }
135
- }
136
-
137
- // ********************************************
138
- // Mobile
139
- @include md {
140
- .#{$tab-bar-container} {
141
- &__list {
142
- background: color(brand-primary, 200);
143
- border-bottom: border-size() solid color(brand-primary, 300);
144
-
145
- &--flexible-table-headers {
146
- z-index: 0;
147
- overflow-x: scroll;
148
- overflow-y: hidden;
149
- -ms-overflow-style: none;
150
- scrollbar-width: none;
151
- &::-webkit-scrollbar {
152
- display: none;
153
- }
154
- }
155
-
156
- &--left-gradients {
157
- &::before {
158
- position: fixed;
159
- left: 0px;
160
- content: "";
161
- height: 38px;
162
- width: 24px;
163
- background: linear-gradient(90deg, #ebf6ff 0%, rgba(238, 238, 238, 0) 100%);
164
- z-index: 100;
165
- // allow clicks to pass through
166
- pointer-events: none;
167
- }
168
- }
169
- &--right-gradients {
170
- &::after {
171
- position: fixed;
172
- right: 0px;
173
- content: "";
174
- height: 38px;
175
- width: 24px;
176
- background: linear-gradient(90deg, rgba(238, 238, 238, 0) 0%, #ebf6ff 100%);
177
- z-index: 100;
178
- // allow clicks to pass through
179
- pointer-events: none;
180
- }
181
- }
182
-
183
- &--fixed-table-headers {
184
- display: flex;
185
- overflow-x: hidden;
186
- & .em-ds-tabs-tab-bar__tab {
187
- flex: 1;
188
- overflow: hidden;
189
- }
190
- }
191
-
192
- &:not(&--carousel) {
193
- padding-left: 14px;
194
- }
195
- }
196
-
197
- &__tab {
198
- height: #{toMobile(space(xl) * 0.83)};
199
- color: color(brand-primary, 600);
200
- font-weight: font-weight(regular);
201
- padding: 0;
202
- margin-right: 14px;
203
- font-size: 13px;
204
- line-height: 1.3;
205
-
206
- @include onlySafariAndFirefox {
207
- -webkit-text-stroke: 0.4px transparent;
208
- }
209
-
210
- &:not(:first-child) {
211
- margin-left: 14px;
212
- }
213
-
214
- &:focus,
215
- &--active {
216
- font-weight: font-weight(regular);
217
- font-size: 13px;
218
-
219
- @include safariAndFirefoxBold(color(brand-primary, 700))
220
- }
221
-
222
- &--active {
223
- &:not(&--disabled) {
224
- font-size: 13px;
225
- color: color(brand-primary, 700);
226
- line-height: 1.3;
227
- font-weight: font-weight(regular);
228
- -webkit-font-smoothing: subpixel-antialiased;
229
- -webkit-text-stroke: 0.4px color(brand-primary, 700);
230
-
231
- }
232
- }
233
-
234
- &:focus:not(&--disabled) {
235
- color: color(brand-primary, 700);
236
- font-size: 13px;
237
-
238
- @include safariAndFirefoxBold(color(brand-primary, 700))
239
- }
240
-
241
- &:not(&--disabled) {
242
- &:hover,
243
- &:focus {
244
- outline: none;
245
- color: color(brand-primary, 700);
246
-
247
- @include safariAndFirefoxBold(color(brand-primary, 700))
248
- }
249
- }
250
-
251
- &--separator:not(:last-child):after {
252
- top: 50%;
253
- transform: translateY(-50%);
254
- }
255
- }
256
-
257
- // &__tab-separator {
258
- // }
259
-
260
- &__selection-indicator {
261
- margin-left: 0rem;
262
- margin-top: space(xxs) * 0.5;
263
- border-bottom-width: 3px;
264
- }
265
- }
266
-
267
- .#{$panels-container} {
268
- &__panel {
269
- padding-top: 0;
270
- }
271
- }
272
- }