@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
@@ -3,7 +3,7 @@
3
3
  /// @access public
4
4
  ////
5
5
 
6
- // This file defines how we structure pages with <section class="cl-section-regular">s.
6
+ // This file defines how we structure pages with <section class="cl-section">s.
7
7
 
8
8
  %section-padding {
9
9
  padding-left: $spacing-tiny;
@@ -15,74 +15,73 @@
15
15
  }
16
16
  }
17
17
 
18
- .cl-section-primary,
19
- .cl-section-secondary,
20
- .cl-section-dark,
21
- .cl-section-light,
22
- .cl-section-regular,
23
- .cl-section-alternate {
18
+ .cl-section {
24
19
  @extend %section-padding;
25
- }
26
20
 
27
- // two successive sections of the same bg color loose a bit of gap
28
- .cl-section-regular + .cl-section-regular,
29
- .cl-section-alternate + .cl-section-alternate,
30
- .cl-section-dark + .cl-section-dark,
31
- .cl-section-light + .cl-section-light,
32
- .cl-section-primary + .cl-section-primary,
33
- .cl-section-secondary + .cl-section-secondary {
34
- @include media-breakpoint-up(sm) {
35
- margin-top: $spacing-small * -3;
21
+ background-color: var(--cl-color-background);
22
+ color: var(--cl-color-text);
23
+
24
+ &:not([class*='cl-color-']) + &:not([class*='cl-color-']),
25
+ &.cl-color-red + &.cl-color-red,
26
+ &.cl-color-sky + &.cl-color-sky,
27
+ &.cl-color-night + &.cl-color-night,
28
+ &.cl-color-eggshell + &.cl-color-eggshell,
29
+ &.cl-color-clay + &.cl-color-clay,
30
+ &.cl-color-ash + &.cl-color-ash,
31
+ &.cl-color-petrol + &.cl-color-petrol,
32
+ &.cl-color-berry + &.cl-color-berry {
33
+ @include media-breakpoint-up(sm) {
34
+ margin-top: $spacing-small * -3;
35
+ }
36
36
  }
37
37
  }
38
38
 
39
- .cl-section-primary,
40
- .cl-section-secondary,
41
- .cl-section-dark {
42
- color: $color-white-100;
39
+ // .cl-section:not(.cl-color-red):not(.cl-color-sky):not(.cl-color-night):not(.cl-color-eggshell):not(.cl-color-clay):not(.cl-color-ash):not(.cl-color-petrol):not(.cl-color-berry) + .cl-section:not(.cl-color-red):not(.cl-color-sky):not(.cl-color-night):not(.cl-color-eggshell):not(.cl-color-clay):not(.cl-color-ash):not(.cl-color-petrol):not(.cl-color-berry) {
40
+ // @include media-breakpoint-up(sm) {
41
+ // margin-top: $spacing-small * -3;
42
+ // }
43
+ // }
43
44
 
44
- h1,
45
- h2,
46
- h3 {
47
- color: $color-white-100;
48
- }
45
+ // pre-2005 legacy mappings
46
+ .cl-section-regular {
47
+ @extend %section-padding;
48
+ @extend %cl-color-night-outline;
49
49
 
50
- a {
51
- @include typography-links(
52
- $color-ci-white,
53
- rgba($color-white-80a, $color-hover-opacity),
54
- 2px,
55
- $color-ci-white,
56
- rgba($color-white-80a, $color-hover-opacity)
57
- );
58
- }
50
+ background-color: var(--cl-color-background);
51
+ color: var(--cl-color-text);
59
52
  }
60
53
 
61
54
  .cl-section-primary {
62
- background-color: $color-primary;
55
+ @extend %section-padding;
56
+ @extend %cl-color-red;
63
57
 
64
- @include media-breakpoint-up(sm) {
65
- min-height: px(88);
66
- }
58
+ background-color: var(--cl-color-background);
59
+ color: var(--cl-color-text);
67
60
  }
68
61
 
69
62
  .cl-section-secondary {
70
- background-color: $color-secondary;
63
+ @extend %section-padding;
64
+ @extend %cl-color-sky;
65
+
66
+ background-color: var(--cl-color-background);
67
+ color: var(--cl-color-text);
71
68
  }
72
69
 
70
+ .cl-section-night,
73
71
  .cl-section-dark {
74
- background-color: $color-dark;
72
+ @extend %section-padding;
73
+ @extend %cl-color-night;
74
+
75
+ background-color: var(--cl-color-background);
76
+ color: var(--cl-color-text);
75
77
  }
76
78
 
77
79
  .cl-section-light,
78
80
  .cl-section-alternate {
79
- background-color: $color-ci-haze;
80
- }
81
+ @extend %section-padding;
81
82
 
82
- .cl-section-tight {
83
- // deprecated
84
- padding-bottom: 1rem;
85
- padding-top: 0;
83
+ border-bottom: $brand-line-width solid $color-ci-clay;
84
+ border-top: $brand-line-width solid $color-ci-clay;
86
85
  }
87
86
 
88
87
  main {
@@ -188,14 +188,14 @@ main {
188
188
  }
189
189
  }
190
190
 
191
+ > *:last-child {
192
+ margin-right: 0;
193
+ }
194
+
191
195
  @include media-breakpoint-up(sm) {
192
196
  &.cl-spread {
193
197
  display: flex;
194
198
  justify-content: space-between;
195
-
196
- > *:last-child {
197
- margin-right: 0;
198
- }
199
199
  }
200
200
  }
201
201
 
@@ -5,101 +5,112 @@
5
5
 
6
6
  // This file defines our basic typography rules.
7
7
 
8
- @import '../../fonts/OpenSansVariable/OpenSansVariable';
9
- @import '../../fonts/FontAwesome5/FontAwesome5';
10
- @import '../../fonts/NotoSansMono/NotoSansMono';
8
+ // @import '../../fonts/OpenSansVariable/OpenSansVariable';
9
+ // @import '../../fonts/NotoSansMono/NotoSansMono';
10
+
11
+ @import '../../fonts/DMMono/DMMono';
12
+ @import '../../fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap';
13
+
11
14
  @import 'typography.variables';
12
15
 
13
16
  // --- text --------------------------------------------------------------------
14
17
 
18
+ .cl-font-sans {
19
+ font-family: $typography-sans-font-list !important;
20
+ }
21
+
22
+ .cl-font-monospace {
23
+ font-family: $typography-monospace-font-list !important;
24
+ }
25
+
15
26
  html {
16
27
  font-size: 16px; // root font size
17
28
  }
18
29
 
19
30
  html,
20
31
  body {
21
- @extend %p-medium;
32
+ @extend %cl-p-medium;
22
33
 
23
- color: $color-text;
24
- word-wrap: break-word;
34
+ color: var(--cl-color-text);
35
+ overflow-wrap: break-word;
25
36
  }
26
37
 
27
38
  .cl-p {
28
39
  overflow-wrap: anywhere;
29
40
  }
30
41
 
31
- .cl-p-tiny {
32
- @extend %p-tiny;
33
-
34
- font-weight: 700;
35
- }
36
-
37
42
  .cl-p-small {
38
- @extend %p-small;
43
+ @extend %cl-p-small;
39
44
  }
40
45
 
41
46
  .cl-p-medium {
42
- @extend %p-medium;
47
+ @extend %cl-p-medium;
43
48
  }
44
49
 
45
50
  .cl-p-large {
46
- @extend %p-large;
51
+ @extend %cl-p-large;
52
+ }
47
53
 
48
- + :not(.cl-p-large) {
49
- margin-top: $spacing-medium;
50
- }
54
+ .cl-p-x-large {
55
+ @extend %cl-p-x-large;
56
+ }
57
+
58
+ .cl-p-tag {
59
+ @extend %cl-p-tag;
51
60
  }
52
61
 
53
62
  .cl-p-label {
54
- @extend %p-label;
63
+ @extend %cl-p-label;
55
64
  }
56
65
 
57
66
  .cl-p-form-label {
58
- @extend %p-form-label;
67
+ @extend %cl-p-form-label;
59
68
  }
60
69
 
61
70
  .cl-p-nav {
62
- @extend %p-nav;
71
+ @extend %cl-p-nav;
63
72
  }
64
73
 
65
74
  .cl-font-condensed {
66
75
  @extend %cl-font-condensed;
67
76
  }
68
77
 
78
+ .cl-h0 {
79
+ @extend %cl-h0;
80
+
81
+ @include spacing-before-auto($spacing-large + $spacing-small);
82
+
83
+ overflow-wrap: anywhere;
84
+ }
85
+
69
86
  .cl-h1 {
70
- @extend %h1;
87
+ @extend %cl-h1;
71
88
 
72
- @include spacing-before-auto($spacing-large);
89
+ @include spacing-before-auto($spacing-large + $spacing-small);
73
90
 
74
- & {
75
- overflow-wrap: anywhere;
76
- }
91
+ overflow-wrap: anywhere;
77
92
  }
78
93
 
79
94
  .cl-h2 {
80
- @extend %h2;
95
+ @extend %cl-h2;
81
96
 
82
- @include spacing-before-auto($spacing-large);
97
+ @include spacing-before-auto($spacing-large + $spacing-tiny);
83
98
 
84
- & {
85
- overflow-wrap: anywhere;
86
- }
99
+ overflow-wrap: anywhere;
87
100
  }
88
101
 
89
102
  .cl-h3 {
90
- @extend %h3;
103
+ @extend %cl-h3;
91
104
 
92
105
  @include spacing-before-auto($spacing-large);
93
106
 
94
- & {
95
- overflow-wrap: anywhere;
96
- }
107
+ overflow-wrap: anywhere;
97
108
  }
98
109
 
99
110
  .cl-h4,
100
111
  .cl-h5,
101
112
  .cl-h6 {
102
- @extend %h4;
113
+ @extend %cl-h4;
103
114
 
104
115
  margin-top: $spacing-large;
105
116
  overflow-wrap: anywhere;
@@ -108,23 +119,21 @@ body {
108
119
  main {
109
120
  // apply style to typical html elements only in <main>, so it does not interfer with header/footer
110
121
  h1 {
111
- @extend %h1;
122
+ @extend %cl-h1;
112
123
 
113
124
  @include spacing-before-auto($spacing-small); // h1 is only used in special places
114
125
 
115
- & {
116
- overflow-wrap: anywhere;
117
- }
126
+ color: var(--cl-color-text);
127
+ overflow-wrap: anywhere;
118
128
  }
119
129
 
120
130
  h2 {
121
- @extend %h2;
131
+ @extend %cl-h2;
122
132
 
123
- @include spacing-before-auto($spacing-large);
133
+ @include spacing-before-auto($spacing-large + $spacing-tiny);
124
134
 
125
- & {
126
- overflow-wrap: anywhere;
127
- }
135
+ color: var(--cl-color-text);
136
+ overflow-wrap: anywhere;
128
137
 
129
138
  &:first-child {
130
139
  @include spacing-before-auto($spacing-medium);
@@ -132,13 +141,12 @@ main {
132
141
  }
133
142
 
134
143
  h3 {
135
- @extend %h3;
144
+ @extend %cl-h3;
136
145
 
137
- @include spacing-before-auto($spacing-small * 2);
146
+ @include spacing-before-auto($spacing-large);
138
147
 
139
- & {
140
- overflow-wrap: anywhere;
141
- }
148
+ color: var(--cl-color-text);
149
+ overflow-wrap: anywhere;
142
150
 
143
151
  &:first-child {
144
152
  @include spacing-before-auto($spacing-medium);
@@ -148,16 +156,16 @@ main {
148
156
  h4,
149
157
  h5,
150
158
  h6 {
151
- @extend %h4;
159
+ @extend %cl-h4;
152
160
 
153
161
  @include spacing-before-auto($spacing-medium);
154
162
 
155
- & {
156
- overflow-wrap: anywhere;
157
- }
163
+ color: var(--cl-color-text);
164
+ overflow-wrap: anywhere;
158
165
  }
159
166
 
160
167
  p {
168
+ color: var(--cl-color-text);
161
169
  overflow-wrap: anywhere;
162
170
  }
163
171
 
@@ -167,34 +175,11 @@ main {
167
175
  }
168
176
 
169
177
  small {
170
- @extend %p-small;
178
+ @extend %cl-p-small;
171
179
  }
172
180
 
173
181
  label {
174
- @extend %p-label;
175
- }
176
-
177
- // --- ruler -------------------------------------------------------------------
178
-
179
- hr {
180
- $typography-hr-spacing: 2rem;
181
-
182
- @include spacing-before-auto($typography-hr-spacing);
183
-
184
- & {
185
- border: 0;
186
- border-bottom: px(2) solid $color-line;
187
- margin-bottom: $typography-hr-spacing;
188
- opacity: 1;
189
- }
190
-
191
- &.cl-spacing-small {
192
- @include spacing-before-auto($spacing-small);
193
-
194
- & {
195
- margin-bottom: $spacing-small;
196
- }
197
- }
182
+ @extend %cl-p-label;
198
183
  }
199
184
 
200
185
  // --- code & monospace --------------------------------------------------------
@@ -203,7 +188,9 @@ main {
203
188
  kbd,
204
189
  code,
205
190
  samp {
206
- @extend %p-pre;
191
+ @extend %cl-p-pre;
192
+
193
+ color: var(--cl-color-text);
207
194
  }
208
195
 
209
196
  code {
@@ -212,7 +199,6 @@ main {
212
199
  }
213
200
 
214
201
  pre {
215
- background-color: $color-ci-haze;
216
202
  padding: $spacing-tiny;
217
203
 
218
204
  code {
@@ -221,11 +207,9 @@ main {
221
207
  }
222
208
 
223
209
  kbd {
224
- background-color: $color-ci-haze;
225
- border: px(1) solid $color-ci-silver;
210
+ border: px(1) solid $color-ci-night;
226
211
  border-radius: px(4);
227
- border-width: px(1) px(2) px(2) px(1);
228
- color: $color-ci-dim;
212
+ font-size: 0.8em;
229
213
  margin: 0 $spacing-micro;
230
214
  padding: 0 $spacing-micro;
231
215
  }
@@ -233,29 +217,34 @@ main {
233
217
  // --- block quotes ----------------------------------------------------------
234
218
 
235
219
  blockquote {
236
- border-left: $bar-ui-width solid $color-ci-smoke;
220
+ @include cl-accent;
221
+
222
+ border-left: $bar-ui-width solid var(--cl-color-accent);
237
223
  padding-left: calc($spacing-medium - $bar-ui-width);
224
+ }
238
225
 
239
- &.cl-blockquote-primary {
240
- border-left: $bar-ui-width solid $color-primary;
241
- }
226
+ // --- lists -------------------------------------------------------------------
242
227
 
243
- &.cl-blockquote-secondary {
244
- border-left: $bar-ui-width solid $color-secondary;
245
- }
228
+ // see Lists.scss
229
+ }
246
230
 
247
- &.cl-blockquote-light {
248
- border-left: $bar-ui-width solid $color-ci-smoke; // same as normal bockquote
249
- }
231
+ // --- ruler -------------------------------------------------------------------
250
232
 
251
- &.cl-blockquote-dark {
252
- border-left: $bar-ui-width solid $color-dark;
253
- }
254
- }
233
+ hr {
234
+ $typography-hr-spacing: 2rem;
255
235
 
256
- // --- lists -------------------------------------------------------------------
236
+ @include spacing-before-auto($typography-hr-spacing);
257
237
 
258
- // see Lists.scss
238
+ border: 0;
239
+ border-bottom: $brand-line-width solid var(--cl-color-text);
240
+ margin-bottom: $typography-hr-spacing;
241
+ opacity: 1;
242
+
243
+ &.cl-spacing-small {
244
+ @include spacing-before-auto($spacing-small);
245
+
246
+ margin-bottom: $spacing-small;
247
+ }
259
248
  }
260
249
 
261
250
  // --- redefine bs utilities we use so we don't need to pull the whole set -----
@@ -291,16 +280,6 @@ main {
291
280
  // --- text select -------------------------------------------------------------
292
281
 
293
282
  ::selection {
294
- background: $color-ci-blue;
283
+ background: $color-ci-night;
295
284
  color: $color-ci-white;
296
285
  }
297
-
298
- // --- text colors -------------------------------------------------------------
299
-
300
- .color-ci-blue {
301
- color: $color-ci-blue;
302
- }
303
-
304
- .color-ci-red {
305
- color: $color-ci-red;
306
- }