@castlabs/ui 6.0.2 → 7.0.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 (145) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/castlabs-logo-eggshell.svg +31 -162
  3. package/dist/assets/castlabs-logo.svg +31 -162
  4. package/dist/castlabs-ui-editor.css +1 -1
  5. package/dist/castlabs-ui-editor.umd.js +30 -30
  6. package/dist/castlabs-ui.common.js +5 -5
  7. package/dist/castlabs-ui.common.js.map +1 -1
  8. package/dist/castlabs-ui.core.js +28 -35
  9. package/dist/castlabs-ui.css +7 -7
  10. package/dist/castlabs-ui.module.js +28 -35
  11. package/dist/castlabs-ui.umd.js +13 -13
  12. package/dist/castlabs-ui.umd.js.map +1 -1
  13. package/package.json +18 -18
  14. package/src/assets/castlabs-logo-eggshell.svg +31 -162
  15. package/src/assets/castlabs-logo.svg +31 -162
  16. package/src/components/ClAlert/style.scss +46 -43
  17. package/src/components/ClBadge/style.scss +13 -15
  18. package/src/components/ClBadge/style.variables.scss +39 -33
  19. package/src/components/ClButton/style.scss +47 -249
  20. package/src/components/ClCard/style.scss +20 -20
  21. package/src/components/ClCard/style.variables.scss +121 -106
  22. package/src/components/ClDropdown/style.scss +47 -150
  23. package/src/components/ClDropzone/style.scss +4 -4
  24. package/src/components/ClFooter/style.scss +6 -105
  25. package/src/components/ClIconotron/style.scss +3 -8
  26. package/src/components/ClList/style.scss +10 -13
  27. package/src/components/ClList/style.variables.scss +27 -22
  28. package/src/components/ClPagination/style.scss +48 -85
  29. package/src/components/ClProgress/style.scss +8 -23
  30. package/src/components/ClSpinner/style.scss +1 -1
  31. package/src/components/ClTabs/style.scss +9 -9
  32. package/src/components/ClToggle/style.scss +18 -59
  33. package/src/components/ClTooltip/style.scss +9 -24
  34. package/src/components/ClWizard/style.scss +14 -12
  35. package/src/components/form/ClField/style.scss +4 -4
  36. package/src/components/form/ClFieldCheck/style.scss +25 -20
  37. package/src/components/form/ClFieldFile/style.scss +11 -13
  38. package/src/components/form/ClFieldGroup/style.scss +38 -4
  39. package/src/components/form/ClFieldInput/style.scss +15 -11
  40. package/src/components/form/ClFieldSelect/style.scss +6 -5
  41. package/src/components/form/ClFieldSet/style.scss +2 -2
  42. package/src/components/form/ClForm/style.scss +6 -8
  43. package/src/components/modal/ClModal/style.scss +50 -35
  44. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +112 -180
  45. package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +0 -23
  46. package/src/components/navigation/ClNavSide/style.scss +11 -17
  47. package/src/components/navigation/ClNavTop/style.scss +39 -35
  48. package/src/components/section/ClSectionForm/style.scss +6 -3
  49. package/src/components/section/ClSectionHeadline/style.scss +23 -25
  50. package/src/components/table/ClTable/style.variables.scss +18 -69
  51. package/src/components/table/ClTableCel/Actions/style.scss +1 -1
  52. package/src/components/table/ClTableCel/Audit/style.scss +2 -4
  53. package/src/components/table/ClTableCel/Boolean/style.scss +1 -1
  54. package/src/components/table/ClTableCel/Checkbox/style.scss +2 -2
  55. package/src/components/table/ClTableCel/Code/style.scss +1 -1
  56. package/src/components/table/ClTableCel/Currency/style.scss +1 -1
  57. package/src/components/table/ClTableCel/Date/style.scss +1 -1
  58. package/src/components/table/ClTableCel/ID/style.scss +2 -2
  59. package/src/components/table/ClTableCel/Links/style.scss +10 -11
  60. package/src/components/table/ClTableCel/style.variables.scss +3 -3
  61. package/src/components/text/ClCopy/style.scss +4 -21
  62. package/src/components/text/ClHashtag/style.scss +7 -25
  63. package/src/components/text/ClLinkExternal/style.scss +21 -19
  64. package/src/components/text/ClOrg/style.scss +1 -19
  65. package/src/components/text/ClPlan/style.scss +7 -25
  66. package/src/components/text/ClRole/style.scss +7 -25
  67. package/src/components/widget/ClCookieBanner/style.scss +5 -1
  68. package/src/fonts/DMMono/DMMono.scss +36 -0
  69. package/src/fonts/DMMono/DM_Mono_300.woff2 +0 -0
  70. package/src/fonts/DMMono/DM_Mono_300italic.woff2 +0 -0
  71. package/src/fonts/DMMono/DM_Mono_400.woff2 +0 -0
  72. package/src/fonts/DMMono/DM_Mono_400italic.woff2 +0 -0
  73. package/src/fonts/DMMono/DM_Mono_500.woff2 +0 -0
  74. package/src/fonts/DMMono/DM_Mono_500italic.woff2 +0 -0
  75. package/src/fonts/FontAwesome5/FontAwesome5.scss +2 -2
  76. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2 +0 -0
  77. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2 +0 -0
  78. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2 +0 -0
  79. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +21 -0
  80. package/src/styles/_global.scss +2 -0
  81. package/src/styles/abstracts/brand.scss +9 -0
  82. package/src/styles/abstracts/color.scss +243 -98
  83. package/src/styles/abstracts/spacing.scss +2 -2
  84. package/src/styles/abstracts/tools.scss +0 -82
  85. package/src/styles/assets/fontawesome.scss +2 -0
  86. package/src/styles/assets/fontawesome.variables.scss +88 -0
  87. package/src/styles/assets/logo.scss +30 -9
  88. package/src/styles/components/button.variables.scss +79 -6
  89. package/src/styles/components/form.variables.scss +15 -16
  90. package/src/styles/layout/app.scss +29 -0
  91. package/src/styles/layout/color.scss +115 -0
  92. package/src/styles/layout/grid.scss +2 -1
  93. package/src/styles/layout/helper.scss +14 -2
  94. package/src/styles/layout/section.scss +46 -47
  95. package/src/styles/layout/spacing.scss +4 -4
  96. package/src/styles/layout/typography.scss +91 -112
  97. package/src/styles/layout/typography.variables.scss +281 -168
  98. package/src/styles/ui.scss +4 -5
  99. package/src/styles/vendors/bootstrap.scss +1 -1
  100. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.9f9ebd6f.woff2 +0 -0
  101. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.d7aed4ec.woff2 +0 -0
  102. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.860d704d.woff2 +0 -0
  103. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.196096f5.woff2 +0 -0
  104. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.60896ebf.woff2 +0 -0
  105. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.c5d717bd.woff2 +0 -0
  106. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e6581016.woff2 +0 -0
  107. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.ed9c080e.woff2 +0 -0
  108. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.65f5554a.woff2 +0 -0
  109. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.ffa02f1c.woff2 +0 -0
  110. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.157a9634.woff2 +0 -0
  111. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.ae9457b8.woff2 +0 -0
  112. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.3c6000b1.woff2 +0 -0
  113. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.1244aaff.woff2 +0 -0
  114. package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.32149fc9.woff2 +0 -0
  115. package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.16910b81.woff2 +0 -0
  116. package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.16652597.woff2 +0 -0
  117. package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.e1ba37a1.woff2 +0 -0
  118. package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.b50868a3.woff2 +0 -0
  119. package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.1250c5ba.woff2 +0 -0
  120. package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.3ec09e79.woff2 +0 -0
  121. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.woff2 +0 -0
  122. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.woff2 +0 -0
  123. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.woff2 +0 -0
  124. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.woff2 +0 -0
  125. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.woff2 +0 -0
  126. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.woff2 +0 -0
  127. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.woff2 +0 -0
  128. package/src/fonts/NotoSansMono/NotoSansMono.scss +0 -84
  129. package/src/fonts/OpenSansVariable/OpenSansVariable.scss +0 -187
  130. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2 +0 -0
  131. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2 +0 -0
  132. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2 +0 -0
  133. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2 +0 -0
  134. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2 +0 -0
  135. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2 +0 -0
  136. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0bdc1UAw.woff2 +0 -0
  137. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2 +0 -0
  138. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFUZ0bbck.woff2 +0 -0
  139. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFV50bbck.woff2 +0 -0
  140. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVZ0b.woff2 +0 -0
  141. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVp0bbck.woff2 +0 -0
  142. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFW50bbck.woff2 +0 -0
  143. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWJ0bbck.woff2 +0 -0
  144. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWZ0bbck.woff2 +0 -0
  145. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWp0bbck.woff2 +0 -0
@@ -9,24 +9,24 @@
9
9
  .cl-p a,
10
10
  main a {
11
11
  // default for body
12
- @extend %cl-a-default;
13
- }
14
-
15
- .cl-a-primary a:not(.btn),
16
- .cl-a-secondary a.cl-a-primary:not(.btn),
17
- .cl-a-text a.cl-a-primary:not(.btn),
18
- .cl-a-transparent a.cl-a-primary:not(.btn),
19
- a.cl-a-primary:not(.btn) {
20
- @extend %cl-a-primary;
21
- }
22
-
23
- .cl-a-secondary a:not(.btn),
24
- .cl-a-primary a.cl-a-secondary:not(.btn),
25
- .cl-a-text a.cl-a-secondary:not(.btn),
26
- .cl-a-transparent a.cl-a-secondary:not(.btn),
27
- a.cl-a-secondary:not(.btn) {
28
- @extend %cl-a-secondary;
29
- }
12
+ @extend %cl-a;
13
+ }
14
+
15
+ // .cl-a-primary a:not(.btn),
16
+ // .cl-a-secondary a.cl-a-primary:not(.btn),
17
+ // .cl-a-text a.cl-a-primary:not(.btn),
18
+ // .cl-a-transparent a.cl-a-primary:not(.btn),
19
+ // a.cl-a-primary:not(.btn) {
20
+ // @extend %cl-a-primary;
21
+ // }
22
+ //
23
+ // .cl-a-secondary a:not(.btn),
24
+ // .cl-a-primary a.cl-a-secondary:not(.btn),
25
+ // .cl-a-text a.cl-a-secondary:not(.btn),
26
+ // .cl-a-transparent a.cl-a-secondary:not(.btn),
27
+ // a.cl-a-secondary:not(.btn) {
28
+ // @extend %cl-a-secondary;
29
+ // }
30
30
 
31
31
  .cl-a-text a:not(.btn),
32
32
  .cl-a-primary a.cl-a-text:not(.btn),
@@ -62,6 +62,7 @@ a.cl-a-none:not(.btn) {
62
62
  @extend %cl-a-transparent;
63
63
 
64
64
  margin-left: $spacing-tiny;
65
+ text-decoration: none;
65
66
 
66
67
  &:not(:hover) {
67
68
  color: $color-ci-silver;
@@ -107,9 +108,10 @@ span.cl-a-lock,
107
108
  span.cl-span-lock,
108
109
  span.cl-a-spinner,
109
110
  span.cl-span-spinner {
110
- @extend %cl-a-default; // make it look like a link
111
+ @extend %cl-a; // make it look like a link
111
112
 
112
113
  pointer-events: none; // disable hover effects
114
+ text-decoration: underline;
113
115
  }
114
116
 
115
117
  .cl-a-pdf {
@@ -5,22 +5,8 @@
5
5
 
6
6
  // This file defines custom org lables.
7
7
 
8
- .cl-org-name {
9
- // deprecated
10
- font-weight: 600;
11
-
12
- i {
13
- color: $color-ci-cloud;
14
- display: inline;
15
- }
16
-
17
- .cl-p-large & {
18
- font-weight: 500;
19
- }
20
- }
21
-
22
8
  .cl-org {
23
- font-weight: 600;
9
+ font-weight: 700;
24
10
 
25
11
  &::before {
26
12
  box-sizing: border-box;
@@ -33,8 +19,4 @@
33
19
  margin-right: $spacing-micro;
34
20
  text-rendering: auto;
35
21
  }
36
-
37
- .cl-p-large & {
38
- font-weight: 500;
39
- }
40
22
  }
@@ -5,32 +5,14 @@
5
5
 
6
6
  // This file defines custom plan styles.
7
7
 
8
- [class^='cl-plan'],
9
- [class*=' cl-plan'] {
10
- &:not(.cl-plan-derived) {
11
- @extend %cl-badge;
8
+ .cl-plan {
9
+ @extend %cl-badge;
10
+ @include cl-badge-small;
12
11
 
13
- &::before {
14
- @include cl-fontawesome('\f005');
12
+ &::before {
13
+ @include cl-fontawesome('\f005');
15
14
 
16
- margin-right: 0.2em;
17
- top: -0.04em;
18
- }
19
- }
20
- }
21
-
22
- a[class^='cl-plan'],
23
- a[class*=' cl-plan'] {
24
- @include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
25
-
26
- display: inline-block !important;
27
- }
28
-
29
- .cl-plan-derived {
30
- @extend %cl-badge-derived;
31
-
32
- + [class^='cl-plan'],
33
- + [class*=' cl-plan'] {
34
- margin-left: -1.66em;
15
+ margin-right: 0.2em;
16
+ top: -0.04em;
35
17
  }
36
18
  }
@@ -5,32 +5,14 @@
5
5
 
6
6
  // This file defines custom role styles.
7
7
 
8
- [class^='cl-role'],
9
- [class*=' cl-role'] {
10
- &:not(.cl-role-derived) {
11
- @extend %cl-badge;
8
+ .cl-role {
9
+ @extend %cl-badge;
10
+ @include cl-badge-small;
12
11
 
13
- &::before {
14
- @include cl-fontawesome('\f02b');
12
+ &::before {
13
+ @include cl-fontawesome('\f02b');
15
14
 
16
- margin-right: 0.2em;
17
- top: 0.05em;
18
- }
19
- }
20
- }
21
-
22
- a[class^='cl-role'],
23
- a[class*=' cl-role'] {
24
- @include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
25
-
26
- display: inline-block !important;
27
- }
28
-
29
- .cl-role-derived {
30
- @extend %cl-badge-derived;
31
-
32
- + [class^='cl-role'],
33
- + [class*=' cl-role'] {
34
- margin-left: -1.66em;
15
+ margin-right: $spacing-micro;
16
+ top: 0.05em;
35
17
  }
36
18
  }
@@ -1,6 +1,6 @@
1
1
  .cl-cookie-banner {
2
2
  bottom: $spacing-large;
3
- box-shadow: 1px 1px 2px 1px $color-black-25a;
3
+ // box-shadow: 1px 1px 2px 1px $color-black-25a;
4
4
  left: 50%;
5
5
  opacity: 1;
6
6
  position: fixed;
@@ -17,6 +17,10 @@
17
17
  width: 8rem !important; // sass-lint:disable-line no-important
18
18
  }
19
19
 
20
+ .card-body {
21
+ padding: $spacing-small;
22
+ }
23
+
20
24
  @include media-breakpoint-up(md) {
21
25
  width: 640px;
22
26
  }
@@ -0,0 +1,36 @@
1
+ @font-face {
2
+ font-family: 'DM Mono';
3
+ font-style: normal;
4
+ font-weight: 300;
5
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_300.woff2') format('woff2');
6
+ }
7
+ @font-face {
8
+ font-family: 'DM Mono';
9
+ font-style: italic;
10
+ font-weight: 300;
11
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_300italic.woff2') format('woff2');
12
+ }
13
+ @font-face {
14
+ font-family: 'DM Mono';
15
+ font-style: normal;
16
+ font-weight: 400;
17
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_400.woff2') format('woff2');
18
+ }
19
+ @font-face {
20
+ font-family: 'DM Mono';
21
+ font-style: italic;
22
+ font-weight: 400;
23
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_400italic.woff2') format('woff2');
24
+ }
25
+ @font-face {
26
+ font-family: 'DM Mono';
27
+ font-style: normal;
28
+ font-weight: 500;
29
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_500.woff2') format('woff2');
30
+ }
31
+ @font-face {
32
+ font-family: 'DM Mono';
33
+ font-style: italic;
34
+ font-weight: 500;
35
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_500italic.woff2') format('woff2');
36
+ }
@@ -6061,7 +6061,7 @@ readers do not read off random characters that represent icons */
6061
6061
 
6062
6062
  .sr-only {
6063
6063
  border: 0;
6064
- clip: rect(0, 0, 0, 0);
6064
+ clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
6065
6065
  height: 1px;
6066
6066
  margin: -1px;
6067
6067
  overflow: hidden;
@@ -6072,7 +6072,7 @@ readers do not read off random characters that represent icons */
6072
6072
 
6073
6073
  .sr-only-focusable:active,
6074
6074
  .sr-only-focusable:focus {
6075
- clip: auto;
6075
+ clip: auto; /* stylelint-disable-line property-no-deprecated */
6076
6076
  height: auto;
6077
6077
  margin: 0;
6078
6078
  overflow: visible;
@@ -0,0 +1,21 @@
1
+ @font-face {
2
+ font-family: NonNaturalGroteskInktrap;
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2')
6
+ format('woff2');
7
+ }
8
+ @font-face {
9
+ font-family: NonNaturalGroteskInktrap;
10
+ font-style: normal;
11
+ font-weight: 500;
12
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2')
13
+ format('woff2');
14
+ }
15
+ @font-face {
16
+ font-family: NonNaturalGroteskInktrap;
17
+ font-style: normal;
18
+ font-weight: 700;
19
+ src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2')
20
+ format('woff2');
21
+ }
@@ -11,11 +11,13 @@
11
11
  // -----------------------------------------------------------------------------
12
12
 
13
13
  @import 'abstracts/tools';
14
+ @import 'abstracts/brand';
14
15
  @import 'abstracts/color';
15
16
  @import 'abstracts/layer';
16
17
  @import 'abstracts/spacing';
17
18
  @import 'vendors/bootstrap';
18
19
  @import 'bootstrap/scss/mixins/breakpoints';
20
+ @import 'assets/fontawesome.variables';
19
21
  @import 'layout/typography.variables';
20
22
  @import 'layout/grid.variables';
21
23
  @import 'components/button.variables';
@@ -0,0 +1,9 @@
1
+ ////
2
+ /// @group themes
3
+ /// @access public
4
+ ////
5
+
6
+ // global brand settings/values
7
+
8
+ $brand-border-radius: px(20);
9
+ $brand-line-width: px(1);
@@ -5,123 +5,268 @@
5
5
 
6
6
  // Basic/generic color values.
7
7
 
8
- $color-white-100: rgb(255 255 255 / 100%);
9
- $color-white-95a: rgb(255 255 255 / 95%);
10
- $color-white-90a: rgb(255 255 255 / 90%);
11
- $color-white-85a: rgb(255 255 255 / 85%);
12
- $color-white-80a: rgb(255 255 255 / 80%);
13
- $color-white-75a: rgb(255 255 255 / 75%);
14
- $color-white-70a: rgb(255 255 255 / 70%);
15
- $color-white-65a: rgb(255 255 255 / 65%);
16
- $color-white-60a: rgb(255 255 255 / 60%);
17
- $color-white-55a: rgb(255 255 255 / 55%);
18
- $color-white-50a: rgb(255 255 255 / 50%);
19
- $color-white-45a: rgb(255 255 255 / 45%);
20
- $color-white-40a: rgb(255 255 255 / 40%);
21
- $color-white-35a: rgb(255 255 255 / 35%);
22
- $color-white-30a: rgb(255 255 255 / 30%);
23
- $color-white-25a: rgb(255 255 255 / 25%);
24
- $color-white-20a: rgb(255 255 255 / 20%);
25
- $color-white-15a: rgb(255 255 255 / 15%);
26
- $color-white-10a: rgb(255 255 255 / 10%);
27
- $color-white-05a: rgb(255 255 255 / 5%);
28
-
29
- $color-gray-95: #0d0d0d;
30
- $color-gray-90: #1a1a1a;
31
- $color-gray-85: #262626;
32
- $color-gray-80: #333;
33
- $color-gray-75: #404040;
34
- $color-gray-70: #4d4d4d;
35
- $color-gray-65: #595959;
36
- $color-gray-60: #666;
37
- $color-gray-55: #737373;
38
- $color-gray-50: #808080;
39
- $color-gray-45: #8c8c8c;
40
- $color-gray-40: #999;
41
- $color-gray-35: #a6a6a6;
42
- $color-gray-30: #b3b3b3;
43
- $color-gray-25: #c0c0c0;
44
- $color-gray-20: #ccc;
45
- $color-gray-15: #d9d9d9;
46
- $color-gray-10: #e6e6e6;
47
- $color-gray-05: #f2f2f2;
48
-
49
- $color-black-100: rgb(0 0 0 / 100%);
50
- $color-black-95a: rgb(0 0 0 / 95%);
51
- $color-black-90a: rgb(0 0 0 / 90%);
52
- $color-black-85a: rgb(0 0 0 / 85%);
53
- $color-black-80a: rgb(0 0 0 / 80%);
54
- $color-black-75a: rgb(0 0 0 / 75%);
55
- $color-black-70a: rgb(0 0 0 / 70%);
56
- $color-black-65a: rgb(0 0 0 / 65%);
57
- $color-black-60a: rgb(0 0 0 / 60%);
58
- $color-black-55a: rgb(0 0 0 / 55%);
59
8
  $color-black-50a: rgb(0 0 0 / 50%);
60
- $color-black-45a: rgb(0 0 0 / 45%);
61
- $color-black-40a: rgb(0 0 0 / 40%);
62
- $color-black-35a: rgb(0 0 0 / 35%);
63
- $color-black-30a: rgb(0 0 0 / 30%);
64
- $color-black-25a: rgb(0 0 0 / 25%);
65
- $color-black-20a: rgb(0 0 0 / 20%);
66
- $color-black-15a: rgb(0 0 0 / 15%);
67
- $color-black-10a: rgb(0 0 0 / 10%);
68
- $color-black-05a: rgb(0 0 0 / 5%);
69
-
70
- $color-ci-red: #fa423c;
71
- $color-ci-blue: #71c0ff; // was #0474dc;
72
- $color-ci-night: #262a35;
73
- $color-ci-dusk: $color-gray-75;
74
- $color-ci-dim: $color-gray-65;
75
- $color-ci-cloud: #757371;
76
- $color-ci-silver: #b0b3b6; // ~ $color-gray-30
77
- $color-ci-smoke: #dad6d6; // ~ $color-gray-15
78
- $color-ci-haze: #f6f5f5; // ~ $color-gray-05
79
- $color-ci-white: $color-white-100;
80
- $color-ci-sand: #fdf5cf;
81
-
82
- $color-ci-green: #3fa261; //2a7a5c; // not used - AA contrast rating
83
- $color-ci-orange: #e6a707; // fec671; //f18f01;
84
- $color-ci-magenta: #802392;
85
- // $color-ci-violet: #805d93; // not used
86
- // $color-ci-orange: #ffba08; // not used
87
- // $color-ci-green: #4cb944; // not used
88
9
 
89
- $color-ui-milk: rgb(255 255 255 / 90%);
10
+ $color-ci-red: #fa423c; // rgba(250, 66, 60, 1)
11
+ $color-ci-sky: #71c0ff; // rgba(113, 192, 255, 1)
12
+ $color-ci-eggshell: #fbf9f2; // rgba(251, 249, 242, 1);
13
+ $color-ci-night: #262a35; // rgba(38, 42, 53, 1);
14
+ $color-ci-night-2: #2c303c; // rgba(38, 42, 53, 1); // interim color for sidenav
15
+ $color-ci-night-3: #333742; // rgba(38, 42, 53, 1); // interim color for sidenav
16
+ $color-ci-clay: #cfc8c8; // rgba(207, 200, 200, 1);
17
+ $color-ci-ash: #6d5e5e; // rgba(109, 94, 94, 1);
18
+ $color-ci-berry: #6e1c3b; // rgba(110, 28, 59, 1);
19
+ $color-ci-petrol: #096174; // rgba(9, 97, 116, 1);
20
+ $color-ci-black: $color-ci-night;
21
+ $color-ci-white: $color-ci-eggshell;
22
+ $color-ci-sand: #fdf5cf;
23
+ $color-ci-backdrop: rgba($color-ci-night, 0.5);
90
24
 
25
+ // legacy color mappings
91
26
  $color-primary: $color-ci-red;
92
- $color-secondary: $color-ci-blue;
27
+ $color-secondary: $color-ci-sky;
28
+ $color-ci-blue: $color-ci-sky;
29
+ $color-ci-dusk: $color-ci-night;
30
+ $color-ci-dim: $color-ci-ash;
31
+ $color-ci-cloud: $color-ci-ash;
32
+ $color-ci-silver: $color-ci-clay;
33
+ $color-ci-smoke: $color-ci-clay;
34
+ $color-ci-haze: $color-ci-eggshell;
93
35
  $color-dark: $color-ci-cloud;
94
36
 
37
+ $color-ci-green: #8cd867; //2a7a5c;
38
+ $color-ci-orange: #d1ac00; // fec671; //f18f01;
39
+ // $color-ci-magenta: #802392; -> used by sphinx
40
+ // $color-ci-violet: #805d93; // not used
41
+
95
42
  $color-hover-opacity: 0.75;
96
43
 
97
- $color-positive: $color-ci-dim;
98
- $color-negative: $color-ci-blue;
99
- $color-neutral: $color-ci-dim;
44
+ $color-positive: $color-ci-night;
45
+ $color-negative: $color-ci-sky;
46
+ $color-neutral: $color-ci-night;
100
47
 
101
- $color-attention: $color-ci-blue;
48
+ $color-attention: $color-ci-sky;
49
+ $color-disabled: $color-ci-clay;
102
50
 
103
- $color-text: $color-ci-dim;
104
- $color-background: $color-white-100;
51
+ $color-text: $color-ci-night;
52
+ $color-selected: $color-ci-red;
53
+ $color-focus: $color-ci-night;
54
+ $color-background: $color-ci-white;
105
55
  $color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
106
56
 
107
57
  $color-line: $color-ci-smoke;
108
58
  $color-line-focus: $color-ci-silver;
109
59
 
110
- $color-shadow: $color-black-20a;
111
- $color-shadow-3d: 1px 1px 2px $color-black-25a;
112
- $border-ui-radius: 3px;
113
60
  $bar-ui-width: px(4);
114
61
 
115
- @mixin color-shadow-3d {
116
- border-radius: $border-ui-radius;
117
- box-shadow: $color-shadow-3d;
118
- overflow: hidden;
119
- }
120
-
121
- @mixin color-focus-outline($color: $color-text, $offset: -2px) {
122
- &:focus {
62
+ @mixin cl-color-focus-outline($color: $color-ci-ash, $offset: -2px) {
63
+ &:focus,
64
+ &:focus-visible,
65
+ &:focus-within {
66
+ box-shadow: none; // disable BS outlines
123
67
  outline: 1px dashed $color;
124
68
  outline-offset: $offset;
125
69
  z-index: 100;
126
70
  }
127
71
  }
72
+
73
+ @mixin cl-accent() {
74
+ &.cl-accent-red,
75
+ .cl-accent-red {
76
+ #{'--cl-color-accent'}: $color-ci-red;
77
+ }
78
+
79
+ &.cl-accent-sky,
80
+ .cl-accent-sky {
81
+ #{'--cl-color-accent'}: $color-ci-sky;
82
+ }
83
+
84
+ &.cl-accent-night,
85
+ .cl-accent-night {
86
+ #{'--cl-color-accent'}: $color-ci-night;
87
+ }
88
+
89
+ &.cl-accent-eggshell,
90
+ .cl-accent-eggshell {
91
+ #{'--cl-color-accent'}: $color-ci-eggshell;
92
+ }
93
+
94
+ &.cl-accent-clay,
95
+ .cl-accent-clay {
96
+ #{'--cl-color-accent'}: $color-ci-clay;
97
+ }
98
+
99
+ &.cl-accent-ash,
100
+ .cl-accent-ash {
101
+ #{'--cl-color-accent'}: $color-ci-ash;
102
+ }
103
+
104
+ &.cl-accent-petrol,
105
+ .cl-accent-petrol {
106
+ #{'--cl-color-accent'}: $color-ci-petrol;
107
+ }
108
+
109
+ &.cl-accent-berry,
110
+ .cl-accent-berry {
111
+ #{'--cl-color-accent'}: $color-ci-berry;
112
+ }
113
+
114
+ &.cl-accent-none,
115
+ .cl-accent-none,
116
+ &.cl-accent-transparent,
117
+ .cl-accent-transparent {
118
+ #{'--cl-color-accent'}: transparent;
119
+ }
120
+ }
121
+
122
+ %cl-color-root {
123
+ // default colors = outline-night
124
+ #{'--cl-color-background'}: $color-ci-eggshell;
125
+ #{'--cl-color-border'}: $color-ci-night;
126
+ #{'--cl-color-text'}: $color-ci-night;
127
+ #{'--cl-color-line'}: $color-ci-clay;
128
+ #{'--cl-color-accent'}: $color-ci-petrol;
129
+ #{'--cl-color-highlight'}: rgba(#fff, 0.85);
130
+ #{'--cl-color-link'}: $color-ci-berry;
131
+ #{'--cl-color-active'}: $color-ci-berry;
132
+ #{'--cl-color-hover'}: $color-ci-red;
133
+ }
134
+
135
+ %cl-color-night-outline {
136
+ // order is important: must be first!
137
+ #{'--cl-color-background'}: $color-ci-eggshell;
138
+ #{'--cl-color-border'}: $color-ci-night;
139
+ #{'--cl-color-text'}: $color-ci-night;
140
+ #{'--cl-color-line'}: $color-ci-clay;
141
+ #{'--cl-color-accent'}: $color-ci-night;
142
+ #{'--cl-color-highlight'}: rgba(#fff, 0.85);
143
+ #{'--cl-color-link'}: $color-ci-berry;
144
+ }
145
+
146
+ %cl-color-red {
147
+ #{'--cl-color-background'}: $color-ci-red;
148
+ #{'--cl-color-border'}: $color-ci-red;
149
+ #{'--cl-color-text'}: $color-ci-eggshell;
150
+ #{'--cl-color-line'}: $color-ci-eggshell;
151
+ #{'--cl-color-accent'}: $color-ci-eggshell;
152
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
153
+ #{'--cl-color-link'}: $color-ci-eggshell;
154
+ }
155
+
156
+ %cl-color-red-outline {
157
+ #{'--cl-color-border'}: $color-ci-red;
158
+ #{'--cl-color-text'}: $color-ci-red;
159
+ #{'--cl-color-line'}: $color-ci-clay;
160
+ #{'--cl-color-accent'}: $color-ci-red;
161
+ #{'--cl-color-highlight'}: rgba(#fff, 0.85);
162
+ #{'--cl-color-link'}: $color-ci-berry;
163
+ }
164
+
165
+ %cl-color-sky {
166
+ #{'--cl-color-background'}: $color-ci-sky;
167
+ #{'--cl-color-border'}: $color-ci-sky;
168
+ #{'--cl-color-text'}: $color-ci-night;
169
+ #{'--cl-color-line'}: $color-ci-night;
170
+ #{'--cl-color-accent'}: $color-ci-night;
171
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
172
+ #{'--cl-color-link'}: $color-ci-night;
173
+ }
174
+
175
+ %cl-color-night {
176
+ #{'--cl-color-background'}: $color-ci-night;
177
+ #{'--cl-color-border'}: $color-ci-night;
178
+ #{'--cl-color-text'}: $color-ci-eggshell;
179
+ #{'--cl-color-line'}: $color-ci-eggshell;
180
+ #{'--cl-color-accent'}: $color-ci-eggshell;
181
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
182
+ #{'--cl-color-link'}: $color-ci-eggshell;
183
+ }
184
+
185
+ %cl-color-eggshell {
186
+ #{'--cl-color-background'}: $color-ci-eggshell;
187
+ #{'--cl-color-border'}: $color-ci-eggshell;
188
+ #{'--cl-color-text'}: $color-ci-night;
189
+ #{'--cl-color-line'}: $color-ci-clay;
190
+ #{'--cl-color-accent'}: $color-ci-night;
191
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
192
+ #{'--cl-color-link'}: $color-ci-berry;
193
+ }
194
+
195
+ %cl-color-clay {
196
+ #{'--cl-color-background'}: $color-ci-clay;
197
+ #{'--cl-color-border'}: $color-ci-clay;
198
+ #{'--cl-color-text'}: $color-ci-night;
199
+ #{'--cl-color-line'}: $color-ci-night;
200
+ #{'--cl-color-accent'}: $color-ci-night;
201
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
202
+ #{'--cl-color-link'}: $color-ci-night;
203
+ }
204
+
205
+ %cl-color-ash {
206
+ #{'--cl-color-background'}: $color-ci-ash;
207
+ #{'--cl-color-border'}: $color-ci-ash;
208
+ #{'--cl-color-text'}: $color-ci-eggshell;
209
+ #{'--cl-color-line'}: $color-ci-eggshell;
210
+ #{'--cl-color-accent'}: $color-ci-eggshell;
211
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
212
+ #{'--cl-color-link'}: $color-ci-eggshell;
213
+ }
214
+
215
+ %cl-color-petrol {
216
+ #{'--cl-color-background'}: $color-ci-petrol;
217
+ #{'--cl-color-border'}: $color-ci-petrol;
218
+ #{'--cl-color-text'}: $color-ci-eggshell;
219
+ #{'--cl-color-line'}: $color-ci-eggshell;
220
+ #{'--cl-color-accent'}: $color-ci-eggshell;
221
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
222
+ #{'--cl-color-link'}: $color-ci-eggshell;
223
+ }
224
+
225
+ %cl-color-berry {
226
+ #{'--cl-color-background'}: $color-ci-berry;
227
+ #{'--cl-color-border'}: $color-ci-berry;
228
+ #{'--cl-color-text'}: $color-ci-eggshell;
229
+ #{'--cl-color-line'}: $color-ci-eggshell;
230
+ #{'--cl-color-accent'}: $color-ci-eggshell;
231
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
232
+ #{'--cl-color-link'}: $color-ci-eggshell;
233
+ }
234
+
235
+ %cl-color-transparent {
236
+ #{'--cl-color-background'}: transparent;
237
+ #{'--cl-color-border'}: $color-ci-eggshell;
238
+ #{'--cl-color-text'}: $color-ci-eggshell;
239
+ #{'--cl-color-line'}: $color-ci-eggshell;
240
+ #{'--cl-color-accent'}: $color-ci-eggshell;
241
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
242
+ #{'--cl-color-link'}: $color-ci-eggshell;
243
+ }
244
+
245
+ %cl-color-disabled {
246
+ #{'--cl-color-background'}: transparent;
247
+ #{'--cl-color-border'}: $color-disabled;
248
+ #{'--cl-color-text'}: $color-disabled;
249
+ #{'--cl-color-line'}: $color-disabled;
250
+ #{'--cl-color-accent'}: $color-disabled;
251
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
252
+ #{'--cl-color-link'}: $color-disabled;
253
+ }
254
+
255
+ %cl-color-faded {
256
+ #{'--cl-color-background'}: transparent;
257
+ #{'--cl-color-border'}: $color-ci-ash;
258
+ #{'--cl-color-text'}: $color-ci-ash;
259
+ #{'--cl-color-line'}: $color-ci-ash;
260
+ #{'--cl-color-accent'}: $color-ci-ash;
261
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
262
+ #{'--cl-color-link'}: $color-ci-ash;
263
+ }
264
+
265
+ %cl-color-none {
266
+ #{'--cl-color-background'}: transparent;
267
+ #{'--cl-color-border'}: transparent;
268
+ #{'--cl-color-highlight'}: rgba(#fff, 0.1);
269
+ #{'--cl-color-link'}: $color-ci-eggshell;
270
+ }
271
+
272
+ // ----------------------------------------------