pallote-css 0.3.10 → 0.3.12
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/README.md +0 -144
- package/dist/pallote.min.css +1 -1
- package/dist/pallote.min.css.map +1 -1
- package/dist/pallote.scss +31 -36
- package/dist/styles/common/_editor.scss +29 -25
- package/dist/styles/common/_fontface.scss +7 -4
- package/dist/styles/common/_global.scss +25 -22
- package/dist/styles/common/_mixins.scss +19 -16
- package/dist/styles/common/_reset.scss +4 -2
- package/dist/styles/common/_variables.scss +28 -25
- package/dist/styles/components/_accordion.scss +16 -13
- package/dist/styles/components/_alert.scss +44 -40
- package/dist/styles/components/_breadcrumbs.scss +8 -5
- package/dist/styles/components/_button.scss +32 -26
- package/dist/styles/components/_buttons.scss +4 -2
- package/dist/styles/components/_card.scss +14 -11
- package/dist/styles/components/_divider.scss +3 -1
- package/dist/styles/components/_form.scss +4 -1
- package/dist/styles/components/_grid.scss +11 -8
- package/dist/styles/components/_input.scss +36 -32
- package/dist/styles/components/_link.scss +7 -4
- package/dist/styles/components/_list.scss +2 -0
- package/dist/styles/components/_nav.scss +49 -45
- package/dist/styles/components/_navbar.scss +42 -39
- package/dist/styles/components/_section.scss +35 -31
- package/dist/styles/components/_sidebar.scss +20 -16
- package/dist/styles/components/_snippet.scss +25 -22
- package/dist/styles/components/_status.scss +8 -5
- package/dist/styles/components/_switch.scss +11 -8
- package/dist/styles/components/_tabs.scss +18 -15
- package/dist/styles/components/_tag.scss +16 -12
- package/dist/styles/utilities/_color.scss +84 -81
- package/dist/styles/utilities/_global.scss +23 -20
- package/dist/styles/utilities/_text.scss +55 -51
- package/package.json +12 -8
- package/dist/assets/fonts/SourceSansPro/regular.woff2 +0 -0
- package/dist/assets/fonts/SourceSansPro/regularitalic.woff2 +0 -0
- package/dist/assets/fonts/SourceSansPro/semibold.woff2 +0 -0
- package/dist/assets/fonts/SourceSansPro/semibolditalic.woff2 +0 -0
- package/dist/assets/icons/logos/patreon.svg +0 -3
- package/dist/assets/icons/phosphor/arrow-right.svg +0 -1
- package/dist/assets/icons/phosphor/arrow-square-out.svg +0 -1
- package/dist/assets/icons/phosphor/caret-down.svg +0 -1
- package/dist/assets/icons/phosphor/check-circle.svg +0 -1
- package/dist/assets/icons/phosphor/check.svg +0 -1
- package/dist/assets/icons/phosphor/coffee.svg +0 -1
- package/dist/assets/icons/phosphor/download-simple.svg +0 -1
- package/dist/assets/icons/phosphor/envelope-simple.svg +0 -1
- package/dist/assets/icons/phosphor/files.svg +0 -1
- package/dist/assets/icons/phosphor/info.svg +0 -1
- package/dist/assets/icons/phosphor/warning.svg +0 -1
- package/dist/assets/icons/phosphor/x-circle.svg +0 -1
- package/dist/assets/icons/rabbit.svg +0 -1
- package/dist/scripts/accordion.js +0 -42
- package/dist/scripts/button.js +0 -5
- package/dist/scripts/cookie.js +0 -15
- package/dist/scripts/input.js +0 -18
- package/dist/scripts/nav.js +0 -22
- package/dist/scripts/navbar.js +0 -28
- package/dist/scripts/switch.js +0 -3
- package/dist/scripts/tabs.js +0 -30
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// dependencies
|
|
3
6
|
// color palette
|
|
@@ -26,16 +29,16 @@ $contrast: #000A1E !default;
|
|
|
26
29
|
|
|
27
30
|
// grey
|
|
28
31
|
|
|
29
|
-
$grey-90: mix($contrast, $main, 90%) !default;
|
|
30
|
-
$grey-80: mix($contrast, $main, 80%) !default;
|
|
31
|
-
$grey-70: mix($contrast, $main, 70%) !default;
|
|
32
|
-
$grey-60: mix($contrast, $main, 60%) !default;
|
|
33
|
-
$grey-50: mix($contrast, $main, 50%) !default;
|
|
34
|
-
$grey-40: mix($contrast, $main, 40%) !default;
|
|
35
|
-
$grey-30: mix($contrast, $main, 30%) !default;
|
|
36
|
-
$grey-20: mix($contrast, $main, 20%) !default;
|
|
37
|
-
$grey-10: mix($contrast, $main, 10%) !default;
|
|
38
|
-
$grey-5: mix($contrast, $main, 5%) !default;
|
|
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;
|
|
39
42
|
|
|
40
43
|
// background
|
|
41
44
|
|
|
@@ -55,35 +58,35 @@ $text-contrast-disabled: rgba($text-contrast, 0.3) !default;
|
|
|
55
58
|
// brand
|
|
56
59
|
|
|
57
60
|
$primary: #0076AC !default;
|
|
58
|
-
$primary-light: mix($main, $primary, 70%) !default;
|
|
59
|
-
$primary-dark: mix($contrast, $primary, 50%) !default;
|
|
61
|
+
$primary-light: color.mix($main, $primary, 70%) !default;
|
|
62
|
+
$primary-dark: color.mix($contrast, $primary, 50%) !default;
|
|
60
63
|
$primary-contrast: $text-contrast !default;
|
|
61
64
|
|
|
62
65
|
$secondary: #C24889 !default;
|
|
63
|
-
$secondary-light: mix($main, $secondary, 70%) !default;
|
|
64
|
-
$secondary-dark: mix($contrast, $secondary, 50%) !default;
|
|
66
|
+
$secondary-light: color.mix($main, $secondary, 70%) !default;
|
|
67
|
+
$secondary-dark: color.mix($contrast, $secondary, 50%) !default;
|
|
65
68
|
$secondary-contrast: $text-contrast !default;
|
|
66
69
|
|
|
67
70
|
// feedback
|
|
68
71
|
|
|
69
72
|
$success: #27AE60 !default;
|
|
70
|
-
$success-light: mix($main, $success, 70%) !default;
|
|
71
|
-
$success-dark: mix($contrast, $success, 50%) !default;
|
|
73
|
+
$success-light: color.mix($main, $success, 70%) !default;
|
|
74
|
+
$success-dark: color.mix($contrast, $success, 50%) !default;
|
|
72
75
|
$success-contrast: $text-contrast !default;
|
|
73
76
|
|
|
74
77
|
$info: #17A0CC !default;
|
|
75
|
-
$info-light: mix($main, $info, 70%) !default;
|
|
76
|
-
$info-dark: mix($contrast, $info, 50%) !default;
|
|
78
|
+
$info-light: color.mix($main, $info, 70%) !default;
|
|
79
|
+
$info-dark: color.mix($contrast, $info, 50%) !default;
|
|
77
80
|
$info-contrast: $text-contrast !default;
|
|
78
81
|
|
|
79
82
|
$warning: #FFDC46 !default;
|
|
80
|
-
$warning-light: mix($main, $warning, 70%) !default;
|
|
81
|
-
$warning-dark: mix($contrast, $warning, 50%) !default;
|
|
83
|
+
$warning-light: color.mix($main, $warning, 70%) !default;
|
|
84
|
+
$warning-dark: color.mix($contrast, $warning, 50%) !default;
|
|
82
85
|
$warning-contrast: $text !default;
|
|
83
86
|
|
|
84
87
|
$error: #EB5757 !default;
|
|
85
|
-
$error-light: mix($main, $error, 70%) !default;
|
|
86
|
-
$error-dark: mix($contrast, $error, 50%) !default;
|
|
88
|
+
$error-light: color.mix($main, $error, 70%) !default;
|
|
89
|
+
$error-dark: color.mix($contrast, $error, 50%) !default;
|
|
87
90
|
$error-contrast: $text-contrast !default;
|
|
88
91
|
|
|
89
92
|
// others
|
|
@@ -129,11 +132,11 @@ $nav-item: $spacing-md !default;
|
|
|
129
132
|
|
|
130
133
|
// Functions to unquote and remove spaces
|
|
131
134
|
@function str-replace($string, $search, $replace: "") {
|
|
132
|
-
$index:
|
|
135
|
+
$index: string.index($string, $search);
|
|
133
136
|
|
|
134
137
|
@if $index {
|
|
135
138
|
@return str-replace(
|
|
136
|
-
|
|
139
|
+
string.slice($string, 1, $index - 1) + $replace + string.slice($string, $index + string.length($search), string.length($string)),
|
|
137
140
|
$search,
|
|
138
141
|
$replace
|
|
139
142
|
);
|
|
@@ -142,7 +145,7 @@ $nav-item: $spacing-md !default;
|
|
|
142
145
|
@return $string;
|
|
143
146
|
}
|
|
144
147
|
@function clean-string($string) {
|
|
145
|
-
@return str-replace(unquote($string), " ");
|
|
148
|
+
@return str-replace(string.unquote($string), " ");
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
// typefaces
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../common/mixins";
|
|
2
|
+
@use "../common/variables";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// elements
|
|
3
6
|
// size
|
|
@@ -14,13 +17,13 @@
|
|
|
14
17
|
|
|
15
18
|
&__item {
|
|
16
19
|
position: relative;
|
|
17
|
-
background-color:
|
|
20
|
+
background-color: variables.$hover;
|
|
18
21
|
width: 100%;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
&__control,
|
|
22
25
|
&__content {
|
|
23
|
-
transition: padding
|
|
26
|
+
transition: padding variables.$transition-md;
|
|
24
27
|
will-change: padding;
|
|
25
28
|
}
|
|
26
29
|
|
|
@@ -31,12 +34,12 @@
|
|
|
31
34
|
cursor: pointer;
|
|
32
35
|
|
|
33
36
|
&:after {
|
|
34
|
-
content: url(
|
|
35
|
-
transition: transform
|
|
37
|
+
// content: url(variables.$icons-path + 'phosphor/caret-down.svg');
|
|
38
|
+
transition: transform variables.$transition-md;
|
|
36
39
|
will-change: transform;
|
|
37
40
|
position: absolute;
|
|
38
|
-
height:
|
|
39
|
-
width:
|
|
41
|
+
height: variables.$spacing-md;
|
|
42
|
+
width: variables.$spacing-md;
|
|
40
43
|
transform-origin: center 60%;
|
|
41
44
|
pointer-events: none;
|
|
42
45
|
}
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
&__content {
|
|
46
49
|
max-height: 0;
|
|
47
50
|
overflow: hidden;
|
|
48
|
-
transition: max-height
|
|
51
|
+
transition: max-height variables.$transition-md;
|
|
49
52
|
will-change: max-height;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
@@ -93,9 +96,9 @@
|
|
|
93
96
|
|
|
94
97
|
.accordion {
|
|
95
98
|
|
|
96
|
-
@include size(md,
|
|
97
|
-
&--sm { @include size(sm,
|
|
98
|
-
&--lg { @include size(lg,
|
|
99
|
+
@include size(md, variables.$spacing-sm);
|
|
100
|
+
&--sm { @include size(sm, variables.$spacing-xs); }
|
|
101
|
+
&--lg { @include size(lg, variables.$spacing-md); }
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -105,12 +108,12 @@
|
|
|
105
108
|
.accordion--transparent {
|
|
106
109
|
|
|
107
110
|
.accordion__item {
|
|
108
|
-
transition: background-color
|
|
111
|
+
transition: background-color variables.$transition-md, margin variables.$transition-md;
|
|
109
112
|
will-change: background-color, margin;
|
|
110
113
|
background-color: transparent;
|
|
111
114
|
|
|
112
|
-
@include hover { background-color:
|
|
113
|
-
&--active { background-color:
|
|
115
|
+
@include mixins.hover { background-color: variables.$hover; }
|
|
116
|
+
&--active { background-color: variables.$hover; }
|
|
114
117
|
|
|
115
118
|
&:not(:last-child):not(.accordion__item--active) {
|
|
116
119
|
margin-bottom: 0;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "../common/mixins";
|
|
2
|
+
@use "../common/variables";
|
|
3
|
+
@use "../utilities/text";
|
|
4
|
+
|
|
1
5
|
// —————————————————————————————————————————————————————————————————
|
|
2
6
|
// elements
|
|
3
7
|
// color
|
|
@@ -7,51 +11,51 @@
|
|
|
7
11
|
// noIcon
|
|
8
12
|
// —————————————————————————————————————————————————————————————————
|
|
9
13
|
|
|
10
|
-
$spacing-alert:
|
|
14
|
+
$spacing-alert: variables.$spacing-sm;
|
|
11
15
|
|
|
12
16
|
// —————————————————————————————————————————————————————————————————
|
|
13
17
|
// elements
|
|
14
18
|
// —————————————————————————————————————————————————————————————————
|
|
15
19
|
|
|
16
20
|
.alert {
|
|
17
|
-
border-radius:
|
|
18
|
-
background-color:
|
|
19
|
-
color:
|
|
21
|
+
border-radius: variables.$spacing-sm;
|
|
22
|
+
background-color: variables.$info-light;
|
|
23
|
+
color: variables.$text;
|
|
20
24
|
padding: $spacing-alert $spacing-alert*2;
|
|
21
25
|
position: fixed;
|
|
22
|
-
top:
|
|
23
|
-
right:
|
|
26
|
+
top: variables.$spacing-md;
|
|
27
|
+
right: variables.$spacing-md;
|
|
24
28
|
width: fit-content;
|
|
25
|
-
max-width:
|
|
29
|
+
max-width: variables.$spacing-xxl*3;
|
|
26
30
|
z-index: 20;
|
|
27
31
|
|
|
28
32
|
&:not(.alert--bar) {
|
|
29
|
-
padding-left:
|
|
33
|
+
padding-left: variables.$spacing-lg + variables.$spacing-sm;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
@include responsive(down, mobile) {
|
|
33
|
-
@include calc(max-width, '100vw - '
|
|
36
|
+
@include mixins.responsive(down, mobile) {
|
|
37
|
+
@include mixins.calc(max-width, '100vw - 'variables.$spacing-md);
|
|
34
38
|
right: 8px;
|
|
35
|
-
top:
|
|
39
|
+
top: variables.$spacing-sm;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
@include responsive(down, mobile-sm) {
|
|
39
|
-
@include calc(width, '100vw - '
|
|
42
|
+
@include mixins.responsive(down, mobile-sm) {
|
|
43
|
+
@include mixins.calc(width, '100vw - 'variables.$spacing-md);
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
&:before {
|
|
43
47
|
content: "";
|
|
44
48
|
position: absolute;
|
|
45
49
|
top: $spacing-alert;
|
|
46
|
-
left:
|
|
47
|
-
height:
|
|
48
|
-
width:
|
|
50
|
+
left: variables.$spacing-sm;
|
|
51
|
+
height: variables.$spacing-md*1.5;
|
|
52
|
+
width: variables.$spacing-md*1.5;
|
|
49
53
|
background-size: cover;
|
|
50
54
|
background-repeat: no-repeat;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
&__title {
|
|
54
|
-
font-weight:
|
|
58
|
+
font-weight: variables.$font-bold !important;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
&__subtitle {
|
|
@@ -60,16 +64,16 @@ $spacing-alert: $spacing-sm;
|
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
&__close {
|
|
63
|
-
transition: opacity
|
|
67
|
+
transition: opacity variables.$transition-md;
|
|
64
68
|
position: absolute;
|
|
65
|
-
top:
|
|
66
|
-
right:
|
|
69
|
+
top: variables.$spacing-sm;
|
|
70
|
+
right: variables.$spacing-sm;
|
|
67
71
|
line-height: 0;
|
|
68
72
|
|
|
69
73
|
svg {
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
72
|
-
fill:
|
|
74
|
+
width: variables.$spacing-sm;
|
|
75
|
+
height: variables.$spacing-sm;
|
|
76
|
+
fill: variables.$success-dark
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
&:hover {
|
|
@@ -82,23 +86,23 @@ $spacing-alert: $spacing-sm;
|
|
|
82
86
|
// color
|
|
83
87
|
// —————————————————————————————————————————————————————————————————
|
|
84
88
|
|
|
85
|
-
@mixin color($color, $background-color:
|
|
86
|
-
@if $color == success { $background-color:
|
|
87
|
-
@else if $color == info { $background-color:
|
|
88
|
-
@else if $color == warning { $background-color:
|
|
89
|
-
@else if $color == error { $background-color:
|
|
89
|
+
@mixin color($color, $background-color: variables.$info-light, $border-color: variables.$info) {
|
|
90
|
+
@if $color == success { $background-color: variables.$success-light; $border-color: variables.$success; }
|
|
91
|
+
@else if $color == info { $background-color: variables.$info-light; $border-color: variables.$info; }
|
|
92
|
+
@else if $color == warning { $background-color: variables.$warning-light; $border-color: variables.$warning; }
|
|
93
|
+
@else if $color == error { $background-color: variables.$error-light; $border-color: variables.$error; }
|
|
90
94
|
|
|
91
95
|
background-color: $background-color;
|
|
92
96
|
border: 1px solid $border-color;
|
|
93
|
-
color:
|
|
97
|
+
color: variables.$text;
|
|
94
98
|
|
|
95
|
-
&:not(.alert--bar):before {
|
|
99
|
+
// &:not(.alert--bar):before {
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
101
|
+
// @if $color == success { content: url(variables.$icons-path + 'phosphor/check-circle.svg'); }
|
|
102
|
+
// @else if $color == info { content: url(variables.$icons-path + 'phosphor/info.svg'); }
|
|
103
|
+
// @else if $color == warning { content: url(variables.$icons-path + 'phosphor/warning.svg'); }
|
|
104
|
+
// @else if $color == error { content: url(variables.$icons-path + 'phosphor/x-circle.svg'); }
|
|
105
|
+
// }
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
.alert {
|
|
@@ -154,12 +158,12 @@ $spacing-alert: $spacing-sm;
|
|
|
154
158
|
&:before {
|
|
155
159
|
top: $spacing-alert*0.5;
|
|
156
160
|
left: $spacing-alert*0.5;
|
|
157
|
-
height:
|
|
158
|
-
width:
|
|
161
|
+
height: variables.$spacing-md*1.25;
|
|
162
|
+
width: variables.$spacing-md*1.25;
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
&:not(.alert--bar) {
|
|
162
|
-
padding-left:
|
|
166
|
+
padding-left: variables.$spacing-md*1.75;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
169
|
.alert__title {
|
|
@@ -181,10 +185,10 @@ $spacing-alert: $spacing-sm;
|
|
|
181
185
|
.alert.alert {
|
|
182
186
|
|
|
183
187
|
&--noIcon {
|
|
184
|
-
padding-left:
|
|
188
|
+
padding-left: variables.$spacing-md;
|
|
185
189
|
|
|
186
190
|
&.alert--dense {
|
|
187
|
-
padding-left:
|
|
191
|
+
padding-left: variables.$spacing-sm;
|
|
188
192
|
}
|
|
189
193
|
|
|
190
194
|
&:before {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../common/mixins";
|
|
2
|
+
@use "../common/variables";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// elements
|
|
3
6
|
// separator
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
display: inline-flex;
|
|
12
15
|
align-items: baseline;
|
|
13
16
|
|
|
14
|
-
@include responsive(down, tablet) {
|
|
17
|
+
@include mixins.responsive(down, tablet) {
|
|
15
18
|
flex-direction: column;
|
|
16
19
|
}
|
|
17
20
|
|
|
@@ -19,17 +22,17 @@
|
|
|
19
22
|
cursor: pointer;
|
|
20
23
|
|
|
21
24
|
&:not(:first-child) {
|
|
22
|
-
margin-left:
|
|
25
|
+
margin-left: variables.$spacing-xs;
|
|
23
26
|
|
|
24
27
|
&:before {
|
|
25
28
|
content: "/";
|
|
26
|
-
margin-right:
|
|
27
|
-
color:
|
|
29
|
+
margin-right: variables.$spacing-xs;
|
|
30
|
+
color: variables.$text-alt;
|
|
28
31
|
display: inline-block; // required to remove underline on hover for before element
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
@include hover {
|
|
35
|
+
@include mixins.hover {
|
|
33
36
|
text-decoration: underline;
|
|
34
37
|
}
|
|
35
38
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
@use "../common/mixins";
|
|
4
|
+
@use "../common/variables";
|
|
5
|
+
@use "../utilities/text";
|
|
6
|
+
|
|
1
7
|
// —————————————————————————————————————————————————————————————————
|
|
2
8
|
// elements
|
|
3
9
|
// kind
|
|
@@ -18,11 +24,11 @@
|
|
|
18
24
|
display: inline-flex;
|
|
19
25
|
align-items: center;
|
|
20
26
|
justify-content: center;
|
|
21
|
-
border-radius:
|
|
27
|
+
border-radius: variables.$border-radius-md;
|
|
22
28
|
position: relative;
|
|
23
29
|
line-height: 0;
|
|
24
30
|
text-transform: uppercase;
|
|
25
|
-
font-weight:
|
|
31
|
+
font-weight: variables.$font-bold;
|
|
26
32
|
white-space: nowrap;
|
|
27
33
|
outline-offset: 2px;
|
|
28
34
|
width: fit-content;
|
|
@@ -58,7 +64,7 @@
|
|
|
58
64
|
|
|
59
65
|
@if $value == xs or $value == sm {
|
|
60
66
|
@extend %overline;
|
|
61
|
-
border-radius:
|
|
67
|
+
border-radius: variables.$border-radius-sm;
|
|
62
68
|
}
|
|
63
69
|
@if $value == md { @extend %body; }
|
|
64
70
|
@if $value == lg { @extend %subtitle; }
|
|
@@ -98,57 +104,57 @@
|
|
|
98
104
|
@mixin color($prefix, $colors...) {
|
|
99
105
|
|
|
100
106
|
@each $i in $colors {
|
|
101
|
-
.#{$prefix}#{nth($i, 1)} {
|
|
102
|
-
background-color: nth($i, 2);
|
|
103
|
-
color: nth($i, 3);
|
|
107
|
+
.#{$prefix}#{list.nth($i, 1)} {
|
|
108
|
+
background-color: list.nth($i, 2);
|
|
109
|
+
color: list.nth($i, 3);
|
|
104
110
|
|
|
105
111
|
&:focus {
|
|
106
|
-
outline: 2px solid nth($i, 2);
|
|
112
|
+
outline: 2px solid list.nth($i, 2);
|
|
107
113
|
}
|
|
108
114
|
|
|
109
|
-
@include hover {
|
|
115
|
+
@include mixins.hover {
|
|
110
116
|
|
|
111
117
|
&:not(.button-disabled) {
|
|
112
|
-
background-color: mix(black, nth($i, 2), 20%);
|
|
118
|
+
background-color: color.mix(black, list.nth($i, 2), 20%);
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
&.button-stroke {
|
|
117
123
|
background-color: transparent;
|
|
118
|
-
border: 1px solid nth($i, 2);
|
|
119
|
-
color:
|
|
124
|
+
border: 1px solid list.nth($i, 2);
|
|
125
|
+
color: variables.$text;
|
|
120
126
|
|
|
121
|
-
@include hover {
|
|
127
|
+
@include mixins.hover {
|
|
122
128
|
|
|
123
129
|
&:not(.button-disabled) {
|
|
124
|
-
background-color:
|
|
130
|
+
background-color: variables.$hover;
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
|
|
128
|
-
svg { stroke:
|
|
134
|
+
svg { stroke: variables.$text; }
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
&.button-transparent {
|
|
132
138
|
background-color: transparent;
|
|
133
|
-
color: nth($i, 2);
|
|
139
|
+
color: list.nth($i, 2);
|
|
134
140
|
|
|
135
|
-
@include hover { background-color:
|
|
136
|
-
svg { stroke: nth($i, 2); }
|
|
141
|
+
@include mixins.hover { background-color: variables.$hover; }
|
|
142
|
+
svg { stroke: list.nth($i, 2); }
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
|
|
142
148
|
@include color('button',
|
|
143
|
-
''
|
|
144
|
-
'-secondary'
|
|
145
|
-
'-grey'
|
|
146
|
-
'-success'
|
|
147
|
-
'-info'
|
|
148
|
-
'-warning'
|
|
149
|
-
'-error'
|
|
150
|
-
'-main'
|
|
151
|
-
'-contrast'
|
|
149
|
+
'' variables.$primary variables.$primary-contrast,
|
|
150
|
+
'-secondary' variables.$secondary variables.$secondary-contrast,
|
|
151
|
+
'-grey' variables.$text-disabled variables.$text,
|
|
152
|
+
'-success' variables.$success variables.$success-contrast,
|
|
153
|
+
'-info' variables.$info variables.$info-contrast,
|
|
154
|
+
'-warning' variables.$warning variables.$warning-contrast,
|
|
155
|
+
'-error' variables.$error variables.$error-contrast,
|
|
156
|
+
'-main' variables.$main variables.$text,
|
|
157
|
+
'-contrast' variables.$contrast variables.$text-contrast
|
|
152
158
|
);
|
|
153
159
|
|
|
154
160
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../common/mixins";
|
|
2
|
+
|
|
1
3
|
// —————————————————————————————————————————————————————————————————
|
|
2
4
|
// elements
|
|
3
5
|
// direction
|
|
@@ -16,8 +18,8 @@
|
|
|
16
18
|
gap: .5rem;
|
|
17
19
|
|
|
18
20
|
// larger spacing on small and touch devices
|
|
19
|
-
@include responsive(down, mobile) { gap: 1rem; }
|
|
20
|
-
@include responsive-touch { gap: 1rem; }
|
|
21
|
+
@include mixins.responsive(down, mobile) { gap: 1rem; }
|
|
22
|
+
@include mixins.responsive-touch { gap: 1rem; }
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../common/variables";
|
|
2
|
+
@use "../utilities/text";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// elements
|
|
3
6
|
// size
|
|
@@ -17,10 +20,10 @@
|
|
|
17
20
|
align-items: stretch;
|
|
18
21
|
width: 100%;
|
|
19
22
|
overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
|
|
20
|
-
border:
|
|
23
|
+
border: variables.$border;
|
|
21
24
|
|
|
22
25
|
&:not(.card--transparent) {
|
|
23
|
-
background-color:
|
|
26
|
+
background-color: variables.$background-paper;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
&__media {
|
|
@@ -32,12 +35,12 @@
|
|
|
32
35
|
background-position: center center;
|
|
33
36
|
width: 100%;
|
|
34
37
|
height: 100%;
|
|
35
|
-
background-color:
|
|
38
|
+
background-color: variables.$overlay;
|
|
36
39
|
overflow: hidden;
|
|
37
40
|
padding-bottom: 50%;
|
|
38
41
|
|
|
39
42
|
.card--transparent & {
|
|
40
|
-
background-color:
|
|
43
|
+
background-color: variables.$overlay-contrast;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
}
|
|
@@ -81,7 +84,7 @@
|
|
|
81
84
|
flex-direction: column;
|
|
82
85
|
|
|
83
86
|
>*:not(:last-child) {
|
|
84
|
-
margin-bottom:
|
|
87
|
+
margin-bottom: variables.$spacing-md;
|
|
85
88
|
}
|
|
86
89
|
}
|
|
87
90
|
}
|
|
@@ -98,7 +101,7 @@
|
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
&.card--hasShadow {
|
|
101
|
-
box-shadow: 0 0 $size $size*0.25 rgba(
|
|
104
|
+
box-shadow: 0 0 $size $size*0.25 rgba(variables.$main ,0.3);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
> .card__media,
|
|
@@ -226,11 +229,11 @@
|
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
.card {
|
|
229
|
-
@include size(md,
|
|
230
|
-
&--xs.card { @include size(xs,
|
|
231
|
-
&--sm.card { @include size(sm,
|
|
232
|
-
&--lg.card { @include size(lg,
|
|
233
|
-
&--xl.card { @include size(xl,
|
|
232
|
+
@include size(md, variables.$spacing-md+variables.$spacing-sm);
|
|
233
|
+
&--xs.card { @include size(xs, variables.$spacing-sm+variables.$spacing-xs); }
|
|
234
|
+
&--sm.card { @include size(sm, variables.$spacing-md); }
|
|
235
|
+
&--lg.card { @include size(lg, variables.$spacing-lg); }
|
|
236
|
+
&--xl.card { @include size(xl, variables.$spacing-lg+variables.$spacing-sm); }
|
|
234
237
|
}
|
|
235
238
|
|
|
236
239
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../common/variables";
|
|
2
|
+
|
|
1
3
|
// —————————————————————————————————————————————————————————————————
|
|
2
4
|
// elements
|
|
3
5
|
// direction
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
|
|
11
13
|
.divider {
|
|
12
14
|
display: inline-block;
|
|
13
|
-
background-color:
|
|
15
|
+
background-color: variables.$border-color;
|
|
14
16
|
height: 1px;
|
|
15
17
|
width: 100%;
|
|
16
18
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../common/variables";
|
|
2
|
+
@use "../utilities/text";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// elements
|
|
3
6
|
// dense
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
|
|
23
26
|
&_title {
|
|
24
27
|
@extend %subtitle;
|
|
25
|
-
font-weight:
|
|
28
|
+
font-weight: variables.$font-bold;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../common/mixins";
|
|
2
|
+
@use "../common/variables";
|
|
3
|
+
|
|
1
4
|
// —————————————————————————————————————————————————————————————————
|
|
2
5
|
// variables
|
|
3
6
|
// elements
|
|
@@ -15,7 +18,7 @@
|
|
|
15
18
|
// variables
|
|
16
19
|
// —————————————————————————————————————————————————————————————————
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
variables.$col: calc(100% / 12);
|
|
19
22
|
|
|
20
23
|
// —————————————————————————————————————————————————————————————————
|
|
21
24
|
// elements
|
|
@@ -130,16 +133,16 @@ $col: calc(100% / 12);
|
|
|
130
133
|
@for $colWidth from 1 through 12 {
|
|
131
134
|
|
|
132
135
|
.grid--#{$colWidth} {
|
|
133
|
-
width: $colWidth
|
|
136
|
+
width: $colWidth*variables.$col;
|
|
134
137
|
|
|
135
138
|
&.grid {
|
|
136
|
-
width: $colWidth
|
|
139
|
+
width: $colWidth*variables.$col;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
@for $spacingWidth from 1 through 12 {
|
|
140
143
|
|
|
141
144
|
&.grid--spacing#{$spacingWidth} {
|
|
142
|
-
width: calc(#{$colWidth
|
|
145
|
+
width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
148
|
}
|
|
@@ -147,21 +150,21 @@ $col: calc(100% / 12);
|
|
|
147
150
|
|
|
148
151
|
@mixin break-width($breakpoint) {
|
|
149
152
|
|
|
150
|
-
@include responsive(up, $breakpoint) {
|
|
153
|
+
@include mixins.responsive(up, $breakpoint) {
|
|
151
154
|
|
|
152
155
|
@for $colWidth from 1 through 12 {
|
|
153
156
|
|
|
154
157
|
&#{$colWidth} {
|
|
155
|
-
width: $colWidth
|
|
158
|
+
width: $colWidth*variables.$col;
|
|
156
159
|
|
|
157
160
|
&.grid {
|
|
158
|
-
width: $colWidth
|
|
161
|
+
width: $colWidth*variables.$col;
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
@for $spacingWidth from 1 through 12 {
|
|
162
165
|
|
|
163
166
|
&.grid--spacing#{$spacingWidth} {
|
|
164
|
-
width: calc(#{$colWidth
|
|
167
|
+
width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
}
|