matcha-theme 1.0.25 → 18.0.27

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 (65) hide show
  1. package/core.scss +1210 -0
  2. package/matcha-core.css +62385 -0
  3. package/matcha-core.min.css +1 -0
  4. package/package.json +1 -1
  5. package/README.md +0 -304
  6. package/abstracts/_breakpoints.scss +0 -33
  7. package/abstracts/_colors.scss +0 -469
  8. package/abstracts/_elevation.scss +0 -102
  9. package/abstracts/_functions.scss +0 -398
  10. package/abstracts/_grid.scss +0 -159
  11. package/abstracts/_order.scss +0 -46
  12. package/abstracts/_position.scss +0 -51
  13. package/abstracts/_sizes.scss +0 -166
  14. package/abstracts/_spacings.scss +0 -216
  15. package/abstracts/_typography.scss +0 -124
  16. package/base/_helpers.scss +0 -2183
  17. package/base/_reset.scss +0 -9
  18. package/base/_typography.scss +0 -244
  19. package/components/matcha-audio-player.scss +0 -37
  20. package/components/matcha-buttons.scss +0 -199
  21. package/components/matcha-cards.scss +0 -93
  22. package/components/matcha-color-pick.scss +0 -32
  23. package/components/matcha-draggable.scss +0 -25
  24. package/components/matcha-header.scss +0 -327
  25. package/components/matcha-horizontal-tree.scss +0 -277
  26. package/components/matcha-progress-bar.scss +0 -107
  27. package/components/matcha-scrollbar.scss +0 -36
  28. package/components/matcha-scrollbox-shadow.scss +0 -127
  29. package/components/matcha-table.scss +0 -279
  30. package/fonts/CircularStd-Black.eot +0 -0
  31. package/fonts/CircularStd-Black.svg +0 -3426
  32. package/fonts/CircularStd-Black.ttf +0 -0
  33. package/fonts/CircularStd-Black.woff +0 -0
  34. package/fonts/CircularStd-Black.woff2 +0 -0
  35. package/fonts/CircularStd-Bold.eot +0 -0
  36. package/fonts/CircularStd-Bold.otf +0 -0
  37. package/fonts/CircularStd-Bold.svg +0 -13532
  38. package/fonts/CircularStd-Bold.ttf +0 -0
  39. package/fonts/CircularStd-Bold.woff +0 -0
  40. package/fonts/CircularStd-Bold.woff2 +0 -0
  41. package/fonts/CircularStd-Medium.eot +0 -0
  42. package/fonts/CircularStd-Medium.otf +0 -0
  43. package/fonts/CircularStd-Medium.svg +0 -13511
  44. package/fonts/CircularStd-Medium.ttf +0 -0
  45. package/fonts/CircularStd-Medium.woff +0 -0
  46. package/fonts/CircularStd-Medium.woff2 +0 -0
  47. package/fonts/CircularStd-Regular.eot +0 -0
  48. package/fonts/CircularStd-Regular.otf +0 -0
  49. package/fonts/CircularStd-Regular.svg +0 -2378
  50. package/fonts/CircularStd-Regular.ttf +0 -0
  51. package/fonts/CircularStd-Regular.woff +0 -0
  52. package/fonts/CircularStd-Regular.woff2 +0 -0
  53. package/main.scss +0 -133
  54. package/tokens/_animations.scss +0 -37
  55. package/tokens/_breakpoints.scss +0 -38
  56. package/tokens/_color-tokens.scss +0 -1391
  57. package/tokens/_elevation-tokens.scss +0 -14
  58. package/tokens/_spacing-tokens.scss +0 -96
  59. package/tokens/_typography-tokens.scss +0 -25
  60. package/vendors/angular-editor.scss +0 -56
  61. package/vendors/angular-material-fixes.scss +0 -261
  62. package/vendors/calendar.scss +0 -2880
  63. package/vendors/charts.scss +0 -92
  64. package/vendors/ng5-slider.scss +0 -56
  65. package/vendors/ngx-material-timepicker.scss +0 -50
@@ -1,398 +0,0 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Theme functions
3
- // --------------------------------------------------------------------------------------------------------------------
4
- // For a given hue in a palette, return the contrast color from the map of contrast palettes.
5
- // @param $color-map
6
- // @param $hue
7
- @function map-contrast($palette, $hue) {
8
- @return map-get(map-get($palette, contrast), $hue);
9
- }
10
-
11
- // Creates a map of hues to colors for a theme. This is used to define a theme palette in terms
12
- // of the Material Design hues.
13
- // @param $color-map
14
- // @param $primary
15
- // @param $lighter
16
- @function palette($base-palette, $default: 500, $lighter: 100, $darker: 700) {
17
- $result: map_merge(
18
- $base-palette,
19
- (
20
- default: map-get($base-palette, $default),
21
- lighter: map-get($base-palette, $lighter),
22
- darker: map-get($base-palette, $darker),
23
- default-contrast: map-contrast($base-palette, $default),
24
- lighter-contrast: map-contrast($base-palette, $lighter),
25
- darker-contrast: map-contrast($base-palette, $darker)
26
- )
27
- );
28
-
29
- // For each hue in the palette, add a "-contrast" color to the map.
30
- @each $hue, $color in $base-palette {
31
- $result: map_merge(
32
- $result,
33
- (
34
- "#{$hue}-contrast": map-contrast($base-palette, $hue)
35
- )
36
- );
37
- }
38
-
39
- @return $result;
40
- }
41
-
42
- @function getAllPalettes($theme) {
43
- $primary: map-get($theme, primary);
44
- $accent: map-get($theme, accent);
45
- $warn: map-get($theme, warn);
46
-
47
- // base colors
48
- $palettes: (
49
- red: $red,
50
- pink: $pink,
51
- purple: $purple,
52
- deep-purple: $deep-purple,
53
- indigo: $indigo,
54
- blue: $blue,
55
- light-blue: $light-blue,
56
- cyan: $cyan,
57
- teal: $teal,
58
- green: $green,
59
- light-green: $light-green,
60
- lime: $lime,
61
- yellow: $yellow,
62
- amber: $amber,
63
- orange: $orange,
64
- deep-orange: $deep-orange,
65
- brown: $brown,
66
- grey: $grey,
67
- blue-grey: $blue-grey,
68
- primary: $primary,
69
- accent: $accent,
70
- warn: $warn
71
- );
72
- @return $palettes;
73
- }
74
-
75
- // Gets a color from a theme palette (the output of mat-palette).
76
- // The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
77
- // hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
78
- //
79
- // @param $color-map The theme palette (output of mat-palette).
80
- // @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
81
- // be treated as opacity.
82
- // @param $opacity The alpha channel value for the color.
83
- @function map-color($palette, $hue: default, $opacity: null) {
84
- // If hueKey is a number between zero and one, then it actually contains an
85
- // opacity value, so recall this function with the default hue and that given opacity.
86
- @if type-of($hue) ==number and $hue >=0 and $hue <=1 {
87
- @return map-color($palette, default, $hue);
88
- }
89
-
90
- $color: map-get($palette, $hue);
91
-
92
- @if (type-of($color) !=color) {
93
- // If the $color resolved to something different from a color (e.g. a CSS variable),
94
- // we can't apply the opacity anyway so we return the value as is, otherwise Sass can
95
- // throw an error or output something invalid.
96
- @return $color;
97
- }
98
-
99
- @return rgba($color, if($opacity ==null, opacity($color), $opacity));
100
- }
101
-
102
- // Creates a container object for a light theme to be given to individual component theme mixins.
103
- @function light-theme($primary, $accent, $warn) {
104
- @return (
105
- primary: $primary,
106
- accent: $accent,
107
- warn: $warn,
108
- is-dark: false,
109
- foreground: $light-theme-foreground-palette,
110
- background: $light-theme-background-palette
111
- );
112
- }
113
-
114
- // Creates a container object for a dark theme to be given to individual component theme mixins.
115
- @function dark-theme($primary, $accent, $warn) {
116
- @return (
117
- primary: $primary,
118
- accent: $accent,
119
- warn: $warn,
120
- is-dark: true,
121
- foreground: $dark-theme-foreground-palette,
122
- background: $dark-theme-background-palette
123
- );
124
- }
125
-
126
- // Creates a container object for a custom light theme to be given to individual component theme mixins.
127
- @function light-custom-theme($primary, $accent, $warn, $custom-light-fg, $custom-light-bg) {
128
- @return (
129
- primary: $primary,
130
- accent: $accent,
131
- warn: $warn,
132
- is-dark: false,
133
- foreground: $custom-light-fg,
134
- background: $custom-light-bg
135
- );
136
- }
137
-
138
- // Creates a container object for a custom dark theme to be given to individual component theme mixins.
139
- @function dark-custom-theme($primary, $accent, $warn, $custom-dark-fg, $custom-dark-bg) {
140
- @return (
141
- primary: $primary,
142
- accent: $accent,
143
- warn: $warn,
144
- is-dark: true,
145
- foreground: $custom-dark-fg,
146
- background: $custom-dark-bg
147
- );
148
- }
149
-
150
- // -------------------------------------------------------------------------------------------------------------------
151
- // @ Typography functions
152
- // --------------------------------------------------------------------------------------------------------------------
153
- // Represents a typography level from the Material design spec.
154
- @function matcha-typography-level(
155
- $font-size,
156
- $line-height: $font-size,
157
- $font-weight: 400,
158
- $font-family: null,
159
- $letter-spacing: null
160
- ) {
161
- @return (
162
- font-size: $font-size,
163
- line-height: $line-height,
164
- font-weight: $font-weight,
165
- font-family: $font-family,
166
- letter-spacing: $letter-spacing
167
- );
168
- }
169
-
170
- // Represents a collection of typography levels.
171
- // Defaults come from https://material.io/guidelines/style/typography.html
172
- // Note: The spec doesn't mention letter spacing. The values here come from
173
- // eyeballing it until it looked exactly like the spec examples.
174
- @function matcha-typography-config(
175
- $font-family: 'CircularStd, "Helvetica Neue", "Arial", sans-serif, "angular";',
176
- $display-4: matcha-typography-level(112px, 112px, 300, $letter-spacing: -0.05em),
177
- $display-3: matcha-typography-level(56px, 56px, 400, $letter-spacing: -0.02em),
178
- $display-2: matcha-typography-level(45px, 48px, 400, $letter-spacing: -0.005em),
179
- $display-1: matcha-typography-level(34px, 40px, 400),
180
- $headline: matcha-typography-level(24px, 32px, 400),
181
- $title: matcha-typography-level(20px, 32px, 700),
182
- $subheading-2: matcha-typography-level(16px, 28px, 900),
183
- $subheading-1: matcha-typography-level(15px, 24px, 900),
184
- $body-2: matcha-typography-level(14px, 24px, 500),
185
- $body-1: matcha-typography-level(14px, 20px, 400),
186
- $caption: matcha-typography-level(12px, 20px, 500),
187
- $button: matcha-typography-level(14px, 14px, 500),
188
- $input: matcha-typography-level(inherit, 1.125, 400)
189
- ) {
190
- // Line-height must be unit-less fraction of the font-size.
191
- // Declare an initial map with all of the levels.
192
- $config: (
193
- display-4: $display-4,
194
- display-3: $display-3,
195
- display-2: $display-2,
196
- display-1: $display-1,
197
- headline: $headline,
198
- title: $title,
199
- subheading-2: $subheading-2,
200
- subheading-1: $subheading-1,
201
- body-2: $body-2,
202
- body-1: $body-1,
203
- caption: $caption,
204
- button: $button,
205
- input: $input
206
- );
207
-
208
- // Loop through the levels and set the `font-family` of the ones that don't have one to the base.
209
- // Note that Sass can't modify maps in place, which means that we need to merge and re-assign.
210
- @each $key, $level in $config {
211
- @if map-get($level, font-family) ==null {
212
- $new-level: map-merge(
213
- $level,
214
- (
215
- font-family: $font-family
216
- )
217
- );
218
- $config: map-merge(
219
- $config,
220
- (
221
- $key: $new-level
222
- )
223
- );
224
- }
225
- }
226
-
227
- // Add the base font family to the config.
228
- @return map-merge(
229
- $config,
230
- (
231
- font-family: $font-family
232
- )
233
- );
234
- }
235
-
236
- // Utility for fetching a nested value from a typography config.
237
- @function _matcha-get-type-value($config, $level, $name) {
238
- @return map-get(map-get($config, $level), $name);
239
- }
240
-
241
- // Gets the font size for a level inside a typography config.
242
- @function matcha-font-size($config, $level) {
243
- @return _matcha-get-type-value($config, $level, font-size);
244
- }
245
-
246
- // Gets the line height for a level inside a typography config.
247
- @function matcha-line-height($config, $level) {
248
- @return _matcha-get-type-value($config, $level, line-height);
249
- }
250
-
251
- // Gets the font weight for a level inside a typography config.
252
- @function matcha-font-weight($config, $level) {
253
- @return _matcha-get-type-value($config, $level, font-weight);
254
- }
255
-
256
- // Gets the letter spacing for a level inside a typography config.
257
- @function matcha-letter-spacing($config, $level) {
258
- @return _matcha-get-type-value($config, $level, letter-spacing);
259
- }
260
-
261
- // Gets the font-family from a typography config and removes the quotes around it.
262
- @function matcha-font-family($config, $level: null) {
263
- $font-family: map-get($config, font-family);
264
-
265
- @if $level !=null {
266
- $font-family: _matcha-get-type-value($config, $level, font-family);
267
- }
268
-
269
- // Guard against unquoting non-string values, because it's deprecated.
270
- @return if(type-of($font-family) ==string, unquote($font-family), $font-family);
271
- }
272
-
273
- // -------------------------------------------------------------------------------------------------------------------
274
- // @ Elevation functions
275
- // --------------------------------------------------------------------------------------------------------------------
276
- // A collection of functions that can be used to apply elevation to a material
277
-
278
- @function _get-umbra-map($color, $opacity) {
279
- $shadow-color: if(type-of($color) ==color, rgba($color, $opacity * 0.033), $color);
280
-
281
- @return (
282
- 0: "0px 0px 0px 0px #{$shadow-color}",
283
- 1: "0px 2px 2px 0px #{$shadow-color}",
284
- 2: "0px 3px 2px -2px #{$shadow-color}",
285
- 3: "0px 3px 3px -2px #{$shadow-color}",
286
- 4: "0px 2px 4px -1px #{$shadow-color}",
287
- 5: "0px 3px 5px -1px #{$shadow-color}",
288
- 6: "0px 3px 5px -1px #{$shadow-color}",
289
- 7: "0px 4px 5px -2px #{$shadow-color}",
290
- 8: "0px 5px 5px -3px #{$shadow-color}",
291
- 9: "0px 5px 6px -3px #{$shadow-color}",
292
- 10: "0px 6px 6px -3px #{$shadow-color}",
293
- 11: "0px 6px 7px -4px #{$shadow-color}",
294
- 12: "0px 7px 8px -4px #{$shadow-color}",
295
- 13: "0px 7px 8px -4px #{$shadow-color}",
296
- 14: "0px 7px 9px -4px #{$shadow-color}",
297
- 15: "0px 8px 9px -5px #{$shadow-color}",
298
- 16: "0px 8px 10px -5px #{$shadow-color}",
299
- 17: "0px 8px 11px -5px #{$shadow-color}",
300
- 18: "0px 9px 11px -5px #{$shadow-color}",
301
- 19: "0px 9px 12px -6px #{$shadow-color}",
302
- 20: "0px 10px 13px -6px #{$shadow-color}",
303
- 21: "0px 10px 13px -6px #{$shadow-color}",
304
- 22: "0px 10px 14px -6px #{$shadow-color}",
305
- 23: "0px 11px 14px -7px #{$shadow-color}",
306
- 24: "0px 11px 15px -7px #{$shadow-color}"
307
- );
308
- }
309
-
310
- @function _get-penumbra-map($color, $opacity) {
311
- $shadow-color: if(type-of($color) ==color, rgba($color, $opacity * 0.033), $color);
312
-
313
- @return (
314
- 0: "0px 0px 0px 0px #{$shadow-color}",
315
- 1: "0px 2px 2px 0px #{$shadow-color}",
316
- 2: "0px 2px 3px 0px #{$shadow-color}",
317
- 3: "0px 3px 4px 0px #{$shadow-color}",
318
- 4: "0px 4px 5px 0px #{$shadow-color}",
319
- 5: "0px 5px 8px 0px #{$shadow-color}",
320
- 6: "0px 6px 10px 0px #{$shadow-color}",
321
- 7: "0px 7px 10px 1px #{$shadow-color}",
322
- 8: "0px 8px 10px 1px #{$shadow-color}",
323
- 9: "0px 9px 12px 1px #{$shadow-color}",
324
- 10: "0px 10px 14px 1px #{$shadow-color}",
325
- 11: "0px 11px 15px 1px #{$shadow-color}",
326
- 12: "0px 12px 17px 2px #{$shadow-color}",
327
- 13: "0px 13px 19px 2px #{$shadow-color}",
328
- 14: "0px 14px 21px 2px #{$shadow-color}",
329
- 15: "0px 15px 22px 2px #{$shadow-color}",
330
- 16: "0px 16px 24px 2px #{$shadow-color}",
331
- 17: "0px 17px 26px 2px #{$shadow-color}",
332
- 18: "0px 18px 28px 2px #{$shadow-color}",
333
- 19: "0px 19px 29px 2px #{$shadow-color}",
334
- 20: "0px 20px 31px 3px #{$shadow-color}",
335
- 21: "0px 21px 33px 3px #{$shadow-color}",
336
- 22: "0px 22px 35px 3px #{$shadow-color}",
337
- 23: "0px 23px 36px 3px #{$shadow-color}",
338
- 24: "0px 24px 38px 3px #{$shadow-color}"
339
- );
340
- }
341
-
342
- @function _get-ambient-map($color, $opacity) {
343
- $shadow-color: if(type-of($color) ==color, rgba($color, $opacity * 0.033), $color);
344
-
345
- @return (
346
- 0: "0px 0px 0px 0px #{$shadow-color}",
347
- 1: "0px 2px 2px 0px #{$shadow-color}",
348
- 2: "0px 1px 5px 0px #{$shadow-color}",
349
- 3: "0px 1px 8px 0px #{$shadow-color}",
350
- 4: "0px 1px 10px 0px #{$shadow-color}",
351
- 5: "0px 1px 14px 0px #{$shadow-color}",
352
- 6: "0px 1px 18px 0px #{$shadow-color}",
353
- 7: "0px 2px 16px 1px #{$shadow-color}",
354
- 8: "0px 3px 14px 2px #{$shadow-color}",
355
- 9: "0px 3px 16px 2px #{$shadow-color}",
356
- 10: "0px 4px 18px 3px #{$shadow-color}",
357
- 11: "0px 4px 20px 3px #{$shadow-color}",
358
- 12: "0px 5px 22px 4px #{$shadow-color}",
359
- 13: "0px 5px 24px 4px #{$shadow-color}",
360
- 14: "0px 5px 26px 4px #{$shadow-color}",
361
- 15: "0px 6px 28px 5px #{$shadow-color}",
362
- 16: "0px 6px 30px 5px #{$shadow-color}",
363
- 17: "0px 6px 32px 5px #{$shadow-color}",
364
- 18: "0px 7px 34px 6px #{$shadow-color}",
365
- 19: "0px 7px 36px 6px #{$shadow-color}",
366
- 20: "0px 8px 38px 7px #{$shadow-color}",
367
- 21: "0px 8px 40px 7px #{$shadow-color}",
368
- 22: "0px 8px 42px 7px #{$shadow-color}",
369
- 23: "0px 9px 44px 8px #{$shadow-color}",
370
- 24: "0px 9px 46px 8px #{$shadow-color}"
371
- );
372
- }
373
-
374
- // Returns a string that can be used as the value for a transition property for elevation.
375
- // Calling this function directly is useful in situations where a component needs to transition
376
- // more than one property.
377
- //
378
- // .foo {
379
- // transition: elevation-transition-property-value(), opacity 100ms ease;
380
- // }
381
- @function elevation-transition-property-value(
382
- $duration: $elevation-transition-duration,
383
- $easing: $elevation-transition-timing-function
384
- ) {
385
- @return box-shadow #{$duration} #{$easing};
386
- }
387
-
388
- // Define the variable for the base size (usually 16 pixels = 1 rem).
389
- $base-font-size: 16px;
390
-
391
- // Function to convert pixels to rem.
392
- @function px-to-rem($value-in-px) {
393
- @if $value-in-px != 0 {
394
- @return calc($value-in-px / $base-font-size) * 1rem;
395
- } @else {
396
- @return $value-in-px;
397
- }
398
- }
@@ -1,159 +0,0 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Display grids generator
3
- // -------------------------------------------------------------------------------------------------------------------
4
- @mixin display-grid($grid-prefix, $grid-length, $grid-sizes, $helper-breakpoints) {
5
- @each $sizeLabel, $value in $grid-sizes {
6
- .row-#{$sizeLabel} {
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- @media only screen and (min-width: #{$value}) {
12
- @for $i from 1 through $grid-length {
13
- .row > .#{$grid-prefix}-#{$sizeLabel}-#{$i} {
14
- flex-basis: $i / $grid-length * 100%;
15
- }
16
-
17
- .row > .#{$grid-prefix}-offset-#{$sizeLabel}-#{$i} {
18
- margin-left: $i / $grid-length * 100%;
19
- }
20
- }
21
-
22
- .row-#{$sizeLabel} {
23
- flex-direction: row;
24
- }
25
- }
26
- }
27
-
28
- [class^="grid-"] {
29
- display: grid;
30
- grid-template-columns: minmax(0, 1fr);
31
- }
32
-
33
- @for $i from 0 through 12 {
34
- $size: $i * 4;
35
- .gap-#{$size} {
36
- column-gap: #{$size}px;
37
- row-gap: #{$size}px;
38
- }
39
- @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
40
- @include media-breakpoint($materialBreakpoint) {
41
- $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
42
- .gap#{$infix}-#{$size} {
43
- column-gap: #{$size}px;
44
- row-gap: #{$size}px;
45
- }
46
- }
47
- }
48
- }
49
-
50
- @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
51
- @include media-breakpoint($materialBreakpoint) {
52
- $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
53
-
54
- @for $i from 1 through $grid-length {
55
- .grid#{$infix}-#{$i} {
56
- @include _grid-prop($i);
57
- }
58
-
59
- .colspan#{$infix}-#{$i} {
60
- grid-column-end: span #{$i};
61
- }
62
-
63
- .rowspan#{$infix}-#{$i} {
64
- grid-row-end: span #{$i};
65
- }
66
- }
67
- }
68
- }
69
- }
70
-
71
-
72
-
73
- @mixin _grid-prop($i) {
74
- display: grid;
75
- grid-template-columns: repeat($i, minmax(0, 1fr));
76
- }
77
-
78
- // -------------------------------------------------------------------------------------------------------------------
79
- // @ Display flex generator
80
- // -------------------------------------------------------------------------------------------------------------------
81
- @mixin display-flex($grid-prefix, $grid-length, $grid-sizes) {
82
- .row {
83
- display: flex;
84
- flex-wrap: wrap;
85
-
86
- > div[class*="#{$grid-prefix}-"] {
87
- box-sizing: border-box;
88
- }
89
-
90
- > div:not([class*="#{$grid-prefix}-"]) {
91
- flex: 1;
92
- }
93
-
94
- @for $i from 1 through $grid-length {
95
- .#{$grid-prefix}-#{$i} {
96
- flex-basis: $i / $grid-length * 100%;
97
- }
98
-
99
- .#{$grid-prefix}-offset-#{$i} {
100
- margin-left: $i / $grid-length * 100%;
101
- }
102
-
103
- @each $sizeLabel, $value in $grid-sizes {
104
- [class*="#{$grid-prefix}-offset-#{$sizeLabel}-"] {
105
- margin-left: 0;
106
- }
107
-
108
- .#{$grid-prefix}-#{$sizeLabel}-#{$i} {
109
- flex-basis: 100%;
110
- }
111
- }
112
- }
113
-
114
- @each $classLabel, $cssValue in (align-start flex-start, align-center center, align-end flex-end) {
115
- > div[class*="#{$grid-prefix}-"].#{$classLabel} {
116
- align-self: $cssValue;
117
- }
118
- }
119
-
120
- @each $classLabel,
121
- $cssValue
122
- in (
123
- align-start flex-start,
124
- align-center center,
125
- align-end flex-end,
126
- space-around space-around,
127
- space-between space-between
128
- )
129
- {
130
- &.#{$classLabel} {
131
- justify-content: $cssValue;
132
- }
133
- }
134
- }
135
- }
136
-
137
- @include display-grid($grid-prefix, $grid-length, $grid-sizes, $helper-breakpoints);
138
- @include display-flex($grid-prefix, $grid-length, $grid-sizes);
139
-
140
- // -------------------------------------------------------------------------------------------------------------------
141
- // Dynamic gaps
142
- // -------------------------------------------------------------------------------------------------------------------
143
- .gap-inside {
144
- -moz-column-gap: 16px;
145
- column-gap: 16px;
146
- row-gap: 16px;
147
- }
148
- .gap-outside {
149
- -moz-column-gap: 16px;
150
- column-gap: 16px;
151
- row-gap: 16px;
152
- }
153
- @media screen and (min-width: 600px) {
154
- .gap-outside {
155
- -moz-column-gap: 24px;
156
- column-gap: 24px;
157
- row-gap: 24px;
158
- }
159
- }
@@ -1,46 +0,0 @@
1
- // -----------------------------------------------------------------------------------------------------
2
- // @ Z-index helpers
3
- // -----------------------------------------------------------------------------------------------------
4
- @for $zIndex from -1 through 60 {
5
- .z-index-#{$zIndex} {
6
- z-index: #{$zIndex} !important;
7
- }
8
- }
9
-
10
- // -----------------------------------------------------------------------------------------------------
11
- // @ Order
12
- // -----------------------------------------------------------------------------------------------------
13
- @each $breakpoint,
14
- $breakpointName in $helper-breakpoints {
15
- @include media-breakpoint($breakpointName) {
16
- $infix: if($breakpointName ==null, "", "-#{$breakpoint}");
17
-
18
- /* <integer> values */
19
- @for $i from -12 through 12 {
20
- .order#{$infix}-#{$i} {
21
- order: #{$i};
22
- }
23
- }
24
-
25
- /* Global values */
26
- .order#{$infix}-inherit {
27
- order: inherit;
28
- }
29
-
30
- .order#{$infix}-initial {
31
- order: initial;
32
- }
33
-
34
- .order#{$infix}-revert {
35
- order: revert;
36
- }
37
-
38
- .order#{$infix}-revert-layer {
39
- order: revert-layer;
40
- }
41
-
42
- .order#{$infix}-unset {
43
- order: unset;
44
- }
45
- }
46
- }
@@ -1,51 +0,0 @@
1
- // -----------------------------------------------------------------------------------------------------
2
- // @ Absolute position alignment helpers
3
- // -----------------------------------------------------------------------------------------------------
4
- @each $breakpoint,
5
- $materialBreakpoint in $helper-breakpoints {
6
- @include media-breakpoint($materialBreakpoint) {
7
- $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
8
-
9
- .place#{$infix}-top {
10
- top: 0;
11
- }
12
-
13
- .place#{$infix}-right {
14
- right: 0;
15
- }
16
-
17
- .place#{$infix}-bottom {
18
- bottom: 0;
19
- }
20
-
21
- .place#{$infix}-left {
22
- left: 0;
23
- }
24
- }
25
- }
26
-
27
- // -----------------------------------------------------------------------------------------------------
28
- // @ Position helpers
29
- // -----------------------------------------------------------------------------------------------------
30
- @each $breakpoint,
31
- $materialBreakpoint in $helper-breakpoints {
32
- @include media-breakpoint($materialBreakpoint) {
33
- $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
34
-
35
- .position#{$infix}-relative {
36
- position: relative;
37
- }
38
-
39
- .position#{$infix}-absolute {
40
- position: absolute;
41
- }
42
-
43
- .position#{$infix}-static {
44
- position: static;
45
- }
46
-
47
- .position#{$infix}-fixed {
48
- position: fixed;
49
- }
50
- }
51
- }