@castlabs/ui 7.0.10 → 7.0.11

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 (33) hide show
  1. package/dist/castlabs-ui-editor.css +1 -1
  2. package/dist/castlabs-ui-editor.umd.js +1 -1
  3. package/dist/castlabs-ui.common.js +3 -3
  4. package/dist/castlabs-ui.common.js.map +1 -1
  5. package/dist/castlabs-ui.css +2 -2
  6. package/dist/castlabs-ui.umd.js +5 -5
  7. package/dist/castlabs-ui.umd.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/components/ClAlert/style.scss +1 -1
  10. package/src/components/ClBadge/style.variables.scss +6 -3
  11. package/src/components/ClButton/style.scss +1 -1
  12. package/src/components/ClCard/style.scss +1 -1
  13. package/src/components/ClCard/style.variables.scss +1 -1
  14. package/src/components/ClDropdown/style.scss +2 -2
  15. package/src/components/ClPagination/style.scss +5 -1
  16. package/src/components/ClTabs/style.scss +2 -1
  17. package/src/components/ClToggle/style.scss +1 -1
  18. package/src/components/form/ClFieldCheck/style.scss +3 -1
  19. package/src/components/form/ClFieldFile/style.scss +3 -3
  20. package/src/components/form/ClFieldGroup/style.scss +3 -3
  21. package/src/components/form/ClFieldInput/style.scss +1 -1
  22. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +2 -2
  23. package/src/components/navigation/ClNavTop/style.scss +2 -2
  24. package/src/fonts/FontAwesome5/FontAwesome5.scss +2 -2
  25. package/src/styles/_global.scss +0 -13
  26. package/src/styles/abstracts/color.scss +17 -19
  27. package/src/styles/abstracts/spacing.scss +0 -1
  28. package/src/styles/abstracts/tools.scss +7 -0
  29. package/src/styles/components/button.variables.scss +6 -7
  30. package/src/styles/components/form.variables.scss +8 -8
  31. package/src/styles/layout/spacing.scss +1 -1
  32. package/src/styles/layout/typography.scss +1 -1
  33. package/src/styles/layout/typography.variables.scss +18 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "7.0.10",
3
+ "version": "7.0.11",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -108,7 +108,7 @@
108
108
  border: 0;
109
109
  display: inline-block;
110
110
  font-weight: 500;
111
- line-height: 1em;
111
+ line-height: 1;
112
112
  padding: 0;
113
113
  text-decoration: underline;
114
114
  }
@@ -19,7 +19,7 @@ $badge-baseline-shift: 0.055555em; // 1px @ 14pt
19
19
  color: var(--cl-color-text);
20
20
  display: inline-block;
21
21
  letter-spacing: 0;
22
- line-height: 1em;
22
+ line-height: 1;
23
23
  padding: px(5) px(16);
24
24
  text-transform: uppercase;
25
25
  white-space: nowrap;
@@ -36,7 +36,7 @@ $badge-baseline-shift: 0.055555em; // 1px @ 14pt
36
36
  }
37
37
 
38
38
  i {
39
- line-height: 0.75em;
39
+ line-height: 0.75;
40
40
  margin-right: $spacing-micro;
41
41
  }
42
42
  }
@@ -44,7 +44,9 @@ $badge-baseline-shift: 0.055555em; // 1px @ 14pt
44
44
  %cl-badge-derived {
45
45
  @extend %cl-badge;
46
46
 
47
+ background-color: transparent;
47
48
  border: 0;
49
+ box-shadow: 0 0 0 $brand-line-width $color-ci-clay inset;
48
50
  content: ' ';
49
51
  padding: 0 0 0 $spacing-tiny;
50
52
 
@@ -62,8 +64,9 @@ $badge-baseline-shift: 0.055555em; // 1px @ 14pt
62
64
  &::before {
63
65
  @include cl-fontawesome('\f064');
64
66
 
67
+ color: $color-ci-clay;
65
68
  font-size: 0.95em;
66
- line-height: 0.75em;
69
+ line-height: 0.75;
67
70
  position: relative;
68
71
  top: 0;
69
72
  transform: scale(0.75) scaleY(-1) translate(-0.4em, -0.025em);
@@ -36,7 +36,7 @@
36
36
  &.btn-sm {
37
37
  font-size: px(14);
38
38
  font-weight: 700; // repeat as @include overrides
39
- line-height: 1em; // repeat as @include overrides
39
+ line-height: 1; // repeat as @include overrides
40
40
  opacity: 1;
41
41
  overflow: hidden;
42
42
  padding: typography-sans-baselineshift($spacing-tiny, px(14)) $spacing-medium
@@ -44,7 +44,7 @@ details.card {
44
44
  color: $color-ci-red !important;
45
45
  }
46
46
 
47
- &:focus {
47
+ &:focus-visible {
48
48
  @include cl-color-focus-outline;
49
49
 
50
50
  border-radius: $brand-border-radius;
@@ -112,7 +112,7 @@ $card-spacing-tight: $spacing-small;
112
112
  }
113
113
 
114
114
  .card-footer {
115
- line-height: 0.5em;
115
+ line-height: 0.5;
116
116
  }
117
117
 
118
118
  > .list-group {
@@ -9,7 +9,7 @@
9
9
  $dropdown-border: 0.125rem; // a 2px border to add so there is space for the outline
10
10
  $dropdown-color-chevron: rgba($color-ci-white, 0.5);
11
11
  $dropdown-color-chevron-bright: rgba($color-ci-clay, 0.5);
12
- $dropdown-line-height: 1.25em;
12
+ $dropdown-line-height: 1.25;
13
13
 
14
14
  .cl-dropdown {
15
15
  position: relative;
@@ -90,7 +90,7 @@ $dropdown-line-height: 1.25em;
90
90
  font-size: px(14);
91
91
  font-weight: 500;
92
92
  letter-spacing: 0;
93
- line-height: 1.4em;
93
+ line-height: 1.4;
94
94
  margin-top: 0;
95
95
  opacity: $color-hover-opacity;
96
96
  }
@@ -30,9 +30,13 @@
30
30
  border-radius: $brand-border-radius !important; // overrule BS
31
31
  font-size: px(14);
32
32
  font-weight: 500;
33
- line-height: px(18);
33
+ line-height: 1.25;
34
34
  min-width: 36px;
35
35
  padding: $spacing-tiny;
36
+
37
+ &:focus {
38
+ box-shadow: none;
39
+ }
36
40
  }
37
41
 
38
42
  .page-item {
@@ -34,6 +34,7 @@
34
34
  label {
35
35
  @extend %cl-p-form-label;
36
36
 
37
+ border-radius: $brand-border-radius * 0.75; // only for focus outlines
37
38
  cursor: pointer;
38
39
  margin: 0 $spacing-micro;
39
40
  min-width: $spacing-huge * 2 + $spacing-tiny * 2;
@@ -73,7 +74,7 @@
73
74
  }
74
75
 
75
76
  @for $i from 1 through 16 {
76
- .cl-tab-#{$i}:focus ~ ul {
77
+ .cl-tab-#{$i}:focus-visible ~ ul {
77
78
  .cl-tab-#{$i} label {
78
79
  @include cl-color-focus-outline-raw;
79
80
  }
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
 
37
- &:focus + .cl-badge {
37
+ &:focus-visible + .cl-badge {
38
38
  @include cl-color-focus-outline-raw;
39
39
  }
40
40
 
@@ -18,6 +18,8 @@ $form-check-background: $color-ci-eggshell;
18
18
  }
19
19
 
20
20
  .form-check-input {
21
+ @include no-focus;
22
+
21
23
  margin-left: -$spacing-medium;
22
24
  margin-right: $spacing-micro;
23
25
  margin-top: 0.25em;
@@ -64,7 +66,7 @@ $form-check-background: $color-ci-eggshell;
64
66
  }
65
67
  }
66
68
 
67
- &:focus {
69
+ &:focus-visible {
68
70
  @include cl-color-focus-outline($color-selected, 2px);
69
71
  }
70
72
 
@@ -21,13 +21,13 @@
21
21
  width: 0;
22
22
  }
23
23
 
24
- &:focus + .cl-file-companion {
24
+ &:focus-visible + .cl-file-companion {
25
25
  @include cl-form-focus-embed();
26
26
  @include cl-color-focus-outline-raw;
27
27
  }
28
28
 
29
- &[invalid]:focus + .cl-file-companion,
30
- &.invalid:focus + .cl-file-companion {
29
+ &[invalid]:focus-visible + .cl-file-companion,
30
+ &.invalid:focus-visible + .cl-file-companion {
31
31
  border-color: $color-ci-clay;
32
32
  }
33
33
 
@@ -36,9 +36,9 @@
36
36
  &:not(.btn) {
37
37
  border-left-width: 0;
38
38
 
39
- &:focus,
40
- &.invalid:focus {
41
- box-shadow: -$brand-line-width 0 0 $color-focus !important; // sass-lint:disable-line no-important
39
+ &:focus-visible,
40
+ &.invalid:focus-visible {
41
+ box-shadow: 0 0 0 1px $color-ci-berry inset !important;
42
42
  }
43
43
  }
44
44
 
@@ -110,7 +110,7 @@
110
110
  width: $spacing-medium;
111
111
  }
112
112
 
113
- &:focus {
113
+ &:focus-visible {
114
114
  @include cl-color-focus-outline(var(--cl-color-focus), 2px);
115
115
  }
116
116
  }
@@ -282,7 +282,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
282
282
  display: inline-block;
283
283
  font-weight: 500;
284
284
  letter-spacing: 0.025em;
285
- line-height: 1.5em;
285
+ line-height: 1.5;
286
286
  padding: $spacing-tiny $spacing-small;
287
287
  position: relative;
288
288
  width: 100%;
@@ -292,7 +292,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
292
292
 
293
293
  color: $color-ci-ash;
294
294
  letter-spacing: 0.025em;
295
- line-height: 1.4em;
295
+ line-height: 1.4;
296
296
  margin-top: px(3);
297
297
 
298
298
  + .cl-nav-item-info {
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  i {
79
- line-height: px(20);
79
+ line-height: 1.25;
80
80
  }
81
81
 
82
82
  a {
@@ -188,7 +188,7 @@ $navbar-item-spacing: $spacing-medium;
188
188
  padding: 0;
189
189
 
190
190
  &:active,
191
- &:focus {
191
+ &:focus-visible {
192
192
  border: 0;
193
193
  box-shadow: none;
194
194
  }
@@ -19,7 +19,7 @@
19
19
 
20
20
  .fa-lg {
21
21
  font-size: 1.33333em;
22
- line-height: 0.75em;
22
+ line-height: 0.75;
23
23
  vertical-align: -0.0667em;
24
24
  }
25
25
 
@@ -195,7 +195,7 @@
195
195
  .fa-stack {
196
196
  display: inline-block;
197
197
  height: 2em;
198
- line-height: 2em;
198
+ line-height: 2;
199
199
  position: relative;
200
200
  vertical-align: middle;
201
201
  width: 2.5em;
@@ -57,16 +57,3 @@
57
57
  %spacing-none {
58
58
  margin-top: 0;
59
59
  }
60
-
61
- // --- other -------------------------------------------------------------------
62
-
63
- @mixin focus-glow-embed($color) {
64
- box-shadow: 0 0 0 $btn-focus-width rgba($color, 0.5); // sass-lint:disable-line no-color-literals
65
- outline: 0;
66
- }
67
-
68
- @mixin focus-glow($color) {
69
- &:focus {
70
- @include focus-glow-embed($color);
71
- }
72
- }
@@ -50,7 +50,7 @@ $color-disabled: $color-ci-clay;
50
50
  $color-text: $color-ci-night;
51
51
  $color-selected: $color-ci-red;
52
52
  $color-accent: $color-ci-petrol;
53
- $color-focus: $color-ci-night;
53
+ $color-focus: $color-ci-petrol;
54
54
  $color-background: $color-ci-white;
55
55
  $color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
56
56
 
@@ -67,9 +67,7 @@ $bar-ui-width: px(4);
67
67
  }
68
68
 
69
69
  @mixin cl-color-focus-outline($color: var(--cl-color-focus), $offset: -3px) {
70
- &:focus,
71
- &:focus-visible,
72
- &:focus-within {
70
+ &:focus-visible {
73
71
  @include cl-color-focus-outline-raw($color, $offset);
74
72
  }
75
73
  }
@@ -134,7 +132,7 @@ $bar-ui-width: px(4);
134
132
  #{'--cl-color-link'}: $color-ci-berry;
135
133
  #{'--cl-color-active'}: $color-ci-berry;
136
134
  #{'--cl-color-hover'}: $color-ci-red;
137
- #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
135
+ #{'--cl-color-focus'}: $color-ci-night;
138
136
  }
139
137
 
140
138
  %cl-color-night-outline {
@@ -146,7 +144,7 @@ $bar-ui-width: px(4);
146
144
  #{'--cl-color-accent'}: $color-ci-night;
147
145
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
148
146
  #{'--cl-color-link'}: $color-ci-berry;
149
- #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
147
+ #{'--cl-color-focus'}: $color-ci-night;
150
148
  }
151
149
 
152
150
  %cl-color-red {
@@ -157,7 +155,7 @@ $bar-ui-width: px(4);
157
155
  #{'--cl-color-accent'}: $color-ci-eggshell;
158
156
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
159
157
  #{'--cl-color-link'}: $color-ci-eggshell;
160
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
158
+ #{'--cl-color-focus'}: $color-ci-eggshell;
161
159
  }
162
160
 
163
161
  %cl-color-red-outline {
@@ -167,7 +165,7 @@ $bar-ui-width: px(4);
167
165
  #{'--cl-color-accent'}: $color-ci-red;
168
166
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
169
167
  #{'--cl-color-link'}: $color-ci-berry;
170
- #{'--cl-color-focus'}: rgba($color-ci-red, 0.5);
168
+ #{'--cl-color-focus'}: $color-ci-red;
171
169
  }
172
170
 
173
171
  %cl-color-sky {
@@ -178,7 +176,7 @@ $bar-ui-width: px(4);
178
176
  #{'--cl-color-accent'}: $color-ci-night;
179
177
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
180
178
  #{'--cl-color-link'}: $color-ci-night;
181
- #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
179
+ #{'--cl-color-focus'}: $color-ci-night;
182
180
  }
183
181
 
184
182
  %cl-color-night {
@@ -189,7 +187,7 @@ $bar-ui-width: px(4);
189
187
  #{'--cl-color-accent'}: $color-ci-eggshell;
190
188
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
191
189
  #{'--cl-color-link'}: $color-ci-eggshell;
192
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
190
+ #{'--cl-color-focus'}: $color-ci-eggshell;
193
191
  }
194
192
 
195
193
  %cl-color-eggshell {
@@ -200,7 +198,7 @@ $bar-ui-width: px(4);
200
198
  #{'--cl-color-accent'}: $color-ci-night;
201
199
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
202
200
  #{'--cl-color-link'}: $color-ci-berry;
203
- #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
201
+ #{'--cl-color-focus'}: $color-ci-night;
204
202
  }
205
203
 
206
204
  %cl-color-clay {
@@ -211,7 +209,7 @@ $bar-ui-width: px(4);
211
209
  #{'--cl-color-accent'}: $color-ci-night;
212
210
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
213
211
  #{'--cl-color-link'}: $color-ci-night;
214
- #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
212
+ #{'--cl-color-focus'}: $color-ci-night;
215
213
  }
216
214
 
217
215
  %cl-color-ash {
@@ -222,7 +220,7 @@ $bar-ui-width: px(4);
222
220
  #{'--cl-color-accent'}: $color-ci-eggshell;
223
221
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
224
222
  #{'--cl-color-link'}: $color-ci-eggshell;
225
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
223
+ #{'--cl-color-focus'}: $color-ci-eggshell;
226
224
  }
227
225
 
228
226
  %cl-color-petrol {
@@ -233,7 +231,7 @@ $bar-ui-width: px(4);
233
231
  #{'--cl-color-accent'}: $color-ci-eggshell;
234
232
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
235
233
  #{'--cl-color-link'}: $color-ci-eggshell;
236
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
234
+ #{'--cl-color-focus'}: $color-ci-eggshell;
237
235
  }
238
236
 
239
237
  %cl-color-berry {
@@ -244,7 +242,7 @@ $bar-ui-width: px(4);
244
242
  #{'--cl-color-accent'}: $color-ci-eggshell;
245
243
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
246
244
  #{'--cl-color-link'}: $color-ci-eggshell;
247
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
245
+ #{'--cl-color-focus'}: $color-ci-eggshell;
248
246
  }
249
247
 
250
248
  %cl-color-transparent {
@@ -255,7 +253,7 @@ $bar-ui-width: px(4);
255
253
  #{'--cl-color-accent'}: $color-ci-eggshell;
256
254
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
257
255
  #{'--cl-color-link'}: $color-ci-eggshell;
258
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
256
+ #{'--cl-color-focus'}: $color-ci-eggshell;
259
257
  }
260
258
 
261
259
  %cl-color-disabled {
@@ -266,7 +264,7 @@ $bar-ui-width: px(4);
266
264
  #{'--cl-color-accent'}: $color-disabled;
267
265
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
268
266
  #{'--cl-color-link'}: $color-disabled;
269
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
267
+ #{'--cl-color-focus'}: $color-ci-eggshell;
270
268
  }
271
269
 
272
270
  %cl-color-faded {
@@ -277,7 +275,7 @@ $bar-ui-width: px(4);
277
275
  #{'--cl-color-accent'}: $color-ci-ash;
278
276
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
279
277
  #{'--cl-color-link'}: $color-ci-ash;
280
- #{'--cl-color-focus'}: rgba($color-ci-ash, 0.5);
278
+ #{'--cl-color-focus'}: $color-ci-ash;
281
279
  }
282
280
 
283
281
  %cl-color-none {
@@ -285,7 +283,7 @@ $bar-ui-width: px(4);
285
283
  #{'--cl-color-border'}: transparent;
286
284
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
287
285
  #{'--cl-color-link'}: $color-ci-eggshell;
288
- #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
286
+ #{'--cl-color-focus'}: $color-ci-eggshell;
289
287
  }
290
288
 
291
289
  // ----------------------------------------------
@@ -14,7 +14,6 @@ $spacing-large: px(32);
14
14
  $spacing-huge: px(48);
15
15
 
16
16
  $header-nav-height: px(40);
17
- $header-headline-height: px(80);
18
17
 
19
18
  @mixin spacing-before-auto($value) {
20
19
  margin-bottom: 0;
@@ -33,3 +33,10 @@
33
33
  #{$property}: $new-value;
34
34
  }
35
35
  }
36
+
37
+ @mixin no-focus {
38
+ &:focus {
39
+ box-shadow: none;
40
+ outline: none;
41
+ }
42
+ }
@@ -10,7 +10,7 @@
10
10
  display: inline-block;
11
11
  font-size: px(18);
12
12
  font-weight: 700; // repeat as @include overrides
13
- line-height: 1em; // repeat as @include overrides
13
+ line-height: 1; // repeat as @include overrides
14
14
  opacity: 1;
15
15
  overflow: hidden;
16
16
  padding: typography-sans-baselineshift($spacing-tiny, px(18)) $spacing-large
@@ -52,8 +52,8 @@
52
52
  }
53
53
 
54
54
  // our focus (tab'ed) buttons look the same but are outlined
55
- .btn-check:focus + &,
56
- &:focus {
55
+ .btn-check:focus-visible + &,
56
+ &:focus-visible {
57
57
  background-color: var(--cl-color-background);
58
58
  border-color: var(--cl-color-border);
59
59
  color: var(--cl-color-text);
@@ -75,15 +75,14 @@
75
75
  }
76
76
  }
77
77
 
78
- &:active,
79
- &:active:focus {
78
+ &:active {
80
79
  outline: 0 !important;
81
80
  }
82
81
  }
83
82
 
84
83
  @mixin cl-button-focus-outline() {
85
- .btn-check:focus + &,
86
- &:focus {
84
+ .btn-check:focus-visible + &,
85
+ &:focus-visible {
87
86
  @include cl-color-focus-outline;
88
87
 
89
88
  box-shadow: none;
@@ -6,7 +6,7 @@
6
6
  // This file defines form/input field variables
7
7
 
8
8
  $form-field-fontsize: px(16);
9
- $form-field-line-height: px(22);
9
+ $form-field-line-height: 1.375;
10
10
  $form-field-min-height: px(36);
11
11
  $form-field-border-color: $color-ci-ash;
12
12
  $form-field-border: $brand-line-width solid $form-field-border-color;
@@ -48,17 +48,17 @@ $form-spacing-label-input: px(2);
48
48
  }
49
49
 
50
50
  @mixin cl-form-focus-embed {
51
- @include cl-button-focus-outline; // additional inner outline
52
-
53
- border-color: $color-focus !important;
51
+ border-color: $color-ci-berry !important;
54
52
  box-shadow: none;
55
- color: $color-focus;
53
+ box-shadow: 0 0 0 1px $color-ci-berry inset;
54
+ color: var(--cl-color-text);
55
+ outline: none;
56
56
  }
57
57
 
58
58
  @mixin cl-form-focus {
59
- &:focus,
60
- &:focus:first-child,
61
- &:focus:last-child {
59
+ &:focus-visible,
60
+ &:focus-visible:first-child,
61
+ &:focus-visible:last-child {
62
62
  @include cl-form-focus-embed;
63
63
  }
64
64
  }
@@ -173,7 +173,7 @@ main {
173
173
  }
174
174
 
175
175
  @mixin spacing-box-x($spacing) {
176
- line-height: 1em;
176
+ line-height: 1;
177
177
 
178
178
  > *,
179
179
  > *:first-child {
@@ -280,6 +280,6 @@ hr {
280
280
  // --- text select -------------------------------------------------------------
281
281
 
282
282
  ::selection {
283
- background: $color-ci-night;
283
+ background: $color-ci-berry;
284
284
  color: $color-ci-white;
285
285
  }
@@ -49,7 +49,7 @@ $typography-monospace-line-height: 1.375;
49
49
  $font-family: $typography-sans-font-list,
50
50
  $font-weight: 400,
51
51
  $font-size: 1em,
52
- $line-height: 1.5em,
52
+ $line-height: 1.5,
53
53
  $letter-spacing: 0,
54
54
  $font-stretch: 100%,
55
55
  $word-spacing: 0,
@@ -117,7 +117,7 @@ $typography-monospace-line-height: 1.375;
117
117
  text-decoration: underline;
118
118
  vertical-align: inherit;
119
119
 
120
- &:focus {
120
+ &:focus-visible {
121
121
  color: var(--cl-color-link);
122
122
  }
123
123
 
@@ -125,6 +125,11 @@ $typography-monospace-line-height: 1.375;
125
125
  color: var(--cl-color-hover);
126
126
  opacity: inherit;
127
127
  }
128
+
129
+ &:active {
130
+ background-color: transparent;
131
+ color: var(--cl-color-hover);
132
+ }
128
133
  }
129
134
 
130
135
  %cl-a {
@@ -154,7 +159,7 @@ $typography-monospace-line-height: 1.375;
154
159
  font-size: 14px;
155
160
  font-weight: 500;
156
161
  letter-spacing: 0.025em;
157
- line-height: 1.5em; // for underline spacing
162
+ line-height: 1.5; // for underline spacing
158
163
  margin-top: 0;
159
164
  padding-left: 0;
160
165
  padding-right: 0;
@@ -452,6 +457,16 @@ $typography-responsive-scale: 0.8;
452
457
  line-height: $typography-monospace-line-height;
453
458
  }
454
459
 
460
+ %cl-p-pre-box {
461
+ @extend %cl-p-pre;
462
+ border-radius: $brand-border-radius;
463
+ border: $brand-line-width solid var(--cl-color-text);
464
+ font-size: px(16);
465
+ line-height: 1;
466
+ margin-top: $spacing-small;
467
+ padding: $spacing-small;
468
+ }
469
+
455
470
  %cl-p-tag {
456
471
  @extend %cl-p-label;
457
472