claritas-web-framework 6.0.5 → 6.0.7

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 (85) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
  3. package/{scss → sass}/_functions.scss +0 -0
  4. package/{scss → sass}/_helpers.scss +0 -0
  5. package/{scss → sass}/_index.scss +0 -0
  6. package/{scss → sass}/_mixins.scss +0 -0
  7. package/{scss → sass}/_modules.scss +0 -0
  8. package/{scss → sass}/_reboot.scss +0 -0
  9. package/{scss → sass}/_root.scss +0 -0
  10. package/{scss → sass}/_utilities.scss +0 -0
  11. package/{scss → sass}/_variables.scss +27 -64
  12. package/{scss → sass}/helpers/_container.scss +0 -0
  13. package/{scss → sass}/helpers/_embed.scss +0 -0
  14. package/{scss → sass}/helpers/_grid.scss +0 -0
  15. package/{scss → sass}/helpers/_image.scss +0 -0
  16. package/{scss → sass}/helpers/_link.scss +0 -0
  17. package/{scss → sass}/helpers/_screenReader.scss +0 -0
  18. package/{scss → sass}/helpers/_wrap.scss +0 -0
  19. package/{scss → sass}/mixins/_alert.scss +0 -0
  20. package/{scss → sass}/mixins/_borderRadius.scss +0 -0
  21. package/{scss → sass}/mixins/_boxShadow.scss +0 -0
  22. package/{scss → sass}/mixins/_breakpoints.scss +0 -0
  23. package/{scss → sass}/mixins/_button.scss +6 -16
  24. package/{scss → sass}/mixins/_caret.scss +0 -0
  25. package/{scss → sass}/mixins/_clearfix.scss +0 -0
  26. package/{scss → sass}/mixins/_colors.scss +0 -0
  27. package/{scss → sass}/mixins/_container.scss +0 -0
  28. package/{scss → sass}/mixins/_gradient.scss +1 -4
  29. package/{scss → sass}/mixins/_grid.scss +0 -0
  30. package/{scss → sass}/mixins/_group.scss +0 -0
  31. package/{scss → sass}/mixins/_list.scss +0 -0
  32. package/{scss → sass}/mixins/_pill.scss +0 -0
  33. package/{scss → sass}/mixins/_rfs.scss +0 -0
  34. package/{scss → sass}/mixins/_screenReader.scss +0 -0
  35. package/{scss → sass}/mixins/_tag.scss +0 -0
  36. package/{scss → sass}/mixins/_transition.scss +0 -0
  37. package/{scss → sass}/mixins/_wrap.scss +0 -0
  38. package/{scss → sass}/modules/_alert.scss +1 -4
  39. package/{scss → sass}/modules/_breadcrumbs.scss +0 -0
  40. package/{scss → sass}/modules/_button.scss +1 -1
  41. package/{scss → sass}/modules/_card.scss +1 -1
  42. package/{scss → sass}/modules/_close.scss +0 -0
  43. package/{scss → sass}/modules/_details.scss +0 -0
  44. package/{scss → sass}/modules/_dialog.scss +2 -2
  45. package/{scss → sass}/modules/_dropdown.scss +1 -4
  46. package/{scss → sass}/modules/_form.scss +1 -5
  47. package/{scss → sass}/modules/_list.scss +4 -16
  48. package/{scss → sass}/modules/_loader.scss +0 -0
  49. package/{scss → sass}/modules/_nav.scss +1 -1
  50. package/{scss → sass}/modules/_pill.scss +0 -0
  51. package/{scss → sass}/modules/_table.scss +0 -0
  52. package/{scss → sass}/modules/_tabs.scss +5 -21
  53. package/{scss → sass}/modules/_tag.scss +0 -0
  54. package/{scss → sass}/modules/_tile.scss +3 -12
  55. package/{scss → sass}/modules/_tooltip.scss +5 -5
  56. package/{scss → sass}/modules/form/_checkbox.scss +2 -6
  57. package/{scss → sass}/modules/form/_file.scss +1 -3
  58. package/{scss → sass}/modules/form/_formFieldGroup.scss +0 -0
  59. package/sass/modules/form/_output.scss +8 -0
  60. package/{scss → sass}/modules/form/_progress.scss +4 -4
  61. package/{scss → sass}/modules/form/_radio.scss +4 -8
  62. package/{scss → sass}/modules/form/_range.scss +3 -7
  63. package/{scss → sass}/modules/form/_select.scss +0 -0
  64. package/{scss → sass}/modules/form/_text.scss +1 -1
  65. package/{scss → sass}/modules/form/_textarea.scss +0 -0
  66. package/{scss → sass}/modules/form/_toggle.scss +4 -8
  67. package/{scss → sass}/utilities/_align.scss +0 -0
  68. package/sass/utilities/_border.scss +57 -0
  69. package/{scss → sass}/utilities/_colors.scss +0 -0
  70. package/{scss → sass}/utilities/_display.scss +0 -0
  71. package/{scss → sass}/utilities/_flex.scss +0 -0
  72. package/{scss → sass}/utilities/_float.scss +0 -0
  73. package/{scss → sass}/utilities/_order.scss +0 -0
  74. package/{scss → sass}/utilities/_overflow.scss +0 -0
  75. package/{scss → sass}/utilities/_pointerEvents.scss +0 -0
  76. package/{scss → sass}/utilities/_position.scss +0 -0
  77. package/{scss → sass}/utilities/_shadow.scss +0 -0
  78. package/{scss → sass}/utilities/_size.scss +0 -0
  79. package/{scss → sass}/utilities/_spacing.scss +0 -0
  80. package/{scss → sass}/utilities/_translate.scss +0 -0
  81. package/{scss → sass}/utilities/_typography.scss +0 -0
  82. package/{scss → sass}/utilities/_visibility.scss +0 -0
  83. package/{scss → sass}/utilities/_zIndex.scss +0 -0
  84. package/scss/modules/form/_output.scss +0 -8
  85. package/scss/utilities/_border.scss +0 -72
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Import CSS
2
- import "./scss/_index.scss";
2
+ import "./sass/_index.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claritas-web-framework",
3
- "version": "6.0.5",
3
+ "version": "6.0.7",
4
4
  "updated": "13/10/2022",
5
5
  "description": "The CSS framework built for Claritas front end.",
6
6
  "main": "index.js",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -443,9 +443,9 @@ $headings-line-height: 1.2 !default;
443
443
  $headings-color: $body-color !default;
444
444
 
445
445
  $border-color-main: $black !default;
446
- $border-opacity-unfocus: 0.1 !default;
447
- $border-opacity: 0.2 !default;
448
- $border-opacity-hover: 0.3 !default;
446
+ $border-opacity-unfocus: 10% !default;
447
+ $border-opacity: 20% !default;
448
+ $border-opacity-hover: 30% !default;
449
449
  $border-width: 1px !default;
450
450
  $border-style: solid !default;
451
451
  $border-radius-small: calc($spacer * 0.15) !default;
@@ -465,7 +465,7 @@ $hr-height: null !default; // Deprecated in v5.2.0
465
465
 
466
466
  $hr-border-color: null !default; // Allows for inherited colors
467
467
  $hr-border-width: $border-width !default;
468
- $hr-opacity: 0.25 !default;
468
+ $hr-opacity: 25% !default;
469
469
 
470
470
  $legend-margin-bottom: 0.5rem !default;
471
471
  $legend-font-size: 1.5rem !default;
@@ -489,21 +489,15 @@ $table-cell-padding-y-small: calc(($spacer * 0.25) - 1px) !default;
489
489
  $table-cell-padding-x-small: calc($spacer * 0.5) !default;
490
490
  $table-cell-border-style: solid !default;
491
491
  $table-cell-border-width: 1px !default;
492
- $table-cell-border-color: rgb(
493
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
494
- ) !default;
492
+ $table-cell-border-color: rgba($border-color-main, $border-opacity) !default;
495
493
  $table-cell-valign: top !default;
496
494
  $table-th-font-weight: null !default;
497
495
  $table-th-border-width: 2px !default;
498
496
  $table-background-color: transparent !default;
499
497
  $table-head-background-color: $light !default;
500
498
  $table-striped-background-opacity: 4% !default;
501
- $table-even-background-color: rgb(
502
- #{color.red($dark)} #{color.green($dark)} #{color.blue($dark)} / #{$table-striped-background-opacity}
503
- ) !default;
504
- $table-odd-background-color: rgb(
505
- #{color.red($light)} #{color.green($light)} #{color.blue($light)} / #{$table-striped-background-opacity}
506
- ) !default;
499
+ $table-even-background-color: rgba($dark, $table-striped-background-opacity) !default;
500
+ $table-odd-background-color: rgba($light, $table-striped-background-opacity) !default;
507
501
  $table-caption-color: $medium !default;
508
502
 
509
503
  $zindex-static: 0 !default;
@@ -531,12 +525,9 @@ $zindexes: (
531
525
  ) !default;
532
526
 
533
527
  $box-shadow-none: none !default;
534
- $box-shadow-small: 0 calc($spacer * 0.125) calc($spacer * 0.25)
535
- rgb(#{color.red($dark)} #{color.green($dark)} #{color.blue($dark)} / 7.5%) !default;
536
- $box-shadow-medium: 0 calc($spacer * 0.5) calc($spacer * 0.75)
537
- rgb(#{color.red($dark)} #{color.green($dark)} #{color.blue($dark)} / 15%) !default;
538
- $box-shadow-large: 0 $spacer calc($spacer * 2.5)
539
- rgb(#{color.red($dark)} #{color.green($dark)} #{color.blue($dark)} / 17.5%) !default;
528
+ $box-shadow-small: 0 calc($spacer * 0.125) calc($spacer * 0.25) rgba($dark, 7.5%) !default;
529
+ $box-shadow-medium: 0 calc($spacer * 0.5) calc($spacer * 0.75) rgba($dark, 15%) !default;
530
+ $box-shadow-large: 0 $spacer calc($spacer * 2.5) rgba($dark, 17.5%) !default;
540
531
 
541
532
  $box-shadows: (
542
533
  "none": $box-shadow-none,
@@ -558,17 +549,11 @@ $escaped-characters: (("<", "%3c"), (">", "%3e"), ("#", "%23"), ("(", "%28"), ("
558
549
  $form-select-indicator-color: $body-color !default;
559
550
  $form-select-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>") !default;
560
551
 
561
- $list-nested-indicator-color: rgb(
562
- #{color.red($body-color)} #{color.green($body-color)} #{color.blue($body-color)} / 25%
563
- ) !default;
552
+ $list-nested-indicator-color: rgba($body-color, 25%) !default;
564
553
  $list-nested-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='#{$list-nested-indicator-color}' stroke='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z'/></svg>") !default;
565
554
 
566
- $form-file-indicator-color: rgb(
567
- #{color.red($body-color)} #{color.green($body-color)} #{color.blue($body-color)} / 25%
568
- ) !default;
569
- $form-file-indicator-color-hover: rgb(
570
- #{color.red($body-color)} #{color.green($body-color)} #{color.blue($body-color)} / 50%
571
- ) !default;
555
+ $form-file-indicator-color: rgba($body-color, 25%) !default;
556
+ $form-file-indicator-color-hover: rgba($body-color, 50%) !default;
572
557
  $form-file-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='#{$form-file-indicator-color}' stroke='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z'/></svg>") !default;
573
558
  $form-file-indicator-hover: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='#{$form-file-indicator-color-hover}' stroke='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z'/></svg>") !default;
574
559
 
@@ -586,12 +571,8 @@ $label-color: $body-color !default;
586
571
 
587
572
  $input-button-border-width: $border-width !default;
588
573
  $input-button-border-style: $border-style !default;
589
- $input-button-border-color: rgb(
590
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
591
- ) !default;
592
- $input-button-border-color-hover: rgb(
593
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity-hover}
594
- ) !default;
574
+ $input-button-border-color: rgba($border-color-main, $border-opacity) !default;
575
+ $input-button-border-color-hover: rgba($border-color-main, $border-opacity-hover) !default;
595
576
  $input-button-border-radius: $border-radius-default !default;
596
577
  $input-button-border-radius-large: $border-radius-large !default;
597
578
  $input-button-border-radius-small: $border-radius-small !default;
@@ -609,7 +590,7 @@ $input-button-padding-y-small: calc($spacer * 0.25) !default;
609
590
  $input-button-padding-x-small: calc($spacer * 0.5) !default;
610
591
 
611
592
  $input-button-focus-box-shadow: 0 0 0 calc($spacer * 0.25) $input-button-border-color !default;
612
- $input-button-disabled-opacity: 0.65 !default;
593
+ $input-button-disabled-opacity: 65% !default;
613
594
 
614
595
  $input-button-detail-color: $primary !default;
615
596
 
@@ -675,22 +656,16 @@ $button-active-border-shade-amount: 25% !default;
675
656
  $button-active-border-tint-amount: 10% !default;
676
657
 
677
658
  $button-font-weight: $font-weight-normal !default;
678
- $button-box-shadow: inset 0 1px 0 rgb(#{color.red($white)} #{color.green($white)} #{color.blue($white)} / 15%),
679
- 0 1px 1px rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 7.5%) !default;
659
+ $button-box-shadow: inset 0 1px 0 rgba($white, 15%), 0 1px 1px rgba($black, 7.5%) !default;
680
660
  $button-focus-width: calc($spacer * 0.25) !default;
681
661
  $button-focus-box-shadow: $input-button-focus-box-shadow !default;
682
- $button-disabled-opacity: 0.65 !default;
683
- $button-active-box-shadow: inset 0 3px 5px
684
- rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 12.5%) !default;
662
+ $button-disabled-opacity: $input-button-disabled-opacity !default;
663
+ $button-active-box-shadow: inset 0 3px 5px rgba($black, 12.5%) !default;
685
664
 
686
665
  $button-close-indicator-color: $white !default;
687
666
  $button-close-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='#{$button-close-indicator-color}' d='M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z'/></svg>") !default;
688
- $button-close-background-color: rgb(
689
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
690
- ) !default;
691
- $button-close-background-color-hover: rgb(
692
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity-hover}
693
- ) !default;
667
+ $button-close-background-color: rgba($border-color-main, $border-opacity) !default;
668
+ $button-close-background-color-hover: rgba($border-color-main, $border-opacity-hover) !default;
694
669
  $button-close-height: calc($spacer * 1.5) !default;
695
670
  $button-close-width: calc($spacer * 1.5) !default;
696
671
  $button-close-height-small: calc($spacer * 1) !default;
@@ -701,9 +676,7 @@ $button-close-width-large: calc($spacer * 2) !default;
701
676
  // Card
702
677
  $card-border-width: $border-width !default;
703
678
  $card-border-style: $border-style !default;
704
- $card-border-color: rgb(
705
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
706
- ) !default;
679
+ $card-border-color: rgba($border-color-main, $border-opacity) !default;
707
680
  $card-border-radius: $border-radius-default !default;
708
681
  $card-background-color: $white !default;
709
682
  $card-header-footer-padding: calc(($spacer * 0.375) - 1px) $spacer !default;
@@ -711,9 +684,7 @@ $card-body-padding: $spacer !default;
711
684
 
712
685
  // Tag
713
686
  $tag-background: $light !default;
714
- $tag-border-color: rgb(
715
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
716
- ) !default;
687
+ $tag-border-color: rgba($border-color-main, $border-opacity) !default;
717
688
  $tag-border-radius: $border-radius-default !default;
718
689
  $tag-color: $body-color !default;
719
690
  $tag-bg-scale: 0% !default;
@@ -723,9 +694,7 @@ $tag-padding-x: calc(($spacer * 0.5) - 1px) !default;
723
694
 
724
695
  // Pill
725
696
  $pill-background: $light !default;
726
- $pill-border-color: rgb(
727
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
728
- ) !default;
697
+ $pill-border-color: rgba($border-color-main, $border-opacity) !default;
729
698
  $pill-color: $body-color !default;
730
699
  $pill-bg-scale: 0% !default;
731
700
  $pill-color-scale: 90% !default;
@@ -741,19 +710,13 @@ $nav-title-font-weight: $font-weight-bold !default;
741
710
  $nav-item-padding-y: $input-button-padding-y !default;
742
711
  $nav-item-padding-x: $input-button-padding-x !default;
743
712
  $nav-item-color: $body-color !default;
744
- $nav-item-color-disabled: rgb(
745
- #{color.red($nav-item-color)} #{color.green($nav-item-color)} #{color.blue($nav-item-color)} / 75%
746
- ) !default;
713
+ $nav-item-color-disabled: rgba($nav-item-color, 75%) !default;
747
714
  $nav-item-color-hover: color.mix(black, $nav-item-color, $link-shade-percentage) !default;
748
715
  $nav-item-color-active: color.mix(black, $nav-item-color, $link-shade-percentage) !default;
749
716
  $nav-item-background-color: transparent !default;
750
717
  $nav-item-background-color-opacity: 5% !default;
751
- $nav-item-background-color-hover: rgb(
752
- #{color.red($nav-item-color)} #{color.green($nav-item-color)} #{color.blue($nav-item-color)} / #{$nav-item-background-color-opacity}
753
- ) !default;
754
- $nav-item-background-color-active: rgb(
755
- #{color.red($nav-item-color)} #{color.green($nav-item-color)} #{color.blue($nav-item-color)} / #{$nav-item-background-color-opacity}
756
- ) !default;
718
+ $nav-item-background-color-hover: rgba($nav-item-color, $nav-item-background-color-opacity) !default;
719
+ $nav-item-background-color-active: rgba($nav-item-color, $nav-item-background-color-opacity) !default;
757
720
  $nav-tab-item-padding: calc(($input-button-padding-y) - 1.5px) $input-button-padding-x !default;
758
721
  $nav-tab-card-item-padding: calc(($input-button-padding-y) - 1px) $input-button-padding-x !default;
759
722
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -45,12 +45,7 @@
45
45
  @include gradient-bg($hover-background);
46
46
 
47
47
  &:not(.button--unstyled) {
48
- box-shadow: 0 0 0 $button-focus-width
49
- rgb(
50
- #{color.red(color.mix($color, $background, 15%))} #{color.green(color.mix($color, $background, 15%))} #{color.blue(
51
- color.mix($color, $background, 15%)
52
- )} / 50%
53
- );
48
+ box-shadow: 0 0 0 $button-focus-width rgba(color.mix($color, $background, 15%), 50%);
54
49
  }
55
50
  }
56
51
 
@@ -65,12 +60,7 @@
65
60
 
66
61
  &:focus {
67
62
  // Avoid using mixin so we can pass custom focus shadow properly
68
- box-shadow: 0 0 0 $button-focus-width
69
- rgb(
70
- #{color.red(color.mix($color, $background, 15%))} #{color.green(color.mix($color, $background, 15%))} #{color.blue(
71
- color.mix($color, $background, 15%)
72
- )} / 50%
73
- );
63
+ box-shadow: 0 0 0 $button-focus-width rgba(color.mix($color, $background, 15%), 50%);
74
64
  }
75
65
  }
76
66
 
@@ -102,7 +92,7 @@
102
92
  }
103
93
 
104
94
  &:focus {
105
- box-shadow: 0 0 0 $button-focus-width rgb(#{color.red($color)} #{color.green($color)} #{color.blue($color)} / 50%);
95
+ box-shadow: 0 0 0 $button-focus-width rgba($color, 50%);
106
96
  }
107
97
 
108
98
  &:active,
@@ -114,7 +104,7 @@
114
104
 
115
105
  &:focus {
116
106
  // Avoid using mixin so we can pass custom focus shadow properly
117
- box-shadow: 0 0 0 $button-focus-width rgb(#{color.red($color)} #{color.green($color)} #{color.blue($color)} / 50%);
107
+ box-shadow: 0 0 0 $button-focus-width rgba($color, 50%);
118
108
  }
119
109
  }
120
110
 
@@ -170,7 +160,7 @@
170
160
 
171
161
  &:hover {
172
162
  color: $color-hover;
173
- background-color: rgb(#{color.red($color)} #{color.green($color)} #{color.blue($color)} / 10%);
163
+ background-color: rgba($color, 10%);
174
164
  border-color: transparent;
175
165
  }
176
166
 
@@ -178,7 +168,7 @@
178
168
  &.active,
179
169
  &.dropdown-toggle.show {
180
170
  color: $active-color;
181
- background-color: rgb(#{color.red($color)} #{color.green($color)} #{color.blue($color)} / 10%);
171
+ background-color: rgba($color, 10%);
182
172
  border-color: transparent;
183
173
  }
184
174
 
File without changes
File without changes
File without changes
File without changes
@@ -38,10 +38,7 @@
38
38
  background-image: radial-gradient(circle, $inner-color, $outer-color);
39
39
  }
40
40
 
41
- @mixin gradient-striped(
42
- $color: rgb(#{color.red($white)} #{color.green($white)} #{color.blue($white)} / 15%),
43
- $angle: 45deg
44
- ) {
41
+ @mixin gradient-striped($color: rgba($white, 15%), $angle: 45deg) {
45
42
  background-image: linear-gradient(
46
43
  $angle,
47
44
  $color 25%,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -5,10 +5,7 @@
5
5
  @use "./../mixins/alert" as *;
6
6
 
7
7
  .alert {
8
- border: 1px solid
9
- rgb(
10
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
11
- );
8
+ border: 1px solid rgba($border-color-main, $border-opacity);
12
9
  padding: $spacer;
13
10
  border-radius: $border-radius-default;
14
11
  background-color: color.mix(white, $body-color, 87.5%);
File without changes
@@ -96,7 +96,7 @@
96
96
 
97
97
  &.button--link {
98
98
  &:hover {
99
- background-color: rgb(#{color.red($body-color)} #{color.green($body-color)} #{color.blue($body-color)} / 10%);
99
+ background-color: rgba($body-color, 10%);
100
100
  }
101
101
  }
102
102
  }
@@ -107,7 +107,7 @@ details.card {
107
107
  border-bottom-color: transparent;
108
108
 
109
109
  &:hover {
110
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 5%);
110
+ background-color: rgba($black, 5%);
111
111
  }
112
112
  }
113
113
 
File without changes
File without changes
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  &::backdrop {
18
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 65%);
18
+ background-color: rgba($black, 65%);
19
19
  backdrop-filter: blur(4px);
20
20
  }
21
21
 
@@ -65,7 +65,7 @@
65
65
  right: 0;
66
66
  bottom: 0;
67
67
  position: fixed;
68
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 5%);
68
+ background-color: rgba($black, 5%);
69
69
  backdrop-filter: blur(4px);
70
70
  }
71
71
  }
@@ -43,10 +43,7 @@
43
43
  left: 0;
44
44
  padding: calc($spacer * 0.5) 0;
45
45
  background-color: $white;
46
- border: 1px solid
47
- rgb(
48
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
49
- );
46
+ border: 1px solid rgba($border-color-main, $border-opacity);
50
47
  box-shadow: $box-shadow-small;
51
48
  border-radius: $border-radius-default;
52
49
  align-items: stretch;
@@ -90,11 +90,7 @@ progress,
90
90
 
91
91
  &:focus {
92
92
  outline: 0;
93
- box-shadow: 0
94
- 0
95
- 0
96
- calc($spacer * 0.25)
97
- rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / #{$border-opacity});
93
+ box-shadow: 0 0 0 calc($spacer * 0.25) rgba($value, $border-opacity);
98
94
  }
99
95
  }
100
96
  }
@@ -43,10 +43,7 @@ dl {
43
43
  @include make-list-unsyled;
44
44
 
45
45
  & > li {
46
- border: 1px solid
47
- rgb(
48
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
49
- );
46
+ border: 1px solid rgba($border-color-main, $border-opacity);
50
47
  border-bottom-color: transparent;
51
48
  padding: calc(($spacer * 0.625) - 1px) $spacer;
52
49
  position: relative;
@@ -57,10 +54,7 @@ dl {
57
54
  }
58
55
 
59
56
  &:last-child {
60
- border-bottom: 1px solid
61
- rgb(
62
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
63
- );
57
+ border-bottom: 1px solid rgba($border-color-main, $border-opacity);
64
58
  border-bottom-left-radius: $border-radius-default;
65
59
  border-bottom-right-radius: $border-radius-default;
66
60
  }
@@ -73,10 +67,7 @@ dl {
73
67
  & > li {
74
68
  background-color: $white;
75
69
  border-radius: $border-radius-default;
76
- border: 1px solid
77
- rgb(
78
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
79
- );
70
+ border: 1px solid rgba($border-color-main, $border-opacity);
80
71
 
81
72
  @if $enable-margins {
82
73
  margin-bottom: $spacer;
@@ -100,10 +91,7 @@ dl {
100
91
  background-repeat: no-repeat;
101
92
  background-position: left calc($spacer * 0.5) top $spacer;
102
93
  padding-left: calc($spacer * 1.5);
103
- border-top: 1px solid
104
- rgb(
105
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
106
- );
94
+ border-top: 1px solid rgba($border-color-main, $border-opacity);
107
95
  }
108
96
  }
109
97
  }
File without changes
@@ -21,7 +21,7 @@
21
21
  padding: 0;
22
22
 
23
23
  & ul {
24
- border-left: 1px solid rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 5%);
24
+ border-left: 1px solid rgba($black, 5%);
25
25
  margin: calc($spacer * 0.75);
26
26
  padding-left: calc($spacer * 0.75);
27
27
  list-style: none;
File without changes
File without changes
@@ -17,18 +17,12 @@
17
17
  flex-wrap: nowrap;
18
18
 
19
19
  &:not(:empty) {
20
- border-bottom: 1px solid
21
- rgb(
22
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
23
- );
20
+ border-bottom: 1px solid rgba($border-color-main, $border-opacity);
24
21
  }
25
22
 
26
23
  & > *,
27
24
  & .nav--item {
28
- border: 1px solid
29
- rgb(
30
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity-unfocus}
31
- );
25
+ border: 1px solid rgba($border-color-main, $border-opacity-unfocus);
32
26
  border-bottom-color: transparent;
33
27
  border-radius: $border-radius-default $border-radius-default 0 0;
34
28
  margin-bottom: -1px;
@@ -41,9 +35,7 @@
41
35
  &[data-active="true"],
42
36
  &.active {
43
37
  background-color: $card-background-color;
44
- border-color: rgb(
45
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
46
- );
38
+ border-color: rgba($border-color-main, $border-opacity);
47
39
  border-bottom-color: transparent;
48
40
  }
49
41
  }
@@ -52,13 +44,7 @@
52
44
  & .tab--content {
53
45
  border-width: 1px;
54
46
  border-style: solid;
55
- border-color: transparent
56
- rgb(
57
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
58
- )
59
- rgb(
60
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
61
- );
47
+ border-color: transparent rgba($border-color-main, $border-opacity) rgba($border-color-main, $border-opacity);
62
48
  background-color: $card-background-color;
63
49
  border-radius: 0 0 $card-border-radius $card-border-radius;
64
50
  display: none;
@@ -115,9 +101,7 @@
115
101
 
116
102
  &[data-active="true"],
117
103
  &.active {
118
- border-color: rgb(
119
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
120
- );
104
+ border-color: rgba($border-color-main, $border-opacity);
121
105
 
122
106
  &::after {
123
107
  display: block;
File without changes
@@ -7,10 +7,7 @@
7
7
  background-color: $white;
8
8
  display: flex;
9
9
  flex-direction: column;
10
- border: 1px solid
11
- rgb(
12
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
13
- );
10
+ border: 1px solid rgba($border-color-main, $border-opacity);
14
11
  border-left-width: 4px;
15
12
  min-width: 0;
16
13
  word-wrap: break-word;
@@ -36,19 +33,13 @@
36
33
 
37
34
  & .tile--header {
38
35
  flex: 0 1 auto;
39
- border-bottom: 1px solid
40
- rgb(
41
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
42
- );
36
+ border-bottom: 1px solid rgba($border-color-main, $border-opacity);
43
37
  }
44
38
 
45
39
  & .tile--footer {
46
40
  margin-top: auto;
47
41
  flex: 0 0 auto;
48
- border-top: 1px solid
49
- rgb(
50
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
51
- );
42
+ border-top: 1px solid rgba($border-color-main, $border-opacity);
52
43
  }
53
44
 
54
45
  & .tile--body {
@@ -24,7 +24,7 @@
24
24
 
25
25
  &::before {
26
26
  content: "";
27
- border-top: 6px solid rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 75%);
27
+ border-top: 6px solid rgba($black, 75%);
28
28
  border-right: 6px solid transparent;
29
29
  border-bottom: 0 none;
30
30
  border-left: 6px solid transparent;
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  &::after {
39
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 75%);
39
+ background-color: rgba($black, 75%);
40
40
  content: attr(data-tooltip);
41
41
  width: auto;
42
42
  min-width: calc($spacer * 6);
@@ -60,7 +60,7 @@
60
60
  border-top: 6px solid transparent;
61
61
  border-right: 0 none;
62
62
  border-bottom: 6px solid transparent;
63
- border-left: 6px solid rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 75%);
63
+ border-left: 6px solid rgba($black, 75%);
64
64
  top: 50%;
65
65
  right: auto;
66
66
  bottom: auto;
@@ -80,7 +80,7 @@
80
80
  &[data-placement="right"] {
81
81
  &::before {
82
82
  border-top: 6px solid transparent;
83
- border-right: 6px solid rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 75%);
83
+ border-right: 6px solid rgba($black, 75%);
84
84
  border-bottom: 6px solid transparent;
85
85
  border-left: 0 none;
86
86
  top: 50%;
@@ -103,7 +103,7 @@
103
103
  &::before {
104
104
  border-top: 0 none;
105
105
  border-right: 6px solid transparent;
106
- border-bottom: 6px solid rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 75%);
106
+ border-bottom: 6px solid rgba($black, 75%);
107
107
  border-left: 6px solid transparent;
108
108
  top: auto;
109
109
  right: auto;
@@ -45,12 +45,8 @@ input[type="checkbox"] {
45
45
  &:disabled,
46
46
  &.disabled,
47
47
  &[aria-disabled="true"] {
48
- background-color: rgb(
49
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 40%
50
- );
51
- border-color: rgb(
52
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 80%
53
- );
48
+ background-color: rgba($input-detail-color, 40%);
49
+ border-color: rgba($input-detail-color, 80%);
54
50
  }
55
51
  }
56
52
 
@@ -131,9 +131,7 @@ input[type="file"] {
131
131
  margin-inline-end: $input-padding-x;
132
132
  color: $body-color;
133
133
  pointer-events: none;
134
- border-color: rgb(
135
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
136
- );
134
+ border-color: rgba($border-color-main, $border-opacity);
137
135
  border-style: solid;
138
136
  border-width: 0;
139
137
  border-inline-end-width: 1px;
File without changes
@@ -0,0 +1,8 @@
1
+ @use "sass:color";
2
+
3
+ @use "./../../variables" as *;
4
+
5
+ output {
6
+ background-color: rgba($black, 5%);
7
+ pointer-events: none;
8
+ }
@@ -26,7 +26,7 @@ progress {
26
26
  }
27
27
 
28
28
  &::-webkit-progress-bar {
29
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 7%);
29
+ background-color: rgba($black, 7%);
30
30
  }
31
31
 
32
32
  &::-webkit-progress-value {
@@ -35,7 +35,7 @@ progress {
35
35
  }
36
36
 
37
37
  &::-moz-progress-bar {
38
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 7%);
38
+ background-color: rgba($black, 7%);
39
39
  }
40
40
 
41
41
  &::-moz-progress-value {
@@ -50,11 +50,11 @@ progress {
50
50
  background-color: transparent;
51
51
 
52
52
  &::-webkit-progress-bar {
53
- background-color: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 7%);
53
+ background-color: rgba($value, 7%);
54
54
  }
55
55
 
56
56
  &::-moz-progress-bar {
57
- background-color: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 7%);
57
+ background-color: rgba($value, 7%);
58
58
  }
59
59
 
60
60
  &::-webkit-progress-value {
@@ -45,14 +45,10 @@ input[type="radio"] {
45
45
  &.disabled,
46
46
  &[aria-disabled="true"] {
47
47
  background-color: $white;
48
- border-color: rgb(
49
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 40%
50
- );
48
+ border-color: rgba($input-detail-color, 40%);
51
49
 
52
50
  &::before {
53
- background: rgb(
54
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 40%
55
- );
51
+ background: rgba($input-detail-color, 40%);
56
52
  }
57
53
  }
58
54
  }
@@ -67,10 +63,10 @@ input[type="radio"] {
67
63
  &:disabled,
68
64
  &.disabled,
69
65
  &[aria-disabled="true"] {
70
- border-color: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 40%);
66
+ border-color: rgba($value, 40%);
71
67
 
72
68
  &::before {
73
- background: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 40%);
69
+ background: rgba($value, 40%);
74
70
  }
75
71
  }
76
72
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  @use "./../../variables" as *;
4
4
 
5
- @mixin make-track($color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 7%)) {
5
+ @mixin make-track($color: rgba($black, 7%)) {
6
6
  background: $color;
7
7
  border-radius: $border-radius-round;
8
8
  width: 100%;
@@ -15,18 +15,14 @@
15
15
  width: $spacer;
16
16
  height: $spacer;
17
17
  background: $color;
18
- border: 1px solid
19
- rgb(
20
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
21
- );
18
+ border: 1px solid rgba($border-color-main, $border-opacity);
22
19
  border-radius: $border-radius-round;
23
20
  cursor: pointer;
24
21
  box-shadow: $box-shadow-medium;
25
22
  appearance: none;
26
23
 
27
24
  @if $focus == true {
28
- box-shadow: 0 0 0 1px $white,
29
- 0 0 0 calc($spacer * 0.25) rgb(#{color.red($color)} #{color.green($color)} #{color.blue($color)} / 25%);
25
+ box-shadow: 0 0 0 1px $white, 0 0 0 calc($spacer * 0.25) rgba($color, 25%);
30
26
  }
31
27
 
32
28
  @if $disabled == true {
File without changes
@@ -17,7 +17,7 @@
17
17
 
18
18
  @each $key, $value in $theme-colors {
19
19
  &.input--#{$key} {
20
- border-color: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 50%);
20
+ border-color: rgba($value, 50%);
21
21
  box-shadow: none;
22
22
 
23
23
  &:hover {
File without changes
@@ -59,14 +59,10 @@ input[type="checkbox"] {
59
59
  &.disabled,
60
60
  &[aria-disabled="true"] {
61
61
  background-color: $light;
62
- border-color: rgb(
63
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 40%
64
- );
62
+ border-color: rgba($input-detail-color, 40%);
65
63
 
66
64
  &::before {
67
- background: rgb(
68
- #{color.red($input-detail-color)} #{color.green($input-detail-color)} #{color.blue($input-detail-color)} / 40%
69
- );
65
+ background: rgba($input-detail-color, 40%);
70
66
  border-color: $light;
71
67
  }
72
68
  }
@@ -84,10 +80,10 @@ input[type="checkbox"] {
84
80
  &:disabled,
85
81
  &.disabled,
86
82
  &[aria-disabled="true"] {
87
- border-color: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 40%);
83
+ border-color: rgba($value, 40%);
88
84
 
89
85
  &::before {
90
- background: rgb(#{color.red($value)} #{color.green($value)} #{color.blue($value)} / 40%);
86
+ background: rgba($value, 40%);
91
87
  }
92
88
  }
93
89
  }
File without changes
@@ -0,0 +1,57 @@
1
+ @use "sass:color";
2
+
3
+ @use "./../variables" as *;
4
+
5
+ .border {
6
+ border: 1px solid rgba($border-color-main, $border-opacity) !important;
7
+ }
8
+
9
+ .border--top {
10
+ border-top: 1px solid rgba($border-color-main, $border-opacity) !important;
11
+ }
12
+
13
+ .border--right {
14
+ border-right: 1px solid rgba($border-color-main, $border-opacity) !important;
15
+ }
16
+
17
+ .border--bottom {
18
+ border-bottom: 1px solid rgba($border-color-main, $border-opacity) !important;
19
+ }
20
+
21
+ .border--left {
22
+ border-left: 1px solid rgba($border-color-main, $border-opacity) !important;
23
+ }
24
+
25
+ .border--none {
26
+ border: 0 !important;
27
+ }
28
+
29
+ .border--top-none {
30
+ border-top: 0 !important;
31
+ }
32
+
33
+ .border--right-none {
34
+ border-right: 0 !important;
35
+ }
36
+
37
+ .border--bottom-none {
38
+ border-bottom: 0 !important;
39
+ }
40
+
41
+ .border--left-none {
42
+ border-left: 0 !important;
43
+ }
44
+
45
+ $border-radii: (
46
+ "none": 0,
47
+ "small": calc($spacer * 0.15),
48
+ "medium": calc($spacer * 0.275),
49
+ "large": calc($spacer * 0.65),
50
+ "round": calc($spacer * 99),
51
+ ) !default;
52
+
53
+ @each $key, $value in $border-radii {
54
+ .border-radius--#{$key} {
55
+ border-radius: #{$value} !important;
56
+ }
57
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,8 +0,0 @@
1
- @use "sass:color";
2
-
3
- @use "./../../variables" as *;
4
-
5
- output {
6
- background-color: rgb(#{color.red($black)} #{color.green($black)} #{color.blue($black)} / 5%);
7
- pointer-events: none;
8
- }
@@ -1,72 +0,0 @@
1
- @use "sass:color";
2
-
3
- @use "./../variables" as *;
4
-
5
- .border {
6
- border: 1px solid
7
- rgb(
8
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
9
- ) !important;
10
- }
11
-
12
- .border--top {
13
- border-top: 1px solid
14
- rgb(
15
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
16
- ) !important;
17
- }
18
-
19
- .border--right {
20
- border-right: 1px solid
21
- rgb(
22
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
23
- ) !important;
24
- }
25
-
26
- .border--bottom {
27
- border-bottom: 1px solid
28
- rgb(
29
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
30
- ) !important;
31
- }
32
-
33
- .border--left {
34
- border-left: 1px solid
35
- rgb(
36
- #{color.red($border-color-main)} #{color.green($border-color-main)} #{color.blue($border-color-main)} / #{$border-opacity}
37
- ) !important;
38
- }
39
-
40
- .border--none {
41
- border: 0 !important;
42
- }
43
-
44
- .border--top-none {
45
- border-top: 0 !important;
46
- }
47
-
48
- .border--right-none {
49
- border-right: 0 !important;
50
- }
51
-
52
- .border--bottom-none {
53
- border-bottom: 0 !important;
54
- }
55
-
56
- .border--left-none {
57
- border-left: 0 !important;
58
- }
59
-
60
- $border-radii: (
61
- "none": 0,
62
- "small": calc($spacer * 0.15),
63
- "medium": calc($spacer * 0.275),
64
- "large": calc($spacer * 0.65),
65
- "round": calc($spacer * 99),
66
- ) !default;
67
-
68
- @each $key, $value in $border-radii {
69
- .border-radius--#{$key} {
70
- border-radius: #{$value} !important;
71
- }
72
- }