@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
@@ -5,8 +5,20 @@
5
5
 
6
6
  // This file defines our basic typography rules.
7
7
 
8
- $typography-font-list-sans:
9
- 'Open Sans',
8
+ // h1 (deco): 100
9
+ // h2 48
10
+ // h3 40
11
+ // h4 32
12
+ // body xl: 32 700
13
+ // body lg: 24 700
14
+ // body md: 20 400/700
15
+ // body sm: 14 400/700
16
+ // button: 18 700
17
+ // navigation: 16 400/700
18
+
19
+ $typography-sans-font-list:
20
+ 'NonNaturalGroteskInktrap',
21
+ arial,
10
22
  -apple-system,
11
23
  blinkmacsystemfont,
12
24
  'Segoe UI',
@@ -17,30 +29,30 @@ $typography-font-list-sans:
17
29
  'Apple Color Emoji',
18
30
  'Segoe UI Emoji',
19
31
  'Segoe UI Symbol';
32
+ $typography-sans-line-height: 1.4;
20
33
 
21
- $typography-font-list-monospace:
22
- 'Noto Sans Mono',
23
- /* 'Fira Code',*/ sfmono-regular,
24
- menlo,
25
- monaco,
26
- consolas,
27
- 'Liberation Mono',
28
- 'Courier New',
29
- monospace;
30
-
31
- $typography-line-width: 2px;
32
- $typography-font-weight-base: 400;
33
- $typography-font-weight-bold: $typography-font-weight-base + 300;
34
+ $typography-monospace-font-list:
35
+ 'DM Mono', sfmono-regular, menlo, monaco, consolas, 'Liberation Mono', 'Courier New', monospace;
36
+ $typography-monospace-line-height: 1.375;
34
37
 
35
38
  // --- helpers -----------------------------------------------------------------
36
39
 
40
+ @function typography-sans-baselineshift($value, $base) {
41
+ @return $value;
42
+ }
43
+
44
+ @function typography-sans-baselineunshift($value, $base) {
45
+ @return $value;
46
+ }
47
+
37
48
  @mixin typography-font(
38
- $font-family: $typography-font-list-sans,
39
- $font-weight: $typography-font-weight-base,
49
+ $font-family: $typography-sans-font-list,
50
+ $font-weight: 400,
40
51
  $font-size: 1em,
41
52
  $line-height: 1.5em,
42
53
  $letter-spacing: 0,
43
54
  $font-stretch: 100%,
55
+ $word-spacing: 0,
44
56
  $force: false
45
57
  ) {
46
58
  @if $force {
@@ -51,74 +63,45 @@ $typography-font-weight-bold: $typography-font-weight-base + 300;
51
63
  font-weight: $font-weight;
52
64
  letter-spacing: $letter-spacing;
53
65
  line-height: $line-height;
66
+ word-spacing: $word-spacing;
54
67
  } @else {
55
- @include set-property-if-not(font-family, $typography-font-list-sans, $font-family);
56
68
  @include set-property-if-not(font-size, 1em, $font-size);
57
69
  @include set-property-if-not(letter-spacing, 0, $letter-spacing);
58
70
  @include set-property-if-not(font-stretch, 100%, $font-stretch);
71
+ @include set-property-if-not(word-spacing, 0, $word-spacing);
59
72
 
73
+ font-family: $font-family;
60
74
  font-weight: $font-weight;
61
75
  line-height: $line-height;
62
76
  }
63
77
  }
64
78
 
65
- $typography-links-underline-offset: px(3);
66
-
67
- /// Setup links (anchors). Fancy with color, opacity and colorful underlines!
68
- ///
69
- /// @example scss
70
- /// @include a-underlined(#333, rgba(#333, 0.7), 2px, #555, rgba(#555, 0.7));
71
- ///
72
- /// @param {color} $color [inherit] The text color.
73
- /// @param {color} $color-hover [$color] The text color when hovering.
74
- /// @param {length} $underline-height [1px] The height / thickness of the underline.
75
- /// @param {color} $underline-color [$color] The regular color of the underline.
76
- /// @param {color} $underline-color-hover [$color] The hover color fo the underline.
77
- /// @output An `a {}` rules block for fancy links.
78
- @mixin typography-links(
79
- $color: inherit,
80
- $color-hover: $color,
81
- $underline-height: 1px,
82
- $underline-color: $color,
83
- $underline-color-hover: $color
84
- ) {
85
- $gradient-transparent: linear-gradient(transparent, transparent);
86
-
87
- @include color-focus-outline($color, 1px);
88
-
89
- & {
90
- // https://sass-lang.com/d/mixed-decls
91
- background-image:
92
- $gradient-transparent, $gradient-transparent,
93
- linear-gradient(to right, $underline-color, $underline-color);
94
- background-position: left bottom $typography-links-underline-offset; // depends on underline
95
- background-repeat: no-repeat;
96
- background-size: 100% $underline-height;
97
- color: $color;
98
- display: inline;
99
- padding-bottom: $typography-links-underline-offset;
79
+ @mixin typography-link($color: inherit, $color-hover: $color, $underline: 1) {
80
+ color: $color;
81
+ display: inline;
82
+
83
+ @if $underline <= 0 {
100
84
  text-decoration: none;
101
85
  }
102
86
 
103
87
  &:hover {
104
- background-image:
105
- $gradient-transparent, $gradient-transparent,
106
- linear-gradient(to right, $underline-color-hover, $underline-color-hover);
107
88
  color: $color-hover;
108
89
  cursor: pointer;
109
- text-decoration: none;
110
90
  }
111
91
  }
112
92
 
113
- @mixin typography-links-invisible {
114
- @include typography-links(inherit, inherit, 0);
115
- @include color-focus-outline($color-text, 1px);
93
+ @mixin typography-link-invisible {
94
+ @include typography-link(inherit, inherit, 0);
95
+ @include cl-color-focus-outline($color-text, 1px);
116
96
  }
117
97
 
118
98
  @mixin cl-btn-a($line-height-px) {
119
99
  // button styled as regular link
120
- @extend %cl-a-default;
100
+ @extend %cl-a;
121
101
 
102
+ background-position: left bottom 0.25em; // depends on underline
103
+ background-repeat: no-repeat;
104
+ background-size: 100% 1px;
122
105
  border: 0;
123
106
  border-radius: 0;
124
107
  cursor: pointer;
@@ -129,50 +112,36 @@ $typography-links-underline-offset: px(3);
129
112
  min-width: inherit;
130
113
  outline: inherit;
131
114
  outline-offset: -2px;
132
- padding: 0 0 $typography-links-underline-offset;
115
+ padding: 0;
133
116
  text-align: inherit;
117
+ text-decoration: underline;
134
118
  vertical-align: inherit;
135
119
 
136
- &:hover {
137
- $gradient-transparent: linear-gradient(transparent, transparent);
120
+ &:focus {
121
+ color: var(--cl-color-link);
122
+ }
138
123
 
139
- background-image:
140
- $gradient-transparent, $gradient-transparent,
141
- linear-gradient(to right, $color-ci-silver, $color-ci-silver);
142
- color: inherit;
124
+ &:hover {
125
+ color: var(--cl-color-hover);
143
126
  opacity: inherit;
144
- text-decoration: inherit;
145
127
  }
146
128
  }
147
129
 
148
- %cl-a-default {
149
- @include typography-links(
150
- $color-text,
151
- $color-text,
152
- 2px,
153
- rgba($color-ci-silver, 0.35),
154
- $color-ci-silver
155
- );
156
- }
157
-
158
- %cl-a-primary {
159
- @include typography-links($color-text, $color-text, 2px, $color-ci-red, $color-ci-silver);
160
- }
161
-
162
- %cl-a-secondary {
163
- @include typography-links($color-text, $color-text, 2px, $color-ci-blue, $color-ci-silver);
130
+ %cl-a {
131
+ @include typography-link(var(--cl-color-link), $color-ci-red);
132
+ @include cl-color-focus-outline(var(--cl-color-link), 1px);
164
133
  }
165
134
 
166
135
  %cl-a-text {
167
- @include typography-links($color-text, $color-text, 2px, $color-ci-silver, $color-text);
136
+ @include typography-link(var(--cl-color-text), $color-ci-ash);
168
137
  }
169
138
 
170
139
  %cl-a-transparent {
171
- @include typography-links($color-text, $color-text, 2px, transparent, $color-ci-silver);
140
+ @include typography-link(var(--cl-color-text), $color-ci-ash);
172
141
  }
173
142
 
174
143
  %cl-a-none {
175
- @include typography-links($color-text, $color-text, 2px, transparent, transparent);
144
+ @include typography-link(var(--cl-color-text), $color-ci-ash);
176
145
  }
177
146
 
178
147
  %cl-a-btn {
@@ -183,7 +152,7 @@ $typography-links-underline-offset: px(3);
183
152
  border: 0;
184
153
  display: inline-block;
185
154
  font-size: 14px;
186
- font-weight: 600;
155
+ font-weight: 500;
187
156
  letter-spacing: 0.025em;
188
157
  line-height: 1.5em; // for underline spacing
189
158
  margin-top: 0;
@@ -197,170 +166,314 @@ $typography-links-underline-offset: px(3);
197
166
  letter-spacing: 0.025em;
198
167
  }
199
168
 
200
- %h1 {
201
- @include typography-font($typography-font-list-sans, 400, px(38), px(52));
202
-
203
- color: $color-ci-night;
169
+ // body md: 20 400/700
170
+ // body sm: 14 400/700
171
+
172
+ $typography-responsive-scale: 0.8;
173
+
174
+ %cl-p-x-large {
175
+ // body xl: 32 700
176
+ @include typography-font(
177
+ $typography-sans-font-list,
178
+ 400,
179
+ px(32),
180
+ px(32 * $typography-sans-line-height),
181
+ 0.01em,
182
+ 100,
183
+ -0.1em
184
+ );
204
185
 
205
- @if mixin-exists('media-breakpoint-only') {
206
- // we might be used without bootstrap
207
- @include media-breakpoint-only(xs) {
208
- @include typography-font($typography-font-list-sans, 400, px(26), 1.3em);
209
- }
186
+ b,
187
+ strong {
188
+ font-weight: 700;
210
189
  }
211
- }
212
190
 
213
- %h2 {
214
- @include typography-font($typography-font-list-sans, 500, px(30), 1.25em);
215
-
216
- color: $color-ci-dusk;
191
+ .cl-btn-a {
192
+ @include cl-btn-a(34);
193
+ }
217
194
 
218
195
  @if mixin-exists('media-breakpoint-only') {
219
196
  // we might be used without bootstrap
220
197
  @include media-breakpoint-only(xs) {
221
- @include typography-font($typography-font-list-sans, 400, px(26), 1.3em);
198
+ @include typography-font(
199
+ $typography-sans-font-list,
200
+ 400,
201
+ px(32 * $typography-responsive-scale),
202
+ px(32 * $typography-responsive-scale * $typography-sans-line-height),
203
+ 0.01em,
204
+ 100,
205
+ -0.1em
206
+ );
222
207
  }
223
208
  }
224
209
  }
225
210
 
226
- %h3 {
227
- @include typography-font($typography-font-list-sans, 600, px(24), 1.25em);
211
+ %cl-p-large {
212
+ // body lg: 24 700
213
+ @include typography-font(
214
+ $typography-sans-font-list,
215
+ 400,
216
+ px(24),
217
+ px(24 * $typography-sans-line-height),
218
+ 0.01em,
219
+ 100,
220
+ -0.1em
221
+ );
228
222
 
229
- color: $color-ci-dusk;
223
+ b,
224
+ strong {
225
+ font-weight: 700;
226
+ }
227
+
228
+ .cl-btn-a {
229
+ @include cl-btn-a(34);
230
+ }
230
231
 
231
232
  @if mixin-exists('media-breakpoint-only') {
232
233
  // we might be used without bootstrap
233
234
  @include media-breakpoint-only(xs) {
234
- @include typography-font($typography-font-list-sans, 300, px(20), 1.25em);
235
+ @include typography-font(
236
+ $typography-sans-font-list,
237
+ 400,
238
+ px(24 * $typography-responsive-scale),
239
+ px(24 * $typography-responsive-scale * $typography-sans-line-height),
240
+ 0.01em,
241
+ 100,
242
+ -0.1em
243
+ );
235
244
  }
236
245
  }
237
246
  }
238
247
 
239
- %h4 {
240
- @include typography-font($typography-font-list-sans, 600, px(22), 1.5em);
248
+ %cl-p-medium {
249
+ // body md: 20 400/700
250
+ @include typography-font(
251
+ $typography-sans-font-list,
252
+ 400,
253
+ px(20),
254
+ px(20 * $typography-sans-line-height),
255
+ 0.01em,
256
+ 100,
257
+ -0.1em
258
+ );
259
+
260
+ b,
261
+ strong {
262
+ font-weight: 700;
263
+ }
241
264
 
242
- color: $color-ci-dusk;
265
+ .cl-btn-a {
266
+ @include cl-btn-a(27);
267
+ }
243
268
 
244
269
  @if mixin-exists('media-breakpoint-only') {
245
270
  // we might be used without bootstrap
246
271
  @include media-breakpoint-only(xs) {
247
- @include typography-font($typography-font-list-sans, 400, px(16), 1.5em);
272
+ @include typography-font(
273
+ $typography-sans-font-list,
274
+ 400,
275
+ px(20 * $typography-responsive-scale),
276
+ px(20 * $typography-responsive-scale * $typography-sans-line-height),
277
+ 0.01em,
278
+ 100,
279
+ -0.1em
280
+ );
248
281
  }
249
282
  }
250
283
  }
251
284
 
252
- %p-large {
253
- @include typography-font($typography-font-list-sans, 300, px(24), px(34));
254
-
255
- color: $color-text;
285
+ %cl-p-small {
286
+ // body sm: 14 400/700
287
+
288
+ @include typography-font(
289
+ $typography-sans-font-list,
290
+ 400,
291
+ px(14),
292
+ px(14 * $typography-sans-line-height),
293
+ 0.01em,
294
+ 100,
295
+ -0.1em
296
+ );
256
297
 
257
298
  b,
258
299
  strong {
259
- font-weight: 500;
300
+ font-weight: 700;
260
301
  }
261
302
 
262
303
  .cl-btn-a {
263
- @include cl-btn-a(34);
304
+ @include cl-btn-a(21);
264
305
  }
265
306
 
266
307
  @if mixin-exists('media-breakpoint-only') {
267
308
  // we might be used without bootstrap
268
309
  @include media-breakpoint-only(xs) {
269
- @include typography-font($typography-font-list-sans, 300, px(20), 1.5em);
310
+ @include typography-font(
311
+ $typography-sans-font-list,
312
+ 400,
313
+ px(14 * $typography-responsive-scale),
314
+ px(14 * $typography-responsive-scale * $typography-sans-line-height),
315
+ 0.01em,
316
+ 100,
317
+ -0.1em
318
+ );
270
319
  }
271
320
  }
272
321
  }
273
322
 
274
- %p-medium {
275
- @include typography-font($typography-font-list-sans, 400, px(18), 1.5em);
276
-
277
- color: $color-text;
278
-
279
- .cl-btn-a {
280
- @include cl-btn-a(27);
281
- }
323
+ %cl-h0 {
324
+ @include typography-font(
325
+ $typography-sans-font-list,
326
+ 700,
327
+ px(100),
328
+ px(100 * $typography-sans-line-height),
329
+ 0.01em,
330
+ 100,
331
+ -0.1em
332
+ );
282
333
 
283
334
  @if mixin-exists('media-breakpoint-only') {
284
335
  // we might be used without bootstrap
285
336
  @include media-breakpoint-only(xs) {
286
- @include typography-font($typography-font-list-sans, 400, px(16), 1.5em);
337
+ @include typography-font(
338
+ $typography-sans-font-list,
339
+ 700,
340
+ px(100 * $typography-responsive-scale),
341
+ px(100 * $typography-responsive-scale * $typography-sans-line-height),
342
+ 0.01em,
343
+ 100,
344
+ -0.1em
345
+ );
287
346
  }
288
347
  }
289
348
  }
290
349
 
291
- %p-small {
292
- @include typography-font($typography-font-list-sans, 400, px(14), 1.5em, 0.02em);
293
-
294
- color: $color-text;
295
-
296
- .cl-btn-a {
297
- @include cl-btn-a(21);
298
- }
350
+ %cl-h1 {
351
+ @include typography-font(
352
+ $typography-sans-font-list,
353
+ 700,
354
+ px(48),
355
+ px(48 * 1.1),
356
+ 0.01em,
357
+ 100,
358
+ -0.1em
359
+ );
299
360
 
300
361
  @if mixin-exists('media-breakpoint-only') {
301
362
  // we might be used without bootstrap
302
363
  @include media-breakpoint-only(xs) {
303
- @include typography-font($typography-font-list-sans, 400, px(12), 1.5em, 0.02em);
364
+ @include typography-font(
365
+ $typography-sans-font-list,
366
+ 700,
367
+ px(48 * $typography-responsive-scale),
368
+ px(48 * $typography-responsive-scale * 1.1),
369
+ 0.01em,
370
+ 100,
371
+ -0.1em
372
+ );
304
373
  }
305
374
  }
306
375
  }
307
376
 
308
- %p-tiny {
309
- @include typography-font($typography-font-list-sans, 700, px(10), 1.2em, 0.1em);
310
-
311
- color: $color-text;
312
- text-transform: uppercase;
377
+ %cl-h2 {
378
+ @include typography-font(
379
+ $typography-sans-font-list,
380
+ 700,
381
+ px(40),
382
+ px(40 * 1.1),
383
+ 0.01em,
384
+ 100,
385
+ -0.1em
386
+ );
313
387
 
314
388
  @if mixin-exists('media-breakpoint-only') {
315
389
  // we might be used without bootstrap
316
390
  @include media-breakpoint-only(xs) {
317
- @include typography-font($typography-font-list-sans, 700, px(8), 1.2em, 0.1em);
391
+ @include typography-font(
392
+ $typography-sans-font-list,
393
+ 700,
394
+ px(40 * $typography-responsive-scale),
395
+ px(40 * $typography-responsive-scale * 1.1),
396
+ 0.01em,
397
+ 100,
398
+ -0.1em
399
+ );
318
400
  }
319
401
  }
320
402
  }
321
403
 
322
- %p-micro {
323
- @include typography-font($typography-font-list-sans, 600, px(8), 1.2em, 0.1em);
404
+ %cl-h3 {
405
+ @include typography-font(
406
+ $typography-sans-font-list,
407
+ 700,
408
+ px(32),
409
+ px(32 * 1.1),
410
+ 0.01em,
411
+ 100,
412
+ -0.1em
413
+ );
324
414
 
325
- color: $color-text;
326
- font-weight: 600;
415
+ @if mixin-exists('media-breakpoint-only') {
416
+ // we might be used without bootstrap
417
+ @include media-breakpoint-only(xs) {
418
+ @include typography-font(
419
+ $typography-sans-font-list,
420
+ 700,
421
+ px(32 * $typography-responsive-scale),
422
+ px(32 * $typography-responsive-scale * 1.1),
423
+ 0.01em,
424
+ 100,
425
+ -0.1em
426
+ );
427
+ }
428
+ }
327
429
  }
328
430
 
329
- %p-nav {
330
- // for nav entries, button labels etc.
331
- @include typography-font($typography-font-list-sans, 600, px(16), 1em, 0.03125em);
431
+ %cl-h4 {
432
+ @extend %cl-p-medium;
332
433
 
333
- color: $color-text;
334
- font-weight: 600;
434
+ font-weight: 700;
335
435
  }
336
436
 
337
- %p-pre {
338
- @include typography-font($typography-font-list-monospace, 400, px(16), 1.5em, 0.025em, 80%);
437
+ %cl-p-nav {
438
+ // for nav entries, button labels etc.
439
+ @extend %cl-p-medium;
339
440
 
340
- background-color: transparent;
341
- color: $color-ci-dim;
342
- font-stretch: 80%;
343
- font-variant-ligatures: none;
441
+ font-size: px(16);
344
442
 
345
443
  @if mixin-exists('media-breakpoint-only') {
346
444
  // we might be used without bootstrap
347
445
  @include media-breakpoint-only(xs) {
348
- @include typography-font($typography-font-list-monospace, 400, px(14), 1.5em, 0.025em, 80%);
446
+ font-size: px(16 * $typography-responsive-scale);
349
447
  }
350
448
  }
351
449
  }
352
450
 
353
- %p-label {
354
- @extend %p-tiny;
451
+ %cl-p-pre {
452
+ background-color: transparent;
453
+ font-family: $typography-monospace-font-list;
454
+ font-variant-ligatures: none;
455
+ font-weight: 400;
456
+ letter-spacing: 0.01em;
457
+ line-height: $typography-monospace-line-height;
458
+ }
459
+
460
+ %cl-p-tag {
461
+ @extend %cl-p-label;
355
462
 
356
- color: $color-ci-blue;
463
+ font-family: $typography-monospace-font-list;
464
+ font-size: px(14);
465
+ font-weight: 500;
466
+ letter-spacing: 0.025em;
357
467
  }
358
468
 
359
- %p-form-label {
360
- @extend %p-medium;
469
+ %cl-p-label {
470
+ @extend %cl-p-small;
471
+
472
+ font-weight: 500;
473
+ letter-spacing: 0.025em;
474
+ }
361
475
 
362
- color: $color-ci-dim;
363
- font-weight: 600;
364
- letter-spacing: normal;
365
- text-transform: none;
476
+ %cl-p-form-label {
477
+ // TODO remove
478
+ @extend %cl-p-label;
366
479
  }
@@ -13,10 +13,13 @@ $castlabs-ui-asset-prefix: '..' !default;
13
13
 
14
14
  @import 'bootstrap/scss/bootstrap-reboot';
15
15
  @import 'bootstrap/scss/helpers/ratio';
16
- @import 'global';
17
16
  @import 'assets/logo';
17
+ @import 'assets/fontawesome';
18
+ @import 'global';
18
19
 
20
+ @import 'layout/app';
19
21
  @import 'layout/animation';
22
+ @import 'layout/color';
20
23
  @import 'layout/grid';
21
24
  @import 'layout/helper';
22
25
  @import 'layout/section';
@@ -85,10 +88,6 @@ $castlabs-ui-asset-prefix: '..' !default;
85
88
 
86
89
  // --- globals -----------------------------------------------------------------
87
90
 
88
- .cl-shadow {
89
- @include color-shadow-3d;
90
- }
91
-
92
91
  .cl-hidden {
93
92
  visibility: hidden;
94
93
  }
@@ -14,7 +14,7 @@ $border-radius-lg: $border-radius;
14
14
 
15
15
  $btn-focus-width: px(2);
16
16
 
17
- $input-btn-focus-color: $color-ci-blue;
17
+ $input-btn-focus-color: $color-ci-sky;
18
18
 
19
19
  $transition-base: all 0.1s ease-in-out;
20
20