@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,272 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // A custom dropdown / drawer element based on <detail> and <summary>. No JS needed.
7
+
8
+ $dropdown-border: 0.125rem; // a 2px border to add so there is space for the outline
9
+ $dropdown-color-chevron: rgba($color-ci-white, 0.5);
10
+ $dropdown-color-chevron-bright: rgba($color-ci-silver, 0.5);
11
+
12
+ .cl-dropdown {
13
+ #{'--element-fg-color'}: $color-text;
14
+ #{'--element-bg-color'}: $color-ci-haze;
15
+ background-color: var(--element-bg-color);
16
+ color: var(--element-fg-color);
17
+ position: relative;
18
+
19
+ > * {
20
+ margin-left: $spacing-small;
21
+ margin-right: $spacing-small;
22
+ }
23
+
24
+ summary {
25
+ @extend %p-nav;
26
+
27
+ @include color-focus-outline(var(--element-fg-color));
28
+
29
+ & {
30
+ border: $dropdown-border solid var(--element-bg-color); // border need so that outline is not behind ::after
31
+ color: var(--element-fg-color);
32
+ font-size: px(18);
33
+ line-height: 1.25em;
34
+ list-style: none;
35
+ margin-left: 0;
36
+ margin-right: 0;
37
+ overflow: hidden;
38
+ padding: $spacing-small - $dropdown-border $spacing-small - $dropdown-border;
39
+ padding-right: $spacing-small * 3; // for chevron
40
+ position: relative;
41
+ }
42
+
43
+ &::after {
44
+ @include cl-fontawesome('\f078'); // chevron-down
45
+
46
+ & {
47
+ align-items: center;
48
+ background-color: var(--element-bg-color);
49
+ box-shadow: -8px 0 4px var(--element-bg-color);
50
+ color: $dropdown-color-chevron-bright;
51
+ display: flex;
52
+ height: 100%;
53
+ justify-content: flex-start;
54
+ position: absolute;
55
+ right: 0;
56
+ top: 0;
57
+ width: $spacing-small * 2;
58
+ }
59
+ }
60
+ }
61
+
62
+ > summary::marker,
63
+ > summary::-webkit-details-marker {
64
+ display: none;
65
+ }
66
+
67
+ &[open] {
68
+ padding-bottom: $spacing-tiny;
69
+
70
+ summary {
71
+ border-bottom: 2px solid $color-ci-white;
72
+ margin-bottom: $spacing-tiny;
73
+
74
+ &::after {
75
+ content: '\f077'; // chevron-up
76
+ }
77
+ }
78
+ }
79
+
80
+ .cl-subentry {
81
+ font-size: px(14);
82
+ font-weight: 400;
83
+ letter-spacing: 0;
84
+ margin-top: $spacing-tiny;
85
+ opacity: $color-hover-opacity;
86
+ }
87
+
88
+ &-tiny {
89
+ summary {
90
+ padding: $spacing-tiny - $dropdown-border $spacing-small - $dropdown-border;
91
+ }
92
+ }
93
+
94
+ &-small {
95
+ summary {
96
+ padding: $spacing-small - $dropdown-border;
97
+ }
98
+ }
99
+
100
+ &-medium {
101
+ summary {
102
+ padding: $spacing-medium - $dropdown-border $spacing-small - $dropdown-border;
103
+ }
104
+ }
105
+
106
+ &-empty {
107
+ // disable dropdown part if empty
108
+ pointer-events: none;
109
+
110
+ summary {
111
+ border: 0 !important; // sass-lint:disable-line no-important
112
+
113
+ &::after {
114
+ display: none;
115
+ }
116
+ }
117
+
118
+ &[open] {
119
+ padding-bottom: 0;
120
+
121
+ summary {
122
+ margin-bottom: 0;
123
+ }
124
+ }
125
+ }
126
+ }
127
+
128
+ div.cl-dropdown summary {
129
+ // hide the chevron if this is not a <detail>
130
+ pointer-events: none;
131
+
132
+ &::after {
133
+ display: none;
134
+ }
135
+ }
136
+
137
+ .cl-dropdown-arrow {
138
+ background-color: $color-ci-haze;
139
+ content: '';
140
+ display: inline-block;
141
+ height: 1rem;
142
+ left: $spacing-small;
143
+ margin-top: -$spacing-tiny;
144
+ position: absolute;
145
+ transform: rotate(45deg);
146
+ width: 1rem;
147
+ z-index: -1;
148
+
149
+ + .cl-nav-item {
150
+ margin-top: $spacing-small;
151
+ }
152
+
153
+ .cl-dropdown-primary + & {
154
+ background-color: $color-primary;
155
+ }
156
+
157
+ .cl-dropdown-secondary + & {
158
+ background-color: $color-secondary;
159
+ }
160
+
161
+ .cl-dropdown-dark + & {
162
+ background-color: $color-dark;
163
+ }
164
+
165
+ .cl-dropdown-dim + & {
166
+ background-color: $color-ci-dim;
167
+ }
168
+ }
169
+
170
+ .cl-dropdown-item {
171
+ @extend %p-nav;
172
+
173
+ @include typography-links(var(--element-fg-color), var(--element-fg-color), 0);
174
+ @include color-focus-outline(var(--element-fg-color));
175
+
176
+ & {
177
+ display: block;
178
+ margin-left: 0;
179
+ margin-right: 0;
180
+ padding: $spacing-small;
181
+ position: relative;
182
+ width: 100%;
183
+ }
184
+
185
+ &:hover {
186
+ background-color: $color-ci-white;
187
+ }
188
+ }
189
+
190
+ .cl-dropdown-primary {
191
+ #{'--element-bg-color'}: $color-primary;
192
+ #{'--element-fg-color'}: $color-ci-white;
193
+
194
+ summary::after {
195
+ color: $dropdown-color-chevron;
196
+ }
197
+
198
+ &[open] summary {
199
+ border-bottom: 2px solid $color-white-35a;
200
+ }
201
+
202
+ .cl-nav-separator {
203
+ background-color: $color-white-35a !important; // sass-lint:disable-line no-important
204
+ }
205
+
206
+ .cl-dropdown-item:hover:not(.active) {
207
+ color: $color-ci-dusk;
208
+ }
209
+ }
210
+
211
+ .cl-dropdown-secondary {
212
+ #{'--element-bg-color'}: $color-secondary;
213
+ #{'--element-fg-color'}: $color-ci-white;
214
+
215
+ summary::after {
216
+ color: $dropdown-color-chevron;
217
+ }
218
+
219
+ &[open] summary {
220
+ border-bottom: 2px solid $color-white-35a;
221
+ }
222
+
223
+ .cl-nav-separator {
224
+ background-color: $color-white-35a !important; // sass-lint:disable-line no-important
225
+ }
226
+
227
+ .cl-dropdown-item:hover:not(.active) {
228
+ color: $color-ci-dusk;
229
+ }
230
+ }
231
+
232
+ .cl-dropdown-dark {
233
+ #{'--element-bg-color'}: $color-dark;
234
+ #{'--element-fg-color'}: $color-ci-white;
235
+
236
+ summary::after {
237
+ color: $dropdown-color-chevron;
238
+ }
239
+
240
+ &[open] summary {
241
+ border-bottom: 2px solid $color-white-25a;
242
+ }
243
+
244
+ .cl-nav-separator {
245
+ background-color: $color-white-25a !important; // sass-lint:disable-line no-important
246
+ }
247
+
248
+ .cl-dropdown-item:hover:not(.active) {
249
+ background-color: $color-ci-dusk;
250
+ }
251
+ }
252
+
253
+ .cl-dropdown-dim {
254
+ #{'--element-bg-color'}: $color-ci-dim;
255
+ #{'--element-fg-color'}: $color-ci-white;
256
+
257
+ summary::after {
258
+ color: $dropdown-color-chevron;
259
+ }
260
+
261
+ &[open] summary {
262
+ border-bottom: 2px solid $color-white-25a;
263
+ }
264
+
265
+ .cl-nav-separator {
266
+ background-color: $color-white-25a !important; // sass-lint:disable-line no-important
267
+ }
268
+
269
+ .cl-dropdown-item:hover:not(.active) {
270
+ background-color: $color-ci-dusk;
271
+ }
272
+ }
@@ -0,0 +1,21 @@
1
+ .cl-dropzone {
2
+ border: px(2) dashed $form-field-border-color;
3
+ border-radius: px(8);
4
+ cursor: pointer;
5
+ padding: $spacing-tiny;
6
+ text-align: center;
7
+
8
+ i {
9
+ margin-right: $spacing-tiny;
10
+ opacity: 0.5;
11
+ }
12
+
13
+ .cl-dragging & {
14
+ border-color: $color-ci-blue;
15
+ }
16
+ }
17
+
18
+ .cl-dropzone-file {
19
+ position: fixed;
20
+ top: -1000px; // move out of viewport instead of hide for safari
21
+ }
@@ -0,0 +1,119 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines castlabs footers.
7
+
8
+ .cl-footer {
9
+ @extend %section-padding;
10
+ @extend %p-small;
11
+
12
+ $footer-text-color: $color-ci-smoke;
13
+
14
+ background-color: $color-ci-dusk;
15
+ color: $footer-text-color;
16
+ margin-top: 0;
17
+
18
+ .container {
19
+ @extend %container-spacing-medium;
20
+
21
+ padding-bottom: 0;
22
+ padding-top: 0;
23
+ }
24
+
25
+ a {
26
+ @include typography-links($footer-text-color, $color-ci-haze, 0);
27
+ }
28
+
29
+ h1,
30
+ h2,
31
+ h3,
32
+ h4,
33
+ h5,
34
+ h6 {
35
+ @extend %p-small;
36
+
37
+ color: $color-ci-blue;
38
+ font-weight: 600;
39
+ letter-spacing: 0.05em;
40
+ text-transform: uppercase;
41
+ }
42
+
43
+ .cl-btn-outline-text {
44
+ @include button-outline-variant-cl($footer-text-color, transparent);
45
+ @include button-focus-outline($footer-text-color);
46
+ }
47
+
48
+ .cl-btn-primary {
49
+ @include button-variant(
50
+ $footer-text-color,
51
+ $footer-text-color,
52
+ $color-ci-dusk,
53
+ $footer-text-color,
54
+ $footer-text-color,
55
+ $color-ci-dusk,
56
+ $footer-text-color,
57
+ $footer-text-color,
58
+ $color-ci-dusk
59
+ );
60
+ @include button-focus-outline($footer-text-color);
61
+ }
62
+
63
+ &.cl-footer-secondary + .cl-footer {
64
+ $footer-text-color: $color-ci-dim;
65
+
66
+ background-color: $color-ci-night;
67
+ color: $footer-text-color;
68
+
69
+ a {
70
+ @include typography-links($footer-text-color, $color-ci-silver, 0);
71
+ }
72
+
73
+ .cl-btn-outline-text {
74
+ @include button-outline-variant-cl($footer-text-color, transparent);
75
+ @include button-focus-outline($footer-text-color);
76
+ }
77
+
78
+ .cl-btn-primary {
79
+ @include button-variant(
80
+ $footer-text-color,
81
+ $footer-text-color,
82
+ $color-ci-night,
83
+ $footer-text-color,
84
+ $footer-text-color,
85
+ $color-ci-night,
86
+ $footer-text-color,
87
+ $footer-text-color,
88
+ $color-ci-night
89
+ );
90
+ @include button-focus-outline($footer-text-color);
91
+ }
92
+ }
93
+
94
+ &.cl-footer-white,
95
+ &.cl-footer-secondary + .cl-footer-white {
96
+ background-color: $color-ci-white;
97
+ color: $color-ci-dim;
98
+
99
+ a {
100
+ @include typography-links($footer-text-color, $color-ci-silver, 0);
101
+ }
102
+
103
+ .cl-btn-text {
104
+ @extend %cl-btn-text;
105
+ }
106
+
107
+ .cl-btn-outline-text {
108
+ @extend %cl-btn-outline-text;
109
+ }
110
+
111
+ .cl-btn-primary {
112
+ @extend %cl-btn-primary;
113
+ }
114
+
115
+ .cl-btn-outline-primary {
116
+ @extend %cl-btn-outline-primary;
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,58 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines / tweaks our icons. They are based on FontAwesome v5.
7
+
8
+ // --- generic helper classes --------------------------------------------------
9
+
10
+ .fa-small,
11
+ %fa-small {
12
+ font-size: 0.75em;
13
+ position: relative;
14
+ top: -0.15em;
15
+ }
16
+
17
+ // --- individual tweaks -------------------------------------------------------
18
+
19
+ .btn {
20
+ i {
21
+ &.fas.fa-play {
22
+ @extend %fa-small;
23
+ }
24
+ }
25
+ }
26
+
27
+ // --- castLabs (SVG) icons ----------------------------------------------------
28
+
29
+ $asset-img-huge: px(192);
30
+ $asset-img-large: px(128);
31
+ $asset-img-medium: px(96);
32
+ $asset-img-small: px(64);
33
+ $asset-img-tiny: px(32);
34
+
35
+ .cl-img-huge {
36
+ height: $asset-img-huge;
37
+ width: $asset-img-huge;
38
+ }
39
+
40
+ .cl-img-large {
41
+ height: $asset-img-large;
42
+ width: $asset-img-large;
43
+ }
44
+
45
+ .cl-img-medium {
46
+ height: $asset-img-medium;
47
+ width: $asset-img-medium;
48
+ }
49
+
50
+ .cl-img-small {
51
+ height: $asset-img-small;
52
+ width: $asset-img-small;
53
+ }
54
+
55
+ .cl-img-tiny {
56
+ height: $asset-img-tiny;
57
+ width: $asset-img-tiny;
58
+ }
@@ -0,0 +1,86 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines our icon + text component.
7
+
8
+ .cl-container-iconotron {
9
+ .col-12 {
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: center;
13
+
14
+ &:first-child {
15
+ align-items: center;
16
+
17
+ img {
18
+ height: $asset-img-medium;
19
+ margin: $spacing-medium 0 $spacing-small;
20
+ width: $asset-img-medium;
21
+ }
22
+
23
+ @include media-breakpoint-up(md) {
24
+ align-items: flex-end;
25
+
26
+ img {
27
+ margin: 0 $spacing-small;
28
+ }
29
+ }
30
+
31
+ @include media-breakpoint-up(lg) {
32
+ align-items: flex-end;
33
+
34
+ img {
35
+ height: $asset-img-large;
36
+ margin: 0 $spacing-medium;
37
+ width: $asset-img-large;
38
+ }
39
+ }
40
+ }
41
+
42
+ &:last-child {
43
+ @include media-breakpoint-up(md) {
44
+ max-width: px(784);
45
+ }
46
+ }
47
+ }
48
+
49
+ &.cl-container-iconotron-small {
50
+ margin-left: auto;
51
+ margin-right: auto;
52
+ max-width: px(480);
53
+ }
54
+ }
55
+
56
+ .cl-footer .cl-container-iconotron,
57
+ .cl-container-iconotron {
58
+ @extend %p-medium;
59
+ // @extend %spacing-small;
60
+
61
+ h1,
62
+ h2,
63
+ h3,
64
+ h4,
65
+ h5,
66
+ h6 {
67
+ @extend %spacing-medium;
68
+ @extend %h3;
69
+
70
+ letter-spacing: normal;
71
+ text-transform: none;
72
+
73
+ + * {
74
+ @extend %spacing-small;
75
+ }
76
+ }
77
+
78
+ a {
79
+ @include typography-links(
80
+ $color-text,
81
+ rgba($color-text, $color-hover-opacity),
82
+ 2px,
83
+ $color-ci-red
84
+ );
85
+ }
86
+ }
@@ -0,0 +1,93 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file define our (bullet) lists. They use fontawesome icons as bullets.
7
+
8
+ @import 'style.variables';
9
+
10
+ // --- regular lists -----------------------------------------------------------
11
+
12
+ main {
13
+ // apply style to typical html elements only in <main>, so it does not interfer with header/footer
14
+ ul {
15
+ margin: $spacing-small 0 0 $list-indent;
16
+ padding: 0;
17
+
18
+ li {
19
+ list-style-type: square;
20
+ margin: $spacing-tiny 0 0;
21
+ padding: 0;
22
+
23
+ &:first-child {
24
+ margin-top: 0;
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ .cl-list {
31
+ @extend %cl-list;
32
+
33
+ &-none {
34
+ margin-left: 0;
35
+
36
+ li::before {
37
+ display: none;
38
+ }
39
+ }
40
+
41
+ &-inline {
42
+ > li {
43
+ display: inline;
44
+
45
+ &:not(:first-of-type) {
46
+ margin-left: 3em;
47
+ }
48
+ }
49
+ }
50
+
51
+ &-alert {
52
+ @extend %p-medium;
53
+ @extend %spacing-small;
54
+
55
+ $alert-indent: 1.333em; // ~ $spacing-medium on %p-medium;
56
+
57
+ font-size: 0.8888em; // 18px -> 16px
58
+ margin-left: $alert-indent;
59
+
60
+ > li {
61
+ display: inline;
62
+ position: relative;
63
+
64
+ &:first-of-type {
65
+ margin-left: 0;
66
+ }
67
+
68
+ &:not(first-of-type) {
69
+ margin-left: 2em;
70
+ }
71
+
72
+ &::before {
73
+ @include cl-fontawesome('\f0ad'); // wrench
74
+
75
+ & {
76
+ color: $color-ci-silver;
77
+ display: inline-block;
78
+ margin-left: -$alert-indent;
79
+ position: absolute;
80
+ text-align: center;
81
+ top: 0.175em;
82
+ width: 1em;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ // --- definition lists --------------------------------------------------------
90
+
91
+ .cl-dl {
92
+ @extend %cl-dl;
93
+ }