@castlabs/ui 4.18.2

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 (140) hide show
  1. package/README.md +94 -0
  2. package/dist/assets/castlabs-logo.svg +2 -0
  3. package/dist/assets/cookie.svg +1 -0
  4. package/dist/castlabs-ui-editor.common.js +23189 -0
  5. package/dist/castlabs-ui-editor.common.js.map +1 -0
  6. package/dist/castlabs-ui-editor.css +1 -0
  7. package/dist/castlabs-ui-editor.umd.js +23208 -0
  8. package/dist/castlabs-ui-editor.umd.js.map +1 -0
  9. package/dist/castlabs-ui-editor.umd.min.js +10 -0
  10. package/dist/castlabs-ui-editor.umd.min.js.map +1 -0
  11. package/dist/castlabs-ui.common.js +6828 -0
  12. package/dist/castlabs-ui.common.js.map +1 -0
  13. package/dist/castlabs-ui.core.js +1031 -0
  14. package/dist/castlabs-ui.css +12 -0
  15. package/dist/castlabs-ui.module.d.ts +83 -0
  16. package/dist/castlabs-ui.module.js +1031 -0
  17. package/dist/castlabs-ui.umd.js +6847 -0
  18. package/dist/castlabs-ui.umd.js.map +1 -0
  19. package/dist/castlabs-ui.umd.min.js +8 -0
  20. package/dist/castlabs-ui.umd.min.js.map +1 -0
  21. package/dist/demo.html +1 -0
  22. package/dist/favicon/192.png +0 -0
  23. package/dist/favicon/512.png +0 -0
  24. package/dist/favicon/apple-touch-icon.png +0 -0
  25. package/dist/favicon/favicon-unread.svg +75 -0
  26. package/dist/favicon/favicon.ico +0 -0
  27. package/dist/favicon/favicon.svg +43 -0
  28. package/dist/favicon/manifest.webmanifest +6 -0
  29. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.f31394d2.woff2 +0 -0
  30. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.00073a59.woff2 +0 -0
  31. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.faa92a75.woff2 +0 -0
  32. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.f8e38fba.woff2 +0 -0
  33. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.f1d5cd16.woff2 +0 -0
  34. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.ebbe259f.woff2 +0 -0
  35. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e3d460d0.woff2 +0 -0
  36. package/dist/fonts/fa-brands-400.18993be8.woff2 +0 -0
  37. package/dist/fonts/fa-regular-400.e45bb696.woff2 +0 -0
  38. package/dist/fonts/fa-solid-900.16e3d2f0.woff2 +0 -0
  39. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.6de93dc1.woff2 +0 -0
  40. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.55c9461f.woff2 +0 -0
  41. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.111f8c99.woff2 +0 -0
  42. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.92257a03.woff2 +0 -0
  43. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.1844ded3.woff2 +0 -0
  44. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.719267ea.woff2 +0 -0
  45. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.037dea2d.woff2 +0 -0
  46. package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.6869bd80.woff2 +0 -0
  47. package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.05a41692.woff2 +0 -0
  48. package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.38ffdf27.woff2 +0 -0
  49. package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.f12c0c2c.woff2 +0 -0
  50. package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.03f14837.woff2 +0 -0
  51. package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.abcca84a.woff2 +0 -0
  52. package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.4d1e267c.woff2 +0 -0
  53. package/package.json +71 -0
  54. package/plugins/uid/index.js +16 -0
  55. package/plugins/uid/index.ts +16 -0
  56. package/src/assets/castlabs-logo.svg +2 -0
  57. package/src/assets/cookie.svg +1 -0
  58. package/src/components/ClAlert/style.scss +117 -0
  59. package/src/components/ClBadge/style.scss +122 -0
  60. package/src/components/ClButton/style.scss +338 -0
  61. package/src/components/ClCard/style.scss +61 -0
  62. package/src/components/ClCard/style.variables.scss +179 -0
  63. package/src/components/ClDropdown/style.scss +272 -0
  64. package/src/components/ClDropzone/style.scss +21 -0
  65. package/src/components/ClFooter/style.scss +119 -0
  66. package/src/components/ClIcon/style.scss +58 -0
  67. package/src/components/ClIconotron/style.scss +86 -0
  68. package/src/components/ClList/style.scss +93 -0
  69. package/src/components/ClList/style.variables.scss +133 -0
  70. package/src/components/ClListGroup/style.scss +9 -0
  71. package/src/components/ClPagination/style.scss +123 -0
  72. package/src/components/ClProgress/style.scss +49 -0
  73. package/src/components/ClScrollbar/style.scss +14 -0
  74. package/src/components/ClSpinner/style.scss +26 -0
  75. package/src/components/ClTabs/style.scss +90 -0
  76. package/src/components/ClToggle/style.scss +97 -0
  77. package/src/components/ClTooltip/style.scss +46 -0
  78. package/src/components/ClWizard/style.scss +173 -0
  79. package/src/components/form/ClField/style.scss +45 -0
  80. package/src/components/form/ClFieldCheck/style.scss +99 -0
  81. package/src/components/form/ClFieldFile/style.scss +71 -0
  82. package/src/components/form/ClFieldGroup/style.scss +73 -0
  83. package/src/components/form/ClFieldInput/style.scss +118 -0
  84. package/src/components/form/ClFieldSelect/style.scss +39 -0
  85. package/src/components/form/ClFieldSet/style.scss +16 -0
  86. package/src/components/form/ClForm/style.scss +87 -0
  87. package/src/components/modal/ClModal/style.scss +138 -0
  88. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +444 -0
  89. package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +51 -0
  90. package/src/components/navigation/ClNavSide/style.scss +81 -0
  91. package/src/components/navigation/ClNavTop/style.scss +305 -0
  92. package/src/components/section/ClSectionHeadline/style.scss +49 -0
  93. package/src/components/section/ClSectionMainSide/style.scss +60 -0
  94. package/src/components/table/ClTable/style.scss +23 -0
  95. package/src/components/table/ClTable/style.variables.scss +155 -0
  96. package/src/components/table/ClTableCel/Actions/style.scss +11 -0
  97. package/src/components/table/ClTableCel/Audit/style.scss +26 -0
  98. package/src/components/table/ClTableCel/Boolean/style.scss +12 -0
  99. package/src/components/table/ClTableCel/Checkbox/style.scss +18 -0
  100. package/src/components/table/ClTableCel/Code/style.scss +13 -0
  101. package/src/components/table/ClTableCel/Currency/style.scss +9 -0
  102. package/src/components/table/ClTableCel/Date/style.scss +12 -0
  103. package/src/components/table/ClTableCel/ID/style.scss +16 -0
  104. package/src/components/table/ClTableCel/Links/style.scss +44 -0
  105. package/src/components/table/ClTableCel/style.scss +7 -0
  106. package/src/components/table/ClTableCel/style.variables.scss +25 -0
  107. package/src/components/table/ClTableFootChecked/style.scss +2 -0
  108. package/src/components/table/ClTableHead/style.scss +36 -0
  109. package/src/components/text/ClCopy/style.scss +42 -0
  110. package/src/components/text/ClHashtag/style.scss +31 -0
  111. package/src/components/text/ClLinkExternal/style.scss +147 -0
  112. package/src/components/text/ClOrg/style.scss +40 -0
  113. package/src/components/text/ClPlan/style.scss +35 -0
  114. package/src/components/text/ClRole/style.scss +39 -0
  115. package/src/components/widget/ClBackCancelOk/style.scss +3 -0
  116. package/src/components/widget/ClCookieBanner/style.scss +40 -0
  117. package/src/components/widget/ClPage/style.scss +11 -0
  118. package/src/fonts/FontAwesome5/FontAwesome5.scss +6121 -0
  119. package/src/fonts/NotoSansMono/NotoSansMono.scss +82 -0
  120. package/src/fonts/OpenSansVariable/OpenSansVariable.scss +183 -0
  121. package/src/styles/_global.scss +70 -0
  122. package/src/styles/abstracts/color.scss +127 -0
  123. package/src/styles/abstracts/layer.scss +10 -0
  124. package/src/styles/abstracts/spacing.scss +35 -0
  125. package/src/styles/abstracts/tools.scss +117 -0
  126. package/src/styles/assets/logo.scss +22 -0
  127. package/src/styles/components/button.variables.scss +18 -0
  128. package/src/styles/components/form.variables.scss +51 -0
  129. package/src/styles/layout/animation.scss +39 -0
  130. package/src/styles/layout/grid.scss +144 -0
  131. package/src/styles/layout/grid.variables.scss +50 -0
  132. package/src/styles/layout/section.scss +90 -0
  133. package/src/styles/layout/spacing.scss +295 -0
  134. package/src/styles/layout/typography.scss +321 -0
  135. package/src/styles/layout/typography.variables.scss +363 -0
  136. package/src/styles/ui.scss +98 -0
  137. package/src/styles/vendors/bootstrap.scss +28 -0
  138. package/src/styles/vendors/castlabs.scss +17 -0
  139. package/types/castlabs-ui.module.d.ts +83 -0
  140. package/types/index.d.ts +140 -0
@@ -0,0 +1,321 @@
1
+ ////
2
+ /// @group layout
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines our basic typography rules.
7
+
8
+ @import '../../fonts/OpenSansVariable/OpenSansVariable';
9
+ @import '../../fonts/FontAwesome5/FontAwesome5';
10
+ @import '../../fonts/NotoSansMono/NotoSansMono';
11
+ @import 'typography.variables';
12
+
13
+ // --- text --------------------------------------------------------------------
14
+
15
+ html {
16
+ font-size: 16px; // root font size
17
+ }
18
+
19
+ html,
20
+ body {
21
+ @extend %p-medium;
22
+
23
+ color: $color-text;
24
+ word-wrap: break-word;
25
+ }
26
+
27
+ .cl-p {
28
+ overflow-wrap: anywhere;
29
+ }
30
+
31
+ .cl-p-tiny {
32
+ @extend %p-tiny;
33
+
34
+ font-weight: 700;
35
+ }
36
+
37
+ .cl-p-small {
38
+ @extend %p-small;
39
+ }
40
+
41
+ .cl-p-medium {
42
+ @extend %p-medium;
43
+ }
44
+
45
+ .cl-p-large {
46
+ @extend %p-large;
47
+
48
+ + :not(.cl-p-large) {
49
+ margin-top: $spacing-medium;
50
+ }
51
+ }
52
+
53
+ .cl-p-label {
54
+ @extend %p-label;
55
+ }
56
+
57
+ .cl-p-form-label {
58
+ @extend %p-form-label;
59
+ }
60
+
61
+ .cl-p-nav {
62
+ @extend %p-nav;
63
+ }
64
+
65
+ .cl-font-condensed {
66
+ @extend %cl-font-condensed;
67
+ }
68
+
69
+ .cl-h1 {
70
+ @extend %h1;
71
+
72
+ @include spacing-before-auto($spacing-large);
73
+
74
+ & {
75
+ overflow-wrap: anywhere;
76
+ }
77
+ }
78
+
79
+ .cl-h2 {
80
+ @extend %h2;
81
+
82
+ @include spacing-before-auto($spacing-large);
83
+
84
+ & {
85
+ overflow-wrap: anywhere;
86
+ }
87
+ }
88
+
89
+ .cl-h3 {
90
+ @extend %h3;
91
+
92
+ @include spacing-before-auto($spacing-large);
93
+
94
+ & {
95
+ overflow-wrap: anywhere;
96
+ }
97
+ }
98
+
99
+ .cl-h4,
100
+ .cl-h5,
101
+ .cl-h6 {
102
+ @extend %h4;
103
+
104
+ margin-top: $spacing-large;
105
+ overflow-wrap: anywhere;
106
+ }
107
+
108
+ main {
109
+ // apply style to typical html elements only in <main>, so it does not interfer with header/footer
110
+ h1 {
111
+ @extend %h1;
112
+
113
+ @include spacing-before-auto($spacing-small); // h1 is only used in special places
114
+
115
+ & {
116
+ overflow-wrap: anywhere;
117
+ }
118
+ }
119
+
120
+ h2 {
121
+ @extend %h2;
122
+
123
+ @include spacing-before-auto($spacing-large);
124
+
125
+ & {
126
+ overflow-wrap: anywhere;
127
+ }
128
+
129
+ &:first-child {
130
+ @include spacing-before-auto($spacing-medium);
131
+ }
132
+ }
133
+
134
+ h3 {
135
+ @extend %h3;
136
+
137
+ @include spacing-before-auto($spacing-small * 2);
138
+
139
+ & {
140
+ overflow-wrap: anywhere;
141
+ }
142
+
143
+ &:first-child {
144
+ @include spacing-before-auto($spacing-medium);
145
+ }
146
+ }
147
+
148
+ h4,
149
+ h5,
150
+ h6 {
151
+ @extend %h4;
152
+
153
+ @include spacing-before-auto($spacing-medium);
154
+
155
+ & {
156
+ overflow-wrap: anywhere;
157
+ }
158
+ }
159
+
160
+ p {
161
+ overflow-wrap: anywhere;
162
+ }
163
+
164
+ b, // <b> defined just for fallback - don't use!
165
+ strong {
166
+ font-weight: 600;
167
+ }
168
+
169
+ small {
170
+ @extend %p-small;
171
+ }
172
+
173
+ 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
+ }
198
+ }
199
+
200
+ // --- code & monospace --------------------------------------------------------
201
+
202
+ pre,
203
+ kbd,
204
+ code,
205
+ samp {
206
+ @extend %p-pre;
207
+ }
208
+
209
+ code {
210
+ margin-left: 0.1em;
211
+ margin-right: 0.1em;
212
+ }
213
+
214
+ pre {
215
+ background-color: $color-ci-haze;
216
+ padding: $spacing-tiny;
217
+
218
+ code {
219
+ padding: 0;
220
+ }
221
+ }
222
+
223
+ kbd {
224
+ background-color: $color-ci-haze;
225
+ border: px(1) solid $color-ci-silver;
226
+ border-radius: px(4);
227
+ border-width: px(1) px(2) px(2) px(1);
228
+ color: $color-ci-dim;
229
+ margin: 0 $spacing-micro;
230
+ padding: 0 $spacing-micro;
231
+ }
232
+
233
+ // --- block quotes ----------------------------------------------------------
234
+
235
+ blockquote {
236
+ border-left: $bar-ui-width solid $color-ci-smoke;
237
+ padding-left: calc($spacing-medium - $bar-ui-width);
238
+
239
+ &.cl-blockquote-primary {
240
+ border-left: $bar-ui-width solid $color-primary;
241
+ }
242
+
243
+ &.cl-blockquote-secondary {
244
+ border-left: $bar-ui-width solid $color-secondary;
245
+ }
246
+
247
+ &.cl-blockquote-light {
248
+ border-left: $bar-ui-width solid $color-ci-smoke; // same as normal bockquote
249
+ }
250
+
251
+ &.cl-blockquote-dark {
252
+ border-left: $bar-ui-width solid $color-dark;
253
+ }
254
+ }
255
+
256
+ // --- lists -------------------------------------------------------------------
257
+
258
+ // see Lists.scss
259
+ }
260
+
261
+ // --- redefine bs utilities we use so we don't need to pull the whole set -----
262
+
263
+ .cl-text-start,
264
+ .text-start {
265
+ text-align: left;
266
+ }
267
+
268
+ .cl-text-center,
269
+ .text-center {
270
+ text-align: center;
271
+ }
272
+
273
+ .cl-text-end,
274
+ .text-end {
275
+ text-align: right;
276
+ }
277
+
278
+ @each $bp, $px in $grid-breakpoints {
279
+ .text-#{$bp}-start {
280
+ @include media-breakpoint-up($bp) {
281
+ text-align: start;
282
+ }
283
+ }
284
+
285
+ .text-#{$bp}-center {
286
+ @include media-breakpoint-up($bp) {
287
+ text-align: center;
288
+ }
289
+ }
290
+
291
+ .text-#{$bp}-end {
292
+ @include media-breakpoint-up($bp) {
293
+ text-align: end;
294
+ }
295
+ }
296
+
297
+ .cl-br-#{$bp} {
298
+ display: none;
299
+
300
+ @include media-breakpoint-up($bp) {
301
+ display: inherit;
302
+ }
303
+ }
304
+ }
305
+
306
+ // --- text select -------------------------------------------------------------
307
+
308
+ ::selection {
309
+ background: $color-ci-blue;
310
+ color: $color-ci-white;
311
+ }
312
+
313
+ // --- text colors -------------------------------------------------------------
314
+
315
+ .color-ci-blue {
316
+ color: $color-ci-blue;
317
+ }
318
+
319
+ .color-ci-red {
320
+ color: $color-ci-red;
321
+ }
@@ -0,0 +1,363 @@
1
+ ////
2
+ /// @group layout
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines our basic typography rules.
7
+
8
+ $typography-font-list-sans:
9
+ 'Open Sans',
10
+ -apple-system,
11
+ blinkmacsystemfont,
12
+ 'Segoe UI',
13
+ roboto,
14
+ 'Helvetica Neue',
15
+ arial,
16
+ sans-serif,
17
+ 'Apple Color Emoji',
18
+ 'Segoe UI Emoji',
19
+ 'Segoe UI Symbol';
20
+
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
+
35
+ // --- helpers -----------------------------------------------------------------
36
+
37
+ @mixin typography-font(
38
+ $font-family: $typography-font-list-sans,
39
+ $font-weight: $typography-font-weight-base,
40
+ $font-size: 1em,
41
+ $line-height: 1.5em,
42
+ $letter-spacing: 0,
43
+ $font-stretch: 100%,
44
+ $force: false
45
+ ) {
46
+ @if $force {
47
+ @include set-property-if-not(font-stretch, 100%, $font-stretch);
48
+
49
+ font-family: $font-family;
50
+ font-size: $font-size;
51
+ font-weight: $font-weight;
52
+ letter-spacing: $letter-spacing;
53
+ line-height: $line-height;
54
+ } @else {
55
+ @include set-property-if-not(font-family, $typography-font-list-sans, $font-family);
56
+ @include set-property-if-not(font-size, 1em, $font-size);
57
+ @include set-property-if-not(letter-spacing, 0, $letter-spacing);
58
+ @include set-property-if-not(font-stretch, 100%, $font-stretch);
59
+
60
+ font-weight: $font-weight;
61
+ line-height: $line-height;
62
+ }
63
+ }
64
+
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: $gradient-transparent, $gradient-transparent,
92
+ linear-gradient(to right, $underline-color, $underline-color);
93
+ background-position: left bottom $typography-links-underline-offset; // depends on underline
94
+ background-repeat: no-repeat;
95
+ background-size: 100% $underline-height;
96
+ color: $color;
97
+ display: inline;
98
+ padding-bottom: $typography-links-underline-offset;
99
+ text-decoration: none;
100
+ }
101
+
102
+ &:hover {
103
+ background-image: $gradient-transparent, $gradient-transparent,
104
+ linear-gradient(to right, $underline-color-hover, $underline-color-hover);
105
+ color: $color-hover;
106
+ cursor: pointer;
107
+ text-decoration: none;
108
+ }
109
+ }
110
+
111
+ @mixin typography-links-invisible {
112
+ @include typography-links(inherit, inherit, 0);
113
+ @include color-focus-outline($color-text, 1px);
114
+ }
115
+
116
+ @mixin cl-btn-a($line-height-px) {
117
+ // button styled as regular link
118
+ @extend %cl-a-default;
119
+
120
+ border: 0;
121
+ border-radius: 0;
122
+ cursor: pointer;
123
+ font: inherit;
124
+ letter-spacing: inherit;
125
+ line-height: 1.375; // compenate for different browser height
126
+ margin: 0;
127
+ min-width: inherit;
128
+ outline: inherit;
129
+ outline-offset: -2px;
130
+ padding: 0 0 $typography-links-underline-offset;
131
+ text-align: inherit;
132
+ vertical-align: inherit;
133
+
134
+ &:hover {
135
+ $gradient-transparent: linear-gradient(transparent, transparent);
136
+
137
+ background-image: $gradient-transparent, $gradient-transparent,
138
+ linear-gradient(to right, $color-ci-silver, $color-ci-silver);
139
+ color: inherit;
140
+ opacity: inherit;
141
+ text-decoration: inherit;
142
+ }
143
+ }
144
+
145
+ %cl-a-default {
146
+ @include typography-links(
147
+ $color-text,
148
+ $color-text,
149
+ 2px,
150
+ rgba($color-ci-silver, 0.35),
151
+ $color-ci-silver
152
+ );
153
+ }
154
+
155
+ %cl-a-primary {
156
+ @include typography-links($color-text, $color-text, 2px, $color-ci-red, $color-ci-silver);
157
+ }
158
+
159
+ %cl-a-secondary {
160
+ @include typography-links($color-text, $color-text, 2px, $color-ci-blue, $color-ci-silver);
161
+ }
162
+
163
+ %cl-a-text {
164
+ @include typography-links($color-text, $color-text, 2px, $color-ci-silver, $color-text);
165
+ }
166
+
167
+ %cl-a-transparent {
168
+ @include typography-links($color-text, $color-text, 2px, transparent, $color-ci-silver);
169
+ }
170
+
171
+ %cl-a-none {
172
+ @include typography-links($color-text, $color-text, 2px, transparent, transparent);
173
+ }
174
+
175
+ %cl-a-btn {
176
+ // a link that is more an embedded button
177
+ @extend %cl-a-text;
178
+
179
+ background-color: transparent;
180
+ border: 0;
181
+ display: inline-block;
182
+ font-size: 14px;
183
+ font-weight: 600;
184
+ letter-spacing: 0.025em;
185
+ line-height: 1.5em; // for underline spacing
186
+ margin-top: 0;
187
+ padding-left: 0;
188
+ padding-right: 0;
189
+ padding-top: 0;
190
+ }
191
+
192
+ %cl-font-condensed {
193
+ font-stretch: 80%;
194
+ letter-spacing: 0.025em;
195
+ }
196
+
197
+ %h1 {
198
+ @include typography-font($typography-font-list-sans, 400, px(38), px(52));
199
+
200
+ color: $color-ci-night;
201
+
202
+ @if mixin-exists('media-breakpoint-only') {
203
+ // we might be used without bootstrap
204
+ @include media-breakpoint-only(xs) {
205
+ @include typography-font($typography-font-list-sans, 400, px(26), 1.3em);
206
+ }
207
+ }
208
+ }
209
+
210
+ %h2 {
211
+ @include typography-font($typography-font-list-sans, 500, px(30), 1.25em);
212
+
213
+ color: $color-ci-dusk;
214
+
215
+ @if mixin-exists('media-breakpoint-only') {
216
+ // we might be used without bootstrap
217
+ @include media-breakpoint-only(xs) {
218
+ @include typography-font($typography-font-list-sans, 400, px(26), 1.3em);
219
+ }
220
+ }
221
+ }
222
+
223
+ %h3 {
224
+ @include typography-font($typography-font-list-sans, 600, px(24), 1.25em);
225
+
226
+ color: $color-ci-dusk;
227
+
228
+ @if mixin-exists('media-breakpoint-only') {
229
+ // we might be used without bootstrap
230
+ @include media-breakpoint-only(xs) {
231
+ @include typography-font($typography-font-list-sans, 300, px(20), 1.25em);
232
+ }
233
+ }
234
+ }
235
+
236
+ %h4 {
237
+ @include typography-font($typography-font-list-sans, 600, px(22), 1.5em);
238
+
239
+ color: $color-ci-dusk;
240
+
241
+ @if mixin-exists('media-breakpoint-only') {
242
+ // we might be used without bootstrap
243
+ @include media-breakpoint-only(xs) {
244
+ @include typography-font($typography-font-list-sans, 400, px(16), 1.5em);
245
+ }
246
+ }
247
+ }
248
+
249
+ %p-large {
250
+ @include typography-font($typography-font-list-sans, 300, px(24), px(34));
251
+
252
+ color: $color-text;
253
+
254
+ b,
255
+ strong {
256
+ font-weight: 500;
257
+ }
258
+
259
+ .cl-btn-a {
260
+ @include cl-btn-a(34);
261
+ }
262
+
263
+ @if mixin-exists('media-breakpoint-only') {
264
+ // we might be used without bootstrap
265
+ @include media-breakpoint-only(xs) {
266
+ @include typography-font($typography-font-list-sans, 300, px(20), 1.5em);
267
+ }
268
+ }
269
+ }
270
+
271
+ %p-medium {
272
+ @include typography-font($typography-font-list-sans, 400, px(18), 1.5em);
273
+
274
+ color: $color-text;
275
+
276
+ .cl-btn-a {
277
+ @include cl-btn-a(27);
278
+ }
279
+
280
+ @if mixin-exists('media-breakpoint-only') {
281
+ // we might be used without bootstrap
282
+ @include media-breakpoint-only(xs) {
283
+ @include typography-font($typography-font-list-sans, 400, px(16), 1.5em);
284
+ }
285
+ }
286
+ }
287
+
288
+ %p-small {
289
+ @include typography-font($typography-font-list-sans, 400, px(14), 1.5em, 0.02em);
290
+
291
+ color: $color-text;
292
+
293
+ .cl-btn-a {
294
+ @include cl-btn-a(21);
295
+ }
296
+
297
+ @if mixin-exists('media-breakpoint-only') {
298
+ // we might be used without bootstrap
299
+ @include media-breakpoint-only(xs) {
300
+ @include typography-font($typography-font-list-sans, 400, px(12), 1.5em, 0.02em);
301
+ }
302
+ }
303
+ }
304
+
305
+ %p-tiny {
306
+ @include typography-font($typography-font-list-sans, 700, px(10), 1.2em, 0.1em);
307
+
308
+ color: $color-text;
309
+ text-transform: uppercase;
310
+
311
+ @if mixin-exists('media-breakpoint-only') {
312
+ // we might be used without bootstrap
313
+ @include media-breakpoint-only(xs) {
314
+ @include typography-font($typography-font-list-sans, 700, px(8), 1.2em, 0.1em);
315
+ }
316
+ }
317
+ }
318
+
319
+ %p-micro {
320
+ @include typography-font($typography-font-list-sans, 600, px(8), 1.2em, 0.1em);
321
+
322
+ color: $color-text;
323
+ font-weight: 600;
324
+ }
325
+
326
+ %p-nav {
327
+ // for nav entries, button labels etc.
328
+ @include typography-font($typography-font-list-sans, 600, px(16), 1em, 0.03125em);
329
+
330
+ color: $color-text;
331
+ font-weight: 600;
332
+ }
333
+
334
+ %p-pre {
335
+ @include typography-font($typography-font-list-monospace, 400, px(16), 1.5em, 0.025em, 80%);
336
+
337
+ background-color: transparent;
338
+ color: $color-ci-dim;
339
+ font-stretch: 80%;
340
+ font-variant-ligatures: none;
341
+
342
+ @if mixin-exists('media-breakpoint-only') {
343
+ // we might be used without bootstrap
344
+ @include media-breakpoint-only(xs) {
345
+ @include typography-font($typography-font-list-monospace, 400, px(14), 1.5em, 0.025em, 80%);
346
+ }
347
+ }
348
+ }
349
+
350
+ %p-label {
351
+ @extend %p-tiny;
352
+
353
+ color: $color-ci-blue;
354
+ }
355
+
356
+ %p-form-label {
357
+ @extend %p-medium;
358
+
359
+ color: $color-ci-dim;
360
+ font-weight: 600;
361
+ letter-spacing: normal;
362
+ text-transform: none;
363
+ }