pallote-css 0.4.0 → 0.6.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.
- package/package.json +6 -20
- package/dist/pallote.min.css +0 -1
- package/dist/pallote.min.css.map +0 -1
- package/dist/pallote.min.js +0 -1
- package/dist/pallote.scss +0 -37
- package/dist/styles/common/_editor.scss +0 -181
- package/dist/styles/common/_fontface.scss +0 -31
- package/dist/styles/common/_functions.scss +0 -11
- package/dist/styles/common/_global.scss +0 -157
- package/dist/styles/common/_mixins.scss +0 -164
- package/dist/styles/common/_reset.scss +0 -145
- package/dist/styles/common/_variables.scss +0 -252
- package/dist/styles/components/_accordion.scss +0 -132
- package/dist/styles/components/_alert.scss +0 -188
- package/dist/styles/components/_breadcrumbs.scss +0 -70
- package/dist/styles/components/_button.scss +0 -186
- package/dist/styles/components/_buttons.scss +0 -52
- package/dist/styles/components/_card.scss +0 -316
- package/dist/styles/components/_divider.scss +0 -53
- package/dist/styles/components/_form.scss +0 -58
- package/dist/styles/components/_grid.scss +0 -127
- package/dist/styles/components/_input.scss +0 -328
- package/dist/styles/components/_link.scss +0 -51
- package/dist/styles/components/_list.scss +0 -59
- package/dist/styles/components/_nav.scss +0 -274
- package/dist/styles/components/_navbar.scss +0 -192
- package/dist/styles/components/_page.scss +0 -33
- package/dist/styles/components/_section.scss +0 -177
- package/dist/styles/components/_sidebar.scss +0 -61
- package/dist/styles/components/_snippet.scss +0 -85
- package/dist/styles/components/_status.scss +0 -60
- package/dist/styles/components/_switch.scss +0 -84
- package/dist/styles/components/_table.scss +0 -153
- package/dist/styles/components/_tabs.scss +0 -118
- package/dist/styles/components/_tag.scss +0 -79
- package/dist/styles/modules/_cookie.scss +0 -38
- package/dist/styles/utilities/_color.scss +0 -119
- package/dist/styles/utilities/_global.scss +0 -211
- package/dist/styles/utilities/_grid.scss +0 -124
- package/dist/styles/utilities/_layout.scss +0 -127
- package/dist/styles/utilities/_text.scss +0 -199
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
// dependencies
|
|
6
|
-
// color palette
|
|
7
|
-
// spacing
|
|
8
|
-
// typography
|
|
9
|
-
// breakpoints
|
|
10
|
-
// misc
|
|
11
|
-
// components
|
|
12
|
-
// —————————————————————————————————————————————————————————————————
|
|
13
|
-
|
|
14
|
-
// —————————————————————————————————————————————————————————————————
|
|
15
|
-
// dependencies
|
|
16
|
-
// —————————————————————————————————————————————————————————————————
|
|
17
|
-
|
|
18
|
-
// $fonts-path: './assets/fonts/' !default;
|
|
19
|
-
// $icons-path: './assets/icons/' !default;
|
|
20
|
-
|
|
21
|
-
// —————————————————————————————————————————————————————————————————
|
|
22
|
-
// color palette
|
|
23
|
-
// —————————————————————————————————————————————————————————————————
|
|
24
|
-
|
|
25
|
-
// main
|
|
26
|
-
|
|
27
|
-
$main: #FFFFFF !default;
|
|
28
|
-
$contrast: #000A1E !default;
|
|
29
|
-
|
|
30
|
-
// grey
|
|
31
|
-
|
|
32
|
-
$grey-90: color.mix($contrast, $main, 90%) !default;
|
|
33
|
-
$grey-80: color.mix($contrast, $main, 80%) !default;
|
|
34
|
-
$grey-70: color.mix($contrast, $main, 70%) !default;
|
|
35
|
-
$grey-60: color.mix($contrast, $main, 60%) !default;
|
|
36
|
-
$grey-50: color.mix($contrast, $main, 50%) !default;
|
|
37
|
-
$grey-40: color.mix($contrast, $main, 40%) !default;
|
|
38
|
-
$grey-30: color.mix($contrast, $main, 30%) !default;
|
|
39
|
-
$grey-20: color.mix($contrast, $main, 20%) !default;
|
|
40
|
-
$grey-10: color.mix($contrast, $main, 10%) !default;
|
|
41
|
-
$grey-5: color.mix($contrast, $main, 5%) !default;
|
|
42
|
-
|
|
43
|
-
// background
|
|
44
|
-
|
|
45
|
-
$background-default: $grey-5 !default;
|
|
46
|
-
$background-paper: $main !default;
|
|
47
|
-
|
|
48
|
-
// text
|
|
49
|
-
|
|
50
|
-
$text: $contrast !default;
|
|
51
|
-
$text-alt: rgba($text, 0.5) !default;
|
|
52
|
-
$text-disabled: rgba($text, 0.25) !default;
|
|
53
|
-
|
|
54
|
-
$text-contrast: $main !default;
|
|
55
|
-
$text-contrast-alt: rgba($text-contrast, 0.6) !default;
|
|
56
|
-
$text-contrast-disabled: rgba($text-contrast, 0.3) !default;
|
|
57
|
-
|
|
58
|
-
// brand
|
|
59
|
-
|
|
60
|
-
$primary: #3C6BF4 !default;
|
|
61
|
-
$primary-light: color.mix($main, $primary, 70%) !default;
|
|
62
|
-
$primary-dark: color.mix($contrast, $primary, 50%) !default;
|
|
63
|
-
$primary-contrast: $text-contrast !default;
|
|
64
|
-
|
|
65
|
-
$secondary: #9E6D04 !default;
|
|
66
|
-
$secondary-light: color.mix($main, $secondary, 70%) !default;
|
|
67
|
-
$secondary-dark: color.mix($contrast, $secondary, 50%) !default;
|
|
68
|
-
$secondary-contrast: $text-contrast !default;
|
|
69
|
-
|
|
70
|
-
// feedback
|
|
71
|
-
|
|
72
|
-
$success: #27AE60 !default;
|
|
73
|
-
$success-light: color.mix($main, $success, 80%) !default;
|
|
74
|
-
$success-dark: color.mix($contrast, $success, 60%) !default;
|
|
75
|
-
$success-contrast: $text-contrast !default;
|
|
76
|
-
|
|
77
|
-
$info: #17A0CC !default;
|
|
78
|
-
$info-light: color.mix($main, $info, 80%) !default;
|
|
79
|
-
$info-dark: color.mix($contrast, $info, 60%) !default;
|
|
80
|
-
$info-contrast: $text-contrast !default;
|
|
81
|
-
|
|
82
|
-
$warning: #FFDC46 !default;
|
|
83
|
-
$warning-light: color.mix($main, $warning, 80%) !default;
|
|
84
|
-
$warning-dark: color.mix($contrast, $warning, 60%) !default;
|
|
85
|
-
$warning-contrast: $text !default;
|
|
86
|
-
|
|
87
|
-
$error: #EB5757 !default;
|
|
88
|
-
$error-light: color.mix($main, $error, 80%) !default;
|
|
89
|
-
$error-dark: color.mix($contrast, $error, 60%) !default;
|
|
90
|
-
$error-contrast: $text-contrast !default;
|
|
91
|
-
|
|
92
|
-
// others
|
|
93
|
-
|
|
94
|
-
$border-color: rgba($text, 0.2) !default;
|
|
95
|
-
$border: 1px solid $border-color !default;
|
|
96
|
-
$border-color-contrast: rgba($text-contrast, 0.3) !default;
|
|
97
|
-
$border-contrast: 1px solid $border-color-contrast !default;
|
|
98
|
-
|
|
99
|
-
$hover: rgba($text, 0.08) !default;
|
|
100
|
-
$hover-contrast: rgba($text-contrast, 0.08) !default;
|
|
101
|
-
|
|
102
|
-
$overlay: rgba($text-contrast, 0.8) !default;
|
|
103
|
-
$overlay-contrast: rgba($text, 0.2) !default;
|
|
104
|
-
|
|
105
|
-
$input-background: rgba($text, 0.05);
|
|
106
|
-
|
|
107
|
-
// —————————————————————————————————————————————————————————————————
|
|
108
|
-
// spacing
|
|
109
|
-
// —————————————————————————————————————————————————————————————————
|
|
110
|
-
|
|
111
|
-
$col: calc(100%/12);
|
|
112
|
-
|
|
113
|
-
$spacing-xxs: 0.125rem !default;
|
|
114
|
-
$spacing-xs: 0.25rem !default;
|
|
115
|
-
$spacing-sm: 0.5rem !default;
|
|
116
|
-
$spacing-md: 1rem !default;
|
|
117
|
-
$spacing-lg: 2rem !default;
|
|
118
|
-
$spacing-xl: 4rem !default;
|
|
119
|
-
$spacing-xxl: 7rem !default;
|
|
120
|
-
|
|
121
|
-
$max-width-subtitle: 27.5rem !default;
|
|
122
|
-
$max-width-editor: 40rem !default;
|
|
123
|
-
$max-width-form: 40rem !default;
|
|
124
|
-
|
|
125
|
-
$navbar-height: 4rem !default;
|
|
126
|
-
$navbar-height-sm: 3rem !default;
|
|
127
|
-
$nav-item: $spacing-md !default;
|
|
128
|
-
|
|
129
|
-
// —————————————————————————————————————————————————————————————————
|
|
130
|
-
// typography
|
|
131
|
-
// —————————————————————————————————————————————————————————————————
|
|
132
|
-
|
|
133
|
-
// Functions to unquote and remove spaces
|
|
134
|
-
// @function str-replace($string, $search, $replace: "") {
|
|
135
|
-
// $index: string.index($string, $search);
|
|
136
|
-
|
|
137
|
-
// @if $index {
|
|
138
|
-
// @return str-replace(
|
|
139
|
-
// string.slice($string, 1, $index - 1) + $replace + string.slice($string, $index + string.length($search), string.length($string)),
|
|
140
|
-
// $search,
|
|
141
|
-
// $replace
|
|
142
|
-
// );
|
|
143
|
-
// }
|
|
144
|
-
|
|
145
|
-
// @return $string;
|
|
146
|
-
// }
|
|
147
|
-
// @function clean-string($string) {
|
|
148
|
-
// @return str-replace(string.unquote($string), " ");
|
|
149
|
-
// }
|
|
150
|
-
|
|
151
|
-
// typefaces
|
|
152
|
-
$font: "Source Sans Pro" !default;
|
|
153
|
-
// $font-clean: clean-string($font);
|
|
154
|
-
$font-fallback: "Arial, sans-serif" !default;
|
|
155
|
-
$font-code: monospace !default;
|
|
156
|
-
|
|
157
|
-
// weight
|
|
158
|
-
|
|
159
|
-
$font-regular: 400 !default;
|
|
160
|
-
$font-bold: 700 !default;
|
|
161
|
-
|
|
162
|
-
// styles
|
|
163
|
-
|
|
164
|
-
$h1-size: 3rem !default;
|
|
165
|
-
$h1-weight: $font-bold !default;
|
|
166
|
-
$h1-line-height: 1.25 !default;
|
|
167
|
-
|
|
168
|
-
$h2-size: 2.5rem !default;
|
|
169
|
-
$h2-weight: $font-bold !default;
|
|
170
|
-
$h2-line-height: 1.25 !default;
|
|
171
|
-
|
|
172
|
-
$h3-size: 2rem !default;
|
|
173
|
-
$h3-weight: $font-bold !default;
|
|
174
|
-
$h3-line-height: 1.25 !default;
|
|
175
|
-
|
|
176
|
-
$h4-size: 1.75rem !default;
|
|
177
|
-
$h4-weight: $font-bold !default;
|
|
178
|
-
$h4-line-height: 1.25 !default;
|
|
179
|
-
|
|
180
|
-
$h5-size: 1.5rem !default;
|
|
181
|
-
$h5-weight: $font-bold !default;
|
|
182
|
-
$h5-line-height: 1.25 !default;
|
|
183
|
-
|
|
184
|
-
$h6-size: 1.25rem !default;
|
|
185
|
-
$h6-weight: $font-bold !default;
|
|
186
|
-
$h6-line-height: 1.25 !default;
|
|
187
|
-
|
|
188
|
-
$subtitle-size: 1.125rem !default;
|
|
189
|
-
$subtitle-weight: $font-regular !default;
|
|
190
|
-
$subtitle-line-height: 1.5 !default;
|
|
191
|
-
|
|
192
|
-
$body-size: 1rem !default;
|
|
193
|
-
$body-weight: $font-regular !default;
|
|
194
|
-
$body-line-height: 1.5 !default;
|
|
195
|
-
|
|
196
|
-
$caption-size: 0.875rem !default;
|
|
197
|
-
$caption-weight: $font-regular !default;
|
|
198
|
-
$caption-line-height: 1.5 !default;
|
|
199
|
-
|
|
200
|
-
$overline-size: 0.75rem !default;
|
|
201
|
-
$overline-weight: $font-regular !default;
|
|
202
|
-
$overline-line-height: 1.5 !default;
|
|
203
|
-
|
|
204
|
-
// —————————————————————————————————————————————————————————————————
|
|
205
|
-
// breakpoints
|
|
206
|
-
// —————————————————————————————————————————————————————————————————
|
|
207
|
-
|
|
208
|
-
$desktop-lg: 1440px !default;
|
|
209
|
-
$desktop-lg-down: calc(#{$desktop-lg} - 0.02px);
|
|
210
|
-
|
|
211
|
-
$desktop: 1280px !default;
|
|
212
|
-
$desktop-down: calc(#{$desktop} - 0.02px);
|
|
213
|
-
|
|
214
|
-
$laptop: 1024px !default;
|
|
215
|
-
$laptop-down: calc(#{$laptop} - 0.02px);
|
|
216
|
-
|
|
217
|
-
$tablet: 768px !default;
|
|
218
|
-
$tablet-down: calc(#{$tablet} - 0.02px);
|
|
219
|
-
|
|
220
|
-
$mobile: 568px !default;
|
|
221
|
-
$mobile-down: calc(#{$mobile} - 0.02px);
|
|
222
|
-
|
|
223
|
-
$mobile-sm: 350px !default;
|
|
224
|
-
$mobile-sm-down: calc(#{$mobile-sm} - 0.02px);
|
|
225
|
-
|
|
226
|
-
// —————————————————————————————————————————————————————————————————
|
|
227
|
-
// misc
|
|
228
|
-
// —————————————————————————————————————————————————————————————————
|
|
229
|
-
|
|
230
|
-
// box-shadow
|
|
231
|
-
|
|
232
|
-
$box-shadow: 0 0 .5rem 0 rgba($text, 0.2) !default;
|
|
233
|
-
|
|
234
|
-
// transition
|
|
235
|
-
|
|
236
|
-
$transition-md: 0.4s ease 0s !default;
|
|
237
|
-
$transition-lg: 0.8s ease 0s !default;
|
|
238
|
-
|
|
239
|
-
// border-radius
|
|
240
|
-
|
|
241
|
-
$border-radius-sm: .25rem !default;
|
|
242
|
-
$border-radius-md: .5rem !default;
|
|
243
|
-
$border-radius-lg: 1rem !default;
|
|
244
|
-
|
|
245
|
-
// —————————————————————————————————————————————————————————————————
|
|
246
|
-
// components
|
|
247
|
-
// —————————————————————————————————————————————————————————————————
|
|
248
|
-
|
|
249
|
-
// input
|
|
250
|
-
|
|
251
|
-
$input-height: 2.5rem;
|
|
252
|
-
$checkbox-width: 1.5rem;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
@use '../common/mixins';
|
|
2
|
-
@use '../common/variables';
|
|
3
|
-
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
// elements
|
|
6
|
-
// size
|
|
7
|
-
// transparent
|
|
8
|
-
// active
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
|
|
11
|
-
// —————————————————————————————————————————————————————————————————
|
|
12
|
-
// elements
|
|
13
|
-
// —————————————————————————————————————————————————————————————————
|
|
14
|
-
|
|
15
|
-
.accordion {
|
|
16
|
-
width: 100%;
|
|
17
|
-
|
|
18
|
-
&__item {
|
|
19
|
-
position: relative;
|
|
20
|
-
background-color: variables.$hover;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__control,
|
|
25
|
-
&__content {
|
|
26
|
-
transition: padding variables.$transition-md;
|
|
27
|
-
will-change: padding;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__control {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
width: 100%;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
|
|
36
|
-
&:after {
|
|
37
|
-
transition: transform variables.$transition-md;
|
|
38
|
-
will-change: transform;
|
|
39
|
-
position: absolute;
|
|
40
|
-
height: variables.$spacing-md;
|
|
41
|
-
width: variables.$spacing-md;
|
|
42
|
-
transform-origin: center 60%;
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__content {
|
|
48
|
-
max-height: 0;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
transition: max-height variables.$transition-md;
|
|
51
|
-
will-change: max-height;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// —————————————————————————————————————————————————————————————————
|
|
56
|
-
// size
|
|
57
|
-
// —————————————————————————————————————————————————————————————————
|
|
58
|
-
|
|
59
|
-
@mixin accordion-size($proportion, $size) {
|
|
60
|
-
|
|
61
|
-
.accordion {
|
|
62
|
-
|
|
63
|
-
&__item {
|
|
64
|
-
border-radius: calc($size*2/3);
|
|
65
|
-
|
|
66
|
-
&:not(:last-child) { margin-bottom: calc($size/3); }
|
|
67
|
-
&--active { padding-bottom: $size; }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__control {
|
|
71
|
-
padding: $size $size*1.5;
|
|
72
|
-
|
|
73
|
-
&:after {
|
|
74
|
-
top: $size;
|
|
75
|
-
right: $size*1.25;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&__header {
|
|
80
|
-
|
|
81
|
-
@if $proportion == sm { margin-bottom: -1px; }
|
|
82
|
-
@if $proportion == lg { margin: -1px 0 -2px 0; }
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&__content {
|
|
86
|
-
padding: 0 $size*1.5;
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.accordion--transparent .accordion__item--active:not(:first-child) {
|
|
92
|
-
margin-top: calc($size/3);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.accordion {
|
|
97
|
-
|
|
98
|
-
@include accordion-size(md, variables.$spacing-sm);
|
|
99
|
-
&--sm { @include accordion-size(sm, variables.$spacing-xs); }
|
|
100
|
-
&--lg { @include accordion-size(lg, variables.$spacing-md); }
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// —————————————————————————————————————————————————————————————————
|
|
104
|
-
// transparent
|
|
105
|
-
// —————————————————————————————————————————————————————————————————
|
|
106
|
-
|
|
107
|
-
.accordion--transparent {
|
|
108
|
-
|
|
109
|
-
.accordion__item {
|
|
110
|
-
transition: background-color variables.$transition-md, margin variables.$transition-md;
|
|
111
|
-
will-change: background-color, margin;
|
|
112
|
-
background-color: transparent;
|
|
113
|
-
|
|
114
|
-
@include mixins.hover { background-color: variables.$hover; }
|
|
115
|
-
&--active { background-color: variables.$hover; }
|
|
116
|
-
|
|
117
|
-
&:not(:last-child):not(.accordion__item--active) {
|
|
118
|
-
margin-bottom: 0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// —————————————————————————————————————————————————————————————————
|
|
124
|
-
// active
|
|
125
|
-
// —————————————————————————————————————————————————————————————————
|
|
126
|
-
|
|
127
|
-
.accordion__item--active {
|
|
128
|
-
|
|
129
|
-
.accordion__control:after {
|
|
130
|
-
transform: rotate(180deg);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
@use '../common/mixins';
|
|
2
|
-
@use '../common/variables';
|
|
3
|
-
@use '../utilities/text';
|
|
4
|
-
|
|
5
|
-
// —————————————————————————————————————————————————————————————————
|
|
6
|
-
// elements
|
|
7
|
-
// color
|
|
8
|
-
// notice
|
|
9
|
-
// bar
|
|
10
|
-
// dense
|
|
11
|
-
// noIcon
|
|
12
|
-
// —————————————————————————————————————————————————————————————————
|
|
13
|
-
|
|
14
|
-
$spacing-alert: .5rem;
|
|
15
|
-
|
|
16
|
-
// —————————————————————————————————————————————————————————————————
|
|
17
|
-
// elements
|
|
18
|
-
// —————————————————————————————————————————————————————————————————
|
|
19
|
-
|
|
20
|
-
.alert {
|
|
21
|
-
border-radius: $spacing-alert;
|
|
22
|
-
padding: $spacing-alert $spacing-alert*2;
|
|
23
|
-
position: fixed;
|
|
24
|
-
top: 1rem;
|
|
25
|
-
right: 1rem;
|
|
26
|
-
width: 100%;
|
|
27
|
-
max-width: 20rem;
|
|
28
|
-
z-index: 20;
|
|
29
|
-
|
|
30
|
-
&:not(.alert-bar) {
|
|
31
|
-
padding-left: 2.5rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@include mixins.responsive(down, mobile) {
|
|
35
|
-
@include mixins.calc(max-width, '100vw - '1rem);
|
|
36
|
-
right: .5rem;
|
|
37
|
-
top: .5rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@include mixins.responsive(down, mobile-sm) {
|
|
41
|
-
@include mixins.calc(width, '100vw - '1rem);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:before {
|
|
45
|
-
content: "";
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: $spacing-alert;
|
|
48
|
-
left: $spacing-alert;
|
|
49
|
-
height: $spacing-alert*3;
|
|
50
|
-
width: $spacing-alert*3;
|
|
51
|
-
background-size: cover;
|
|
52
|
-
background-repeat: no-repeat;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&_title {
|
|
56
|
-
font-weight: variables.$font-bold !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&_subtitle {
|
|
60
|
-
@extend .caption;
|
|
61
|
-
margin-top: 0.125rem !important;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&_close {
|
|
65
|
-
transition: opacity variables.$transition-md;
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: .5rem;
|
|
68
|
-
right: .5rem;
|
|
69
|
-
line-height: 0;
|
|
70
|
-
|
|
71
|
-
svg {
|
|
72
|
-
width: .5rem;
|
|
73
|
-
height: .5rem;
|
|
74
|
-
fill: variables.$success-dark
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:hover {
|
|
78
|
-
opacity: 0.5;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// —————————————————————————————————————————————————————————————————
|
|
84
|
-
// color
|
|
85
|
-
// —————————————————————————————————————————————————————————————————
|
|
86
|
-
|
|
87
|
-
@mixin alert-color($color, $title-color: variables.$success-dark, $background-color: variables.$success-light, $border-color: variables.$success) {
|
|
88
|
-
@if $color == success { $title-color: variables.$success-dark; $background-color: variables.$success-light; $border-color: variables.$success; }
|
|
89
|
-
@else if $color == info { $title-color: variables.$info-dark; $background-color: variables.$info-light; $border-color: variables.$info; }
|
|
90
|
-
@else if $color == warning { $title-color: variables.$warning-dark; $background-color: variables.$warning-light; $border-color: variables.$warning; }
|
|
91
|
-
@else if $color == error { $title-color: variables.$error-dark; $background-color: variables.$error-light; $border-color: variables.$error; }
|
|
92
|
-
|
|
93
|
-
background-color: $background-color;
|
|
94
|
-
border: 1px solid $border-color;
|
|
95
|
-
color: $title-color;
|
|
96
|
-
|
|
97
|
-
&:not(.alert-bar):before {
|
|
98
|
-
|
|
99
|
-
@if $color == success { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%230C5F3F' viewBox='0 0 256 256'%3E%3Cpath d='M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'%3E%3C/path%3E%3C/svg%3E"); }
|
|
100
|
-
@else if $color == info { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%230B5F11' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z'%3E%3C/path%3E%3C/svg%3E"); }
|
|
101
|
-
@else if $color == warning { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%237F7332' viewBox='0 0 256 256'%3E%3Cpath d='M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z'%3E%3C/path%3E%3C/svg%3E"); }
|
|
102
|
-
@else if $color == error { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%2375303A' viewBox='0 0 256 256'%3E%3Cpath d='M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'%3E%3C/path%3E%3C/svg%3E"); }
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.alert {
|
|
107
|
-
|
|
108
|
-
&-success { @include alert-color(success); }
|
|
109
|
-
&-info { @include alert-color(info); }
|
|
110
|
-
&-warning { @include alert-color(warning); }
|
|
111
|
-
&-error { @include alert-color(error); }
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// —————————————————————————————————————————————————————————————————
|
|
115
|
-
// notice
|
|
116
|
-
// —————————————————————————————————————————————————————————————————
|
|
117
|
-
|
|
118
|
-
.alert {
|
|
119
|
-
|
|
120
|
-
&-notice {
|
|
121
|
-
position: relative;
|
|
122
|
-
max-width: none;
|
|
123
|
-
z-index: 1;
|
|
124
|
-
top: 0;
|
|
125
|
-
right: 0;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// —————————————————————————————————————————————————————————————————
|
|
130
|
-
// bar
|
|
131
|
-
// —————————————————————————————————————————————————————————————————
|
|
132
|
-
|
|
133
|
-
.alert {
|
|
134
|
-
|
|
135
|
-
&-bar {
|
|
136
|
-
position: fixed;
|
|
137
|
-
top: 0;
|
|
138
|
-
right: 0;
|
|
139
|
-
max-width: none;
|
|
140
|
-
width: 100%; // needed for small devices to not overflow the container
|
|
141
|
-
z-index: 1;
|
|
142
|
-
border-radius: 0;
|
|
143
|
-
border-left: 0;
|
|
144
|
-
border-right: 0;
|
|
145
|
-
text-align: center;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// —————————————————————————————————————————————————————————————————
|
|
150
|
-
// dense
|
|
151
|
-
// —————————————————————————————————————————————————————————————————
|
|
152
|
-
|
|
153
|
-
.alert-dense {
|
|
154
|
-
padding: $spacing-alert*0.5 $spacing-alert;
|
|
155
|
-
|
|
156
|
-
&:before {
|
|
157
|
-
top: $spacing-alert*0.5;
|
|
158
|
-
left: $spacing-alert*0.5;
|
|
159
|
-
height: 1rem*1.25;
|
|
160
|
-
width: 1rem*1.25;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&:not(.alert-bar) {
|
|
164
|
-
padding-left: 1rem*1.75;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.alert_title { @extend .caption; }
|
|
168
|
-
.alert_subtitle { @extend .overline; margin-top: 0 !important; }
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// —————————————————————————————————————————————————————————————————
|
|
172
|
-
// noIcon
|
|
173
|
-
// —————————————————————————————————————————————————————————————————
|
|
174
|
-
|
|
175
|
-
.alert.alert {
|
|
176
|
-
|
|
177
|
-
&-noIcon {
|
|
178
|
-
padding-left: 1rem;
|
|
179
|
-
|
|
180
|
-
&.alert-dense {
|
|
181
|
-
padding-left: .5rem;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&:before {
|
|
185
|
-
display: none;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
@use '../common/mixins';
|
|
2
|
-
@use '../common/variables';
|
|
3
|
-
@use '../utilities/text';
|
|
4
|
-
|
|
5
|
-
// —————————————————————————————————————————————————————————————————
|
|
6
|
-
// elements
|
|
7
|
-
// separator
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
|
|
10
|
-
// —————————————————————————————————————————————————————————————————
|
|
11
|
-
// elements
|
|
12
|
-
// —————————————————————————————————————————————————————————————————
|
|
13
|
-
|
|
14
|
-
.breadcrumbs {
|
|
15
|
-
text-transform: uppercase;
|
|
16
|
-
|
|
17
|
-
ol {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
flex-wrap: wrap;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
li {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
padding-top: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&_item {
|
|
28
|
-
@extend %caption;
|
|
29
|
-
font-weight: variables.$font-bold;
|
|
30
|
-
|
|
31
|
-
&:not(:first-child) {
|
|
32
|
-
margin-left: .25rem;
|
|
33
|
-
|
|
34
|
-
&:before {
|
|
35
|
-
content: "/";
|
|
36
|
-
margin-right: .25rem;
|
|
37
|
-
color: variables.$text-alt;
|
|
38
|
-
display: inline-block; // required to remove underline on hover for before element
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
a {
|
|
43
|
-
border-radius: variables.$border-radius-sm;
|
|
44
|
-
text-underline-offset: .15em;
|
|
45
|
-
|
|
46
|
-
&:hover {
|
|
47
|
-
text-decoration: underline;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
p {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
color: variables.$primary;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// —————————————————————————————————————————————————————————————————
|
|
59
|
-
// separator
|
|
60
|
-
// —————————————————————————————————————————————————————————————————
|
|
61
|
-
|
|
62
|
-
.breadcrumbs-arrow .breadcrumbs_item:not(:first-child):before {
|
|
63
|
-
content: '';
|
|
64
|
-
border: solid variables.$text-alt;
|
|
65
|
-
border-width: 0 1px 1px 0;
|
|
66
|
-
padding: .2em;
|
|
67
|
-
transform: rotate(-45deg);
|
|
68
|
-
margin-right: .5rem;
|
|
69
|
-
margin-bottom: .1em;
|
|
70
|
-
}
|