pallote-css 0.3.9 → 0.3.11
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/dist/pallote.min.css +1 -1
- package/dist/pallote.min.css.map +1 -1
- package/package.json +9 -7
- package/dist/pallote.scss +0 -36
- 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
- package/dist/styles/common/_editor.scss +0 -177
- package/dist/styles/common/_fontface.scss +0 -28
- package/dist/styles/common/_functions.scss +0 -11
- package/dist/styles/common/_global.scss +0 -154
- package/dist/styles/common/_mixins.scss +0 -162
- package/dist/styles/common/_reset.scss +0 -143
- package/dist/styles/common/_variables.scss +0 -249
- package/dist/styles/components/_accordion.scss +0 -130
- package/dist/styles/components/_alert.scss +0 -194
- package/dist/styles/components/_breadcrumbs.scss +0 -47
- package/dist/styles/components/_button.scss +0 -174
- package/dist/styles/components/_buttons.scss +0 -50
- package/dist/styles/components/_card.scss +0 -265
- package/dist/styles/components/_divider.scss +0 -50
- package/dist/styles/components/_form.scss +0 -55
- package/dist/styles/components/_grid.scss +0 -187
- package/dist/styles/components/_input.scss +0 -294
- package/dist/styles/components/_link.scss +0 -43
- package/dist/styles/components/_list.scss +0 -58
- package/dist/styles/components/_nav.scss +0 -270
- package/dist/styles/components/_navbar.scss +0 -189
- package/dist/styles/components/_page.scss +0 -33
- package/dist/styles/components/_section.scss +0 -189
- package/dist/styles/components/_sidebar.scss +0 -57
- package/dist/styles/components/_snippet.scss +0 -82
- package/dist/styles/components/_status.scss +0 -57
- package/dist/styles/components/_switch.scss +0 -81
- package/dist/styles/components/_tabs.scss +0 -115
- package/dist/styles/components/_tag.scss +0 -75
- package/dist/styles/modules/_cookie.scss +0 -38
- package/dist/styles/utilities/_color.scss +0 -116
- package/dist/styles/utilities/_global.scss +0 -208
- package/dist/styles/utilities/_text.scss +0 -203
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// size
|
|
4
|
-
// transparent
|
|
5
|
-
// active
|
|
6
|
-
// —————————————————————————————————————————————————————————————————
|
|
7
|
-
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
// elements
|
|
10
|
-
// —————————————————————————————————————————————————————————————————
|
|
11
|
-
|
|
12
|
-
.accordion {
|
|
13
|
-
width: 100%;
|
|
14
|
-
|
|
15
|
-
&__item {
|
|
16
|
-
position: relative;
|
|
17
|
-
background-color: $hover;
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__control,
|
|
22
|
-
&__content {
|
|
23
|
-
transition: padding $transition-md;
|
|
24
|
-
will-change: padding;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__control {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
width: 100%;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
|
|
33
|
-
&:after {
|
|
34
|
-
content: url($icons-path + 'phosphor/caret-down.svg');
|
|
35
|
-
transition: transform $transition-md;
|
|
36
|
-
will-change: transform;
|
|
37
|
-
position: absolute;
|
|
38
|
-
height: $spacing-md;
|
|
39
|
-
width: $spacing-md;
|
|
40
|
-
transform-origin: center 60%;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&__content {
|
|
46
|
-
max-height: 0;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
transition: max-height $transition-md;
|
|
49
|
-
will-change: max-height;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// —————————————————————————————————————————————————————————————————
|
|
54
|
-
// size
|
|
55
|
-
// —————————————————————————————————————————————————————————————————
|
|
56
|
-
|
|
57
|
-
@mixin size($proportion, $size) {
|
|
58
|
-
|
|
59
|
-
.accordion {
|
|
60
|
-
|
|
61
|
-
&__item {
|
|
62
|
-
border-radius: calc($size*2/3);
|
|
63
|
-
|
|
64
|
-
&:not(:last-child) { margin-bottom: calc($size/3); }
|
|
65
|
-
&--active { padding-bottom: $size; }
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&__control {
|
|
69
|
-
padding: $size $size*1.5;
|
|
70
|
-
|
|
71
|
-
&:after {
|
|
72
|
-
top: $size;
|
|
73
|
-
right: $size*1.25;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__header {
|
|
78
|
-
|
|
79
|
-
@if $proportion == sm { margin-bottom: -1px; }
|
|
80
|
-
@if $proportion == lg { margin: -1px 0 -2px 0; }
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__content {
|
|
84
|
-
padding: 0 $size*1.5;
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.accordion--transparent .accordion__item--active:not(:first-child) {
|
|
90
|
-
margin-top: calc($size/3);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.accordion {
|
|
95
|
-
|
|
96
|
-
@include size(md, $spacing-sm);
|
|
97
|
-
&--sm { @include size(sm, $spacing-xs); }
|
|
98
|
-
&--lg { @include size(lg, $spacing-md); }
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// —————————————————————————————————————————————————————————————————
|
|
102
|
-
// transparent
|
|
103
|
-
// —————————————————————————————————————————————————————————————————
|
|
104
|
-
|
|
105
|
-
.accordion--transparent {
|
|
106
|
-
|
|
107
|
-
.accordion__item {
|
|
108
|
-
transition: background-color $transition-md, margin $transition-md;
|
|
109
|
-
will-change: background-color, margin;
|
|
110
|
-
background-color: transparent;
|
|
111
|
-
|
|
112
|
-
@include hover { background-color: $hover; }
|
|
113
|
-
&--active { background-color: $hover; }
|
|
114
|
-
|
|
115
|
-
&:not(:last-child):not(.accordion__item--active) {
|
|
116
|
-
margin-bottom: 0;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// —————————————————————————————————————————————————————————————————
|
|
122
|
-
// active
|
|
123
|
-
// —————————————————————————————————————————————————————————————————
|
|
124
|
-
|
|
125
|
-
.accordion__item--active {
|
|
126
|
-
|
|
127
|
-
.accordion__control:after {
|
|
128
|
-
transform: rotate(180deg);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// color
|
|
4
|
-
// notice
|
|
5
|
-
// bar
|
|
6
|
-
// dense
|
|
7
|
-
// noIcon
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
|
|
10
|
-
$spacing-alert: $spacing-sm;
|
|
11
|
-
|
|
12
|
-
// —————————————————————————————————————————————————————————————————
|
|
13
|
-
// elements
|
|
14
|
-
// —————————————————————————————————————————————————————————————————
|
|
15
|
-
|
|
16
|
-
.alert {
|
|
17
|
-
border-radius: $spacing-sm;
|
|
18
|
-
background-color: $info-light;
|
|
19
|
-
color: $text;
|
|
20
|
-
padding: $spacing-alert $spacing-alert*2;
|
|
21
|
-
position: fixed;
|
|
22
|
-
top: $spacing-md;
|
|
23
|
-
right: $spacing-md;
|
|
24
|
-
width: fit-content;
|
|
25
|
-
max-width: $spacing-xxl*3;
|
|
26
|
-
z-index: 20;
|
|
27
|
-
|
|
28
|
-
&:not(.alert--bar) {
|
|
29
|
-
padding-left: $spacing-lg + $spacing-sm;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include responsive(down, mobile) {
|
|
33
|
-
@include calc(max-width, '100vw - '$spacing-md);
|
|
34
|
-
right: 8px;
|
|
35
|
-
top: $spacing-sm;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@include responsive(down, mobile-sm) {
|
|
39
|
-
@include calc(width, '100vw - '$spacing-md);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:before {
|
|
43
|
-
content: "";
|
|
44
|
-
position: absolute;
|
|
45
|
-
top: $spacing-alert;
|
|
46
|
-
left: $spacing-sm;
|
|
47
|
-
height: $spacing-md*1.5;
|
|
48
|
-
width: $spacing-md*1.5;
|
|
49
|
-
background-size: cover;
|
|
50
|
-
background-repeat: no-repeat;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__title {
|
|
54
|
-
font-weight: $font-bold !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__subtitle {
|
|
58
|
-
@extend .caption;
|
|
59
|
-
padding-bottom: 0.2em;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__close {
|
|
63
|
-
transition: opacity $transition-md;
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: $spacing-sm;
|
|
66
|
-
right: $spacing-sm;
|
|
67
|
-
line-height: 0;
|
|
68
|
-
|
|
69
|
-
svg {
|
|
70
|
-
width: $spacing-sm;
|
|
71
|
-
height: $spacing-sm;
|
|
72
|
-
fill: $success-dark
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
opacity: 0.5;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// —————————————————————————————————————————————————————————————————
|
|
82
|
-
// color
|
|
83
|
-
// —————————————————————————————————————————————————————————————————
|
|
84
|
-
|
|
85
|
-
@mixin color($color, $background-color: $info-light, $border-color: $info) {
|
|
86
|
-
@if $color == success { $background-color: $success-light; $border-color: $success; }
|
|
87
|
-
@else if $color == info { $background-color: $info-light; $border-color: $info; }
|
|
88
|
-
@else if $color == warning { $background-color: $warning-light; $border-color: $warning; }
|
|
89
|
-
@else if $color == error { $background-color: $error-light; $border-color: $error; }
|
|
90
|
-
|
|
91
|
-
background-color: $background-color;
|
|
92
|
-
border: 1px solid $border-color;
|
|
93
|
-
color: $text;
|
|
94
|
-
|
|
95
|
-
&:not(.alert--bar):before {
|
|
96
|
-
|
|
97
|
-
@if $color == success { content: url($icons-path + 'phosphor/check-circle.svg'); }
|
|
98
|
-
@else if $color == info { content: url($icons-path + 'phosphor/info.svg'); }
|
|
99
|
-
@else if $color == warning { content: url($icons-path + 'phosphor/warning.svg'); }
|
|
100
|
-
@else if $color == error { content: url($icons-path + 'phosphor/x-circle.svg'); }
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.alert {
|
|
105
|
-
|
|
106
|
-
&--success { @include color(success); }
|
|
107
|
-
&--info { @include color(info); }
|
|
108
|
-
&--warning { @include color(warning); }
|
|
109
|
-
&--error { @include color(error); }
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// —————————————————————————————————————————————————————————————————
|
|
113
|
-
// notice
|
|
114
|
-
// —————————————————————————————————————————————————————————————————
|
|
115
|
-
|
|
116
|
-
.alert {
|
|
117
|
-
|
|
118
|
-
&--notice {
|
|
119
|
-
position: relative;
|
|
120
|
-
max-width: none;
|
|
121
|
-
z-index: 1;
|
|
122
|
-
top: 0;
|
|
123
|
-
right: 0;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// —————————————————————————————————————————————————————————————————
|
|
128
|
-
// bar
|
|
129
|
-
// —————————————————————————————————————————————————————————————————
|
|
130
|
-
|
|
131
|
-
.alert {
|
|
132
|
-
|
|
133
|
-
&--bar {
|
|
134
|
-
position: fixed;
|
|
135
|
-
top: 0;
|
|
136
|
-
right: 0;
|
|
137
|
-
max-width: none;
|
|
138
|
-
width: 100%; // needed for small devices to not overflow the container
|
|
139
|
-
z-index: 1;
|
|
140
|
-
border-radius: 0;
|
|
141
|
-
border-left: 0;
|
|
142
|
-
border-right: 0;
|
|
143
|
-
text-align: center;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// —————————————————————————————————————————————————————————————————
|
|
148
|
-
// dense
|
|
149
|
-
// —————————————————————————————————————————————————————————————————
|
|
150
|
-
|
|
151
|
-
.alert--dense {
|
|
152
|
-
padding: $spacing-alert*0.5 $spacing-alert;
|
|
153
|
-
|
|
154
|
-
&:before {
|
|
155
|
-
top: $spacing-alert*0.5;
|
|
156
|
-
left: $spacing-alert*0.5;
|
|
157
|
-
height: $spacing-md*1.25;
|
|
158
|
-
width: $spacing-md*1.25;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&:not(.alert--bar) {
|
|
162
|
-
padding-left: $spacing-md*1.75;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.alert__title {
|
|
166
|
-
|
|
167
|
-
+ .alert__title,
|
|
168
|
-
+ .alert__subtitle {
|
|
169
|
-
margin-top: 0;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.alert__title { @extend .caption; }
|
|
174
|
-
.alert__subtitle { @extend .overline; }
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// —————————————————————————————————————————————————————————————————
|
|
178
|
-
// noIcon
|
|
179
|
-
// —————————————————————————————————————————————————————————————————
|
|
180
|
-
|
|
181
|
-
.alert.alert {
|
|
182
|
-
|
|
183
|
-
&--noIcon {
|
|
184
|
-
padding-left: $spacing-md;
|
|
185
|
-
|
|
186
|
-
&.alert--dense {
|
|
187
|
-
padding-left: $spacing-sm;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&:before {
|
|
191
|
-
display: none;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// separator
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
|
|
6
|
-
// —————————————————————————————————————————————————————————————————
|
|
7
|
-
// elements
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
|
|
10
|
-
.breadcrumbs {
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
align-items: baseline;
|
|
13
|
-
|
|
14
|
-
@include responsive(down, tablet) {
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__item {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
&:not(:first-child) {
|
|
22
|
-
margin-left: $spacing-xs;
|
|
23
|
-
|
|
24
|
-
&:before {
|
|
25
|
-
content: "/";
|
|
26
|
-
margin-right: $spacing-xs;
|
|
27
|
-
color: $text-alt;
|
|
28
|
-
display: inline-block; // required to remove underline on hover for before element
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include hover {
|
|
33
|
-
text-decoration: underline;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// —————————————————————————————————————————————————————————————————
|
|
39
|
-
// separator
|
|
40
|
-
// —————————————————————————————————————————————————————————————————
|
|
41
|
-
|
|
42
|
-
.breadcrumbs--arrow .breadcrumbs__item:not(:first-child):before {
|
|
43
|
-
content: "\2039";
|
|
44
|
-
transform: rotate(180deg);
|
|
45
|
-
font-size: 1.5em;
|
|
46
|
-
float: left;
|
|
47
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// kind
|
|
4
|
-
// variant
|
|
5
|
-
// size
|
|
6
|
-
// color
|
|
7
|
-
// fullWidth
|
|
8
|
-
// disabled
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
|
|
11
|
-
// —————————————————————————————————————————————————————————————————
|
|
12
|
-
// elements
|
|
13
|
-
// —————————————————————————————————————————————————————————————————
|
|
14
|
-
|
|
15
|
-
.button {
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
border-radius: $border-radius-md;
|
|
22
|
-
position: relative;
|
|
23
|
-
line-height: 0;
|
|
24
|
-
text-transform: uppercase;
|
|
25
|
-
font-weight: $font-bold;
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
outline-offset: 2px;
|
|
28
|
-
width: fit-content;
|
|
29
|
-
min-width: fit-content;
|
|
30
|
-
|
|
31
|
-
svg {
|
|
32
|
-
stroke: currentColor;
|
|
33
|
-
fill: currentColor;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// —————————————————————————————————————————————————————————————————
|
|
38
|
-
// kind
|
|
39
|
-
// —————————————————————————————————————————————————————————————————
|
|
40
|
-
|
|
41
|
-
// This property is handled by the size mixin
|
|
42
|
-
|
|
43
|
-
// —————————————————————————————————————————————————————————————————
|
|
44
|
-
// variant
|
|
45
|
-
// —————————————————————————————————————————————————————————————————
|
|
46
|
-
|
|
47
|
-
// This property is handled by the color mixin
|
|
48
|
-
|
|
49
|
-
// —————————————————————————————————————————————————————————————————
|
|
50
|
-
// size
|
|
51
|
-
// —————————————————————————————————————————————————————————————————
|
|
52
|
-
|
|
53
|
-
@mixin size($value, $size) {
|
|
54
|
-
height: $size;
|
|
55
|
-
gap: $size*.25;
|
|
56
|
-
padding-right: $size*.33;
|
|
57
|
-
padding-left: $size*.33;
|
|
58
|
-
|
|
59
|
-
@if $value == xs or $value == sm {
|
|
60
|
-
@extend %overline;
|
|
61
|
-
border-radius: $border-radius-sm;
|
|
62
|
-
}
|
|
63
|
-
@if $value == md { @extend %body; }
|
|
64
|
-
@if $value == lg { @extend %subtitle; }
|
|
65
|
-
|
|
66
|
-
svg {
|
|
67
|
-
width: calc($size/1.75);
|
|
68
|
-
height: calc($size/1.75);
|
|
69
|
-
margin-right: -$size*.05;
|
|
70
|
-
margin-left: -$size*.05;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:not(.button-icon) {
|
|
74
|
-
|
|
75
|
-
svg {
|
|
76
|
-
margin-top: 0.15em;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.button-icon {
|
|
81
|
-
width: $size;
|
|
82
|
-
padding: 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.button {
|
|
87
|
-
|
|
88
|
-
@include size(md, 2rem);
|
|
89
|
-
&-xs { @include size(xs, 1rem); }
|
|
90
|
-
&-sm { @include size(sm, 1.5rem); }
|
|
91
|
-
&-lg { @include size(lg, 2.5rem); }
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// —————————————————————————————————————————————————————————————————
|
|
95
|
-
// color
|
|
96
|
-
// —————————————————————————————————————————————————————————————————
|
|
97
|
-
|
|
98
|
-
@mixin color($prefix, $colors...) {
|
|
99
|
-
|
|
100
|
-
@each $i in $colors {
|
|
101
|
-
.#{$prefix}#{nth($i, 1)} {
|
|
102
|
-
background-color: nth($i, 2);
|
|
103
|
-
color: nth($i, 3);
|
|
104
|
-
|
|
105
|
-
&:focus {
|
|
106
|
-
outline: 2px solid nth($i, 2);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include hover {
|
|
110
|
-
|
|
111
|
-
&:not(.button-disabled) {
|
|
112
|
-
background-color: mix(black, nth($i, 2), 20%);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.button-stroke {
|
|
117
|
-
background-color: transparent;
|
|
118
|
-
border: 1px solid nth($i, 2);
|
|
119
|
-
color: $text;
|
|
120
|
-
|
|
121
|
-
@include hover {
|
|
122
|
-
|
|
123
|
-
&:not(.button-disabled) {
|
|
124
|
-
background-color: $hover;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
svg { stroke: $text; }
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&.button-transparent {
|
|
132
|
-
background-color: transparent;
|
|
133
|
-
color: nth($i, 2);
|
|
134
|
-
|
|
135
|
-
@include hover { background-color: $hover; }
|
|
136
|
-
svg { stroke: nth($i, 2); }
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@include color('button',
|
|
143
|
-
'' $primary $primary-contrast,
|
|
144
|
-
'-secondary' $secondary $secondary-contrast,
|
|
145
|
-
'-grey' $text-disabled $text,
|
|
146
|
-
'-success' $success $success-contrast,
|
|
147
|
-
'-info' $info $info-contrast,
|
|
148
|
-
'-warning' $warning $warning-contrast,
|
|
149
|
-
'-error' $error $error-contrast,
|
|
150
|
-
'-main' $main $text,
|
|
151
|
-
'-contrast' $contrast $text-contrast
|
|
152
|
-
);
|
|
153
|
-
|
|
154
|
-
// —————————————————————————————————————————————————————————————————
|
|
155
|
-
// fullWidth
|
|
156
|
-
// —————————————————————————————————————————————————————————————————
|
|
157
|
-
|
|
158
|
-
.button-fullWidth {
|
|
159
|
-
width: 100%;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// —————————————————————————————————————————————————————————————————
|
|
163
|
-
// disabled
|
|
164
|
-
// —————————————————————————————————————————————————————————————————
|
|
165
|
-
|
|
166
|
-
.button {
|
|
167
|
-
|
|
168
|
-
&.button-disabled,
|
|
169
|
-
&:disabled {
|
|
170
|
-
opacity: 0.3;
|
|
171
|
-
cursor: not-allowed;
|
|
172
|
-
outline: none;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// direction
|
|
4
|
-
// fullWidth
|
|
5
|
-
// wide
|
|
6
|
-
// —————————————————————————————————————————————————————————————————
|
|
7
|
-
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
// elements
|
|
10
|
-
// —————————————————————————————————————————————————————————————————
|
|
11
|
-
|
|
12
|
-
.buttons {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-wrap: wrap; // set on multiple lines if wider than parent width
|
|
15
|
-
width: 100%;
|
|
16
|
-
gap: .5rem;
|
|
17
|
-
|
|
18
|
-
// larger spacing on small and touch devices
|
|
19
|
-
@include responsive(down, mobile) { gap: 1rem; }
|
|
20
|
-
@include responsive-touch { gap: 1rem; }
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// —————————————————————————————————————————————————————————————————
|
|
24
|
-
// direction
|
|
25
|
-
// —————————————————————————————————————————————————————————————————
|
|
26
|
-
|
|
27
|
-
.buttons-portrait {
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
align-items: flex-start;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// —————————————————————————————————————————————————————————————————
|
|
33
|
-
// fullWidth
|
|
34
|
-
// —————————————————————————————————————————————————————————————————
|
|
35
|
-
|
|
36
|
-
.buttons-fullWidth .button {
|
|
37
|
-
width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// —————————————————————————————————————————————————————————————————
|
|
41
|
-
// wide
|
|
42
|
-
// —————————————————————————————————————————————————————————————————
|
|
43
|
-
|
|
44
|
-
.buttons-wide {
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
|
|
47
|
-
> .buttons {
|
|
48
|
-
width: fit-content;
|
|
49
|
-
}
|
|
50
|
-
}
|