pallote-css 0.3.12 → 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.
Files changed (38) hide show
  1. package/package.json +5 -20
  2. package/dist/pallote.min.css +0 -1
  3. package/dist/pallote.min.css.map +0 -1
  4. package/dist/pallote.min.js +0 -1
  5. package/dist/pallote.scss +0 -31
  6. package/dist/styles/common/_editor.scss +0 -181
  7. package/dist/styles/common/_fontface.scss +0 -31
  8. package/dist/styles/common/_functions.scss +0 -11
  9. package/dist/styles/common/_global.scss +0 -157
  10. package/dist/styles/common/_mixins.scss +0 -165
  11. package/dist/styles/common/_reset.scss +0 -145
  12. package/dist/styles/common/_variables.scss +0 -252
  13. package/dist/styles/components/_accordion.scss +0 -133
  14. package/dist/styles/components/_alert.scss +0 -198
  15. package/dist/styles/components/_breadcrumbs.scss +0 -50
  16. package/dist/styles/components/_button.scss +0 -180
  17. package/dist/styles/components/_buttons.scss +0 -52
  18. package/dist/styles/components/_card.scss +0 -268
  19. package/dist/styles/components/_divider.scss +0 -52
  20. package/dist/styles/components/_form.scss +0 -58
  21. package/dist/styles/components/_grid.scss +0 -190
  22. package/dist/styles/components/_input.scss +0 -298
  23. package/dist/styles/components/_link.scss +0 -46
  24. package/dist/styles/components/_list.scss +0 -60
  25. package/dist/styles/components/_nav.scss +0 -274
  26. package/dist/styles/components/_navbar.scss +0 -192
  27. package/dist/styles/components/_page.scss +0 -33
  28. package/dist/styles/components/_section.scss +0 -193
  29. package/dist/styles/components/_sidebar.scss +0 -61
  30. package/dist/styles/components/_snippet.scss +0 -85
  31. package/dist/styles/components/_status.scss +0 -60
  32. package/dist/styles/components/_switch.scss +0 -84
  33. package/dist/styles/components/_tabs.scss +0 -118
  34. package/dist/styles/components/_tag.scss +0 -79
  35. package/dist/styles/modules/_cookie.scss +0 -38
  36. package/dist/styles/utilities/_color.scss +0 -119
  37. package/dist/styles/utilities/_global.scss +0 -211
  38. package/dist/styles/utilities/_text.scss +0 -207
@@ -1,180 +0,0 @@
1
- @use "sass:color";
2
- @use "sass:list";
3
- @use "../common/mixins";
4
- @use "../common/variables";
5
- @use "../utilities/text";
6
-
7
- // —————————————————————————————————————————————————————————————————
8
- // elements
9
- // kind
10
- // variant
11
- // size
12
- // color
13
- // fullWidth
14
- // disabled
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- // —————————————————————————————————————————————————————————————————
18
- // elements
19
- // —————————————————————————————————————————————————————————————————
20
-
21
- .button {
22
- cursor: pointer;
23
- overflow: hidden;
24
- display: inline-flex;
25
- align-items: center;
26
- justify-content: center;
27
- border-radius: variables.$border-radius-md;
28
- position: relative;
29
- line-height: 0;
30
- text-transform: uppercase;
31
- font-weight: variables.$font-bold;
32
- white-space: nowrap;
33
- outline-offset: 2px;
34
- width: fit-content;
35
- min-width: fit-content;
36
-
37
- svg {
38
- stroke: currentColor;
39
- fill: currentColor;
40
- }
41
- }
42
-
43
- // —————————————————————————————————————————————————————————————————
44
- // kind
45
- // —————————————————————————————————————————————————————————————————
46
-
47
- // This property is handled by the size mixin
48
-
49
- // —————————————————————————————————————————————————————————————————
50
- // variant
51
- // —————————————————————————————————————————————————————————————————
52
-
53
- // This property is handled by the color mixin
54
-
55
- // —————————————————————————————————————————————————————————————————
56
- // size
57
- // —————————————————————————————————————————————————————————————————
58
-
59
- @mixin size($value, $size) {
60
- height: $size;
61
- gap: $size*.25;
62
- padding-right: $size*.33;
63
- padding-left: $size*.33;
64
-
65
- @if $value == xs or $value == sm {
66
- @extend %overline;
67
- border-radius: variables.$border-radius-sm;
68
- }
69
- @if $value == md { @extend %body; }
70
- @if $value == lg { @extend %subtitle; }
71
-
72
- svg {
73
- width: calc($size/1.75);
74
- height: calc($size/1.75);
75
- margin-right: -$size*.05;
76
- margin-left: -$size*.05;
77
- }
78
-
79
- &:not(.button-icon) {
80
-
81
- svg {
82
- margin-top: 0.15em;
83
- }
84
- }
85
-
86
- &.button-icon {
87
- width: $size;
88
- padding: 0;
89
- }
90
- }
91
-
92
- .button {
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); }
98
- }
99
-
100
- // —————————————————————————————————————————————————————————————————
101
- // color
102
- // —————————————————————————————————————————————————————————————————
103
-
104
- @mixin color($prefix, $colors...) {
105
-
106
- @each $i in $colors {
107
- .#{$prefix}#{list.nth($i, 1)} {
108
- background-color: list.nth($i, 2);
109
- color: list.nth($i, 3);
110
-
111
- &:focus {
112
- outline: 2px solid list.nth($i, 2);
113
- }
114
-
115
- @include mixins.hover {
116
-
117
- &:not(.button-disabled) {
118
- background-color: color.mix(black, list.nth($i, 2), 20%);
119
- }
120
- }
121
-
122
- &.button-stroke {
123
- background-color: transparent;
124
- border: 1px solid list.nth($i, 2);
125
- color: variables.$text;
126
-
127
- @include mixins.hover {
128
-
129
- &:not(.button-disabled) {
130
- background-color: variables.$hover;
131
- }
132
- }
133
-
134
- svg { stroke: variables.$text; }
135
- }
136
-
137
- &.button-transparent {
138
- background-color: transparent;
139
- color: list.nth($i, 2);
140
-
141
- @include mixins.hover { background-color: variables.$hover; }
142
- svg { stroke: list.nth($i, 2); }
143
- }
144
- }
145
- }
146
- }
147
-
148
- @include color('button',
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
158
- );
159
-
160
- // —————————————————————————————————————————————————————————————————
161
- // fullWidth
162
- // —————————————————————————————————————————————————————————————————
163
-
164
- .button-fullWidth {
165
- width: 100%;
166
- }
167
-
168
- // —————————————————————————————————————————————————————————————————
169
- // disabled
170
- // —————————————————————————————————————————————————————————————————
171
-
172
- .button {
173
-
174
- &.button-disabled,
175
- &:disabled {
176
- opacity: 0.3;
177
- cursor: not-allowed;
178
- outline: none;
179
- }
180
- }
@@ -1,52 +0,0 @@
1
- @use "../common/mixins";
2
-
3
- // —————————————————————————————————————————————————————————————————
4
- // elements
5
- // direction
6
- // fullWidth
7
- // wide
8
- // —————————————————————————————————————————————————————————————————
9
-
10
- // —————————————————————————————————————————————————————————————————
11
- // elements
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- .buttons {
15
- display: flex;
16
- flex-wrap: wrap; // set on multiple lines if wider than parent width
17
- width: 100%;
18
- gap: .5rem;
19
-
20
- // larger spacing on small and touch devices
21
- @include mixins.responsive(down, mobile) { gap: 1rem; }
22
- @include mixins.responsive-touch { gap: 1rem; }
23
- }
24
-
25
- // —————————————————————————————————————————————————————————————————
26
- // direction
27
- // —————————————————————————————————————————————————————————————————
28
-
29
- .buttons-portrait {
30
- flex-direction: column;
31
- align-items: flex-start;
32
- }
33
-
34
- // —————————————————————————————————————————————————————————————————
35
- // fullWidth
36
- // —————————————————————————————————————————————————————————————————
37
-
38
- .buttons-fullWidth .button {
39
- width: 100%;
40
- }
41
-
42
- // —————————————————————————————————————————————————————————————————
43
- // wide
44
- // —————————————————————————————————————————————————————————————————
45
-
46
- .buttons-wide {
47
- justify-content: space-between;
48
-
49
- > .buttons {
50
- width: fit-content;
51
- }
52
- }
@@ -1,268 +0,0 @@
1
- @use "../common/variables";
2
- @use "../utilities/text";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // size
7
- // direction
8
- // align
9
- // transparent
10
- // hasShadow
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- // —————————————————————————————————————————————————————————————————
14
- // elements
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- .card {
18
- display: flex;
19
- flex-direction: column;
20
- align-items: stretch;
21
- width: 100%;
22
- overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
23
- border: variables.$border;
24
-
25
- &:not(.card--transparent) {
26
- background-color: variables.$background-paper;
27
- }
28
-
29
- &__media {
30
- flex-basis: 0;
31
-
32
- &Inner {
33
- background-size: cover;
34
- background-repeat: no-repeat;
35
- background-position: center center;
36
- width: 100%;
37
- height: 100%;
38
- background-color: variables.$overlay;
39
- overflow: hidden;
40
- padding-bottom: 50%;
41
-
42
- .card--transparent & {
43
- background-color: variables.$overlay-contrast;
44
- }
45
- }
46
- }
47
-
48
- &__label,
49
- &__title {
50
- @extend %text-bold;
51
- }
52
-
53
- &__title {
54
- line-height: 1.25;
55
- }
56
-
57
- &__subtitle {
58
- @extend %text-regular;
59
- }
60
-
61
- &__content {
62
- display: inline-flex;
63
- flex-direction: column;
64
- align-items: flex-start;
65
-
66
- &--fullWidth {
67
-
68
- .card > &.card__content {
69
- padding-right: 0;
70
- padding-left: 0;
71
- }
72
- }
73
- }
74
-
75
- &__actions {
76
- display: flex;
77
- justify-content: space-between;
78
-
79
- >*:only-child {
80
- margin-left: auto;
81
- }
82
-
83
- &--portrait {
84
- flex-direction: column;
85
-
86
- >*:not(:last-child) {
87
- margin-bottom: variables.$spacing-md;
88
- }
89
- }
90
- }
91
- }
92
-
93
- // —————————————————————————————————————————————————————————————————
94
- // size
95
- // —————————————————————————————————————————————————————————————————
96
-
97
- @mixin size($value, $size) {
98
-
99
- &:not(.card--transparent) {
100
- border-radius: $size;
101
- }
102
-
103
- &.card--hasShadow {
104
- box-shadow: 0 0 $size $size*0.25 rgba(variables.$main ,0.3);
105
- }
106
-
107
- > .card__media,
108
- > .card__header,
109
- > .card__content,
110
- > .card__actions {
111
- padding: $size;
112
-
113
- &:not(:first-child) {
114
- padding-top: 0;
115
- }
116
- }
117
-
118
- > .card__actions {
119
- margin-top: auto;
120
- }
121
-
122
- &.card--transparent {
123
-
124
- > .card__media,
125
- > .card__header,
126
- > .card__content,
127
- > .card__actions {
128
- padding: 0;
129
-
130
- &:not(:first-child) {
131
- padding-top: $size;
132
- }
133
- }
134
-
135
- > .card__media .card__mediaInner {
136
- border-radius: calc($size/2);
137
- }
138
- }
139
-
140
- .card__media--fullWidth {
141
- padding-right: 0;
142
- padding-top: 0;
143
- padding-left: 0;
144
- }
145
-
146
- .card {
147
-
148
- &__label {
149
- @if $value == xs { @extend %overline; }
150
- @else if $value == sm { @extend %overline; }
151
- @else if $value == md { @extend %overline; }
152
- @else if $value == lg { @extend %caption; }
153
- @else if $value == xl { @extend %body; }
154
- }
155
-
156
- &__title {
157
- @if $value == xs { @extend %body; }
158
- @else if $value == sm { @extend %subtitle; }
159
- @else if $value == md { @extend %h6; }
160
- @else if $value == lg { @extend %h5; }
161
- @else if $value == xl { @extend %h4; }
162
- }
163
-
164
- &__subtitle {
165
- @if $value == xs { @extend %caption; }
166
- @else if $value == sm { @extend %body; }
167
- @else if $value == md { @extend %subtitle; }
168
- @else if $value == lg { @extend %h6; }
169
- @else if $value == xl { @extend %h5; }
170
- margin-top: calc($size / 3);
171
- }
172
-
173
- &__mediaInner {
174
- border-radius: $size*0.25;
175
- }
176
- }
177
-
178
- > .card__media--fullWidth .card__mediaInner {
179
- border-radius: 0;
180
- }
181
-
182
- &.card--transparent > .card__media--fullWidth .card__mediaInner {
183
- border-radius: $size*0.5;
184
- }
185
-
186
- &.card--landscape {
187
-
188
- > .card__media,
189
- > .card__header,
190
- > .card__content,
191
- > .card__actions {
192
- padding-top: $size;
193
-
194
- &:not(:first-child) {
195
- padding-left: 0;
196
- }
197
- }
198
-
199
- > .card__actions {
200
- margin-left: auto;
201
- flex-direction: column;
202
- justify-content: flex-start;
203
- }
204
-
205
- &.card--transparent {
206
-
207
- > .card__media,
208
- > .card__header,
209
- > .card__content,
210
- > .card__actions {
211
- padding: 0;
212
-
213
- &:not(:first-child) {
214
- padding-left: $size;
215
- }
216
- }
217
-
218
- > .card__media .card__mediaInner {
219
- border-radius: calc($size/2);
220
- }
221
- }
222
-
223
- .card__media--fullWidth {
224
- padding-top: 0;
225
- padding-bottom: 0;
226
- padding-left: 0;
227
- }
228
- }
229
- }
230
-
231
- .card {
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); }
237
- }
238
-
239
- // —————————————————————————————————————————————————————————————————
240
- // direction
241
- // —————————————————————————————————————————————————————————————————
242
-
243
- // most of the direction styling is handled by the size mixin
244
-
245
- .card--landscape {
246
- flex-direction: row;
247
- }
248
-
249
- // —————————————————————————————————————————————————————————————————
250
- // align
251
- // —————————————————————————————————————————————————————————————————
252
-
253
- .card {
254
-
255
- &--center { text-align: center; }
256
- &--right { text-align: right; }
257
- }
258
- // —————————————————————————————————————————————————————————————————
259
- // transparent
260
- // —————————————————————————————————————————————————————————————————
261
-
262
- // the transparent styling is handled by the size mixin
263
-
264
- // —————————————————————————————————————————————————————————————————
265
- // hasShadow
266
- // —————————————————————————————————————————————————————————————————
267
-
268
- // the shadow styling is handled by the size mixin
@@ -1,52 +0,0 @@
1
- @use "../common/variables";
2
-
3
- // —————————————————————————————————————————————————————————————————
4
- // elements
5
- // direction
6
- // size
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // elements
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- .divider {
14
- display: inline-block;
15
- background-color: variables.$border-color;
16
- height: 1px;
17
- width: 100%;
18
- }
19
-
20
- // —————————————————————————————————————————————————————————————————
21
- // direction
22
- // —————————————————————————————————————————————————————————————————
23
-
24
- .divider {
25
-
26
- &-portrait {
27
- height: 100%;
28
- width: 1px;
29
- }
30
- }
31
-
32
- // —————————————————————————————————————————————————————————————————
33
- // size
34
- // —————————————————————————————————————————————————————————————————
35
-
36
- @mixin size($size) {
37
- margin-top: $size;
38
- margin-bottom: $size;
39
-
40
- &.divider-portrait {
41
- margin-top: 0;
42
- margin-right: $size;
43
- margin-bottom: 0;
44
- margin-left: $size;
45
- }
46
- }
47
-
48
- .divider {
49
- @include size(1rem);
50
- &-sm { @include size(.5rem); }
51
- &-lg { @include size(2rem); }
52
- }
@@ -1,58 +0,0 @@
1
- @use "../common/variables";
2
- @use "../utilities/text";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // dense
7
- // card
8
- // —————————————————————————————————————————————————————————————————
9
-
10
- // —————————————————————————————————————————————————————————————————
11
- // elements
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- .form {
15
- width: 100%;
16
-
17
- &_title,
18
- &_content,
19
- &_actions {
20
-
21
- &:not(:last-child) {
22
- margin-bottom: 1.5rem;
23
- }
24
- }
25
-
26
- &_title {
27
- @extend %subtitle;
28
- font-weight: variables.$font-bold;
29
- }
30
- }
31
-
32
- // —————————————————————————————————————————————————————————————————
33
- // dense
34
- // —————————————————————————————————————————————————————————————————
35
-
36
- .form-dense {
37
-
38
- .form {
39
-
40
- &_title,
41
- &_content,
42
- &_actions {
43
-
44
- &:not(:last-child) {
45
- margin-bottom: 1rem;
46
- }
47
- }
48
- }
49
-
50
- .input:not(:last-child) {
51
- margin-bottom: .5rem;
52
- }
53
-
54
- &.form-card {
55
- padding: 1rem;
56
- border-radius: 1rem;
57
- }
58
- }