@ch-post-common/common-web-frontend 0.0.1-security → 1.934.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @ch-post-common/common-web-frontend might be problematic. Click here for more details.
- package/components/accordion.scss +177 -0
- package/components/alert.scss +217 -0
- package/components/badge.scss +95 -0
- package/components/breadcrumb.scss +43 -0
- package/components/button.scss +168 -0
- package/components/card.scss +227 -0
- package/components/carousel.scss +161 -0
- package/components/custom-choice-control.scss +217 -0
- package/components/custom-range-input.scss +51 -0
- package/components/custom-select.scss +60 -0
- package/components/datatable.scss +147 -0
- package/components/datepicker.scss +220 -0
- package/components/detail-summary.scss +72 -0
- package/components/dropdown.scss +71 -0
- package/components/floating-label.scss +65 -0
- package/components/fonts.scss +35 -0
- package/components/form-feedback.scss +70 -0
- package/components/forms.scss +31 -0
- package/components/grid.scss +103 -0
- package/components/icons.scss +62 -0
- package/components/intranet-header/_icon.scss +6 -0
- package/components/intranet-header/_language-chooser.scss +40 -0
- package/components/intranet-header/_logo.scss +74 -0
- package/components/intranet-header/_nav-overflow.scss +56 -0
- package/components/intranet-header/_scaffolding.scss +96 -0
- package/components/intranet-header/_searchbox.scss +56 -0
- package/components/intranet-header/_settings.scss +23 -0
- package/components/intranet-header/_sidebar.scss +118 -0
- package/components/intranet-header/_top-navigation.scss +83 -0
- package/components/list-group.scss +156 -0
- package/components/modal.scss +87 -0
- package/components/pagination.scss +67 -0
- package/components/popover.scss +21 -0
- package/components/product-card.scss +74 -0
- package/components/progress.scss +15 -0
- package/components/reboot.scss +17 -0
- package/components/root.scss +10 -0
- package/components/sizing.scss +90 -0
- package/components/spinner.scss +58 -0
- package/components/stepper.scss +158 -0
- package/components/subnavigation.scss +131 -0
- package/components/switch.scss +132 -0
- package/components/tabs.scss +122 -0
- package/components/timepicker.scss +110 -0
- package/components/toast.scss +172 -0
- package/components/tooltip.scss +23 -0
- package/components/topic-teaser.scss +133 -0
- package/components/type.scss +106 -0
- package/components/utilities.scss +93 -0
- package/index.js +28 -0
- package/layouts/portal/_type.scss +83 -0
- package/lic/_bootstrap-license.scss +29 -0
- package/lic/_cwf-license.scss +7 -0
- package/mixins/_animation.scss +39 -0
- package/mixins/_button.scss +232 -0
- package/mixins/_forms.scss +188 -0
- package/mixins/_icons.scss +27 -0
- package/mixins/_scroll-shadows.scss +13 -0
- package/mixins/_size.scss +69 -0
- package/mixins/_type.scss +187 -0
- package/mixins/_utilities.scss +73 -0
- package/package.json +11 -3
- package/placeholders/_dropdown.scss +11 -0
- package/placeholders/_floating-label.scss +143 -0
- package/placeholders/_notifications.scss +160 -0
- package/placeholders/_text.scss +187 -0
- package/variables/_animation.scss +36 -0
- package/variables/_color.scss +240 -0
- package/variables/_commons.scss +57 -0
- package/variables/_icons.scss +2071 -0
- package/variables/_spacing.scss +180 -0
- package/variables/_type.scss +157 -0
- package/variables/components/_accordion.scss +22 -0
- package/variables/components/_alert.scss +50 -0
- package/variables/components/_badge.scss +29 -0
- package/variables/components/_breadcrumbs.scss +21 -0
- package/variables/components/_button.scss +152 -0
- package/variables/components/_card.scss +29 -0
- package/variables/components/_carousel.scss +27 -0
- package/variables/components/_close.scss +9 -0
- package/variables/components/_datatable.scss +49 -0
- package/variables/components/_datepicker.scss +14 -0
- package/variables/components/_dropdowns.scss +30 -0
- package/variables/components/_forms.scss +256 -0
- package/variables/components/_intranet-header.scss +9 -0
- package/variables/components/_modals.scss +68 -0
- package/variables/components/_nav.scss +82 -0
- package/variables/components/_pagination.scss +41 -0
- package/variables/components/_paragraph.scss +6 -0
- package/variables/components/_popovers.scss +28 -0
- package/variables/components/_progress-bars.scss +16 -0
- package/variables/components/_stepper.scss +26 -0
- package/variables/components/_subnavigation.scss +36 -0
- package/variables/components/_switch.scss +3 -0
- package/variables/components/_tables.scss +31 -0
- package/variables/components/_tooltips.scss +26 -0
- package/README.md +0 -5
@@ -0,0 +1,240 @@
|
|
1
|
+
@use "sass:map";
|
2
|
+
|
3
|
+
//
|
4
|
+
// Color system
|
5
|
+
//
|
6
|
+
|
7
|
+
$white: #fff !default;
|
8
|
+
$gray-50: #f4f4f4 !default;
|
9
|
+
$gray-100: #e5e5e5 !default;
|
10
|
+
$gray-200: #cbcbcb !default;
|
11
|
+
$gray-400: #999999 !default;
|
12
|
+
$gray-600: #666666 !default;
|
13
|
+
$gray-800: #333333 !default;
|
14
|
+
$black: #000 !default;
|
15
|
+
|
16
|
+
$grays: (
|
17
|
+
"50": $gray-50,
|
18
|
+
"100": $gray-100,
|
19
|
+
"200": $gray-200,
|
20
|
+
"400": $gray-400,
|
21
|
+
"600": $gray-600,
|
22
|
+
"800": $gray-800
|
23
|
+
) !default;
|
24
|
+
|
25
|
+
$white-alpha-10: rgba($white, .1) !default;
|
26
|
+
$white-alpha-20: rgba($white, .2) !default;
|
27
|
+
$white-alpha-40: rgba($white, .4) !default;
|
28
|
+
$white-alpha-60: rgba($white, .6) !default;
|
29
|
+
$white-alpha-80: rgba($white, .8) !default;
|
30
|
+
|
31
|
+
$white-alphas: (
|
32
|
+
"10": $white-alpha-10,
|
33
|
+
"20": $white-alpha-20,
|
34
|
+
"40": $white-alpha-40,
|
35
|
+
"60": $white-alpha-60,
|
36
|
+
"80": $white-alpha-80
|
37
|
+
) !default;
|
38
|
+
|
39
|
+
$black-alpha-10: rgba($black, .1) !default;
|
40
|
+
$black-alpha-20: rgba($black, .2) !default;
|
41
|
+
$black-alpha-40: rgba($black, .4) !default;
|
42
|
+
$black-alpha-60: rgba($black, .6) !default;
|
43
|
+
$black-alpha-80: rgba($black, .8) !default;
|
44
|
+
|
45
|
+
$black-alphas: (
|
46
|
+
"10": $black-alpha-10,
|
47
|
+
"20": $black-alpha-20,
|
48
|
+
"40": $black-alpha-40,
|
49
|
+
"60": $black-alpha-60,
|
50
|
+
"80": $black-alpha-80
|
51
|
+
) !default;
|
52
|
+
|
53
|
+
// Functional
|
54
|
+
// Colour names via: http://chir.ag/projects/name-that-color/
|
55
|
+
$red: #a51728 !default;
|
56
|
+
$orange: #f49e00 !default;
|
57
|
+
$yellow: #ffcc00 !default;
|
58
|
+
$orange: #f49e00 !default;
|
59
|
+
$green: #2c871d !default;
|
60
|
+
$gray-pampas: #faf9f8 !default;
|
61
|
+
$gray-cararra: #f4f3f1 !default;
|
62
|
+
|
63
|
+
// Accent (implement names from branding module)
|
64
|
+
$nightblue-dark: #004976;
|
65
|
+
$nightblue-bright: #0076a8;
|
66
|
+
$petrol-dark: #006d68;
|
67
|
+
$petrol-bright: #00968f;
|
68
|
+
$coral-dark: #9e2a2f;
|
69
|
+
$coral-bright: #e03c31;
|
70
|
+
$purple-dark: #80276c;
|
71
|
+
$purple-bright: #c5299b;
|
72
|
+
$olive-dark: #716135;
|
73
|
+
$olive-bright: #aa9d2e;
|
74
|
+
$aubergine-dark: #523178;
|
75
|
+
$aubergine-bright: #7566a0;
|
76
|
+
|
77
|
+
$colors: () !default;
|
78
|
+
$colors: map.merge(
|
79
|
+
(
|
80
|
+
"white": $white,
|
81
|
+
"black": $black,
|
82
|
+
"red": $red,
|
83
|
+
"orange": $orange,
|
84
|
+
"yellow": $yellow,
|
85
|
+
"green": $green,
|
86
|
+
"nightblue": $nightblue-dark,
|
87
|
+
"nightblue-bright": $nightblue-bright,
|
88
|
+
"petrol": $petrol-dark,
|
89
|
+
"petrol-bright": $petrol-bright,
|
90
|
+
"coral": $coral-dark,
|
91
|
+
"coral-bright": $coral-bright,
|
92
|
+
"olive": $olive-dark,
|
93
|
+
"olive-bright": $olive-bright,
|
94
|
+
"purple": $purple-dark,
|
95
|
+
"purple-bright": $purple-bright,
|
96
|
+
"aubergine": $aubergine-dark,
|
97
|
+
"aubergine-bright": $aubergine-bright
|
98
|
+
),
|
99
|
+
$colors
|
100
|
+
);
|
101
|
+
|
102
|
+
$primary: $gray-800 !default;
|
103
|
+
$primary-color: $primary;
|
104
|
+
$secondary: $gray-600 !default; // In the old CWF it was $nightblue-dark - where is the secondary color defined by K?
|
105
|
+
$secondary-color: $secondary;
|
106
|
+
$success: $green !default;
|
107
|
+
$info: $yellow !default;
|
108
|
+
$warning: $orange !default;
|
109
|
+
$danger: $red !default;
|
110
|
+
$dark: $primary !default;
|
111
|
+
$light: $gray-cararra !default;
|
112
|
+
|
113
|
+
$theme-colors: () !default;
|
114
|
+
$theme-colors: map.merge(
|
115
|
+
(
|
116
|
+
"primary": $primary,
|
117
|
+
"secondary": $secondary,
|
118
|
+
"success": $success,
|
119
|
+
"info": $info,
|
120
|
+
"warning": $warning,
|
121
|
+
"danger": $danger,
|
122
|
+
"active": $yellow,
|
123
|
+
"white": $white,
|
124
|
+
"light": $light,
|
125
|
+
"dark": $dark,
|
126
|
+
"nightblue": $nightblue-dark,
|
127
|
+
"nightblue-bright": $nightblue-bright,
|
128
|
+
"petrol": $petrol-dark,
|
129
|
+
"petrol-bright": $petrol-bright,
|
130
|
+
"coral": $coral-dark,
|
131
|
+
"coral-bright": $coral-bright,
|
132
|
+
"olive": $olive-dark,
|
133
|
+
"olive-bright": $olive-bright,
|
134
|
+
"purple": $purple-dark,
|
135
|
+
"purple-bright": $purple-bright,
|
136
|
+
"aubergine": $aubergine-dark,
|
137
|
+
"aubergine-bright": $aubergine-bright
|
138
|
+
),
|
139
|
+
$theme-colors
|
140
|
+
);
|
141
|
+
|
142
|
+
$highlight-colors: () !default;
|
143
|
+
$highlight-colors: map.merge(
|
144
|
+
(
|
145
|
+
"nightblue": $nightblue-dark,
|
146
|
+
"nightblue-bright": $nightblue-bright,
|
147
|
+
"purple": $purple-dark,
|
148
|
+
"petrol": $petrol-dark,
|
149
|
+
"olive": $olive-dark,
|
150
|
+
"aubergine": $aubergine-dark,
|
151
|
+
"coral": $coral-dark,
|
152
|
+
"coral-bright": $coral-bright
|
153
|
+
),
|
154
|
+
$highlight-colors
|
155
|
+
);
|
156
|
+
|
157
|
+
// Brand colors from https://brandcolors.net/
|
158
|
+
$facebook: #3b5998;
|
159
|
+
$instagram: #405de6;
|
160
|
+
$youtube: #ff0000;
|
161
|
+
$snapchat: #fffc00;
|
162
|
+
$twitter: #1da1f2;
|
163
|
+
$xing: #026466;
|
164
|
+
$linkedin: #0077b5;
|
165
|
+
$kununu: #394b54;
|
166
|
+
$email: #333333;
|
167
|
+
|
168
|
+
$brand-colors: () !default;
|
169
|
+
$brand-colors: map.merge(
|
170
|
+
(
|
171
|
+
"facebook": $facebook,
|
172
|
+
"instagram": $instagram,
|
173
|
+
"youtube": $youtube,
|
174
|
+
"snapchat": $snapchat,
|
175
|
+
"twitter": $twitter,
|
176
|
+
"xing": $xing,
|
177
|
+
"linkedin": $linkedin,
|
178
|
+
"kununu": $kununu,
|
179
|
+
"email": $email
|
180
|
+
),
|
181
|
+
$brand-colors
|
182
|
+
);
|
183
|
+
|
184
|
+
// Custom background-colours
|
185
|
+
// TODO: Is it possible to work with existing bootstrap classes? (They loop over $theme-colors to create bg-* classes)
|
186
|
+
$background-colors: () !default;
|
187
|
+
$background-colors: map.merge(
|
188
|
+
(
|
189
|
+
"dark": $gray-cararra,
|
190
|
+
"light": $gray-pampas,
|
191
|
+
"white": $white,
|
192
|
+
"nightblue-bright": $nightblue-bright
|
193
|
+
),
|
194
|
+
$background-colors
|
195
|
+
);
|
196
|
+
|
197
|
+
$icon-colors: () !default;
|
198
|
+
$icon-colors: map.merge(
|
199
|
+
(
|
200
|
+
"primary": $primary,
|
201
|
+
"white": $white,
|
202
|
+
"danger": $danger,
|
203
|
+
"warning": $warning,
|
204
|
+
"success": $success,
|
205
|
+
),
|
206
|
+
$icon-colors
|
207
|
+
);
|
208
|
+
|
209
|
+
// Set a specific jump point for requesting color jumps
|
210
|
+
$theme-color-interval: 8% !default;
|
211
|
+
|
212
|
+
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
|
213
|
+
$yiq-contrasted-threshold: 150 !default;
|
214
|
+
|
215
|
+
// Customize the light and dark text colors for use in our YIQ color contrast function.
|
216
|
+
$yiq-text-dark: $black !default; // This still needs to be talked about with K
|
217
|
+
$yiq-text-light: $white !default;
|
218
|
+
|
219
|
+
// Body
|
220
|
+
//
|
221
|
+
// Settings for the `<body>` element.
|
222
|
+
|
223
|
+
$body-bg: $white !default;
|
224
|
+
$body-color: $black !default;
|
225
|
+
|
226
|
+
// Links
|
227
|
+
//
|
228
|
+
// Style anchor elements.
|
229
|
+
|
230
|
+
$link-color: $black !default;
|
231
|
+
$link-decoration: underline !default;
|
232
|
+
$link-hover-color: $gray-600 !default;
|
233
|
+
$link-hover-decoration: underline !default;
|
234
|
+
|
235
|
+
// Components
|
236
|
+
//
|
237
|
+
// General component colors
|
238
|
+
|
239
|
+
$component-active-color: $white !default;
|
240
|
+
$component-active-bg: $primary !default;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
@use "./color";
|
2
|
+
|
3
|
+
// Components
|
4
|
+
//
|
5
|
+
// Define common padding and border radius sizes and more.
|
6
|
+
$border-width: 1px !default;
|
7
|
+
$border-thick: 2px !default;
|
8
|
+
$border-color: color.$gray-200 !default;
|
9
|
+
|
10
|
+
$border-radius-sm: 2px !default;
|
11
|
+
$border-radius: 3px !default;
|
12
|
+
$border-radius-rg: $border-radius !default;
|
13
|
+
$border-radius-lg: $border-radius !default;
|
14
|
+
|
15
|
+
$box-shadow-sm: 0 0 4px 0 rgba(color.$black, .4) !default;
|
16
|
+
$box-shadow: 0 0 5px 0px rgba(color.$black, .3) !default;
|
17
|
+
$box-shadow-lg: 0 0 8px 0 rgba(color.$black, .4) !default;
|
18
|
+
$box-shadow-hover: 0 0 1rem 0 rgba(color.$black, .08) !default;
|
19
|
+
|
20
|
+
$caret-width: .3em !default;
|
21
|
+
|
22
|
+
// Z-index master list
|
23
|
+
//
|
24
|
+
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
25
|
+
// of components dependent on the z-axis and are designed to all work together.
|
26
|
+
|
27
|
+
$zindex-spinner: 990 !default; // CWF only
|
28
|
+
$zindex-dropdown: 1000 !default;
|
29
|
+
$zindex-sticky: 1020 !default;
|
30
|
+
$zindex-fixed: 1030 !default;
|
31
|
+
$zindex-modal-backdrop: 1040 !default;
|
32
|
+
$zindex-modal: 1050 !default;
|
33
|
+
$zindex-popover: 1060 !default;
|
34
|
+
$zindex-tooltip: 1070 !default;
|
35
|
+
$zindex-alert: 1080 !default; // CWF only
|
36
|
+
|
37
|
+
// Z-index
|
38
|
+
|
39
|
+
$z-indexes: (
|
40
|
+
hero: (
|
41
|
+
img,
|
42
|
+
brandframe
|
43
|
+
),
|
44
|
+
productcard: (
|
45
|
+
card
|
46
|
+
),
|
47
|
+
subnavigation: (
|
48
|
+
underscore-root,
|
49
|
+
underscore-link
|
50
|
+
)
|
51
|
+
) !default;
|
52
|
+
|
53
|
+
// Utilities
|
54
|
+
$displays: none, inline, inline-block, block, table, table-row, table-cell, flex,
|
55
|
+
inline-flex !default;
|
56
|
+
$overflows: auto, hidden !default;
|
57
|
+
$positions: static, relative, absolute, fixed, sticky !default;
|