@castlabs/ui 7.2.1 → 7.4.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 (51) hide show
  1. package/dist/castlabs-ui-editor.common.js +50 -50
  2. package/dist/castlabs-ui-editor.common.js.map +1 -1
  3. package/dist/castlabs-ui-editor.umd.js +51 -51
  4. package/dist/castlabs-ui-editor.umd.js.map +1 -1
  5. package/dist/castlabs-ui.common.js +3 -3
  6. package/dist/castlabs-ui.common.js.map +1 -1
  7. package/dist/castlabs-ui.css +3 -3
  8. package/dist/castlabs-ui.umd.js +7 -7
  9. package/dist/castlabs-ui.umd.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/components/ClAlert/style.scss +8 -4
  12. package/src/components/ClBadge/style.variables.scss +8 -6
  13. package/src/components/ClBlockquote/style.variables.scss +2 -2
  14. package/src/components/ClButton/style.scss +11 -4
  15. package/src/components/ClCard/style.variables.scss +1 -1
  16. package/src/components/ClDropdown/style.scss +1 -3
  17. package/src/components/ClFooter/style.scss +1 -2
  18. package/src/components/ClIconotron/style.scss +1 -1
  19. package/src/components/form/ClField/style.scss +8 -1
  20. package/src/components/form/ClFieldCheck/style.scss +6 -6
  21. package/src/components/form/ClFieldFile/style.scss +5 -3
  22. package/src/components/form/ClFieldGroup/style.scss +2 -2
  23. package/src/components/form/ClForm/style.scss +3 -3
  24. package/src/components/modal/ClModal/style.scss +2 -2
  25. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +17 -11
  26. package/src/components/navigation/ClNavTop/style.scss +3 -8
  27. package/src/components/section/ClSectionForm/style.scss +1 -2
  28. package/src/components/section/ClSectionHeadline/style.scss +1 -1
  29. package/src/components/table/ClTableCel/ID/style.scss +2 -3
  30. package/src/components/table/ClTableCel/Links/style.scss +3 -3
  31. package/src/components/text/ClCopy/style.scss +7 -6
  32. package/src/components/text/ClHashtag/style.scss +1 -0
  33. package/src/components/text/ClLinkExternal/style.scss +43 -35
  34. package/src/components/text/ClPlan/style.scss +1 -0
  35. package/src/components/text/ClRole/style.scss +1 -0
  36. package/src/styles/abstracts/app.scss +3 -1
  37. package/src/styles/abstracts/color.scss +149 -91
  38. package/src/styles/abstracts/fontawesome.scss +17 -7
  39. package/src/styles/abstracts/form.scss +10 -6
  40. package/src/styles/abstracts/typography.scss +84 -65
  41. package/src/styles/layout/color.scss +28 -1
  42. package/src/styles/layout/helper.scss +13 -0
  43. package/src/styles/layout/section.scss +5 -2
  44. package/src/styles/layout/typography.scss +1 -1
  45. package/src/styles/ui.scss +0 -12
  46. package/dist/assets/DMMono/index.scss +0 -41
  47. package/dist/assets/FontAwesome5/LICENSE.txt +0 -34
  48. package/dist/assets/FontAwesome5/index.scss +0 -6124
  49. package/dist/assets/NonNaturalGroteskInktrap/index.scss +0 -37
  50. /package/dist/fonts/{DM_Mono_500.3f958442.woff2 → DM_Mono_500.03f95844.woff2} +0 -0
  51. /package/dist/fonts/{fa-brands-400.5faf8763.woff2 → fa-brands-400.05faf876.woff2} +0 -0
@@ -30,46 +30,51 @@ main a {
30
30
  // @extend %cl-a-secondary;
31
31
  // }
32
32
 
33
- .cl-a-text a:not(.btn),
34
- .cl-a-primary a.cl-a-text:not(.btn),
35
- .cl-a-secondary a.cl-a-text:not(.btn),
36
- .cl-a-transparent a.cl-a-text:not(.btn),
37
- a.cl-a-text:not(.btn) {
38
- @extend %cl-a-text;
39
- }
33
+ // .cl-a-text a:not(.btn),
34
+ // .cl-a-primary a.cl-a-text:not(.btn),
35
+ // .cl-a-secondary a.cl-a-text:not(.btn),
36
+ // .cl-a-transparent a.cl-a-text:not(.btn),
37
+ // a.cl-a-text:not(.btn) {
38
+ // @extend %cl-a-text;
39
+ // }
40
40
 
41
- .cl-a-transparent a:not(.btn),
42
- .cl-a-primary a.cl-a-transparent:not(.btn),
43
- .cl-a-secondary a.cl-a-transparent:not(.btn),
44
- .cl-a-text a.cl-a-transparent:not(.btn),
45
- a.cl-a-transparent:not(.btn) {
46
- @extend %cl-a-transparent;
47
- }
41
+ // .cl-a-transparent a:not(.btn),
42
+ // .cl-a-primary a.cl-a-transparent:not(.btn),
43
+ // .cl-a-secondary a.cl-a-transparent:not(.btn),
44
+ // .cl-a-text a.cl-a-transparent:not(.btn),
45
+ // a.cl-a-transparent:not(.btn) {
46
+ // @extend %cl-a-transparent;
47
+ // }
48
48
 
49
- .cl-a-none a:not(.btn),
50
- .cl-a-primary a.cl-a-none:not(.btn),
51
- .cl-a-secondary a.cl-a-none:not(.btn),
52
- .cl-a-text a.cl-a-none:not(.btn),
53
- a.cl-a-none:not(.btn) {
54
- @extend %cl-a-none;
55
- }
49
+ // .cl-a-none a:not(.btn),
50
+ // .cl-a-primary a.cl-a-none:not(.btn),
51
+ // .cl-a-secondary a.cl-a-none:not(.btn),
52
+ // .cl-a-text a.cl-a-none:not(.btn),
53
+ // a.cl-a-none:not(.btn) {
54
+ // @extend %cl-a-none;
55
+ // }
56
56
 
57
57
  .cl-a-btn {
58
- // a link that is more an embedded button
58
+ // a link that is more an embedded button, e.g. in table actions
59
59
  @extend %cl-a-btn;
60
60
  }
61
61
 
62
+ .cl-a-primary {
63
+ // primary link among many, usually table actions
64
+ font-weight: 700;
65
+ }
66
+
62
67
  .cl-a-quickaction {
63
68
  @extend %cl-a-btn;
64
- @extend %cl-a-transparent;
65
69
  @include cl-color-focus-outline(var(--cl-color-focus), 2px);
66
70
 
71
+ background-color: transparent;
67
72
  border-radius: 0;
68
73
  margin-left: $spacing-tiny;
69
74
  text-decoration: none;
70
75
 
71
76
  &:not(:hover) {
72
- color: $color-ci-clay;
77
+ color: $color-ci-steel;
73
78
  }
74
79
  }
75
80
 
@@ -90,7 +95,7 @@ a.cl-a-none:not(.btn) {
90
95
 
91
96
  .cl-a-lock,
92
97
  .cl-span-lock {
93
- @include cl-fontawesome-before('\f023', -0.15em, 0.8em, -0.15em);
98
+ @include cl-fontawesome-before('\f023', $color-ci-steel, -0.15em, 0.8em, -0.15em);
94
99
 
95
100
  &::before {
96
101
  font-weight: 900;
@@ -99,7 +104,7 @@ a.cl-a-none:not(.btn) {
99
104
 
100
105
  .cl-a-spinner,
101
106
  .cl-span-spinner {
102
- @include cl-fontawesome-before('\f110', -0.2em, 0.8em, -0.1em);
107
+ @include cl-fontawesome-before('\f110', $color-ci-steel, -0.2em, 0.8em, -0.1em);
103
108
 
104
109
  &::before {
105
110
  animation: cl-a-spin 2s linear infinite;
@@ -108,44 +113,47 @@ a.cl-a-none:not(.btn) {
108
113
  }
109
114
  }
110
115
 
116
+ span.cl-a-disabled,
117
+ span.cl-span-disabled,
111
118
  span.cl-a-lock,
112
119
  span.cl-span-lock,
113
120
  span.cl-a-spinner,
114
121
  span.cl-span-spinner {
115
122
  @extend %cl-a; // make it look like a link
116
123
 
117
- pointer-events: none; // disable hover effects
118
- text-decoration: underline;
124
+ &:hover {
125
+ cursor: not-allowed;
126
+ }
119
127
  }
120
128
 
121
129
  .cl-a-pdf {
122
- @include cl-fontawesome-before('\f1c1', 0.1em);
130
+ @include cl-fontawesome-before('\f1c1', $color-ci-steel, 0.1em);
123
131
  }
124
132
 
125
133
  .cl-a-image {
126
- @include cl-fontawesome-before('\f1c5', 0.1em);
134
+ @include cl-fontawesome-before('\f1c5', $color-ci-steel, 0.1em);
127
135
  }
128
136
 
129
137
  .cl-a-video {
130
- @include cl-fontawesome-before('\f1c8', 0.1em);
138
+ @include cl-fontawesome-before('\f1c8', $color-ci-steel, 0.1em);
131
139
  }
132
140
 
133
141
  .cl-a-file {
134
- @include cl-fontawesome-before('\f15c', 0.1em);
142
+ @include cl-fontawesome-before('\f15c', $color-ci-steel, 0.1em);
135
143
  }
136
144
 
137
145
  .cl-a-zip {
138
- @include cl-fontawesome-before('\f1c6', 0.1em);
146
+ @include cl-fontawesome-before('\f1c6', $color-ci-steel, 0.1em);
139
147
  }
140
148
 
141
149
  // --- ::after icons -------------------------------------------------------------
142
150
 
143
151
  .cl-a-email {
144
- @include cl-fontawesome-after('\f0e0', 0.2em, 0.8em);
152
+ @include cl-fontawesome-after('\f0e0', $color-ci-steel, 0.2em, 0.8em);
145
153
  }
146
154
 
147
155
  .cl-a-external {
148
- @include cl-fontawesome-after('\f35d', 0.2em, 0.75em, -0.15em);
156
+ @include cl-fontawesome-after('\f35d', $color-ci-steel, 0.2em, 0.75em, -0.15em);
149
157
 
150
158
  &::after {
151
159
  font-weight: 900;
@@ -15,6 +15,7 @@
15
15
  &::before {
16
16
  @include cl-fontawesome('\f005');
17
17
 
18
+ line-height: 0.5;
18
19
  margin-right: 0.2em;
19
20
  top: -0.04em;
20
21
  }
@@ -15,6 +15,7 @@
15
15
  &::before {
16
16
  @include cl-fontawesome('\f02b');
17
17
 
18
+ line-height: 0.5;
18
19
  margin-right: $spacing-micro;
19
20
  top: 0.05em;
20
21
  }
@@ -9,7 +9,9 @@
9
9
  @use './tools' as *;
10
10
 
11
11
  $brand-border-radius: px(20);
12
- $brand-line-width: px(1);
12
+ $brand-border-radius-minor: px(2.5); // for tiny things like focus borders
13
+ $brand-line-width: 1px;
14
+ $brand-bar-width: px(4);
13
15
 
14
16
  $grid-spacing: $spacing-small;
15
17
 
@@ -19,47 +19,40 @@ $color-ci-clay: #cfc8c8; // rgba(207, 200, 200, 1);
19
19
  $color-ci-ash: #6d5e5e; // rgba(109, 94, 94, 1);
20
20
  $color-ci-berry: #6e1c3b; // rgba(110, 28, 59, 1);
21
21
  $color-ci-petrol: #096174; // rgba(9, 97, 116, 1);
22
+ $color-ci-backdrop: rgba($color-ci-night, 0.5);
23
+
24
+ // secondary palette
25
+ $color-ci-brick: #ba4f4f; // #A34040;
26
+ $color-ci-honey: #dc9404;
27
+ $color-ci-leaf: #53965d; // #43894E;
28
+ $color-ci-sea: #5d9dd1; // #5D9FC0; // #3F81A2; 5d9dd1
29
+ $color-ci-orchid: #b271bf;
30
+ $color-ci-steel: #a0a0a0;
31
+ $color-ci-haze: #eeece6;
22
32
  $color-ci-black: $color-ci-night;
23
33
  $color-ci-white: $color-ci-eggshell;
24
34
  $color-ci-sand: #fdf5cf;
25
- $color-ci-backdrop: rgba($color-ci-night, 0.5);
26
35
 
27
- // legacy color mappings
28
- $color-primary: $color-ci-red;
29
- $color-secondary: $color-ci-sky;
30
- $color-ci-blue: $color-ci-sky;
31
- $color-ci-dusk: $color-ci-night;
32
- $color-ci-dim: $color-ci-ash;
33
- $color-ci-cloud: $color-ci-ash;
34
- $color-ci-silver: $color-ci-clay;
35
- $color-ci-smoke: $color-ci-clay;
36
- $color-ci-haze: $color-ci-eggshell;
37
- $color-dark: $color-ci-ash;
38
-
39
- // additional non-official colors
40
- $color-ci-green: #338450;
41
- $color-ci-orange: #eca72c; // fec671; //f18f01;
42
-
43
- $color-hover-opacity: 0.75;
44
-
45
- $color-positive: $color-ci-night;
46
- $color-negative: $color-ci-sky;
47
- $color-neutral: $color-ci-night;
36
+ // aliases
37
+ $color-primary: $color-ci-sea;
38
+ $color-secondary: $color-ci-night;
48
39
 
49
- $color-attention: $color-ci-sky;
50
- $color-disabled: $color-ci-clay;
40
+ $color-positive: $color-ci-leaf;
41
+ $color-negative: $color-ci-brick;
42
+ $color-neutral: $color-ci-night;
43
+ $color-error: $color-ci-brick; // error color
44
+ $color-focus: $color-ci-sea;
45
+ $color-link: $color-ci-steel; // links/underlines on eggshell background
46
+ $color-hover: $color-ci-red;
47
+ $color-disabled: $color-ci-steel; // $color-ci-clay;
51
48
 
52
49
  $color-text: $color-ci-night;
53
50
  $color-selected: $color-ci-red;
54
51
  $color-accent: $color-ci-petrol;
55
- $color-focus: $color-ci-petrol;
56
52
  $color-background: $color-ci-white;
57
53
  $color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
58
54
 
59
55
  $color-line: $color-ci-clay;
60
- $color-line-focus: $color-ci-clay;
61
-
62
- $bar-ui-width: px(4);
63
56
 
64
57
  @mixin cl-color-focus-outline-raw($color: var(--cl-color-focus), $offset: -3px) {
65
58
  box-shadow: none; // disable BS outlines
@@ -132,20 +125,46 @@ $bar-ui-width: px(4);
132
125
  }
133
126
  }
134
127
 
128
+ @mixin cl-colors-secondary {
129
+ &.cl-color-brick {
130
+ @extend %cl-color-brick;
131
+ }
132
+
133
+ &.cl-color-leaf {
134
+ @extend %cl-color-leaf;
135
+ }
136
+
137
+ &.cl-color-sea {
138
+ @extend %cl-color-sea;
139
+ }
140
+
141
+ &.cl-color-honey {
142
+ @extend %cl-color-honey;
143
+ }
144
+
145
+ &.cl-color-orchid {
146
+ @extend %cl-color-orchid;
147
+ }
148
+
149
+ &.cl-color-steel {
150
+ @extend %cl-color-steel;
151
+ }
152
+ }
153
+
135
154
  %cl-color-root {
136
155
  // default colors = outline-night
137
156
  #{'--cl-color-background'}: $color-ci-eggshell;
138
157
  #{'--cl-color-border'}: $color-ci-night;
139
158
  #{'--cl-color-text'}: $color-ci-night;
140
- #{'--cl-color-line'}: $color-ci-clay;
159
+ #{'--cl-color-line'}: $color-line;
141
160
  #{'--cl-color-accent'}: $color-accent;
142
161
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
143
- #{'--cl-color-link'}: $color-ci-berry;
162
+ #{'--cl-color-link'}: $color-link;
144
163
  #{'--cl-color-active'}: $color-ci-berry;
145
- #{'--cl-color-hover'}: $color-ci-red;
164
+ #{'--cl-color-hover'}: $color-hover;
146
165
  #{'--cl-color-focus'}: $color-ci-night;
147
- #{'--cl-color-disabled-background'}: $color-ci-clay;
148
- #{'--cl-color-disabled-border'}: $color-ci-clay;
166
+ #{'--cl-color-disabled-background'}: $color-disabled;
167
+ #{'--cl-color-disabled-border'}: $color-disabled;
149
168
  #{'--cl-color-disabled-text'}: $color-ci-eggshell;
150
169
  }
151
170
 
@@ -154,19 +173,18 @@ $bar-ui-width: px(4);
154
173
  #{'--cl-color-background'}: $color-ci-eggshell;
155
174
  #{'--cl-color-border'}: $color-ci-night;
156
175
  #{'--cl-color-text'}: $color-ci-night;
157
- #{'--cl-color-line'}: $color-ci-clay;
176
+ #{'--cl-color-line'}: $color-line;
158
177
  #{'--cl-color-accent'}: $color-ci-night;
159
178
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
160
- #{'--cl-color-link'}: $color-ci-berry;
179
+ #{'--cl-color-link'}: inherit;
161
180
  #{'--cl-color-focus'}: $color-ci-night;
162
181
  #{'--cl-color-disabled-background'}: transparent;
163
- #{'--cl-color-disabled-border'}: $color-ci-clay;
164
- #{'--cl-color-disabled-text'}: $color-ci-clay;
182
+ #{'--cl-color-disabled-border'}: $color-disabled;
183
+ #{'--cl-color-disabled-text'}: $color-disabled;
165
184
  }
166
185
 
167
- %cl-color-red {
168
- #{'--cl-color-background'}: $color-ci-red;
169
- #{'--cl-color-border'}: $color-ci-red;
186
+ %cl-color-text-light {
187
+ // for backgrounds that require 'white' text
170
188
  #{'--cl-color-text'}: $color-ci-eggshell;
171
189
  #{'--cl-color-line'}: $color-ci-eggshell;
172
190
  #{'--cl-color-accent'}: $color-ci-eggshell;
@@ -175,105 +193,147 @@ $bar-ui-width: px(4);
175
193
  #{'--cl-color-focus'}: $color-ci-eggshell;
176
194
  }
177
195
 
196
+ %cl-color-text-dark {
197
+ // for backgrounds that require 'black' text
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
+ #{'--cl-color-focus'}: $color-ci-night;
204
+ }
205
+
206
+ %cl-color-red {
207
+ @extend %cl-color-text-light;
208
+
209
+ #{'--cl-color-background'}: $color-ci-red;
210
+ #{'--cl-color-border'}: $color-ci-red;
211
+ }
212
+
178
213
  %cl-color-red-outline {
179
214
  #{'--cl-color-border'}: $color-ci-red;
180
215
  #{'--cl-color-text'}: $color-ci-red;
181
- #{'--cl-color-line'}: $color-ci-clay;
216
+ #{'--cl-color-line'}: $color-line;
182
217
  #{'--cl-color-accent'}: $color-ci-red;
183
218
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
184
- #{'--cl-color-link'}: $color-ci-berry;
219
+ #{'--cl-color-link'}: inherit;
185
220
  #{'--cl-color-focus'}: $color-ci-red;
186
221
  #{'--cl-color-disabled-background'}: transparent;
187
- #{'--cl-color-disabled-border'}: $color-ci-clay;
188
- #{'--cl-color-disabled-text'}: $color-ci-clay;
222
+ #{'--cl-color-disabled-border'}: $color-disabled;
223
+ #{'--cl-color-disabled-text'}: $color-disabled;
189
224
  }
190
225
 
191
226
  %cl-color-sky {
227
+ @extend %cl-color-text-dark;
228
+
192
229
  #{'--cl-color-background'}: $color-ci-sky;
193
230
  #{'--cl-color-border'}: $color-ci-sky;
194
- #{'--cl-color-text'}: $color-ci-night;
195
- #{'--cl-color-line'}: $color-ci-night;
196
- #{'--cl-color-accent'}: $color-ci-night;
197
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
198
- #{'--cl-color-link'}: $color-ci-night;
199
- #{'--cl-color-focus'}: $color-ci-night;
200
231
  }
201
232
 
202
233
  %cl-color-night {
234
+ @extend %cl-color-text-light;
235
+
203
236
  #{'--cl-color-background'}: $color-ci-night;
204
237
  #{'--cl-color-border'}: $color-ci-night;
205
- #{'--cl-color-text'}: $color-ci-eggshell;
206
- #{'--cl-color-line'}: $color-ci-eggshell;
207
- #{'--cl-color-accent'}: $color-ci-eggshell;
208
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
209
- #{'--cl-color-link'}: $color-ci-eggshell;
210
- #{'--cl-color-focus'}: $color-ci-eggshell;
211
238
  }
212
239
 
213
240
  %cl-color-eggshell {
214
241
  #{'--cl-color-background'}: $color-ci-eggshell;
215
242
  #{'--cl-color-border'}: $color-ci-eggshell;
216
243
  #{'--cl-color-text'}: $color-ci-night;
217
- #{'--cl-color-line'}: $color-ci-clay;
244
+ #{'--cl-color-line'}: $color-line;
218
245
  #{'--cl-color-accent'}: $color-ci-night;
219
246
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
220
- #{'--cl-color-link'}: $color-ci-berry;
247
+ #{'--cl-color-link'}: inherit;
221
248
  #{'--cl-color-focus'}: $color-ci-night;
222
249
  }
223
250
 
224
- %cl-color-clay {
225
- #{'--cl-color-background'}: $color-ci-clay;
226
- #{'--cl-color-border'}: $color-ci-clay;
251
+ %cl-color-eggshell-alternate {
252
+ #{'--cl-color-background'}: $color-ci-haze;
253
+ #{'--cl-color-border'}: $color-ci-haze;
227
254
  #{'--cl-color-text'}: $color-ci-night;
228
- #{'--cl-color-line'}: $color-ci-night;
255
+ #{'--cl-color-line'}: $color-line;
229
256
  #{'--cl-color-accent'}: $color-ci-night;
230
257
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
231
- #{'--cl-color-link'}: $color-ci-night;
258
+ #{'--cl-color-link'}: inherit;
232
259
  #{'--cl-color-focus'}: $color-ci-night;
233
260
  }
234
261
 
262
+ %cl-color-clay {
263
+ @extend %cl-color-text-dark;
264
+
265
+ #{'--cl-color-background'}: $color-ci-clay;
266
+ #{'--cl-color-border'}: $color-ci-clay;
267
+ }
268
+
235
269
  %cl-color-ash {
270
+ @extend %cl-color-text-light;
271
+
236
272
  #{'--cl-color-background'}: $color-ci-ash;
237
273
  #{'--cl-color-border'}: $color-ci-ash;
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
- #{'--cl-color-focus'}: $color-ci-eggshell;
244
274
  }
245
275
 
246
276
  %cl-color-petrol {
277
+ @extend %cl-color-text-light;
278
+
247
279
  #{'--cl-color-background'}: $color-ci-petrol;
248
280
  #{'--cl-color-border'}: $color-ci-petrol;
249
- #{'--cl-color-text'}: $color-ci-eggshell;
250
- #{'--cl-color-line'}: $color-ci-eggshell;
251
- #{'--cl-color-accent'}: $color-ci-eggshell;
252
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
253
- #{'--cl-color-link'}: $color-ci-eggshell;
254
- #{'--cl-color-focus'}: $color-ci-eggshell;
255
281
  }
256
282
 
257
283
  %cl-color-berry {
284
+ @extend %cl-color-text-light;
285
+
258
286
  #{'--cl-color-background'}: $color-ci-berry;
259
287
  #{'--cl-color-border'}: $color-ci-berry;
260
- #{'--cl-color-text'}: $color-ci-eggshell;
261
- #{'--cl-color-line'}: $color-ci-eggshell;
262
- #{'--cl-color-accent'}: $color-ci-eggshell;
263
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
264
- #{'--cl-color-link'}: $color-ci-eggshell;
265
- #{'--cl-color-focus'}: $color-ci-eggshell;
288
+ }
289
+
290
+ %cl-color-brick {
291
+ @extend %cl-color-text-light;
292
+
293
+ #{'--cl-color-background'}: $color-ci-brick;
294
+ #{'--cl-color-border'}: $color-ci-brick;
295
+ }
296
+
297
+ %cl-color-honey {
298
+ @extend %cl-color-text-light;
299
+
300
+ #{'--cl-color-background'}: $color-ci-honey;
301
+ #{'--cl-color-border'}: $color-ci-honey;
302
+ }
303
+
304
+ %cl-color-leaf {
305
+ @extend %cl-color-text-light;
306
+
307
+ #{'--cl-color-background'}: $color-ci-leaf;
308
+ #{'--cl-color-border'}: $color-ci-leaf;
309
+ }
310
+
311
+ %cl-color-sea {
312
+ @extend %cl-color-text-light;
313
+
314
+ #{'--cl-color-background'}: $color-ci-sea;
315
+ #{'--cl-color-border'}: $color-ci-sea;
316
+ }
317
+
318
+ %cl-color-orchid {
319
+ @extend %cl-color-text-light;
320
+
321
+ #{'--cl-color-background'}: $color-ci-orchid;
322
+ #{'--cl-color-border'}: $color-ci-orchid;
323
+ }
324
+
325
+ %cl-color-steel {
326
+ @extend %cl-color-text-light;
327
+
328
+ #{'--cl-color-background'}: $color-ci-steel;
329
+ #{'--cl-color-border'}: $color-ci-steel;
266
330
  }
267
331
 
268
332
  %cl-color-transparent {
333
+ @extend %cl-color-text-light;
334
+
269
335
  #{'--cl-color-background'}: transparent;
270
336
  #{'--cl-color-border'}: $color-ci-eggshell;
271
- #{'--cl-color-text'}: $color-ci-eggshell;
272
- #{'--cl-color-line'}: $color-ci-eggshell;
273
- #{'--cl-color-accent'}: $color-ci-eggshell;
274
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
275
- #{'--cl-color-link'}: $color-ci-eggshell;
276
- #{'--cl-color-focus'}: $color-ci-eggshell;
277
337
  }
278
338
 
279
339
  %cl-color-disabled {
@@ -283,7 +343,7 @@ $bar-ui-width: px(4);
283
343
  #{'--cl-color-line'}: $color-disabled;
284
344
  #{'--cl-color-accent'}: $color-disabled;
285
345
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
286
- #{'--cl-color-link'}: $color-disabled;
346
+ #{'--cl-color-link'}: inherit;
287
347
  #{'--cl-color-focus'}: $color-ci-eggshell;
288
348
  }
289
349
 
@@ -294,7 +354,7 @@ $bar-ui-width: px(4);
294
354
  #{'--cl-color-line'}: $color-ci-ash;
295
355
  #{'--cl-color-accent'}: $color-ci-ash;
296
356
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
297
- #{'--cl-color-link'}: $color-ci-ash;
357
+ #{'--cl-color-link'}: inherit;
298
358
  #{'--cl-color-focus'}: $color-ci-ash;
299
359
  }
300
360
 
@@ -305,5 +365,3 @@ $bar-ui-width: px(4);
305
365
  #{'--cl-color-link'}: $color-ci-eggshell;
306
366
  #{'--cl-color-focus'}: $color-ci-eggshell;
307
367
  }
308
-
309
- // ----------------------------------------------
@@ -19,14 +19,15 @@
19
19
  /// Add a fontawesome icon ::after an element.
20
20
  ///
21
21
  /// @example scss
22
- /// @include cl-fontawesome-after('\f2bd', 0, .5em, .25em);
22
+ /// @include cl-fontawesome-after('\f2bd', #a0a0a0, 0, .5em, .25em);
23
23
  ///
24
24
  /// @param {value} $codepoint UTF8 codepoint.
25
+ /// @param {value} $color Color of icon. Defaults to inherent/no set color.
25
26
  /// @param {value} $offset Optional horizontal offset (em). Defaults to 0.
26
27
  /// @param {value} $scale Optinal icon scale (font-size) of the icon. Defaults to 1.
27
28
  /// @param {value} $top Optional vertical offset (em). Defaults to 0.
28
29
  /// @output ::after element.
29
- @mixin cl-fontawesome-after($codepoint, $offset: 0, $scale: 1em, $top: 0) {
30
+ @mixin cl-fontawesome-after($codepoint, $color: inherit, $offset: 0, $scale: 1em, $top: 0) {
30
31
  $cl-fontawesome-box: 1em;
31
32
 
32
33
  margin-right: $cl-fontawesome-box;
@@ -34,7 +35,7 @@
34
35
 
35
36
  &::after {
36
37
  @include cl-fontawesome($codepoint);
37
-
38
+ @include set-property-if-not(color, inherit, $color);
38
39
  @include set-property-if-not(font-size, 1em, $scale);
39
40
 
40
41
  font-weight: 400;
@@ -43,19 +44,24 @@
43
44
  top: $top;
44
45
  width: 0;
45
46
  }
47
+
48
+ &:hover::after {
49
+ color: inherit;
50
+ }
46
51
  }
47
52
 
48
53
  /// Add a fontawesome icon ::before an element.
49
54
  ///
50
55
  /// @example scss
51
- /// @include cl-fontawesome-before('\f2bd', 0, .5em, .25em);
56
+ /// @include cl-fontawesome-before('\f2bd', #a0a0a0, 0, .5em, .25em);
52
57
  ///
53
58
  /// @param {value} $codepoint UTF8 codepoint.
59
+ /// @param {value} $color Color of icon. Defaults to inherent/no set color.
54
60
  /// @param {value} $offset Optional horizontal offset (em). Defaults to 0.
55
61
  /// @param {value} $scale Optinal icon scale (font-size) of the icon. Defaults to 1.
56
62
  /// @param {value} $top Optional vertical offset (em). Defaults to 0.
57
63
  /// @output ::before element.
58
- @mixin cl-fontawesome-before($codepoint, $offset: 0, $scale: 1em, $top: 0) {
64
+ @mixin cl-fontawesome-before($codepoint, $color: inherit, $offset: 0, $scale: 1em, $top: 0) {
59
65
  $cl-fontawesome-box: 1em;
60
66
 
61
67
  margin-left: $cl-fontawesome-box;
@@ -63,7 +69,7 @@
63
69
 
64
70
  &::before {
65
71
  @include cl-fontawesome($codepoint);
66
-
72
+ @include set-property-if-not(color, inherit, $color);
67
73
  @include set-property-if-not(font-size, 1em, $scale);
68
74
 
69
75
  font-weight: 400;
@@ -73,6 +79,10 @@
73
79
  top: $top;
74
80
  width: 0;
75
81
  }
82
+
83
+ &:hover::before {
84
+ color: inherit;
85
+ }
76
86
  }
77
87
 
78
88
  @mixin cl-fontawesome-postfix($codepoint) {
@@ -81,7 +91,7 @@
81
91
  &::after {
82
92
  @include cl-fontawesome($codepoint);
83
93
 
84
- color: $color-ci-clay;
94
+ color: $color-ci-steel;
85
95
  font-weight: 400;
86
96
  left: 0.2em;
87
97
  position: relative;
@@ -29,7 +29,8 @@ $form-spacing-label-input: px(2);
29
29
 
30
30
  &:disabled,
31
31
  &.disabled {
32
- background-color: $color-ci-white;
32
+ background-color: $color-ci-haze;
33
+ border-color: $color-disabled;
33
34
  }
34
35
  }
35
36
 
@@ -48,17 +49,20 @@ $form-spacing-label-input: px(2);
48
49
  400,
49
50
  $form-field-fontsize,
50
51
  $form-field-line-height,
51
- 0.025em,
52
- 80%
52
+ 0.025em
53
53
  );
54
54
  }
55
55
 
56
56
  @mixin cl-form-focus-embed {
57
- border-color: $color-ci-berry !important;
57
+ border-color: $color-focus !important;
58
58
  box-shadow: none;
59
- box-shadow: 0 0 0 1px $color-ci-berry inset;
60
- color: var(--cl-color-text);
59
+ color: var(--cl-color-text) !important;
61
60
  outline: none;
61
+
62
+ &::selection {
63
+ background: $color-focus;
64
+ color: $color-ci-eggshell;
65
+ }
62
66
  }
63
67
 
64
68
  @mixin cl-form-focus {