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,9 +1,12 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use '../common/variables';
|
|
2
|
+
@use '../common/mixins';
|
|
3
|
+
@use '../utilities/text';
|
|
4
|
+
@use '../components/buttons';
|
|
3
5
|
|
|
4
6
|
// —————————————————————————————————————————————————————————————————
|
|
5
7
|
// elements
|
|
6
8
|
// size
|
|
9
|
+
// fill
|
|
7
10
|
// direction
|
|
8
11
|
// align
|
|
9
12
|
// transparent
|
|
@@ -20,14 +23,20 @@
|
|
|
20
23
|
align-items: stretch;
|
|
21
24
|
width: 100%;
|
|
22
25
|
overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&:not(.card--transparent) {
|
|
26
|
+
|
|
27
|
+
&:not(.card-transparent) {
|
|
26
28
|
background-color: variables.$background-paper;
|
|
29
|
+
border: variables.$border;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
&
|
|
30
|
-
|
|
32
|
+
&_media,
|
|
33
|
+
&_header,
|
|
34
|
+
&_content,
|
|
35
|
+
&_actions {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&_media {
|
|
31
40
|
|
|
32
41
|
&Inner {
|
|
33
42
|
background-size: cover;
|
|
@@ -39,40 +48,53 @@
|
|
|
39
48
|
overflow: hidden;
|
|
40
49
|
padding-bottom: 50%;
|
|
41
50
|
|
|
42
|
-
.card
|
|
51
|
+
.card-transparent & {
|
|
43
52
|
background-color: variables.$overlay-contrast;
|
|
44
53
|
}
|
|
45
54
|
}
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
@
|
|
57
|
+
&_header {
|
|
58
|
+
|
|
59
|
+
@include mixins.responsive(down, tablet) {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
}
|
|
51
63
|
}
|
|
52
64
|
|
|
53
|
-
&
|
|
54
|
-
|
|
65
|
+
&_headerActions {
|
|
66
|
+
@extend %buttons;
|
|
67
|
+
width: fit-content;
|
|
68
|
+
justify-content: flex-end;
|
|
69
|
+
|
|
70
|
+
@include mixins.responsive(up, tablet) { float: right; }
|
|
71
|
+
@include mixins.responsive(down, tablet) { order: 4; }
|
|
55
72
|
}
|
|
56
|
-
|
|
57
|
-
&
|
|
58
|
-
|
|
73
|
+
|
|
74
|
+
&_label,
|
|
75
|
+
&_title {
|
|
76
|
+
font-weight: variables.$font-bold;
|
|
59
77
|
}
|
|
60
|
-
|
|
61
|
-
&
|
|
78
|
+
|
|
79
|
+
&_title {
|
|
80
|
+
line-height: 1.25;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_content {
|
|
62
84
|
display: inline-flex;
|
|
63
85
|
flex-direction: column;
|
|
64
86
|
align-items: flex-start;
|
|
65
87
|
|
|
66
|
-
|
|
88
|
+
&-fullWidth {
|
|
67
89
|
|
|
68
|
-
.card > &.
|
|
90
|
+
.card > &.card_content {
|
|
69
91
|
padding-right: 0;
|
|
70
92
|
padding-left: 0;
|
|
71
93
|
}
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
96
|
|
|
75
|
-
&
|
|
97
|
+
&_actions {
|
|
76
98
|
display: flex;
|
|
77
99
|
justify-content: space-between;
|
|
78
100
|
|
|
@@ -80,13 +102,21 @@
|
|
|
80
102
|
margin-left: auto;
|
|
81
103
|
}
|
|
82
104
|
|
|
83
|
-
|
|
105
|
+
&-portrait {
|
|
84
106
|
flex-direction: column;
|
|
85
107
|
|
|
108
|
+
.button {
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
86
112
|
>*:not(:last-child) {
|
|
87
|
-
margin-bottom:
|
|
113
|
+
margin-bottom: 1rem;
|
|
88
114
|
}
|
|
89
115
|
}
|
|
116
|
+
|
|
117
|
+
.buttons {
|
|
118
|
+
width: fit-content;
|
|
119
|
+
}
|
|
90
120
|
}
|
|
91
121
|
}
|
|
92
122
|
|
|
@@ -94,20 +124,16 @@
|
|
|
94
124
|
// size
|
|
95
125
|
// —————————————————————————————————————————————————————————————————
|
|
96
126
|
|
|
97
|
-
@mixin size($value, $size) {
|
|
127
|
+
@mixin card-size($value, $size) {
|
|
98
128
|
|
|
99
|
-
&:not(.card
|
|
100
|
-
border-radius: $size;
|
|
129
|
+
&:not(.card-transparent) {
|
|
130
|
+
border-radius: calc($size/2);
|
|
101
131
|
}
|
|
102
|
-
|
|
103
|
-
&.card--hasShadow {
|
|
104
|
-
box-shadow: 0 0 $size $size*0.25 rgba(variables.$main ,0.3);
|
|
105
|
-
}
|
|
106
132
|
|
|
107
|
-
> .
|
|
108
|
-
> .
|
|
109
|
-
> .
|
|
110
|
-
> .
|
|
133
|
+
> .card_media,
|
|
134
|
+
> .card_header,
|
|
135
|
+
> .card_content,
|
|
136
|
+
> .card_actions {
|
|
111
137
|
padding: $size;
|
|
112
138
|
|
|
113
139
|
&:not(:first-child) {
|
|
@@ -115,16 +141,16 @@
|
|
|
115
141
|
}
|
|
116
142
|
}
|
|
117
143
|
|
|
118
|
-
> .
|
|
144
|
+
> .card_actions {
|
|
119
145
|
margin-top: auto;
|
|
120
146
|
}
|
|
121
147
|
|
|
122
|
-
&.card
|
|
148
|
+
&.card-transparent {
|
|
123
149
|
|
|
124
|
-
> .
|
|
125
|
-
> .
|
|
126
|
-
> .
|
|
127
|
-
> .
|
|
150
|
+
> .card_media,
|
|
151
|
+
> .card_header,
|
|
152
|
+
> .card_content,
|
|
153
|
+
> .card_actions {
|
|
128
154
|
padding: 0;
|
|
129
155
|
|
|
130
156
|
&:not(:first-child) {
|
|
@@ -132,12 +158,12 @@
|
|
|
132
158
|
}
|
|
133
159
|
}
|
|
134
160
|
|
|
135
|
-
> .
|
|
161
|
+
> .card_media .card_mediaInner {
|
|
136
162
|
border-radius: calc($size/2);
|
|
137
163
|
}
|
|
138
164
|
}
|
|
139
165
|
|
|
140
|
-
.
|
|
166
|
+
.card_media-fullWidth {
|
|
141
167
|
padding-right: 0;
|
|
142
168
|
padding-top: 0;
|
|
143
169
|
padding-left: 0;
|
|
@@ -145,50 +171,58 @@
|
|
|
145
171
|
|
|
146
172
|
.card {
|
|
147
173
|
|
|
148
|
-
&
|
|
149
|
-
|
|
150
|
-
@
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
174
|
+
&_headerActions {
|
|
175
|
+
|
|
176
|
+
@include mixins.responsive(down, tablet) {
|
|
177
|
+
margin-top: $size*0.75;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&_label {
|
|
182
|
+
@if $value == xs { font-size: variables.$overline-size; }
|
|
183
|
+
@else if $value == sm { font-size: variables.$overline-size; }
|
|
184
|
+
@else if $value == md { font-size: variables.$overline-size; }
|
|
185
|
+
@else if $value == lg { font-size: variables.$caption-size; }
|
|
186
|
+
@else if $value == xl { font-size: variables.$body-size; }
|
|
187
|
+
margin-bottom: calc($size / 4);
|
|
154
188
|
}
|
|
155
189
|
|
|
156
|
-
&
|
|
157
|
-
@if $value == xs {
|
|
158
|
-
@else if $value == sm {
|
|
159
|
-
@else if $value == md {
|
|
160
|
-
@else if $value == lg {
|
|
161
|
-
@else if $value == xl {
|
|
190
|
+
&_title {
|
|
191
|
+
@if $value == xs { font-size: variables.$body-size; }
|
|
192
|
+
@else if $value == sm { font-size: variables.$subtitle-size; }
|
|
193
|
+
@else if $value == md { font-size: variables.$h6-size; }
|
|
194
|
+
@else if $value == lg { font-size: variables.$h5-size; }
|
|
195
|
+
@else if $value == xl { font-size: variables.$h4-size; }
|
|
162
196
|
}
|
|
163
197
|
|
|
164
|
-
&
|
|
165
|
-
@if $value == xs {
|
|
166
|
-
@else if $value == sm {
|
|
167
|
-
@else if $value == md {
|
|
168
|
-
@else if $value == lg {
|
|
169
|
-
@else if $value == xl {
|
|
198
|
+
&_subtitle {
|
|
199
|
+
@if $value == xs { font-size: variables.$caption-size; }
|
|
200
|
+
@else if $value == sm { font-size: variables.$body-size; }
|
|
201
|
+
@else if $value == md { font-size: variables.$subtitle-size; }
|
|
202
|
+
@else if $value == lg { font-size: variables.$h6-size; }
|
|
203
|
+
@else if $value == xl { font-size: variables.$h5-size; }
|
|
170
204
|
margin-top: calc($size / 3);
|
|
171
205
|
}
|
|
172
206
|
|
|
173
|
-
&
|
|
174
|
-
border-radius: $size
|
|
207
|
+
&_mediaInner {
|
|
208
|
+
border-radius: calc($size/8);
|
|
175
209
|
}
|
|
176
210
|
}
|
|
177
211
|
|
|
178
|
-
> .
|
|
212
|
+
> .card_media-fullWidth .card_mediaInner {
|
|
179
213
|
border-radius: 0;
|
|
180
214
|
}
|
|
181
215
|
|
|
182
|
-
&.card
|
|
183
|
-
border-radius: $size
|
|
216
|
+
&.card-transparent > .card_media-fullWidth .card_mediaInner {
|
|
217
|
+
border-radius: calc($size/2);
|
|
184
218
|
}
|
|
185
219
|
|
|
186
|
-
&.card
|
|
220
|
+
&.card-landscape {
|
|
187
221
|
|
|
188
|
-
> .
|
|
189
|
-
> .
|
|
190
|
-
> .
|
|
191
|
-
> .
|
|
222
|
+
> .card_media,
|
|
223
|
+
> .card_header,
|
|
224
|
+
> .card_content,
|
|
225
|
+
> .card_actions {
|
|
192
226
|
padding-top: $size;
|
|
193
227
|
|
|
194
228
|
&:not(:first-child) {
|
|
@@ -196,18 +230,18 @@
|
|
|
196
230
|
}
|
|
197
231
|
}
|
|
198
232
|
|
|
199
|
-
> .
|
|
233
|
+
> .card_actions {
|
|
200
234
|
margin-left: auto;
|
|
201
235
|
flex-direction: column;
|
|
202
236
|
justify-content: flex-start;
|
|
203
237
|
}
|
|
204
238
|
|
|
205
|
-
&.card
|
|
239
|
+
&.card-transparent {
|
|
206
240
|
|
|
207
|
-
> .
|
|
208
|
-
> .
|
|
209
|
-
> .
|
|
210
|
-
> .
|
|
241
|
+
> .card_media,
|
|
242
|
+
> .card_header,
|
|
243
|
+
> .card_content,
|
|
244
|
+
> .card_actions {
|
|
211
245
|
padding: 0;
|
|
212
246
|
|
|
213
247
|
&:not(:first-child) {
|
|
@@ -215,12 +249,12 @@
|
|
|
215
249
|
}
|
|
216
250
|
}
|
|
217
251
|
|
|
218
|
-
> .
|
|
252
|
+
> .card_media .card_mediaInner {
|
|
219
253
|
border-radius: calc($size/2);
|
|
220
254
|
}
|
|
221
255
|
}
|
|
222
256
|
|
|
223
|
-
.
|
|
257
|
+
.card_media-fullWidth {
|
|
224
258
|
padding-top: 0;
|
|
225
259
|
padding-bottom: 0;
|
|
226
260
|
padding-left: 0;
|
|
@@ -229,21 +263,31 @@
|
|
|
229
263
|
}
|
|
230
264
|
|
|
231
265
|
.card {
|
|
232
|
-
@include size(md,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
266
|
+
@include card-size(md, 1.5rem);
|
|
267
|
+
&-xs.card { @include card-size(xs, .75rem); }
|
|
268
|
+
&-sm.card { @include card-size(sm, 1rem); }
|
|
269
|
+
&-lg.card { @include card-size(lg, 2rem); }
|
|
270
|
+
&-xl.card { @include card-size(xl, 2.5rem); }
|
|
237
271
|
}
|
|
238
272
|
|
|
273
|
+
// —————————————————————————————————————————————————————————————————
|
|
274
|
+
// fill
|
|
275
|
+
// —————————————————————————————————————————————————————————————————
|
|
276
|
+
|
|
277
|
+
// the fill styling is handled by the color utility file
|
|
278
|
+
|
|
239
279
|
// —————————————————————————————————————————————————————————————————
|
|
240
280
|
// direction
|
|
241
281
|
// —————————————————————————————————————————————————————————————————
|
|
242
282
|
|
|
243
283
|
// most of the direction styling is handled by the size mixin
|
|
244
284
|
|
|
245
|
-
.card
|
|
285
|
+
.card-landscape {
|
|
246
286
|
flex-direction: row;
|
|
287
|
+
|
|
288
|
+
.card_media {
|
|
289
|
+
flex-basis: 0;
|
|
290
|
+
}
|
|
247
291
|
}
|
|
248
292
|
|
|
249
293
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -252,8 +296,8 @@
|
|
|
252
296
|
|
|
253
297
|
.card {
|
|
254
298
|
|
|
255
|
-
|
|
256
|
-
|
|
299
|
+
&-center { text-align: center; }
|
|
300
|
+
&-right { text-align: right; }
|
|
257
301
|
}
|
|
258
302
|
// —————————————————————————————————————————————————————————————————
|
|
259
303
|
// transparent
|
|
@@ -266,3 +310,7 @@
|
|
|
266
310
|
// —————————————————————————————————————————————————————————————————
|
|
267
311
|
|
|
268
312
|
// the shadow styling is handled by the size mixin
|
|
313
|
+
|
|
314
|
+
.card-hasShadow {
|
|
315
|
+
box-shadow: 0 1px .5rem rgba(variables.$text, 0.15);
|
|
316
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '../common/variables';
|
|
2
2
|
|
|
3
3
|
// —————————————————————————————————————————————————————————————————
|
|
4
4
|
// elements
|
|
5
5
|
// direction
|
|
6
|
-
//
|
|
6
|
+
// padding
|
|
7
7
|
// —————————————————————————————————————————————————————————————————
|
|
8
8
|
|
|
9
9
|
// —————————————————————————————————————————————————————————————————
|
|
@@ -30,23 +30,24 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// —————————————————————————————————————————————————————————————————
|
|
33
|
-
//
|
|
33
|
+
// padding
|
|
34
34
|
// —————————————————————————————————————————————————————————————————
|
|
35
35
|
|
|
36
|
-
@mixin
|
|
37
|
-
margin-top: $
|
|
38
|
-
margin-bottom: $
|
|
36
|
+
@mixin divider-padding($padding) {
|
|
37
|
+
margin-top: $padding;
|
|
38
|
+
margin-bottom: $padding;
|
|
39
39
|
|
|
40
40
|
&.divider-portrait {
|
|
41
41
|
margin-top: 0;
|
|
42
|
-
margin-right: $
|
|
42
|
+
margin-right: $padding;
|
|
43
43
|
margin-bottom: 0;
|
|
44
|
-
margin-left: $
|
|
44
|
+
margin-left: $padding;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.divider {
|
|
49
|
-
@include
|
|
50
|
-
&-
|
|
51
|
-
&-
|
|
49
|
+
@include divider-padding(1rem);
|
|
50
|
+
&-none { @include divider-padding(0); }
|
|
51
|
+
&-sm { @include divider-padding(.5rem); }
|
|
52
|
+
&-lg { @include divider-padding(2rem); }
|
|
52
53
|
}
|