@clayui/css 3.35.0 → 3.36.0

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 (30) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/lib/css/atlas.css +300 -172
  3. package/lib/css/atlas.css.map +20 -20
  4. package/lib/css/base.css +199 -162
  5. package/lib/css/base.css.map +13 -13
  6. package/package.json +2 -2
  7. package/src/scss/_license-text.scss +1 -1
  8. package/src/scss/atlas/variables/_alerts.scss +1 -5
  9. package/src/scss/atlas/variables/_buttons.scss +79 -7
  10. package/src/scss/atlas/variables/_custom-forms.scss +1 -5
  11. package/src/scss/atlas/variables/_forms.scss +115 -40
  12. package/src/scss/atlas/variables/_globals.scss +362 -70
  13. package/src/scss/atlas/variables/_labels.scss +0 -4
  14. package/src/scss/atlas/variables/_pagination.scss +0 -4
  15. package/src/scss/cadmin/components/_buttons.scss +25 -263
  16. package/src/scss/cadmin/components/_forms.scss +24 -92
  17. package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -0
  18. package/src/scss/cadmin/variables/_buttons.scss +249 -6
  19. package/src/scss/cadmin/variables/_forms.scss +124 -8
  20. package/src/scss/components/_buttons.scss +25 -259
  21. package/src/scss/components/_forms.scss +21 -92
  22. package/src/scss/components/_utilities-functional-important.scss +4 -0
  23. package/src/scss/functions/_global-functions.scss +16 -2
  24. package/src/scss/mixins/_buttons.scss +34 -7
  25. package/src/scss/mixins/_forms.scss +28 -3
  26. package/src/scss/mixins/_globals.scss +12 -0
  27. package/src/scss/variables/_buttons.scss +250 -7
  28. package/src/scss/variables/_custom-forms.scss +2 -3
  29. package/src/scss/variables/_forms.scss +145 -34
  30. package/src/scss/variables/_globals.scss +26 -24
@@ -1,7 +1,3 @@
1
- ////
2
- /// @group globals
3
- ////
4
-
5
1
  // The keyword `clay-unset` allows unsetting a css value so it doesn't get output in the final css file.
6
2
 
7
3
  $clay-unset: clay-unset !default;
@@ -12,60 +8,32 @@ $c-unset: $clay-unset !default;
12
8
 
13
9
  $clay-unset-placeholder: clay-unset-placeholder !default;
14
10
 
11
+ // Settings
12
+
15
13
  $atlas-theme: true !default;
16
14
 
15
+ $enable-bs4-deprecated: true !default;
17
16
  $enable-lexicon-flat-colors: true !default;
18
17
  $enable-scaling-components: true !default;
18
+ $enable-c-inner: true !default;
19
+ $scaling-breakpoint-down: sm !default;
19
20
 
20
- $enable-rounded: true !default;
21
+ $enable-caret: false !default;
22
+ $enable-deprecation-messages: true !default;
21
23
  $enable-gradients: false !default;
24
+ $enable-grid-classes: true !default;
25
+ $enable-pointer-cursor-for-buttons: true !default;
26
+ $enable-prefers-reduced-motion-media-query: true !default;
27
+ $enable-print-styles: true !default;
28
+ $enable-responsive-font-sizes: false !default;
29
+ $enable-rounded: true !default;
22
30
  $enable-shadows: true !default;
23
31
  $enable-transitions: true !default;
32
+ $enable-validation-icons: true !default;
24
33
 
25
- $grid-breakpoints: (
26
- xs: 0,
27
- sm: 576px,
28
- md: 768px,
29
- lg: 992px,
30
- xl: 1280px,
31
- ) !default;
32
-
33
- $container-max-widths: (
34
- sm: 540px,
35
- md: 720px,
36
- lg: 960px,
37
- xl: 1248px,
38
- ) !default;
39
-
40
- $grid-gutter-width: 24px !default;
34
+ // Deprecated, no longer affects any compiled CSS
41
35
 
42
- $moz-osx-font-smoothing: grayscale !default;
43
- $webkit-font-smoothing: antialiased !default;
44
-
45
- $font-size-base: 1rem !default; // 16px
46
- $font-size-lg: 1.125rem !default; // 18px
47
- $font-size-sm: 0.875rem !default; // 14px
48
-
49
- $font-weight-light: 300 !default;
50
- $font-weight-normal: 400 !default;
51
- $font-weight-semi-bold: 600 !default;
52
- $font-weight-bold: 700 !default;
53
- $font-weight-bolder: 900 !default;
54
-
55
- $line-height-base: 1.5 !default;
56
-
57
- $font-family-sans-serif: system-ui, -apple-system, BlinkMacSystemFont,
58
- 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial,
59
- sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default;
60
-
61
- $headings-font-weight: $font-weight-bold !default;
62
-
63
- $h1-font-size: 1.625rem !default; // 26px
64
- $h2-font-size: 1.375rem !default; // 22px
65
- $h3-font-size: 1.1875rem !default; // 19px
66
- $h4-font-size: 1rem !default; // 16px
67
- $h5-font-size: 0.875rem !default; // 14px
68
- $h6-font-size: 0.8125rem !default; // 13px
36
+ $enable-hover-media-query: false !default;
69
37
 
70
38
  // Theme Base Colors
71
39
 
@@ -81,6 +49,22 @@ $gray-800: #393a4a !default;
81
49
  $gray-900: #272833 !default;
82
50
  $black: #000 !default;
83
51
 
52
+ $grays: () !default;
53
+ $grays: map-merge(
54
+ (
55
+ '100': $gray-100,
56
+ '200': $gray-200,
57
+ '300': $gray-300,
58
+ '400': $gray-400,
59
+ '500': $gray-500,
60
+ '600': $gray-600,
61
+ '700': $gray-700,
62
+ '800': $gray-800,
63
+ '900': $gray-900,
64
+ ),
65
+ $grays
66
+ );
67
+
84
68
  $blue: if($enable-lexicon-flat-colors, #4b9fff, #0b5fff) !default;
85
69
  $indigo: if($enable-lexicon-flat-colors, #7785ff, #6610f2) !default;
86
70
  $purple: if($enable-lexicon-flat-colors, #af78ff, #6f42c1) !default;
@@ -92,6 +76,26 @@ $green: if($enable-lexicon-flat-colors, #9be169, #287d3d) !default;
92
76
  $teal: if($enable-lexicon-flat-colors, #50d2a0, #20c997) !default;
93
77
  $cyan: if($enable-lexicon-flat-colors, #5fc8ff, #17a2b8) !default;
94
78
 
79
+ $colors: () !default;
80
+ $colors: map-merge(
81
+ (
82
+ 'blue': $blue,
83
+ 'indigo': $indigo,
84
+ 'purple': $purple,
85
+ 'pink': $pink,
86
+ 'red': $red,
87
+ 'orange': $orange,
88
+ 'yellow': $yellow,
89
+ 'green': $green,
90
+ 'teal': $teal,
91
+ 'cyan': $cyan,
92
+ 'white': $white,
93
+ 'gray': $gray-600,
94
+ 'gray-dark': $gray-800,
95
+ ),
96
+ $colors
97
+ );
98
+
95
99
  $primary: #0b5fff !default;
96
100
  $primary-d1: darken($primary, 5.1) !default;
97
101
  $primary-d2: darken($primary, 10) !default;
@@ -152,39 +156,35 @@ $dark-l1: lighten(saturate($dark, 0.18), 4.12) !default;
152
156
  $dark-l2: lighten(desaturate($dark, 0.36), 8.04) !default;
153
157
 
154
158
  $theme-colors: () !default;
155
- $theme-colors: map-deep-merge(
159
+ $theme-colors: map-merge(
156
160
  (
157
- primary: $primary,
158
- secondary: $secondary,
159
- success: $success,
160
- info: $info,
161
- warning: $warning,
162
- danger: $danger,
163
- light: $light,
164
- dark: $dark,
161
+ 'primary': $primary,
162
+ 'secondary': $secondary,
163
+ 'success': $success,
164
+ 'info': $info,
165
+ 'warning': $warning,
166
+ 'danger': $danger,
167
+ 'light': $light,
168
+ 'dark': $dark,
165
169
  ),
166
170
  $theme-colors
167
171
  );
168
172
 
173
+ // Set a specific jump point for requesting color jumps
174
+
175
+ $theme-color-interval: 8% !default;
176
+
177
+ // The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
178
+
169
179
  $yiq-contrasted-threshold: 150 !default;
170
180
  $yiq-text-dark: $gray-900 !default;
171
181
  $yiq-text-light: $white !default;
172
182
 
173
- $body-bg: $white !default;
174
- $body-color: $gray-900 !default;
175
- $text-muted: $gray-500 !default;
176
-
177
- $link-color: $primary !default;
178
- $link-hover-color: $primary-d2 !default;
179
-
180
- $component-active-bg: #0b5fff !default;
181
- $component-active-color: #fff !default;
183
+ // Characters which are escaped by the escape-svg function
182
184
 
183
- $component-focus-box-shadow: 0 0 0 0.125rem $white#{','} 0 0 0 0.25rem $primary-l1 !default;
184
- $component-focus-inset-box-shadow: inset 0 0 0 0.125rem $primary-l1#{','} inset 0
185
- 0 0 0.25rem $white !default;
185
+ $escaped-characters: (('<', '%3c'), ('>', '%3e'), ('#', '%23')) !default;
186
186
 
187
- // Spacing
187
+ // Spacers
188
188
 
189
189
  $spacer: 1rem !default;
190
190
  $spacers: () !default;
@@ -225,6 +225,298 @@ $spacers: map-deep-merge(
225
225
  $spacers
226
226
  );
227
227
 
228
+ // This variable affects the `.h-*` and `.w-*` classes.
229
+
230
+ $sizes: () !default;
231
+ $sizes: map-merge(
232
+ (
233
+ 25: 25%,
234
+ 50: 50%,
235
+ 75: 75%,
236
+ 100: 100%,
237
+ auto: auto,
238
+ ),
239
+ $sizes
240
+ );
241
+
242
+ // Reusable Values
243
+
244
+ $line-height-lg: 1.5 !default;
245
+ $line-height-sm: 1.5 !default;
246
+
247
+ $border-color: $gray-300 !default;
248
+ $border-width: 0.0625rem !default;
249
+
228
250
  $border-radius: 0.25rem !default; // 4px
229
251
  $border-radius-lg: 0.375rem !default; // 6px
230
252
  $border-radius-sm: 0.1875rem !default; // 3px
253
+
254
+ $rounded-border-radius: $border-radius !default;
255
+ $rounded-circle-border-radius: 5000px !default;
256
+ $rounded-0-border-radius: 0 !default;
257
+ $rounded-pill: 50rem !default;
258
+
259
+ $box-shadow-sm: 0 0.125rem 0.25rem rgba($black, 0.075) !default;
260
+ $box-shadow: 0 0.5rem 1rem rgba($black, 0.15) !default;
261
+ $box-shadow-lg: 0 1rem 3rem rgba($black, 0.175) !default;
262
+
263
+ $caret-width: 0.3em !default;
264
+ $caret-vertical-align: $caret-width * 0.85 !default;
265
+ $caret-spacing: $caret-width * 0.85 !default;
266
+
267
+ $transition-base: all 0.2s ease-in-out !default;
268
+ $transition-fade: opacity 0.15s linear !default;
269
+ $transition-collapse: height 0.35s ease !default;
270
+
271
+ $embed-responsive-aspect-ratios: () !default;
272
+ $embed-responsive-aspect-ratios: join(
273
+ ((21 9), (16 9), (4 3), (1 1)),
274
+ $embed-responsive-aspect-ratios
275
+ );
276
+
277
+ $component-focus-box-shadow: 0 0 0 0.125rem $white#{','} 0 0 0 0.25rem $primary-l1 !default;
278
+ $component-focus-inset-box-shadow: inset 0 0 0 0.125rem $primary-l1#{','} inset 0
279
+ 0 0 0.25rem $white !default;
280
+
281
+ $component-active-color: #fff !default;
282
+ $component-active-bg: #0b5fff !default;
283
+
284
+ // Cursors
285
+
286
+ $link-cursor: pointer !default;
287
+ $disabled-cursor: not-allowed !default;
288
+
289
+ // Grid
290
+
291
+ $grid-breakpoints: (
292
+ xs: 0,
293
+ sm: 576px,
294
+ md: 768px,
295
+ lg: 992px,
296
+ xl: 1280px,
297
+ ) !default;
298
+
299
+ // Grid columns
300
+
301
+ $grid-columns: 12 !default;
302
+ $grid-gutter-width: 24px !default;
303
+ $grid-row-columns: 6 !default;
304
+
305
+ // Containers
306
+
307
+ $container-max-widths: (
308
+ sm: 540px,
309
+ md: 720px,
310
+ lg: 960px,
311
+ xl: 1248px,
312
+ ) !default;
313
+
314
+ $container-form-lg: () !default;
315
+ $container-form-lg: map-deep-merge(
316
+ (
317
+ breakpoint-up: lg,
318
+ padding-bottom: 3rem,
319
+ padding-top: 3rem,
320
+ padding-bottom-mobile: 1rem,
321
+ padding-top-mobile: 1rem,
322
+ ),
323
+ $container-form-lg
324
+ );
325
+
326
+ $container-view: () !default;
327
+ $container-view: map-deep-merge(
328
+ (
329
+ padding-bottom: 1.5rem,
330
+ padding-top: 1.5rem,
331
+ ),
332
+ $container-view
333
+ );
334
+
335
+ // Fonts
336
+
337
+ $moz-osx-font-smoothing: grayscale !default;
338
+ $webkit-font-smoothing: antialiased !default;
339
+
340
+ $font-import-url: null !default;
341
+
342
+ $font-family-sans-serif: system-ui, -apple-system, BlinkMacSystemFont,
343
+ 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial,
344
+ sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default;
345
+ $font-family-serif: Georgia, 'Times New Roman', Times, serif !default;
346
+ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
347
+ 'Liberation Mono', 'Courier New', monospace !default;
348
+
349
+ $font-family-base: $font-family-sans-serif !default;
350
+
351
+ $font-size-base: 1rem !default; // 16px
352
+ $font-size-lg: 1.125rem !default; // 18px
353
+ $font-size-sm: 0.875rem !default; // 14px
354
+
355
+ $font-size-base-mobile: $font-size-base !default;
356
+ $font-size-lg-mobile: $font-size-lg !default;
357
+
358
+ $font-weight-lighter: lighter !default;
359
+ $font-weight-light: 300 !default;
360
+ $font-weight-normal: 400 !default;
361
+ $font-weight-semi-bold: 600 !default;
362
+ $font-weight-bold: 700 !default;
363
+ $font-weight-bolder: 900 !default;
364
+
365
+ $font-weight-base: $font-weight-normal !default;
366
+
367
+ $line-height-base: 1.5 !default;
368
+
369
+ $headings-font-weight: $font-weight-bold !default;
370
+
371
+ $h1-font-size: 1.625rem !default; // 26px
372
+ $h2-font-size: 1.375rem !default; // 22px
373
+ $h3-font-size: 1.1875rem !default; // 19px
374
+ $h4-font-size: 1rem !default; // 16px
375
+ $h5-font-size: 0.875rem !default; // 14px
376
+ $h6-font-size: 0.8125rem !default; // 13px
377
+
378
+ $h1-font-size-mobile: null !default;
379
+ $h2-font-size-mobile: null !default;
380
+ $h3-font-size-mobile: null !default;
381
+ $h4-font-size-mobile: null !default;
382
+ $h5-font-size-mobile: null !default;
383
+ $h6-font-size-mobile: null !default;
384
+
385
+ $headings-margin-bottom: $spacer / 2 !default;
386
+ $headings-font-family: null !default;
387
+ $headings-font-weight: 500 !default;
388
+ $headings-line-height: 1.2 !default;
389
+ $headings-color: null !default;
390
+
391
+ // Body
392
+
393
+ $body-bg: $white !default;
394
+ $body-color: $gray-900 !default;
395
+ $body-moz-osx-font-smoothing: $moz-osx-font-smoothing !default;
396
+ $body-webkit-font-smoothing: $webkit-font-smoothing !default;
397
+ $body-text-align: inherit !default;
398
+
399
+ $c-body: () !default;
400
+ $c-body: map-merge(
401
+ (
402
+ background-color: $body-bg,
403
+ color: $body-color,
404
+ font-family: $font-family-base,
405
+ font-size: $font-size-base,
406
+ -moz-osx-font-smoothing: $body-moz-osx-font-smoothing,
407
+ -webkit-font-smoothing: $body-webkit-font-smoothing,
408
+ font-weight: $font-weight-base,
409
+ line-height: $line-height-base,
410
+ margin: 0,
411
+ -ms-overflow-style: scrollbar,
412
+ text-align: $body-text-align,
413
+ ),
414
+ $c-body
415
+ );
416
+
417
+ // Button
418
+
419
+ $c-button-base: () !default;
420
+ $c-button-base: map-merge(
421
+ (
422
+ cursor: $link-cursor,
423
+ -webkit-appearance: button,
424
+ ),
425
+ $c-button-base
426
+ );
427
+
428
+ // Link
429
+
430
+ $link-color: $primary !default;
431
+ $link-decoration: none !default;
432
+ $link-hover-color: $primary-d2 !default;
433
+ $link-hover-decoration: underline !default;
434
+
435
+ // Darken percentage for links with `.text-*` class (e.g. `.text-success`)
436
+
437
+ $emphasized-link-hover-darken-percentage: 15% !default;
438
+
439
+ // Paragraph
440
+
441
+ $paragraph-margin-bottom: 1rem !default;
442
+
443
+ $display1-size: 6rem !default;
444
+ $display2-size: 5.5rem !default;
445
+ $display3-size: 4.5rem !default;
446
+ $display4-size: 3.5rem !default;
447
+
448
+ $display1-weight: 300 !default;
449
+ $display2-weight: 300 !default;
450
+ $display3-weight: 300 !default;
451
+ $display4-weight: 300 !default;
452
+ $display-line-height: $headings-line-height !default;
453
+
454
+ $lead-font-size: $font-size-base * 1.25 !default;
455
+ $lead-font-weight: 300 !default;
456
+
457
+ $small-font-size: 80% !default;
458
+
459
+ $text-muted: $gray-500 !default;
460
+
461
+ $blockquote-small-color: $gray-600 !default;
462
+ $blockquote-small-font-size: $small-font-size !default;
463
+ $blockquote-font-size: $font-size-base * 1.25 !default;
464
+
465
+ $hr-border-color: rgba($black, 0.1) !default;
466
+ $hr-border-width: $border-width !default;
467
+ $hr-margin-y: $spacer !default;
468
+
469
+ $mark-padding: 0.2em !default;
470
+
471
+ $dt-font-weight: $font-weight-bold !default;
472
+
473
+ $code-color: $pink !default;
474
+ $code-font-size: 87.5% !default;
475
+
476
+ $kbd-bg: $gray-900 !default;
477
+ $kbd-color: $white !default;
478
+ $kbd-font-size: $code-font-size !default;
479
+ $kbd-padding-x: 0.4rem !default;
480
+ $kbd-padding-y: 0.2rem !default;
481
+ $kbd-box-shadow: inset 0 -0.1rem 0 rgba($black, 0.25) !default;
482
+
483
+ $nested-kbd-font-weight: $font-weight-bold !default;
484
+
485
+ $pre-color: $gray-900 !default;
486
+ $pre-scrollable-max-height: 340px !default;
487
+
488
+ $list-inline-padding: 0.5rem !default;
489
+
490
+ $mark-bg: #fcf8e3 !default;
491
+
492
+ // Buttons + Forms
493
+
494
+ $label-margin-bottom: 0.5rem !default;
495
+
496
+ $input-btn-font-family: null !default;
497
+ $input-btn-font-size: $font-size-base !default;
498
+ $input-btn-line-height: $line-height-base !default;
499
+ $input-btn-padding-x: 0.75rem !default;
500
+ $input-btn-padding-y: 0.375rem !default;
501
+
502
+ $input-btn-focus-width: 0.2rem !default;
503
+
504
+ $input-btn-focus-color: rgba($component-active-bg, 0.25) !default;
505
+ $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
506
+
507
+ $input-btn-font-size-sm: $font-size-sm !default;
508
+ $input-btn-line-height-sm: $line-height-sm !default;
509
+ $input-btn-padding-x-sm: 0.5rem !default;
510
+ $input-btn-padding-y-sm: 0.25rem !default;
511
+
512
+ $input-btn-font-size-lg: $font-size-lg !default;
513
+ $input-btn-line-height-lg: $line-height-lg !default;
514
+ $input-btn-padding-x-lg: 1rem !default;
515
+ $input-btn-padding-y-lg: 0.5rem !default;
516
+
517
+ $input-btn-border-width: $border-width !default;
518
+
519
+ // Print
520
+
521
+ $print-body-min-width: map-get($grid-breakpoints, 'lg') !default;
522
+ $print-page-size: a3 !default;
@@ -1,7 +1,3 @@
1
- ////
2
- /// @group labels
3
- ////
4
-
5
1
  $label-border-radius: 0.125rem !default; // 2px
6
2
  $label-font-size: 0.625rem !default; // 10px
7
3
  $label-font-weight: $font-weight-semi-bold !default;
@@ -1,7 +1,3 @@
1
- ////
2
- /// @group pagination
3
- ////
4
-
5
1
  $pagination-font-size: 0.875rem !default; // 14px
6
2
  $pagination-line-height: 1 !default;
7
3