@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
@@ -16,8 +16,8 @@
16
16
  // h3 40
17
17
  // h4 32
18
18
  // body xl: 32 700
19
- // body lg: 24 700
20
- // body md: 20 400/700
19
+ // body lg: 24 400 -> 22 in admin
20
+ // body md: 20 400/700 -> 18 in admin
21
21
  // body sm: 14 400/700
22
22
  // button: 18 700
23
23
  // navigation: 16 400/700
@@ -74,11 +74,28 @@ $typography-monospace-line-height: 1.375;
74
74
  }
75
75
  }
76
76
 
77
- @mixin typography-link($color: inherit, $color-hover: $color, $underline: 1) {
77
+ @mixin typography-link(
78
+ $color: inherit,
79
+ $color-hover: var(--cl-color-hover),
80
+ $color-underline: var(--cl-color-link),
81
+ $color-underline-hover: $color-hover
82
+ ) {
78
83
  color: $color;
79
84
  display: inline;
85
+ text-decoration: underline $color-underline;
86
+
87
+ &:hover {
88
+ color: $color-hover;
89
+ cursor: pointer;
90
+ text-decoration: underline $color-underline-hover;
91
+ }
92
+ }
80
93
 
81
- @if $underline <= 0 {
94
+ @mixin typography-link-legacy($color: inherit, $color-hover: $color, $underline: 1) {
95
+ color: $color;
96
+ display: inline;
97
+
98
+ @if $underline == transprarent {
82
99
  text-decoration: none;
83
100
  }
84
101
 
@@ -89,8 +106,10 @@ $typography-monospace-line-height: 1.375;
89
106
  }
90
107
 
91
108
  @mixin typography-link-invisible {
92
- @include typography-link(inherit, inherit, 0);
109
+ @include typography-link(var(--cl-color-text), $color-ci-red, transparent, $color-ci-red);
93
110
  @include cl-color-focus-outline(var(--cl-color-focus), 2px);
111
+
112
+ border-radius: $brand-border-radius-minor;
94
113
  }
95
114
 
96
115
  @mixin cl-btn-a($line-height-px) {
@@ -112,7 +131,6 @@ $typography-monospace-line-height: 1.375;
112
131
  outline-offset: -2px;
113
132
  padding: 0;
114
133
  text-align: inherit;
115
- text-decoration: underline;
116
134
  vertical-align: inherit;
117
135
 
118
136
  &:focus-visible {
@@ -131,25 +149,13 @@ $typography-monospace-line-height: 1.375;
131
149
  }
132
150
 
133
151
  %cl-a {
134
- @include typography-link(var(--cl-color-link), $color-ci-red);
152
+ @include typography-link;
135
153
  @include cl-color-focus-outline(var(--cl-color-focus), 2px);
136
154
  }
137
155
 
138
- %cl-a-text {
139
- @include typography-link(var(--cl-color-text), $color-ci-ash);
140
- }
141
-
142
- %cl-a-transparent {
143
- @include typography-link(var(--cl-color-text), $color-ci-ash);
144
- }
145
-
146
- %cl-a-none {
147
- @include typography-link(var(--cl-color-text), $color-ci-ash);
148
- }
149
-
150
156
  %cl-a-btn {
151
157
  // a link that is more an embedded button
152
- @extend %cl-a-text;
158
+ @include typography-link;
153
159
 
154
160
  background-color: transparent;
155
161
  border: 0;
@@ -177,7 +183,7 @@ $typography-responsive-scale: 0.8;
177
183
  px(32),
178
184
  px(32 * $typography-sans-line-height),
179
185
  0.01em,
180
- 100,
186
+ 100%,
181
187
  -0.1em
182
188
  );
183
189
 
@@ -199,7 +205,7 @@ $typography-responsive-scale: 0.8;
199
205
  px(32 * $typography-responsive-scale),
200
206
  px(32 * $typography-responsive-scale * $typography-sans-line-height),
201
207
  0.01em,
202
- 100,
208
+ 100%,
203
209
  -0.1em
204
210
  );
205
211
  }
@@ -207,14 +213,16 @@ $typography-responsive-scale: 0.8;
207
213
  }
208
214
 
209
215
  %cl-p-large {
210
- // body lg: 24 700
216
+ // body lg: 21 400
217
+ $font-size: 22;
218
+
211
219
  @include typography-font(
212
220
  $typography-sans-font-list,
213
221
  400,
214
- px(24),
215
- px(24 * $typography-sans-line-height),
222
+ px($font-size),
223
+ px(30),
216
224
  0.01em,
217
- 100,
225
+ 100%,
218
226
  -0.1em
219
227
  );
220
228
 
@@ -233,10 +241,10 @@ $typography-responsive-scale: 0.8;
233
241
  @include typography-font(
234
242
  $typography-sans-font-list,
235
243
  400,
236
- px(24 * $typography-responsive-scale),
237
- px(24 * $typography-responsive-scale * $typography-sans-line-height),
244
+ px($font-size * $typography-responsive-scale),
245
+ px(30 * $typography-responsive-scale),
238
246
  0.01em,
239
- 100,
247
+ 100%,
240
248
  -0.1em
241
249
  );
242
250
  }
@@ -244,14 +252,16 @@ $typography-responsive-scale: 0.8;
244
252
  }
245
253
 
246
254
  %cl-p-medium {
247
- // body md: 20 400/700
255
+ // body md: 18 400/700
256
+ $font-size: 17;
257
+
248
258
  @include typography-font(
249
259
  $typography-sans-font-list,
250
260
  400,
251
- px(20),
252
- px(20 * $typography-sans-line-height),
253
- 0.01em,
254
- 100,
261
+ px($font-size),
262
+ px(25),
263
+ 0,
264
+ 100%,
255
265
  -0.1em
256
266
  );
257
267
 
@@ -270,10 +280,10 @@ $typography-responsive-scale: 0.8;
270
280
  @include typography-font(
271
281
  $typography-sans-font-list,
272
282
  400,
273
- px(20 * $typography-responsive-scale),
274
- px(20 * $typography-responsive-scale * $typography-sans-line-height),
275
- 0.01em,
276
- 100,
283
+ px($font-size * $typography-responsive-scale),
284
+ px(25 * $typography-responsive-scale),
285
+ 0,
286
+ 100%,
277
287
  -0.1em
278
288
  );
279
289
  }
@@ -289,7 +299,7 @@ $typography-responsive-scale: 0.8;
289
299
  px(14),
290
300
  px(14 * $typography-sans-line-height),
291
301
  0.01em,
292
- 100,
302
+ 100%,
293
303
  -0.1em
294
304
  );
295
305
 
@@ -311,7 +321,7 @@ $typography-responsive-scale: 0.8;
311
321
  px(14 * $typography-responsive-scale),
312
322
  px(14 * $typography-responsive-scale * $typography-sans-line-height),
313
323
  0.01em,
314
- 100,
324
+ 100%,
315
325
  -0.1em
316
326
  );
317
327
  }
@@ -319,13 +329,16 @@ $typography-responsive-scale: 0.8;
319
329
  }
320
330
 
321
331
  %cl-h0 {
332
+ // for use in blogs/WP
333
+ $font-size: 100;
334
+
322
335
  @include typography-font(
323
336
  $typography-sans-font-list,
324
337
  700,
325
- px(100),
326
- px(100 * $typography-sans-line-height),
338
+ px($font-size),
339
+ px($font-size * $typography-sans-line-height),
327
340
  0.01em,
328
- 100,
341
+ 100%,
329
342
  -0.1em
330
343
  );
331
344
 
@@ -335,10 +348,10 @@ $typography-responsive-scale: 0.8;
335
348
  @include typography-font(
336
349
  $typography-sans-font-list,
337
350
  700,
338
- px(100 * $typography-responsive-scale),
339
- px(100 * $typography-responsive-scale * $typography-sans-line-height),
351
+ px($font-size * $typography-responsive-scale),
352
+ px($font-size * $typography-responsive-scale * $typography-sans-line-height),
340
353
  0.01em,
341
- 100,
354
+ 100%,
342
355
  -0.1em
343
356
  );
344
357
  }
@@ -346,13 +359,15 @@ $typography-responsive-scale: 0.8;
346
359
  }
347
360
 
348
361
  %cl-h1 {
362
+ $font-size: 36;
363
+
349
364
  @include typography-font(
350
365
  $typography-sans-font-list,
351
366
  700,
352
- px(48),
353
- px(48 * 1.1),
367
+ px($font-size),
368
+ px($font-size * 1.1),
354
369
  0.01em,
355
- 100,
370
+ 100%,
356
371
  -0.1em
357
372
  );
358
373
 
@@ -362,10 +377,10 @@ $typography-responsive-scale: 0.8;
362
377
  @include typography-font(
363
378
  $typography-sans-font-list,
364
379
  700,
365
- px(48 * $typography-responsive-scale),
366
- px(48 * $typography-responsive-scale * 1.1),
380
+ px($font-size * $typography-responsive-scale),
381
+ px($font-size * $typography-responsive-scale * 1.1),
367
382
  0.01em,
368
- 100,
383
+ 100%,
369
384
  -0.1em
370
385
  );
371
386
  }
@@ -373,13 +388,15 @@ $typography-responsive-scale: 0.8;
373
388
  }
374
389
 
375
390
  %cl-h2 {
391
+ $font-size: 30;
392
+
376
393
  @include typography-font(
377
394
  $typography-sans-font-list,
378
395
  700,
379
- px(40),
380
- px(40 * 1.1),
396
+ px($font-size),
397
+ px($font-size * 1.1),
381
398
  0.01em,
382
- 100,
399
+ 100%,
383
400
  -0.1em
384
401
  );
385
402
 
@@ -389,10 +406,10 @@ $typography-responsive-scale: 0.8;
389
406
  @include typography-font(
390
407
  $typography-sans-font-list,
391
408
  700,
392
- px(40 * $typography-responsive-scale),
393
- px(40 * $typography-responsive-scale * 1.1),
409
+ px($font-size * $typography-responsive-scale),
410
+ px($font-size * $typography-responsive-scale * 1.1),
394
411
  0.01em,
395
- 100,
412
+ 100%,
396
413
  -0.1em
397
414
  );
398
415
  }
@@ -400,13 +417,15 @@ $typography-responsive-scale: 0.8;
400
417
  }
401
418
 
402
419
  %cl-h3 {
420
+ $font-size: 24;
421
+
403
422
  @include typography-font(
404
423
  $typography-sans-font-list,
405
424
  700,
406
- px(32),
407
- px(32 * 1.1),
425
+ px($font-size),
426
+ px($font-size * 1.1),
408
427
  0.01em,
409
- 100,
428
+ 100%,
410
429
  -0.1em
411
430
  );
412
431
 
@@ -416,10 +435,10 @@ $typography-responsive-scale: 0.8;
416
435
  @include typography-font(
417
436
  $typography-sans-font-list,
418
437
  700,
419
- px(32 * $typography-responsive-scale),
420
- px(32 * $typography-responsive-scale * 1.1),
438
+ px($font-size * $typography-responsive-scale),
439
+ px($font-size * $typography-responsive-scale * 1.1),
421
440
  0.01em,
422
- 100,
441
+ 100%,
423
442
  -0.1em
424
443
  );
425
444
  }
@@ -462,7 +481,7 @@ $typography-responsive-scale: 0.8;
462
481
  border: $brand-line-width solid var(--cl-color-text);
463
482
  border-radius: $brand-border-radius;
464
483
  clip-path: inset(0 round 20px);
465
- font-size: px(16);
484
+ font-size: px(15);
466
485
  line-height: 1.4;
467
486
  margin-top: $spacing-small;
468
487
  padding: $spacing-small;
@@ -19,7 +19,6 @@
19
19
  @extend %cl-color-night-outline;
20
20
  }
21
21
 
22
- .cl-color-primary,
23
22
  .cl-color-red {
24
23
  @extend %cl-color-red;
25
24
  }
@@ -32,6 +31,10 @@
32
31
  @extend %cl-color-sky;
33
32
  }
34
33
 
34
+ .cl-color-primary {
35
+ @extend %cl-color-sea;
36
+ }
37
+
35
38
  .cl-color-secondary,
36
39
  .cl-color-black,
37
40
  .cl-color-text, // legacy name
@@ -117,3 +120,27 @@
117
120
  .cl-color-text-none {
118
121
  #{'--cl-color-text'}: transparent;
119
122
  }
123
+
124
+ .cl-color-text-brick {
125
+ #{'--cl-color-text'}: $color-ci-brick;
126
+ }
127
+
128
+ .cl-color-text-honey {
129
+ #{'--cl-color-text'}: $color-ci-honey;
130
+ }
131
+
132
+ .cl-color-text-leaf {
133
+ #{'--cl-color-text'}: $color-ci-leaf;
134
+ }
135
+
136
+ .cl-color-text-sea {
137
+ #{'--cl-color-text'}: $color-ci-sea;
138
+ }
139
+
140
+ .cl-color-text-orchid {
141
+ #{'--cl-color-text'}: $color-ci-orchid;
142
+ }
143
+
144
+ .cl-color-text-steel {
145
+ #{'--cl-color-text'}: $color-ci-steel;
146
+ }
@@ -16,6 +16,19 @@
16
16
  border-radius: $brand-border-radius;
17
17
  }
18
18
 
19
+ .cl-hidden {
20
+ visibility: hidden;
21
+ }
22
+
23
+ .cl-cursor-pointer,
24
+ .cl-cursor-link {
25
+ cursor: pointer;
26
+ }
27
+
28
+ .cl-cursor-not-allowed {
29
+ cursor: not-allowed;
30
+ }
31
+
19
32
  .cl-faded {
20
33
  opacity: 0.5;
21
34
  }
@@ -71,9 +71,12 @@
71
71
  .cl-section-light,
72
72
  .cl-section-alternate {
73
73
  @extend %section-padding;
74
+ @extend %cl-color-eggshell-alternate;
74
75
 
75
- border-bottom: $brand-line-width solid $color-ci-clay;
76
- border-top: $brand-line-width solid $color-ci-clay;
76
+ background-color: var(--cl-color-background);
77
+ color: var(--cl-color-text);
78
+ // border-bottom: $brand-line-width solid $color-ci-clay;
79
+ // border-top: $brand-line-width solid $color-ci-clay;
77
80
  }
78
81
 
79
82
  main {
@@ -239,7 +239,7 @@ hr {
239
239
  @include spacing-before-auto($typography-hr-spacing);
240
240
 
241
241
  border: 0;
242
- border-bottom: $brand-line-width solid var(--cl-color-text);
242
+ border-bottom: $brand-line-width solid var(--cl-color-line);
243
243
  margin-bottom: $typography-hr-spacing;
244
244
  opacity: 1;
245
245
 
@@ -107,15 +107,3 @@ html {
107
107
  body {
108
108
  font-size: 20px;
109
109
  }
110
-
111
- .cl-hidden {
112
- visibility: hidden;
113
- }
114
-
115
- .cl-cursor-link {
116
- cursor: pointer;
117
- }
118
-
119
- .cl-cursor-not-allowed {
120
- cursor: not-allowed;
121
- }
@@ -1,41 +0,0 @@
1
- $cl-url-prefix: '' !default;
2
- $cl-url-postfix: '' !default;
3
-
4
- @mixin DMMono {
5
- @font-face {
6
- font-family: 'DM Mono';
7
- font-style: normal;
8
- font-weight: 300;
9
- src: url('#{$cl-url-prefix}DM_Mono_300.woff2#{$cl-url-postfix}') format('woff2');
10
- }
11
- @font-face {
12
- font-family: 'DM Mono';
13
- font-style: italic;
14
- font-weight: 300;
15
- src: url('#{$cl-url-prefix}DM_Mono_300italic.woff2#{$cl-url-postfix}') format('woff2');
16
- }
17
- @font-face {
18
- font-family: 'DM Mono';
19
- font-style: normal;
20
- font-weight: 400;
21
- src: url('#{$cl-url-prefix}DM_Mono_400.woff2#{$cl-url-postfix}') format('woff2');
22
- }
23
- @font-face {
24
- font-family: 'DM Mono';
25
- font-style: italic;
26
- font-weight: 400;
27
- src: url('#{$cl-url-prefix}DM_Mono_400italic.woff2#{$cl-url-postfix}') format('woff2');
28
- }
29
- @font-face {
30
- font-family: 'DM Mono';
31
- font-style: normal;
32
- font-weight: 500;
33
- src: url('#{$cl-url-prefix}DM_Mono_500.woff2#{$cl-url-postfix}') format('woff2');
34
- }
35
- @font-face {
36
- font-family: 'DM Mono';
37
- font-style: italic;
38
- font-weight: 500;
39
- src: url('#{$cl-url-prefix}DM_Mono_500italic.woff2#{$cl-url-postfix}') format('woff2');
40
- }
41
- }
@@ -1,34 +0,0 @@
1
- Font Awesome Free License
2
- -------------------------
3
-
4
- Font Awesome Free is free, open source, and GPL friendly. You can use it for
5
- commercial projects, open source projects, or really almost whatever you want.
6
- Full Font Awesome Free license: https://fontawesome.com/license/free.
7
-
8
- # Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
9
- In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
10
- packaged as SVG and JS file types.
11
-
12
- # Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL)
13
- In the Font Awesome Free download, the SIL OFL license applies to all icons
14
- packaged as web and desktop font files.
15
-
16
- # Code: MIT License (https://opensource.org/licenses/MIT)
17
- In the Font Awesome Free download, the MIT license applies to all non-font and
18
- non-icon files.
19
-
20
- # Attribution
21
- Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
22
- Awesome Free files already contain embedded comments with sufficient
23
- attribution, so you shouldn't need to do anything additional when using these
24
- files normally.
25
-
26
- We've kept attribution comments terse, so we ask that you do not actively work
27
- to remove them from files, especially code. They're a great way for folks to
28
- learn about Font Awesome.
29
-
30
- # Brand Icons
31
- All brand icons are trademarks of their respective owners. The use of these
32
- trademarks does not indicate endorsement of the trademark holder by Font
33
- Awesome, nor vice versa. **Please do not use brand logos for any purpose except
34
- to represent the company, product, or service to which they refer.**