pallote-css 0.3.12 → 0.4.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/dist/pallote.min.css +1 -1
- package/dist/pallote.min.css.map +1 -1
- package/dist/pallote.scss +37 -31
- package/dist/styles/common/_editor.scss +3 -3
- package/dist/styles/common/_fontface.scss +2 -2
- package/dist/styles/common/_global.scss +3 -3
- package/dist/styles/common/_mixins.scss +21 -22
- package/dist/styles/common/_reset.scss +2 -2
- package/dist/styles/common/_variables.scss +33 -33
- package/dist/styles/components/_accordion.scss +6 -7
- package/dist/styles/components/_alert.scss +55 -65
- package/dist/styles/components/_breadcrumbs.scss +38 -18
- package/dist/styles/components/_button.scss +23 -17
- package/dist/styles/components/_buttons.scss +2 -2
- package/dist/styles/components/_card.scss +134 -86
- package/dist/styles/components/_divider.scss +12 -11
- package/dist/styles/components/_form.scss +2 -2
- package/dist/styles/components/_grid.scss +64 -127
- package/dist/styles/components/_input.scss +37 -7
- package/dist/styles/components/_link.scss +14 -9
- package/dist/styles/components/_list.scss +7 -8
- package/dist/styles/components/_nav.scss +3 -3
- package/dist/styles/components/_navbar.scss +2 -2
- package/dist/styles/components/_section.scss +18 -34
- package/dist/styles/components/_sidebar.scss +3 -3
- package/dist/styles/components/_snippet.scss +4 -4
- package/dist/styles/components/_status.scss +7 -7
- package/dist/styles/components/_switch.scss +2 -2
- package/dist/styles/components/_table.scss +153 -0
- package/dist/styles/components/_tabs.scss +2 -2
- package/dist/styles/components/_tag.scss +5 -5
- package/dist/styles/utilities/_color.scss +2 -2
- package/dist/styles/utilities/_global.scss +2 -2
- package/dist/styles/utilities/_grid.scss +124 -0
- package/dist/styles/utilities/_layout.scss +127 -0
- package/dist/styles/utilities/_text.scss +37 -45
- package/package.json +6 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
1
|
+
@use '../common/mixins';
|
|
2
|
+
@use '../common/variables';
|
|
3
|
+
@use '../utilities/text';
|
|
4
4
|
|
|
5
5
|
// —————————————————————————————————————————————————————————————————
|
|
6
6
|
// elements
|
|
@@ -11,68 +11,66 @@
|
|
|
11
11
|
// noIcon
|
|
12
12
|
// —————————————————————————————————————————————————————————————————
|
|
13
13
|
|
|
14
|
-
$spacing-alert:
|
|
14
|
+
$spacing-alert: .5rem;
|
|
15
15
|
|
|
16
16
|
// —————————————————————————————————————————————————————————————————
|
|
17
17
|
// elements
|
|
18
18
|
// —————————————————————————————————————————————————————————————————
|
|
19
19
|
|
|
20
20
|
.alert {
|
|
21
|
-
border-radius:
|
|
22
|
-
background-color: variables.$info-light;
|
|
23
|
-
color: variables.$text;
|
|
21
|
+
border-radius: $spacing-alert;
|
|
24
22
|
padding: $spacing-alert $spacing-alert*2;
|
|
25
23
|
position: fixed;
|
|
26
|
-
top:
|
|
27
|
-
right:
|
|
28
|
-
width:
|
|
29
|
-
max-width:
|
|
24
|
+
top: 1rem;
|
|
25
|
+
right: 1rem;
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-width: 20rem;
|
|
30
28
|
z-index: 20;
|
|
31
29
|
|
|
32
|
-
&:not(.alert
|
|
33
|
-
padding-left:
|
|
30
|
+
&:not(.alert-bar) {
|
|
31
|
+
padding-left: 2.5rem;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
@include mixins.responsive(down, mobile) {
|
|
37
|
-
@include mixins.calc(max-width, '100vw - '
|
|
38
|
-
right:
|
|
39
|
-
top:
|
|
35
|
+
@include mixins.calc(max-width, '100vw - '1rem);
|
|
36
|
+
right: .5rem;
|
|
37
|
+
top: .5rem;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
@include mixins.responsive(down, mobile-sm) {
|
|
43
|
-
@include mixins.calc(width, '100vw - '
|
|
41
|
+
@include mixins.calc(width, '100vw - '1rem);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
&:before {
|
|
47
45
|
content: "";
|
|
48
46
|
position: absolute;
|
|
49
47
|
top: $spacing-alert;
|
|
50
|
-
left:
|
|
51
|
-
height:
|
|
52
|
-
width:
|
|
48
|
+
left: $spacing-alert;
|
|
49
|
+
height: $spacing-alert*3;
|
|
50
|
+
width: $spacing-alert*3;
|
|
53
51
|
background-size: cover;
|
|
54
52
|
background-repeat: no-repeat;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
&
|
|
55
|
+
&_title {
|
|
58
56
|
font-weight: variables.$font-bold !important;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
&
|
|
59
|
+
&_subtitle {
|
|
62
60
|
@extend .caption;
|
|
63
|
-
|
|
61
|
+
margin-top: 0.125rem !important;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
&
|
|
64
|
+
&_close {
|
|
67
65
|
transition: opacity variables.$transition-md;
|
|
68
66
|
position: absolute;
|
|
69
|
-
top:
|
|
70
|
-
right:
|
|
67
|
+
top: .5rem;
|
|
68
|
+
right: .5rem;
|
|
71
69
|
line-height: 0;
|
|
72
70
|
|
|
73
71
|
svg {
|
|
74
|
-
width:
|
|
75
|
-
height:
|
|
72
|
+
width: .5rem;
|
|
73
|
+
height: .5rem;
|
|
76
74
|
fill: variables.$success-dark
|
|
77
75
|
}
|
|
78
76
|
|
|
@@ -86,31 +84,31 @@ $spacing-alert: variables.$spacing-sm;
|
|
|
86
84
|
// color
|
|
87
85
|
// —————————————————————————————————————————————————————————————————
|
|
88
86
|
|
|
89
|
-
@mixin color($color, $background-color: variables.$
|
|
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; }
|
|
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; }
|
|
94
92
|
|
|
95
93
|
background-color: $background-color;
|
|
96
94
|
border: 1px solid $border-color;
|
|
97
|
-
color:
|
|
95
|
+
color: $title-color;
|
|
98
96
|
|
|
99
|
-
|
|
97
|
+
&:not(.alert-bar):before {
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
+
}
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
.alert {
|
|
109
107
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
&-success { @include alert-color(success); }
|
|
109
|
+
&-info { @include alert-color(info); }
|
|
110
|
+
&-warning { @include alert-color(warning); }
|
|
111
|
+
&-error { @include alert-color(error); }
|
|
114
112
|
}
|
|
115
113
|
|
|
116
114
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -119,7 +117,7 @@ $spacing-alert: variables.$spacing-sm;
|
|
|
119
117
|
|
|
120
118
|
.alert {
|
|
121
119
|
|
|
122
|
-
|
|
120
|
+
&-notice {
|
|
123
121
|
position: relative;
|
|
124
122
|
max-width: none;
|
|
125
123
|
z-index: 1;
|
|
@@ -134,7 +132,7 @@ $spacing-alert: variables.$spacing-sm;
|
|
|
134
132
|
|
|
135
133
|
.alert {
|
|
136
134
|
|
|
137
|
-
|
|
135
|
+
&-bar {
|
|
138
136
|
position: fixed;
|
|
139
137
|
top: 0;
|
|
140
138
|
right: 0;
|
|
@@ -152,30 +150,22 @@ $spacing-alert: variables.$spacing-sm;
|
|
|
152
150
|
// dense
|
|
153
151
|
// —————————————————————————————————————————————————————————————————
|
|
154
152
|
|
|
155
|
-
.alert
|
|
153
|
+
.alert-dense {
|
|
156
154
|
padding: $spacing-alert*0.5 $spacing-alert;
|
|
157
155
|
|
|
158
156
|
&:before {
|
|
159
157
|
top: $spacing-alert*0.5;
|
|
160
158
|
left: $spacing-alert*0.5;
|
|
161
|
-
height:
|
|
162
|
-
width:
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&:not(.alert--bar) {
|
|
166
|
-
padding-left: variables.$spacing-md*1.75;
|
|
159
|
+
height: 1rem*1.25;
|
|
160
|
+
width: 1rem*1.25;
|
|
167
161
|
}
|
|
168
162
|
|
|
169
|
-
.
|
|
170
|
-
|
|
171
|
-
+ .alert__title,
|
|
172
|
-
+ .alert__subtitle {
|
|
173
|
-
margin-top: 0;
|
|
174
|
-
}
|
|
163
|
+
&:not(.alert-bar) {
|
|
164
|
+
padding-left: 1rem*1.75;
|
|
175
165
|
}
|
|
176
166
|
|
|
177
|
-
.
|
|
178
|
-
.
|
|
167
|
+
.alert_title { @extend .caption; }
|
|
168
|
+
.alert_subtitle { @extend .overline; margin-top: 0 !important; }
|
|
179
169
|
}
|
|
180
170
|
|
|
181
171
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -184,11 +174,11 @@ $spacing-alert: variables.$spacing-sm;
|
|
|
184
174
|
|
|
185
175
|
.alert.alert {
|
|
186
176
|
|
|
187
|
-
|
|
188
|
-
padding-left:
|
|
177
|
+
&-noIcon {
|
|
178
|
+
padding-left: 1rem;
|
|
189
179
|
|
|
190
|
-
&.alert
|
|
191
|
-
padding-left:
|
|
180
|
+
&.alert-dense {
|
|
181
|
+
padding-left: .5rem;
|
|
192
182
|
}
|
|
193
183
|
|
|
194
184
|
&:before {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use '../common/mixins';
|
|
2
|
+
@use '../common/variables';
|
|
3
|
+
@use '../utilities/text';
|
|
3
4
|
|
|
4
5
|
// —————————————————————————————————————————————————————————————————
|
|
5
6
|
// elements
|
|
@@ -11,29 +12,45 @@
|
|
|
11
12
|
// —————————————————————————————————————————————————————————————————
|
|
12
13
|
|
|
13
14
|
.breadcrumbs {
|
|
14
|
-
|
|
15
|
-
align-items: baseline;
|
|
15
|
+
text-transform: uppercase;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
ol {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
li {
|
|
23
|
+
margin-left: 0;
|
|
24
|
+
padding-top: 0;
|
|
25
|
+
}
|
|
23
26
|
|
|
27
|
+
&_item {
|
|
28
|
+
@extend %caption;
|
|
29
|
+
font-weight: variables.$font-bold;
|
|
30
|
+
|
|
24
31
|
&:not(:first-child) {
|
|
25
|
-
margin-left:
|
|
26
|
-
|
|
32
|
+
margin-left: .25rem;
|
|
33
|
+
|
|
27
34
|
&:before {
|
|
28
35
|
content: "/";
|
|
29
|
-
margin-right:
|
|
36
|
+
margin-right: .25rem;
|
|
30
37
|
color: variables.$text-alt;
|
|
31
38
|
display: inline-block; // required to remove underline on hover for before element
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
|
|
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;
|
|
37
54
|
}
|
|
38
55
|
}
|
|
39
56
|
}
|
|
@@ -42,9 +59,12 @@
|
|
|
42
59
|
// separator
|
|
43
60
|
// —————————————————————————————————————————————————————————————————
|
|
44
61
|
|
|
45
|
-
.breadcrumbs
|
|
46
|
-
content:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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;
|
|
50
70
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use '../common/mixins';
|
|
4
|
+
@use '../common/variables';
|
|
5
|
+
@use '../utilities/text';
|
|
6
6
|
|
|
7
7
|
// —————————————————————————————————————————————————————————————————
|
|
8
8
|
// elements
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
display: inline-flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
justify-content: center;
|
|
27
|
-
border-radius: variables.$border-radius-
|
|
27
|
+
border-radius: variables.$border-radius-sm;
|
|
28
28
|
position: relative;
|
|
29
29
|
line-height: 0;
|
|
30
30
|
text-transform: uppercase;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
// size
|
|
57
57
|
// —————————————————————————————————————————————————————————————————
|
|
58
58
|
|
|
59
|
-
@mixin size($value, $size) {
|
|
59
|
+
@mixin button-size($value, $size) {
|
|
60
60
|
height: $size;
|
|
61
61
|
gap: $size*.25;
|
|
62
62
|
padding-right: $size*.33;
|
|
@@ -91,17 +91,17 @@
|
|
|
91
91
|
|
|
92
92
|
.button {
|
|
93
93
|
|
|
94
|
-
@include size(md, 2rem);
|
|
95
|
-
&-xs { @include size(xs, 1rem); }
|
|
96
|
-
&-sm { @include size(sm, 1.5rem); }
|
|
97
|
-
&-lg { @include size(lg, 2.5rem); }
|
|
94
|
+
@include button-size(md, 2rem);
|
|
95
|
+
&-xs { @include button-size(xs, 1rem); }
|
|
96
|
+
&-sm { @include button-size(sm, 1.5rem); }
|
|
97
|
+
&-lg { @include button-size(lg, 2.5rem); }
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// —————————————————————————————————————————————————————————————————
|
|
101
101
|
// color
|
|
102
102
|
// —————————————————————————————————————————————————————————————————
|
|
103
103
|
|
|
104
|
-
@mixin color($prefix, $colors...) {
|
|
104
|
+
@mixin button-color($prefix, $colors...) {
|
|
105
105
|
|
|
106
106
|
@each $i in $colors {
|
|
107
107
|
.#{$prefix}#{list.nth($i, 1)} {
|
|
@@ -111,11 +111,12 @@
|
|
|
111
111
|
&:focus {
|
|
112
112
|
outline: 2px solid list.nth($i, 2);
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
@include mixins.hover {
|
|
116
116
|
|
|
117
117
|
&:not(.button-disabled) {
|
|
118
118
|
background-color: color.mix(black, list.nth($i, 2), 20%);
|
|
119
|
+
color: list.nth($i, 3);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
|
@@ -123,11 +124,12 @@
|
|
|
123
124
|
background-color: transparent;
|
|
124
125
|
border: 1px solid list.nth($i, 2);
|
|
125
126
|
color: variables.$text;
|
|
126
|
-
|
|
127
|
+
|
|
127
128
|
@include mixins.hover {
|
|
128
|
-
|
|
129
|
+
|
|
129
130
|
&:not(.button-disabled) {
|
|
130
131
|
background-color: variables.$hover;
|
|
132
|
+
color: variables.$text;
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
|
|
@@ -137,15 +139,19 @@
|
|
|
137
139
|
&.button-transparent {
|
|
138
140
|
background-color: transparent;
|
|
139
141
|
color: list.nth($i, 2);
|
|
142
|
+
|
|
143
|
+
@include mixins.hover {
|
|
144
|
+
background-color: variables.$hover;
|
|
145
|
+
color: list.nth($i, 2);
|
|
146
|
+
}
|
|
140
147
|
|
|
141
|
-
@include mixins.hover { background-color: variables.$hover; }
|
|
142
148
|
svg { stroke: list.nth($i, 2); }
|
|
143
149
|
}
|
|
144
150
|
}
|
|
145
151
|
}
|
|
146
152
|
}
|
|
147
153
|
|
|
148
|
-
@include color('button',
|
|
154
|
+
@include button-color('button',
|
|
149
155
|
'' variables.$primary variables.$primary-contrast,
|
|
150
156
|
'-secondary' variables.$secondary variables.$secondary-contrast,
|
|
151
157
|
'-grey' variables.$text-disabled variables.$text,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '../common/mixins';
|
|
2
2
|
|
|
3
3
|
// —————————————————————————————————————————————————————————————————
|
|
4
4
|
// elements
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// elements
|
|
12
12
|
// —————————————————————————————————————————————————————————————————
|
|
13
13
|
|
|
14
|
-
.buttons {
|
|
14
|
+
.buttons, %buttons {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-wrap: wrap; // set on multiple lines if wider than parent width
|
|
17
17
|
width: 100%;
|