@castlabs/ui 6.0.3 → 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 +12 -6
  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
@@ -8,8 +8,9 @@
8
8
  .cl-wizard-steps {
9
9
  $wizard-li-spacing: $spacing-small;
10
10
  $wizard-offset-indicator: -1em;
11
- $wizard-color-done: $color-ci-blue;
12
- $wizard-color-todo: $color-ci-silver;
11
+ $wizard-color-done: $color-ci-night;
12
+ $wizard-color-active: $color-ci-red;
13
+ $wizard-color-todo: $color-ci-night;
13
14
 
14
15
  display: flex;
15
16
  flex-direction: row;
@@ -21,11 +22,11 @@
21
22
  }
22
23
 
23
24
  li {
24
- @extend %p-small;
25
+ @extend %cl-p-small;
25
26
 
26
27
  color: $color-text;
27
28
  display: inline-block;
28
- font-weight: 600;
29
+ font-weight: 700;
29
30
  margin: 0 $wizard-li-spacing;
30
31
  position: relative;
31
32
 
@@ -36,7 +37,7 @@
36
37
  background: linear-gradient(90deg, $wizard-color-done 50%, $wizard-color-done 50%);
37
38
  content: '';
38
39
  display: inline-block;
39
- height: $typography-line-width;
40
+ height: $brand-line-width;
40
41
  left: -$wizard-li-spacing;
41
42
  position: absolute;
42
43
  top: $wizard-offset-indicator;
@@ -58,7 +59,7 @@
58
59
  &::after {
59
60
  // dot
60
61
  background-color: $wizard-color-done;
61
- border: $typography-line-width solid $wizard-color-done;
62
+ border: $brand-line-width solid $wizard-color-done;
62
63
  border-radius: 100%;
63
64
  content: '';
64
65
  display: inline-block;
@@ -70,7 +71,7 @@
70
71
  }
71
72
 
72
73
  &.active {
73
- color: $wizard-color-done;
74
+ color: $wizard-color-active;
74
75
 
75
76
  &::before {
76
77
  background: linear-gradient(90deg, $wizard-color-done 50%, $wizard-color-todo 50%);
@@ -87,7 +88,8 @@
87
88
  }
88
89
 
89
90
  &::after {
90
- background-color: $color-ci-white;
91
+ background-color: $wizard-color-active;
92
+ border-color: $wizard-color-active;
91
93
  }
92
94
 
93
95
  + *,
@@ -107,7 +109,7 @@
107
109
  }
108
110
 
109
111
  &::after {
110
- background-color: $color-ci-white;
112
+ background-color: $color-ci-eggshell;
111
113
  border-color: $wizard-color-todo;
112
114
  }
113
115
  }
@@ -129,7 +131,7 @@
129
131
  height: calc(100% + $spacing-tiny * 2);
130
132
  left: -1.3em;
131
133
  top: unset;
132
- width: $typography-line-width;
134
+ width: $brand-line-width;
133
135
  }
134
136
 
135
137
  &:first-child::before {
@@ -137,7 +139,7 @@
137
139
  height: calc(50% + $spacing-tiny);
138
140
  left: -1.3em;
139
141
  top: unset;
140
- width: $typography-line-width;
142
+ width: $brand-line-width;
141
143
  }
142
144
 
143
145
  &:last-child::before {
@@ -145,7 +147,7 @@
145
147
  height: calc(50% + $spacing-tiny);
146
148
  left: -1.3em;
147
149
  top: unset;
148
- width: $typography-line-width;
150
+ width: $brand-line-width;
149
151
  }
150
152
 
151
153
  &::after {
@@ -8,8 +8,8 @@
8
8
 
9
9
  [invalid],
10
10
  .invalid {
11
- border-color: $color-ci-blue;
12
- color: $color-ci-blue;
11
+ border-color: $color-attention;
12
+ // color: $color-attention;
13
13
 
14
14
  + * + .invalid-feedback,
15
15
  + .invalid-feedback {
@@ -26,13 +26,13 @@
26
26
 
27
27
  .form-label.disabled,
28
28
  .valid-feedback.disabled {
29
- color: $color-ci-silver;
29
+ color: $color-disabled;
30
30
  }
31
31
 
32
32
  textarea[disabled],
33
33
  input[disabled],
34
34
  select[disabled] {
35
- color: $form-color-disabled;
35
+ color: $color-disabled;
36
36
  cursor: not-allowed;
37
37
  }
38
38
 
@@ -7,6 +7,8 @@
7
7
 
8
8
  @import 'bootstrap/scss/forms/form-check';
9
9
 
10
+ $form-check-background: $color-ci-eggshell;
11
+
10
12
  .form-check {
11
13
  margin-top: $spacing-small;
12
14
  padding-left: $spacing-medium;
@@ -15,6 +17,10 @@
15
17
  margin-top: $spacing-tiny + $spacing-micro;
16
18
  }
17
19
 
20
+ .form-check-label {
21
+ padding-top: px(1);
22
+ }
23
+
18
24
  .form-check-input {
19
25
  margin-left: -$spacing-medium;
20
26
  margin-right: $spacing-micro;
@@ -22,27 +28,24 @@
22
28
 
23
29
  &[type='checkbox'] {
24
30
  border: $form-field-border;
25
- border-radius: 0;
31
+ border-radius: px(4);
26
32
 
27
33
  &:checked {
28
- background-color: $color-ci-dim;
34
+ background-color: $color-selected;
29
35
  border: 0;
30
36
  }
31
37
 
32
38
  &:indeterminate {
33
- background-color: transparent;
39
+ background-color: $color-selected;
34
40
  background-image: none;
35
- border-color: $color-ci-dim;
36
- box-shadow:
37
- 0 0 0 0.15em $color-white-100 inset,
38
- 0 0 0 1em $color-ci-dim inset;
41
+ border-color: $color-selected;
42
+ box-shadow: 0 0 0 px(2) $form-check-background inset !important;
39
43
 
40
44
  &:disabled,
41
45
  &.disabled {
42
- border-color: $color-ci-smoke;
43
- box-shadow:
44
- 0 0 0 0.15em $color-white-100 inset,
45
- 0 0 0 1em $form-field-border-color inset;
46
+ background-color: $color-disabled;
47
+ border-color: $color-disabled;
48
+ box-shadow: 0 0 0 px(2) $form-check-background inset !important;
46
49
  }
47
50
  }
48
51
  }
@@ -51,38 +54,40 @@
51
54
  border: $form-field-border;
52
55
 
53
56
  &:checked {
54
- background-color: $color-ci-dim;
55
- border-color: $color-ci-dim;
57
+ background-color: $color-selected;
58
+ background-image: none; // remove BS dot
59
+ border-color: $color-selected;
56
60
 
57
61
  &.disabled,
58
62
  &:disabled {
59
- border-color: $color-ci-smoke;
63
+ border-color: $color-disabled;
60
64
  }
61
65
  }
62
66
  }
63
67
 
64
68
  &:focus {
65
- @include focus-glow-embed($color-ci-dim);
69
+ @include cl-color-focus-outline($color-selected, 2px);
66
70
  }
67
71
 
68
72
  &.disabled,
69
73
  &:disabled {
70
- background-color: $color-ci-haze;
74
+ background-color: $form-check-background;
75
+ border-color: $color-disabled;
71
76
  opacity: 1;
72
77
 
73
78
  &:checked {
74
- background-color: $form-field-border-color;
79
+ background-color: $color-disabled;
75
80
  }
76
81
 
77
82
  ~ .form-check-label {
78
- color: $form-color-disabled;
83
+ color: $color-disabled;
79
84
  opacity: 1;
80
85
  }
81
86
  }
82
87
  }
83
88
 
84
89
  label {
85
- @extend %p-medium; // looks like regular text
90
+ @extend %cl-p-medium; // looks like regular text
86
91
 
87
92
  letter-spacing: 0;
88
93
  margin-top: 0;
@@ -90,7 +95,7 @@
90
95
  }
91
96
 
92
97
  .form-label + & {
93
- margin-top: $spacing-tiny;
98
+ margin-top: $form-spacing-label-input;
94
99
  }
95
100
 
96
101
  + .form-check {
@@ -8,9 +8,9 @@
8
8
  .cl-form {
9
9
  [type='file'] {
10
10
  @extend %form-field-box;
11
- @extend %form-field-typography;
11
+ @extend %form-field-typography-sans;
12
12
 
13
- @include form-focus-border($color-ci-silver);
13
+ @include form-focus;
14
14
 
15
15
  &.cl-file {
16
16
  border: 0;
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  &:focus + .cl-file-companion {
25
- @include form-focus-border-embed($color-ci-silver);
25
+ @include form-focus-embed();
26
26
  }
27
27
 
28
28
  &[invalid]:focus + .cl-file-companion,
@@ -31,13 +31,13 @@
31
31
  }
32
32
 
33
33
  .form-label + & {
34
- @extend %spacing-micro;
34
+ margin-top: $form-spacing-label-input;
35
35
  }
36
36
 
37
37
  &[invalid] + .cl-file-companion,
38
38
  &.invalid + .cl-file-companion {
39
- border-color: $color-ci-blue;
40
- color: $color-ci-blue;
39
+ border-color: $color-attention;
40
+ color: $color-attention;
41
41
 
42
42
  + * + .invalid-feedback,
43
43
  + .invalid-feedback {
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  &[disabled] + .cl-file-companion {
54
- color: $form-color-disabled;
54
+ color: $color-disabled;
55
55
  cursor: not-allowed;
56
56
  }
57
57
  }
@@ -59,13 +59,11 @@
59
59
  .cl-file-companion {
60
60
  @extend %spacing-micro;
61
61
  @extend %form-field-box;
62
- @extend %form-field-typography;
62
+ @extend %form-field-typography-sans;
63
63
 
64
- @include form-focus-border($color-ci-silver);
64
+ @include form-focus;
65
65
 
66
- & {
67
- letter-spacing: 0;
68
- text-transform: none;
69
- }
66
+ letter-spacing: 0;
67
+ text-transform: none;
70
68
  }
71
69
  }
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  > .btn + :not(.btn) {
22
- border-left-width: $form-field-border-width !important; // sass-lint:disable-line no-important
22
+ border-left-width: $brand-line-width !important; // sass-lint:disable-line no-important
23
23
  }
24
24
 
25
25
  > * {
@@ -37,12 +37,12 @@
37
37
 
38
38
  &:focus,
39
39
  &.invalid:focus {
40
- box-shadow: -$form-field-border-width 0 0 $color-ci-silver !important; // sass-lint:disable-line no-important
40
+ box-shadow: -$brand-line-width 0 0 $color-focus !important; // sass-lint:disable-line no-important
41
41
  }
42
42
  }
43
43
 
44
44
  &.invalid {
45
- box-shadow: -$form-field-border-width 0 0 $color-ci-blue !important; // sass-lint:disable-line no-important
45
+ box-shadow: -$brand-line-width 0 0 $color-attention !important; // sass-lint:disable-line no-important
46
46
  }
47
47
  }
48
48
  }
@@ -56,10 +56,44 @@
56
56
  @extend %form-field-box;
57
57
  @extend %form-field-typography-monospace;
58
58
 
59
- background-color: $color-ci-haze;
59
+ background-color: $color-ci-clay;
60
60
  height: 100%;
61
61
  white-space: nowrap;
62
62
  width: auto;
63
63
  }
64
+
65
+ // --- un-round left sides ------------------------------------------------------
66
+ .input-group-text .form-control {
67
+ border-bottom-left-radius: $brand-border-radius;
68
+ border-top-left-radius: $brand-border-radius;
69
+ }
70
+
71
+ .input-group-text + .form-control,
72
+ .form-control + .form-control,
73
+ .form-control + p + .form-control,
74
+ .form-control + p + p + .form-control {
75
+ border-bottom-left-radius: 0;
76
+ border-top-left-radius: 0;
77
+ }
78
+
79
+ // --- un-round right sides ------------------------------------------------------
80
+ .input-group-text:first-child,
81
+ .form-control:first-child {
82
+ border-bottom-right-radius: 0;
83
+ border-top-right-radius: 0;
84
+ }
85
+
86
+ .form-control + .form-control,
87
+ .form-control + p + .form-control,
88
+ .form-control + p + p + .form-control {
89
+ border-bottom-right-radius: 0;
90
+ border-top-right-radius: 0;
91
+ }
92
+
93
+ > .cl-last-child,
94
+ > :last-child {
95
+ border-bottom-right-radius: $brand-border-radius !important;
96
+ border-top-right-radius: $brand-border-radius !important;
97
+ }
64
98
  }
65
99
  }
@@ -11,11 +11,11 @@
11
11
  display: inline-block;
12
12
 
13
13
  .form-label + & {
14
- margin-top: $spacing-micro;
14
+ margin-top: $form-spacing-label-input;
15
15
  }
16
16
 
17
17
  &.cl-field-sans {
18
- @extend %form-field-typography;
18
+ @extend %form-field-typography-sans;
19
19
  }
20
20
 
21
21
  &.cl-field-monospace {
@@ -34,9 +34,9 @@
34
34
  [type='time'],
35
35
  [type='datetime-local'] {
36
36
  @extend %form-field-box;
37
- @extend %form-field-typography;
37
+ @extend %form-field-typography-monospace;
38
38
 
39
- @include form-focus-border($color-ci-silver);
39
+ @include form-focus;
40
40
 
41
41
  &.form-control-plaintext {
42
42
  background-color: transparent;
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  &.cl-field-sans {
47
- @extend %form-field-typography;
47
+ @extend %form-field-typography-sans;
48
48
  }
49
49
 
50
50
  &.cl-field-monospace {
@@ -52,11 +52,15 @@
52
52
  }
53
53
 
54
54
  &::placeholder {
55
- color: $color-ci-smoke;
55
+ color: $color-ci-clay;
56
56
  opacity: 1;
57
57
  }
58
58
  }
59
59
 
60
+ textarea {
61
+ border-bottom-right-radius: px(5);
62
+ }
63
+
60
64
  [type='number'] {
61
65
  appearance: textfield;
62
66
 
@@ -74,14 +78,14 @@
74
78
  }
75
79
 
76
80
  [type='range'] {
77
- $color-bullet: $color-ci-dim;
78
- $color-bullet-focus: $color-ci-blue;
81
+ $color-bullet: $color-ci-night;
82
+ $color-bullet-focus: $color-ci-berry;
79
83
 
80
84
  appearance: none;
81
- background: $color-ci-smoke;
82
- border-radius: $border-ui-radius;
85
+ background: $color-ci-clay;
86
+ border-radius: $brand-border-radius;
83
87
  height: $spacing-tiny;
84
- outline: none;
88
+ outline: 0;
85
89
  position: relative;
86
90
  top: px(-2);
87
91
  width: 100%;
@@ -14,13 +14,14 @@
14
14
 
15
15
  .form-select {
16
16
  @extend %form-field-box;
17
- @extend %form-field-typography;
17
+ @extend %form-field-typography-monospace;
18
18
 
19
- @include form-focus-border($color-ci-silver);
19
+ @include form-focus;
20
20
 
21
- & {
22
- border-radius: 0;
23
- display: block;
21
+ display: block;
22
+
23
+ &.cl-field-sans {
24
+ @extend %form-field-typography-sans;
24
25
  }
25
26
 
26
27
  &.cl-field-monospace {
@@ -10,7 +10,7 @@
10
10
  padding-bottom: $spacing-micro;
11
11
 
12
12
  legend {
13
- @extend %p-form-label;
13
+ @extend %cl-p-form-label;
14
14
  }
15
15
 
16
16
  &:disabled,
@@ -30,7 +30,7 @@
30
30
  textarea,
31
31
  select {
32
32
  @extend %form-field-box;
33
- @extend %form-field-typography;
33
+ @extend %form-field-typography-sans;
34
34
 
35
35
  cursor: not-allowed;
36
36
  }
@@ -34,16 +34,14 @@
34
34
  }
35
35
 
36
36
  .form-label {
37
- @extend %p-form-label;
37
+ @extend %cl-p-form-label;
38
38
 
39
39
  .required {
40
- color: $color-attention;
41
- font-weight: 800;
42
40
  margin-left: $spacing-micro;
43
41
  }
44
42
 
45
43
  + * {
46
- margin-top: $spacing-micro;
44
+ margin-top: $form-spacing-label-input;
47
45
  }
48
46
  }
49
47
 
@@ -53,7 +51,7 @@
53
51
 
54
52
  .valid-feedback,
55
53
  .invalid-feedback {
56
- @extend %p-small;
54
+ @extend %cl-p-small;
57
55
 
58
56
  margin-left: $form-info-indent;
59
57
  margin-top: $spacing-micro;
@@ -70,17 +68,17 @@
70
68
  }
71
69
 
72
70
  .invalid-feedback {
73
- color: $color-ci-blue;
71
+ // color: $color-attention;
74
72
  display: none;
75
73
 
76
74
  &::before {
77
- color: $color-ci-blue;
75
+ color: $color-attention;
78
76
  content: '\f057';
79
77
  }
80
78
  }
81
79
 
82
80
  .valid-feedback.valid-feedback-none {
83
- min-height: 1.5em; // line-height of %p-small
81
+ min-height: 1.5em; // line-height of %cl-p-small
84
82
 
85
83
  &::before {
86
84
  display: none;
@@ -6,18 +6,23 @@
6
6
  // This file adds & customizes bootstrap's modals.
7
7
 
8
8
  .modal {
9
+ @extend %cl-color-eggshell;
9
10
  @include spacing-before(0);
10
11
 
11
- & {
12
- background-color: $color-black-50a;
13
- display: none;
14
- height: 100vh;
15
- left: 0;
16
- padding: 2rem 0;
17
- position: fixed;
18
- top: 0;
19
- width: 100%;
20
- z-index: $layer-z-modal;
12
+ background-color: $color-ci-backdrop;
13
+ display: none;
14
+ height: 100vh;
15
+ left: 0;
16
+ padding: 2rem 0;
17
+ position: fixed;
18
+ top: 0;
19
+ width: 100%;
20
+ z-index: $layer-z-modal;
21
+
22
+ a {
23
+ @include typography-link(var(--cl-color-link), $color-ci-ash);
24
+
25
+ display: inline-block;
21
26
  }
22
27
 
23
28
  &.shown {
@@ -61,25 +66,38 @@
61
66
  }
62
67
 
63
68
  &-content {
64
- border-radius: $border-radius;
69
+ background-color: var(--cl-color-background);
70
+ border: 0;
71
+ border-radius: $brand-border-radius;
65
72
  box-shadow: 0 0 4rem $color-black-50a;
73
+ color: var(--cl-color-text);
66
74
  display: flex;
67
75
  flex-direction: column;
68
76
  justify-content: space-between;
69
77
  max-height: calc(100vh - 4rem);
78
+ position: relative;
79
+ }
80
+
81
+ &-header,
82
+ &-body,
83
+ &-footer {
84
+ padding: $card-spacing;
85
+ }
86
+
87
+ &-header + &-body,
88
+ &-header + &-footer,
89
+ &-body + &-body,
90
+ &-body + &-footer {
91
+ border-top: 0;
92
+ padding-top: 0;
70
93
  }
71
94
 
72
95
  &-header {
73
- @extend %h3;
96
+ @extend %cl-h3;
74
97
 
75
98
  align-items: center;
76
- background-color: $color-ci-blue;
77
- border-top-left-radius: $border-radius;
78
- border-top-right-radius: $border-radius;
79
- color: $color-ci-white;
80
99
  display: flex;
81
100
  justify-content: space-between;
82
- padding: $spacing-small * 0.75 $spacing-medium;
83
101
 
84
102
  h1,
85
103
  .cl-h1,
@@ -90,11 +108,18 @@
90
108
  color: inherit;
91
109
  }
92
110
 
93
- .modal-help {
94
- @include typography-links(rgba($color-ci-white, 0.5), $color-ci-white, 0);
111
+ .modal-help,
112
+ .cl-modal-help {
113
+ @include typography-link(var(--cl-color-text), $color-ci-ash);
114
+
115
+ display: inline-block;
116
+ line-height: 1;
117
+ position: absolute;
118
+ right: $card-spacing;
119
+ top: $spacing-medium;
95
120
 
96
- & {
97
- font-size: 1.5em;
121
+ > * {
122
+ margin-left: $spacing-tiny;
98
123
  }
99
124
  }
100
125
  }
@@ -102,11 +127,7 @@
102
127
  &-body {
103
128
  @include spacing-before(0);
104
129
 
105
- & {
106
- background-color: $color-ci-haze;
107
- overflow-y: auto;
108
- padding: $spacing-small $spacing-medium;
109
- }
130
+ overflow-y: auto;
110
131
 
111
132
  > *:first-child {
112
133
  margin-top: 0;
@@ -116,15 +137,9 @@
116
137
  &-footer {
117
138
  @include spacing-before(0);
118
139
 
119
- & {
120
- background-color: $color-ci-haze;
121
- border-bottom-left-radius: $border-radius;
122
- border-bottom-right-radius: $border-radius;
123
- flex-direction: row;
124
- justify-content: space-between;
125
- padding: $spacing-small $spacing-medium $spacing-medium;
126
- text-align: center;
127
- }
140
+ flex-direction: row;
141
+ justify-content: space-between;
142
+ text-align: center;
128
143
 
129
144
  @include media-breakpoint-up(sm) {
130
145
  // buttons below each other on phones