@eui/styles 18.0.0-next.74 → 18.0.0-next.76

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.
Files changed (157) hide show
  1. package/dist/assets/images/common/ion-avatar.svg +6 -0
  2. package/dist/base/00-reset/_module.scss +349 -0
  3. package/dist/base/01-base/_module.scss +3 -0
  4. package/dist/base/01-base/_variables.scss +33 -0
  5. package/dist/base/01-base/functions/_module.scss +1 -0
  6. package/dist/base/01-base/functions/_other.functions.scss +40 -0
  7. package/dist/base/01-base/mixins/_accessibility.mixins.scss +60 -0
  8. package/dist/base/01-base/mixins/_color.mixins.scss +0 -0
  9. package/dist/base/01-base/mixins/_icon-svg.mixins.scss +74 -0
  10. package/dist/base/01-base/mixins/_media.mixins.scss +26 -0
  11. package/dist/base/01-base/mixins/_module.scss +7 -0
  12. package/dist/base/01-base/mixins/_other.mixins.scss +5 -0
  13. package/dist/base/01-base/mixins/_state.mixins.scss +6 -0
  14. package/dist/base/01-base/mixins/animations/__hacks.scss +36 -0
  15. package/dist/base/01-base/mixins/animations/_bob.scss +32 -0
  16. package/dist/base/01-base/mixins/animations/_buzz.scss +54 -0
  17. package/dist/base/01-base/mixins/animations/_fade-in.scss +20 -0
  18. package/dist/base/01-base/mixins/animations/_fade-out.scss +20 -0
  19. package/dist/base/01-base/mixins/animations/_flip-in-y.scss +32 -0
  20. package/dist/base/01-base/mixins/animations/_jack-in-the-box.scss +26 -0
  21. package/dist/base/01-base/mixins/animations/_module.scss +48 -0
  22. package/dist/base/01-base/mixins/animations/_pop.scss +18 -0
  23. package/dist/base/01-base/mixins/animations/_pulsar.scss +24 -0
  24. package/dist/base/01-base/mixins/animations/_pulse.scss +21 -0
  25. package/dist/base/01-base/mixins/animations/_slide-in-down.scss +20 -0
  26. package/dist/base/01-base/mixins/animations/_slide-in-left.scss +19 -0
  27. package/dist/base/01-base/mixins/animations/_slide-in-right.scss +20 -0
  28. package/dist/base/01-base/mixins/animations/_slide-in-up.scss +20 -0
  29. package/dist/base/01-base/mixins/animations/_spin.scss +19 -0
  30. package/dist/base/01-base/mixins/animations/_wobble.scss +38 -0
  31. package/dist/base/02-tokens/_ecl/ec/color.scss +64 -0
  32. package/dist/base/02-tokens/_ecl/ec/form.scss +23 -0
  33. package/dist/base/02-tokens/_ecl/ec/icon.scss +20 -0
  34. package/dist/base/02-tokens/_ecl/ec/layout.scss +27 -0
  35. package/dist/base/02-tokens/_ecl/ec/media.scss +4 -0
  36. package/dist/base/02-tokens/_ecl/ec/shape.scss +28 -0
  37. package/dist/base/02-tokens/_ecl/ec/spacing.scss +26 -0
  38. package/dist/base/02-tokens/_ecl/ec/typography.scss +155 -0
  39. package/dist/base/02-tokens/_ecl/ec/z-index.scss +8 -0
  40. package/dist/base/02-tokens/_ecl/eu/color.scss +136 -0
  41. package/dist/base/02-tokens/_ecl/eu/form.scss +23 -0
  42. package/dist/base/02-tokens/_ecl/eu/icon.scss +20 -0
  43. package/dist/base/02-tokens/_ecl/eu/layout.scss +27 -0
  44. package/dist/base/02-tokens/_ecl/eu/media.scss +4 -0
  45. package/dist/base/02-tokens/_ecl/eu/shape.scss +66 -0
  46. package/dist/base/02-tokens/_ecl/eu/spacing.scss +22 -0
  47. package/dist/base/02-tokens/_ecl/eu/typography.scss +282 -0
  48. package/dist/base/02-tokens/_ecl/eu/z-index.scss +8 -0
  49. package/dist/base/02-tokens/_module.scss +11 -0
  50. package/dist/base/02-tokens/_opacity.scss +7 -0
  51. package/dist/base/02-tokens/_z-indexes.scss +28 -0
  52. package/dist/base/02-tokens/border-radius/_index.scss +1 -0
  53. package/dist/base/02-tokens/border-radius/theme-default.scss +19 -0
  54. package/dist/base/02-tokens/border-width/_index.scss +1 -0
  55. package/dist/base/02-tokens/border-width/theme-default.scss +13 -0
  56. package/dist/base/02-tokens/colors/_index.scss +6 -0
  57. package/dist/base/02-tokens/colors/functions.scss +273 -0
  58. package/dist/base/02-tokens/colors/theme-dark.scss +10 -0
  59. package/dist/base/02-tokens/colors/theme-default.scss +120 -0
  60. package/dist/base/02-tokens/colors/theme-ecl-eu.scss +115 -0
  61. package/dist/base/02-tokens/colors/theme-eui-legacy-hc.scss +36 -0
  62. package/dist/base/02-tokens/colors/theme-eui-legacy.scss +92 -0
  63. package/dist/base/02-tokens/icons/_index.scss +1 -0
  64. package/dist/base/02-tokens/icons/theme-default.scss +14 -0
  65. package/dist/base/02-tokens/layout/_index.scss +1 -0
  66. package/dist/base/02-tokens/layout/theme-default.scss +35 -0
  67. package/dist/base/02-tokens/shadows/_index.scss +1 -0
  68. package/dist/base/02-tokens/shadows/theme-default.scss +28 -0
  69. package/dist/base/02-tokens/spacings/_index.scss +2 -0
  70. package/dist/base/02-tokens/spacings/theme-default.scss +33 -0
  71. package/dist/base/02-tokens/spacings/theme-ecl-eu.scss +16 -0
  72. package/dist/base/02-tokens/typography/_index.scss +2 -0
  73. package/dist/base/02-tokens/typography/theme-default.scss +210 -0
  74. package/dist/base/02-tokens/typography/theme-ecl-eu.scss +240 -0
  75. package/dist/base/03-vars/_internal-icons.vars.scss +7 -0
  76. package/dist/base/03-vars/_module-dark.scss +1 -0
  77. package/dist/base/03-vars/_module-ecl-eu.scss +4 -0
  78. package/dist/base/03-vars/_module-eui-legacy-hc.scss +1 -0
  79. package/dist/base/03-vars/_module-eui-legacy.scss +27 -0
  80. package/dist/base/03-vars/_module.scss +25 -0
  81. package/dist/base/03-vars/_other.vars.scss +27 -0
  82. package/dist/base/03-vars/_tokens.vars.scss +26 -0
  83. package/dist/base/03-vars/border-radius/theme-default-base.scss +5 -0
  84. package/dist/base/03-vars/border-radius/theme-default-context.scss +5 -0
  85. package/dist/base/03-vars/border-width/theme-default-base.scss +5 -0
  86. package/dist/base/03-vars/border-width/theme-default-context.scss +5 -0
  87. package/dist/base/03-vars/colors/theme-dark-base.scss +9 -0
  88. package/dist/base/03-vars/colors/theme-default-base.scss +11 -0
  89. package/dist/base/03-vars/colors/theme-default-context.scss +29 -0
  90. package/dist/base/03-vars/colors/theme-ecl-eu-base.scss +9 -0
  91. package/dist/base/03-vars/colors/theme-eui-legacy-base.scss +9 -0
  92. package/dist/base/03-vars/colors/theme-eui-legacy-context.scss +23 -0
  93. package/dist/base/03-vars/colors/theme-eui-legacy-hc-base.scss +9 -0
  94. package/dist/base/03-vars/layout/theme-default-base.scss +5 -0
  95. package/dist/base/03-vars/layout/theme-default-context.scss +5 -0
  96. package/dist/base/03-vars/shadows/theme-default-base.scss +5 -0
  97. package/dist/base/03-vars/shadows/theme-default-context.scss +5 -0
  98. package/dist/base/03-vars/spacings/theme-default-base.scss +5 -0
  99. package/dist/base/03-vars/spacings/theme-default-context.scss +5 -0
  100. package/dist/base/03-vars/spacings/theme-ecl-eu-base.scss +5 -0
  101. package/dist/base/03-vars/typography/theme-default-base.scss +9 -0
  102. package/dist/base/03-vars/typography/theme-default-context.scss +24 -0
  103. package/dist/base/03-vars/typography/theme-ecl-eu-base.scss +9 -0
  104. package/dist/base/03-vars/typography/theme-ecl-eu-context.scss +15 -0
  105. package/dist/base/04-elements/_body.scss +16 -0
  106. package/dist/base/04-elements/_html.scss +6 -0
  107. package/dist/base/04-elements/_module.scss +3 -0
  108. package/dist/base/04-elements/_shared.scss +82 -0
  109. package/dist/base/05-assets/_module-icons-flags.scss +1 -0
  110. package/dist/base/05-assets/_module-icons-svg.scss +1 -0
  111. package/dist/base/05-assets/flags/_icons-generics.scss +87 -0
  112. package/dist/base/05-assets/flags/_icons.scss +1546 -0
  113. package/dist/base/05-assets/flags/_module.scss +2 -0
  114. package/dist/base/05-assets/icons-svg/_icons-generics.scss +9 -0
  115. package/dist/base/05-assets/icons-svg/_module.scss +1 -0
  116. package/dist/base/99-utilities/_module-extras.scss +1 -0
  117. package/dist/base/99-utilities/_module-legacy.scss +2 -0
  118. package/dist/base/99-utilities/_module.scss +19 -0
  119. package/dist/base/99-utilities/others/_eui-u-anim.scss +85 -0
  120. package/dist/base/99-utilities/others/_eui-u-border-states.scss +35 -0
  121. package/dist/base/99-utilities/others/_eui-u-cursors.scss +43 -0
  122. package/dist/base/99-utilities/others/_eui-u-display.scss +39 -0
  123. package/dist/base/99-utilities/others/_eui-u-flex.scss +121 -0
  124. package/dist/base/99-utilities/others/_eui-u-overflow.scss +11 -0
  125. package/dist/base/99-utilities/others/_eui-u-position.scss +11 -0
  126. package/dist/base/99-utilities/others/_eui-u-states.scss +9 -0
  127. package/dist/base/99-utilities/others/_eui-u-visibility.scss +7 -0
  128. package/dist/base/99-utilities/others/_eui-u-width.scss +15 -0
  129. package/dist/base/99-utilities/tokens/_colors-default-full-palettes.scss +12 -0
  130. package/dist/base/99-utilities/tokens/_colors-default.scss +48 -0
  131. package/dist/base/99-utilities/tokens/_colors-legacy.scss +37 -0
  132. package/dist/base/99-utilities/tokens/_margins.scss +38 -0
  133. package/dist/base/99-utilities/tokens/_opacity.scss +5 -0
  134. package/dist/base/99-utilities/tokens/_paddings.scss +31 -0
  135. package/dist/base/99-utilities/tokens/_shadows.scss +5 -0
  136. package/dist/base/99-utilities/tokens/_spacings.scss +6 -0
  137. package/dist/base/99-utilities/tokens/_typography-legacy.scss +25 -0
  138. package/dist/base/99-utilities/tokens/_typography.scss +237 -0
  139. package/dist/base/99-utilities/tokens/_z-indexes.scss +5 -0
  140. package/dist/base/_base.scss +2 -0
  141. package/dist/eui-base.css +1 -1
  142. package/dist/eui-base.css.map +1 -1
  143. package/dist/eui-print.css +1 -1
  144. package/dist/eui-print.css.map +1 -1
  145. package/dist/eui-showcase-all.css +2 -2
  146. package/dist/eui-showcase-all.css.map +1 -1
  147. package/dist/eui-theme-eui-legacy.css +1 -1
  148. package/dist/eui-theme-eui-legacy.css.map +1 -1
  149. package/dist/eui-utilities.css +1 -1
  150. package/dist/eui-utilities.css.map +1 -1
  151. package/dist/eui.css +1 -1
  152. package/dist/eui.css.map +1 -1
  153. package/package.json +1 -1
  154. package/dist/assets/images/common/default-avatar.svg +0 -49
  155. package/dist/assets/images/common/eui-logo.png +0 -0
  156. package/dist/assets/images/common/eui-mini-logo.png +0 -0
  157. package/dist/assets/images/common/profile-avatar.png +0 -0
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512">
2
+ <path
3
+ d="M258.9 48C141.92 46.42 46.42 141.92 48 258.9c1.56 112.19 92.91 203.54 205.1 205.1 117 1.6 212.48-93.9 210.88-210.88C462.44 140.91 371.09 49.56 258.9 48zm126.42 327.25a4 4 0 01-6.14-.32 124.27 124.27 0 00-32.35-29.59C321.37 329 289.11 320 256 320s-65.37 9-90.83 25.34a124.24 124.24 0 00-32.35 29.58 4 4 0 01-6.14.32A175.32 175.32 0 0180 259c-1.63-97.31 78.22-178.76 175.57-179S432 158.81 432 256a175.32 175.32 0 01-46.68 119.25z" />
4
+ <path
5
+ d="M256 144c-19.72 0-37.55 7.39-50.22 20.82s-19 32-17.57 51.93C191.11 256 221.52 288 256 288s64.83-32 67.79-71.24c1.48-19.74-4.8-38.14-17.68-51.82C293.39 151.44 275.59 144 256 144z" />
6
+ </svg>
@@ -0,0 +1,349 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ line-height: var(--eui-base-line-height); /* 1 */
13
+ -webkit-text-size-adjust: 100%; /* 2 */
14
+ }
15
+
16
+ /* Sections
17
+ ========================================================================== */
18
+
19
+ /**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ /**
28
+ * Render the `main` element consistently in IE.
29
+ */
30
+
31
+ main {
32
+ display: block;
33
+ }
34
+
35
+ /**
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
38
+ */
39
+
40
+ h1 {
41
+ font-size: 2em;
42
+ margin: 0.67em 0;
43
+ }
44
+
45
+ /* Grouping content
46
+ ========================================================================== */
47
+
48
+ /**
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
51
+ */
52
+
53
+ hr {
54
+ box-sizing: content-box; /* 1 */
55
+ height: 0; /* 1 */
56
+ overflow: visible; /* 2 */
57
+ }
58
+
59
+ /**
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
62
+ */
63
+
64
+ pre {
65
+ font-family: monospace, monospace; /* 1 */
66
+ font-size: 1em; /* 2 */
67
+ }
68
+
69
+ /* Text-level semantics
70
+ ========================================================================== */
71
+
72
+ /**
73
+ * Remove the gray background on active links in IE 10.
74
+ */
75
+
76
+ a {
77
+ background-color: transparent;
78
+ }
79
+
80
+ /**
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
+ */
84
+
85
+ abbr[title] {
86
+ border-bottom: none; /* 1 */
87
+ text-decoration: underline; /* 2 */
88
+ text-decoration: underline dotted; /* 2 */
89
+ }
90
+
91
+ /**
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /**
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp {
108
+ font-family: monospace, monospace; /* 1 */
109
+ font-size: 1em; /* 2 */
110
+ }
111
+
112
+ /**
113
+ * Add the correct font size in all browsers.
114
+ */
115
+
116
+ small {
117
+ font-size: 80%;
118
+ }
119
+
120
+ /**
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * all browsers.
123
+ */
124
+
125
+ sub,
126
+ sup {
127
+ font-size: 75%;
128
+ line-height: 0;
129
+ position: relative;
130
+ vertical-align: baseline;
131
+ }
132
+
133
+ sub {
134
+ bottom: -0.25em;
135
+ }
136
+
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
141
+ /* Embedded content
142
+ ========================================================================== */
143
+
144
+ /**
145
+ * Remove the border on images inside links in IE 10.
146
+ */
147
+
148
+ img {
149
+ border-style: none;
150
+ }
151
+
152
+ /* Forms
153
+ ========================================================================== */
154
+
155
+ /**
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
158
+ */
159
+
160
+ button,
161
+ input,
162
+ optgroup,
163
+ select,
164
+ textarea {
165
+ font-family: inherit; /* 1 */
166
+ font-size: 100%; /* 1 */
167
+ line-height: 1; /* 1 */ // eUI adapations forced to "1"
168
+ margin: 0; /* 2 */
169
+ }
170
+
171
+ /**
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
174
+ */
175
+
176
+ button,
177
+ input { /* 1 */
178
+ overflow: visible;
179
+ }
180
+
181
+ /**
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
184
+ */
185
+
186
+ button,
187
+ select { /* 1 */
188
+ text-transform: none;
189
+ }
190
+
191
+ /**
192
+ * Correct the inability to style clickable types in iOS and Safari.
193
+ */
194
+
195
+ button,
196
+ [type="button"],
197
+ [type="reset"],
198
+ [type="submit"] {
199
+ -webkit-appearance: button;
200
+ }
201
+
202
+ /**
203
+ * Remove the inner border and padding in Firefox.
204
+ */
205
+
206
+ button::-moz-focus-inner,
207
+ [type="button"]::-moz-focus-inner,
208
+ [type="reset"]::-moz-focus-inner,
209
+ [type="submit"]::-moz-focus-inner {
210
+ border-style: none;
211
+ padding: 0;
212
+ }
213
+
214
+ /**
215
+ * Restore the focus styles unset by the previous rule.
216
+ */
217
+
218
+ button:-moz-focusring,
219
+ [type="button"]:-moz-focusring,
220
+ [type="reset"]:-moz-focusring,
221
+ [type="submit"]:-moz-focusring {
222
+ outline: 1px dotted ButtonText;
223
+ }
224
+
225
+ /**
226
+ * Correct the padding in Firefox.
227
+ */
228
+
229
+ fieldset {
230
+ padding: 0.35em 0.75em 0.625em;
231
+ }
232
+
233
+ /**
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ * `fieldset` elements in all browsers.
238
+ */
239
+
240
+ legend {
241
+ box-sizing: border-box; /* 1 */
242
+ color: inherit; /* 2 */
243
+ display: table; /* 1 */
244
+ max-width: 100%; /* 1 */
245
+ padding: 0; /* 3 */
246
+ white-space: normal; /* 1 */
247
+ }
248
+
249
+ /**
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
+ */
252
+
253
+ progress {
254
+ vertical-align: baseline;
255
+ }
256
+
257
+ /**
258
+ * Remove the default vertical scrollbar in IE 10+.
259
+ */
260
+
261
+ textarea {
262
+ overflow: auto;
263
+ }
264
+
265
+ /**
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
268
+ */
269
+
270
+ [type="checkbox"],
271
+ [type="radio"] {
272
+ box-sizing: border-box; /* 1 */
273
+ padding: 0; /* 2 */
274
+ }
275
+
276
+ /**
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
278
+ */
279
+
280
+ [type="number"]::-webkit-inner-spin-button,
281
+ [type="number"]::-webkit-outer-spin-button {
282
+ height: auto;
283
+ }
284
+
285
+ /**
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
288
+ */
289
+
290
+ [type="search"] {
291
+ -webkit-appearance: textfield; /* 1 */
292
+ outline-offset: -2px; /* 2 */
293
+ }
294
+
295
+ /**
296
+ * Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+ [type="search"]::-webkit-search-decoration {
300
+ -webkit-appearance: none;
301
+ }
302
+
303
+ /**
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
311
+ }
312
+
313
+ /* Interactive
314
+ ========================================================================== */
315
+
316
+ /*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
318
+ */
319
+
320
+ details {
321
+ display: block;
322
+ }
323
+
324
+ /*
325
+ * Add the correct display in all browsers.
326
+ */
327
+
328
+ summary {
329
+ display: list-item;
330
+ }
331
+
332
+ /* Misc
333
+ ========================================================================== */
334
+
335
+ /**
336
+ * Add the correct display in IE 10+.
337
+ */
338
+
339
+ template {
340
+ display: none;
341
+ }
342
+
343
+ /**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+ [hidden] {
348
+ display: none;
349
+ }
@@ -0,0 +1,3 @@
1
+ @import 'functions/module';
2
+ @import 'variables';
3
+ @import 'mixins/module';
@@ -0,0 +1,33 @@
1
+ // ASSETS PATHS - overridden by dev-only for relative imports if any
2
+ $eui-assets-base-path: '@eui/styles/dist/assets' !default;
3
+
4
+ // BREAKPOINT / MEDIA QUERIES boundaries
5
+
6
+ $ecl-base-breakpoints: (
7
+ 'xs': 0,
8
+ 's': 480px,
9
+ 'm': 768px,
10
+ 'l': 996px,
11
+ 'xl': 1140px,
12
+ );
13
+
14
+ // naming
15
+ $xs: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'xs') max-width map-get($ecl-base-breakpoints, 's') - 1) !default;
16
+ $s: new-breakpoint(min-width map-get($ecl-base-breakpoints, 's') max-width map-get($ecl-base-breakpoints, 'm') - 1) !default;
17
+ $m: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'm') max-width map-get($ecl-base-breakpoints, 'l') - 1) !default;
18
+ $l: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'l') max-width map-get($ecl-base-breakpoints, 'xl') - 1) !default;
19
+ $xl: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'xl') max-width 1400px) !default;
20
+ $xxl: new-breakpoint(min-width 1400px) !default;
21
+ $xxxl: new-breakpoint(min-width 1900px) !default;
22
+
23
+ // human naming
24
+ $eui-bkp-mobile-down: $xs !default;
25
+ $eui-bkp-mobile: new-breakpoint(max-width map-get($ecl-base-breakpoints, 'm') - 1) !default;
26
+ $eui-bkp-mobile-up: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'm')) !default;
27
+ $eui-bkp-tablet: $m !default;
28
+ $eui-bkp-tablet-up: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'l')) !default;
29
+ $eui-bkp-desktop-down: new-breakpoint(max-width map-get($ecl-base-breakpoints, 'l') - 1) !default;
30
+ $eui-bkp-desktop: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'xl')) !default;
31
+ $eui-bkp-desktop-up: new-breakpoint(min-width map-get($ecl-base-breakpoints, 'l')) !default;
32
+ $eui-bkp-desktop-wide: $xxl !default;
33
+ $eui-bkp-desktop-fhd: $xxxl !default;
@@ -0,0 +1 @@
1
+ @import 'other.functions.scss';
@@ -0,0 +1,40 @@
1
+ @use "sass:math";
2
+
3
+ @function v($var, $fallback: null) {
4
+ @if ($fallback) {
5
+ @return var(--#{$var}, #{$fallback});
6
+ } @else {
7
+ @return var(--#{$var});
8
+ }
9
+ }
10
+ @function map-deep-get($map, $keys...) {
11
+ @each $key in $keys {
12
+ @debug #{$map};
13
+ $map: map-get($map, $key);
14
+ }
15
+ @return $map;
16
+ }
17
+
18
+ @function new-breakpoint($query: $feature $value) {
19
+ @if length($query) == 1 {
20
+ $query: $default-feature nth($query, 1);
21
+ } @else if is-even(length($query)) {
22
+ $query: append($query, 12);
23
+ }
24
+ @return $query;
25
+ }
26
+ @function strip-units($value) {
27
+ @return math.div($value, $value * 0 + 1);
28
+ }
29
+ @function to-rem($pxval) {
30
+ @if not unitless($pxval) {
31
+ $pxval: strip-units($pxval);
32
+ }
33
+ $base: 16px;
34
+ @if not unitless($base) {
35
+ $base: strip-units($base);
36
+ }
37
+ @return math.div($pxval, $base) * 1rem;
38
+ }
39
+
40
+
@@ -0,0 +1,60 @@
1
+ $outline-offset: -2px;
2
+ $outline-size: 2px;
3
+
4
+ // Call this mixin to enforce the accessibility visuals when on focus/active
5
+ @mixin eui-accessible-focus($offset: $outline-offset, $size: $outline-size) {
6
+ &:focus:not([readonly]) {
7
+ outline: $size solid var(--eui-c-focus) !important;
8
+ outline-offset: $offset !important;
9
+ transition: none;
10
+ }
11
+
12
+ &:focus-visible:not([readonly]) {
13
+ outline: $size solid var(--eui-c-focus-visible) !important;
14
+ outline-offset: $offset !important;
15
+ transition: none;
16
+ }
17
+
18
+ // Forced focusable element
19
+ [tabindex="0"] {
20
+ // &:active:not([readonly]),
21
+ &:focus:not([readonly]) {
22
+ outline: $size solid var(--eui-c-focus-visible) !important;
23
+ outline-offset: $offset !important;
24
+ transition: none;
25
+ }
26
+ }
27
+
28
+ }
29
+ @mixin eui-accessible-focus-visible($offset: $outline-offset, $size: $outline-size) {
30
+ &:focus-visible:not([readonly]) {
31
+ outline: $size solid var(--eui-c-focus-visible) !important;
32
+ outline-offset: $offset !important;
33
+ transition: none;
34
+ }
35
+ }
36
+
37
+ @mixin eui-accessible-focus-rounded($offset: $outline-offset, $size: $outline-size) {
38
+ &:focus:not([readonly]) {
39
+ border-radius: var(--eui-br-max);
40
+ outline: $size solid var(--eui-c-focus) !important;
41
+ outline-offset: $offset !important;
42
+ transition: none;
43
+ }
44
+
45
+ &:focus-visible:not([readonly]) {
46
+ border-radius: var(--eui-br-max);
47
+ outline: $size solid var(--eui-c-focus-visible) !important;
48
+ outline-offset: $offset !important;
49
+ transition: none;
50
+ }
51
+ }
52
+
53
+ @mixin eui-accessible-focus-border() {
54
+ border-left: v(eui-s-2xs) solid transparent;
55
+
56
+ &:focus:not([readonly]) {
57
+ border: var(--eui-s-2xs) solid var(--eui-c-focus-visible) !important;
58
+ transition: none;
59
+ }
60
+ }
File without changes
@@ -0,0 +1,74 @@
1
+ @mixin pseudoSvgIconCommon() {
2
+ height: 1rem;
3
+ width: 1rem;
4
+ content: '';
5
+ mask-repeat: no-repeat;
6
+ mask-position: 50% 50%;
7
+ mask-size: cover;
8
+ }
9
+ @mixin pseudoSvgIconCommonSize() {
10
+ height: 1rem;
11
+ width: 1rem;
12
+ }
13
+
14
+
15
+
16
+ @mixin pseudoSvgIconCheckmarkWhite() {
17
+ @include pseudoSvgIconCommon();
18
+ mask-image: var(--eui-internal-icon-checkmark-path);
19
+ background-color: v(eui-c-white);
20
+ }
21
+ @mixin pseudoSvgIconCheckmarkBlack() {
22
+ @include pseudoSvgIconCommonSize();
23
+ content: var(--eui-internal-icon-checkmark-path);
24
+ }
25
+
26
+ @mixin pseudoSvgIconRemoveWhite() {
27
+ @include pseudoSvgIconCommon();
28
+ mask-image: var(--eui-internal-icon-remove-path);
29
+ background-color: v(eui-c-white);
30
+ }
31
+ @mixin pseudoSvgIconRemoveBlack() {
32
+ @include pseudoSvgIconCommonSize();
33
+ content: var(--eui-internal-icon-remove-path);
34
+ }
35
+
36
+ @mixin pseudoSvgIconExternalWhite() {
37
+ @include pseudoSvgIconCommon();
38
+ mask-image: var(--eui-internal-icon-external-path);
39
+ background-color: v(eui-c-white);
40
+ }
41
+ @mixin pseudoSvgIconExternalPrimary() {
42
+ @include pseudoSvgIconCommon();
43
+ mask-image: var(--eui-internal-icon-external-path);
44
+ background-color: v(eui-c-primary);
45
+ }
46
+ @mixin pseudoSvgIconExternalBlack() {
47
+ @include pseudoSvgIconCommonSize();
48
+ content: var(--eui-internal-icon-external-path);
49
+ }
50
+
51
+ @mixin pseudoSvgIconEllipseWhite() {
52
+ @include pseudoSvgIconCommon();
53
+ mask-image: var(--eui-internal-icon-ellipse-path);
54
+ background-color: v(eui-c-white);
55
+ }
56
+ @mixin pseudoSvgIconEllipsePrimary() {
57
+ @include pseudoSvgIconCommon();
58
+ mask-image: var(--eui-internal-icon-ellipse-path);
59
+ background-color: v(eui-c-primary);
60
+ }
61
+ @mixin pseudoSvgIconEllipseDanger() {
62
+ @include pseudoSvgIconCommon();
63
+ mask-image: var(--eui-internal-icon-ellipse-path);
64
+ background-color: v(eui-c-danger);
65
+ }
66
+ @mixin pseudoSvgIconEllipseBlack() {
67
+ @include pseudoSvgIconCommonSize();
68
+ content: var(--eui-internal-icon-ellipse-path);
69
+ }
70
+
71
+ @mixin pseudoSvgIconChevronDownBlack() {
72
+ @include pseudoSvgIconCommonSize();
73
+ content: var(--eui-internal-icon-chevron-down-path);
74
+ }
@@ -0,0 +1,26 @@
1
+ $default-feature: "min-width";
2
+ @mixin media($query: $feature $value $columns) {
3
+ @if length($query) == 1 {
4
+ @media screen and ($default-feature: nth($query, 1)) {
5
+ @content;
6
+ }
7
+ }
8
+ @else {
9
+ $loop-to: length($query);
10
+ $media-query: "screen and ";
11
+ @if is-not(is-even(length($query))) {
12
+ $loop-to: $loop-to - 1;
13
+ }
14
+ $i: 1;
15
+ @while $i <=$loop-to {
16
+ $media-query: $media-query + "(" + nth($query, $i) + ": " + nth($query, $i + 1) + ") ";
17
+ @if ($i + 1) != $loop-to {
18
+ $media-query: $media-query + "and ";
19
+ }
20
+ $i: $i+2;
21
+ }
22
+ @media #{$media-query} {
23
+ @content;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,7 @@
1
+ @import 'animations/module';
2
+
3
+ @import 'accessibility.mixins';
4
+ @import 'state.mixins';
5
+ @import 'icon-svg.mixins';
6
+ @import 'media.mixins';
7
+ @import 'other.mixins';
@@ -0,0 +1,5 @@
1
+ @mixin eui-ellipsis() {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ white-space: nowrap;
5
+ }
@@ -0,0 +1,6 @@
1
+ @mixin eui-state-hover() {
2
+ &:hover {
3
+ background-color: var(--eui-c-hover);
4
+ cursor: pointer;
5
+ }
6
+ }
@@ -0,0 +1,36 @@
1
+ // DISPLAY HACKS - mixins used to quickly drop in hacks for each element on some devices/browsers
2
+
3
+ // ENABLE HARDWARE ACCELERATION
4
+ // Enables hardware acceleration on many mobile/tablet devices which will improve the performance of a transition effect,
5
+ // as well as prevent other elements around the one transitioning from moving. Perspective also reduces blurryness of text in Chrome.
6
+ @mixin hardwareAccel() {
7
+ transform: perspective(1px) translateZ(0);
8
+ }
9
+
10
+ // IMPROVE ANTI ALIAS
11
+ // On many mobile/tablet devices, using transforms can cause a thin line to be drawn around an element.
12
+ // To improve aliasing of these elements on mobile/tablet devices, a transparent box-shadow is applied.
13
+ @mixin improveAntiAlias() {
14
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0);
15
+ }
16
+
17
+ // FORCE BLOCK LEVEL
18
+ // Transforms need to be block-level to work
19
+ @mixin forceBlockLevel() {
20
+ display: inline-block;
21
+ vertical-align: middle;
22
+ }
23
+
24
+ // TAP HIGHLIGHT FIX
25
+ // Prevent highlight colour when an element is tapped
26
+ @mixin hideTapHighlightColor() {
27
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
28
+ }
29
+
30
+ // APPLY THE HACKS
31
+ @mixin hacks() {
32
+ @include hardwareAccel(); // Problem with background
33
+ // @include improveAntiAlias();
34
+ @include forceBlockLevel();
35
+ @include hideTapHighlightColor();
36
+ }
@@ -0,0 +1,32 @@
1
+ @mixin eui-anim--bob {
2
+ @include hacks();
3
+
4
+ @keyframes eui-anim--bob {
5
+ 0% {
6
+ transform: translateY(-8px);
7
+ }
8
+ 50% {
9
+ transform: translateY(-4px);
10
+ }
11
+ 100% {
12
+ transform: translateY(-8px);
13
+ }
14
+ }
15
+ @keyframes eui-anim--bob-float {
16
+ 100% {
17
+ transform: translateY(-8px);
18
+ }
19
+ }
20
+
21
+ &:hover,
22
+ &:focus,
23
+ &:active {
24
+ animation-name: eui-anim--bob-float, eui-anim--bob;
25
+ animation-duration: 0.3s, 1.5s;
26
+ animation-delay: 0s, 0.3s;
27
+ animation-timing-function: ease-out, ease-in-out;
28
+ animation-iteration-count: 1, infinite;
29
+ animation-fill-mode: forwards;
30
+ animation-direction: normal, alternate;
31
+ }
32
+ }