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,190 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // variables
6
- // elements
7
- // wrap
8
- // direction
9
- // justifyContent
10
- // alignItems
11
- // alignSelf
12
- // flexGrow
13
- // spacing
14
- // width
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- // —————————————————————————————————————————————————————————————————
18
- // variables
19
- // —————————————————————————————————————————————————————————————————
20
-
21
- variables.$col: calc(100% / 12);
22
-
23
- // —————————————————————————————————————————————————————————————————
24
- // elements
25
- // —————————————————————————————————————————————————————————————————
26
-
27
- .grid {
28
- display: flex;
29
- box-sizing: border-box;
30
- flex-direction: row;
31
- flex-wrap: wrap;
32
-
33
- &__item:not(.grid) {
34
- position: relative;
35
- display: flex;
36
- flex-direction: column;
37
- float: left;
38
- }
39
- }
40
-
41
- // —————————————————————————————————————————————————————————————————
42
- // wrap
43
- // —————————————————————————————————————————————————————————————————
44
-
45
- .grid {
46
-
47
- // have children wrap automatically
48
- &--wrap {
49
- justify-content: center;
50
-
51
- > .grid__item {
52
- flex: 1 0 0;
53
- }
54
- }
55
- }
56
-
57
- // —————————————————————————————————————————————————————————————————
58
- // direction
59
- // —————————————————————————————————————————————————————————————————
60
-
61
- .grid--column { flex-direction: column; }
62
- .grid--columnReverse { flex-direction: column-reverse; }
63
- .grid--row { flex-direction: row; flex-wrap: wrap; }
64
- .grid--rowReverse { flex-direction: row-reverse; flex-wrap: wrap; }
65
-
66
- // —————————————————————————————————————————————————————————————————
67
- // justifyContent
68
- // —————————————————————————————————————————————————————————————————
69
-
70
- .grid--jc-center { justify-content: center;}
71
- .grid--jc-end { justify-content: flex-end;}
72
- .grid--jc-start { justify-content: flex-start;}
73
- .grid--jc-spaceAround { justify-content: space-around;}
74
- .grid--jc-spaceBetween { justify-content: space-between;}
75
- .grid--jc-spaceEvenly { justify-content: space-evenly;}
76
-
77
- // —————————————————————————————————————————————————————————————————
78
- // alignItems
79
- // —————————————————————————————————————————————————————————————————
80
-
81
- .grid--ai-stretch { align-items: stretch; }
82
- .grid--ai-center { align-items: center; }
83
- .grid--ai-end { align-items: flex-end; }
84
- .grid--ai-start { align-items: flex-start; }
85
- .grid--ai-baseline { align-items: baseline; }
86
-
87
- // —————————————————————————————————————————————————————————————————
88
- // alignSelf
89
- // —————————————————————————————————————————————————————————————————
90
-
91
- .grid--as-stretch { align-self: stretch; }
92
- .grid--as-center { align-self: center; }
93
- .grid--as-end { align-self: flex-end; }
94
- .grid--as-start { align-self: flex-start; }
95
- .grid--as-baseline { align-self: baseline; }
96
-
97
-
98
- // —————————————————————————————————————————————————————————————————
99
- // flexGrow
100
- // —————————————————————————————————————————————————————————————————
101
-
102
- .grid--fg {
103
-
104
- &-0 { flex-grow: 0; }
105
- &-1 { flex-grow: 1; }
106
- &-auto { flex-grow: auto; }
107
- }
108
-
109
- // —————————————————————————————————————————————————————————————————
110
- // spacing
111
- // —————————————————————————————————————————————————————————————————
112
-
113
- @for $spacingWidth from 1 through 12 {
114
-
115
- .grid--spacing#{$spacingWidth} {
116
- margin: -($spacingWidth * 0.5rem)*0.5;
117
- width: calc(100% + #{$spacingWidth * 0.5rem});
118
-
119
- > .grid__item {
120
- padding: ($spacingWidth * 0.5rem)*0.5;
121
- }
122
-
123
- &.grid__item {
124
- width: calc(100% + #{$spacingWidth * 0.5rem});
125
- }
126
- }
127
- }
128
-
129
- // —————————————————————————————————————————————————————————————————
130
- // width
131
- // —————————————————————————————————————————————————————————————————
132
-
133
- @for $colWidth from 1 through 12 {
134
-
135
- .grid--#{$colWidth} {
136
- width: $colWidth*variables.$col;
137
-
138
- &.grid {
139
- width: $colWidth*variables.$col;
140
- }
141
-
142
- @for $spacingWidth from 1 through 12 {
143
-
144
- &.grid--spacing#{$spacingWidth} {
145
- width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
146
- }
147
- }
148
- }
149
- }
150
-
151
- @mixin break-width($breakpoint) {
152
-
153
- @include mixins.responsive(up, $breakpoint) {
154
-
155
- @for $colWidth from 1 through 12 {
156
-
157
- &#{$colWidth} {
158
- width: $colWidth*variables.$col;
159
-
160
- &.grid {
161
- width: $colWidth*variables.$col;
162
- }
163
-
164
- @for $spacingWidth from 1 through 12 {
165
-
166
- &.grid--spacing#{$spacingWidth} {
167
- width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
168
- }
169
- }
170
- }
171
- }
172
- }
173
- }
174
-
175
- [class*="grid--xs"],
176
- [class*="grid--sm"],
177
- [class*="grid--md"],
178
- [class*="grid--lg"],
179
- [class*="grid--xl"] {
180
- width: 100%;
181
- }
182
-
183
- .grid {
184
-
185
- &--xs { @include break-width(mobile-sm); }
186
- &--sm { @include break-width(mobile); }
187
- &--md { @include break-width(tablet); }
188
- &--lg { @include break-width(laptop); }
189
- &--xl { @include break-width(desktop); }
190
- }
@@ -1,298 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
- @use "../utilities/text";
4
-
5
- // —————————————————————————————————————————————————————————————————
6
- // elements / default
7
- // elements / select
8
- // elements / textarea
9
- // elements / checkbox & radio
10
- // error
11
- // disabled
12
- // optional
13
- // icon
14
- // —————————————————————————————————————————————————————————————————
15
-
16
- // —————————————————————————————————————————————————————————————————
17
- // elements / default
18
- // —————————————————————————————————————————————————————————————————
19
-
20
- .input {
21
- display: flex;
22
- flex-direction: column;
23
- text-align: left;
24
- position: relative;
25
- width: 100%;
26
- max-width: variables.$max-width-form;
27
-
28
- &:not(:last-child) {
29
- margin-bottom: 1rem;
30
- }
31
-
32
- &_label {
33
- @include mixins.transition(variables.$transition-md, color);
34
- font-weight: variables.$font-bold;
35
- text-overflow: ellipsis;
36
- display: block;
37
- overflow: hidden;
38
- white-space: nowrap;
39
- position: relative;
40
- margin-bottom: .25rem;
41
- }
42
-
43
- &_hint {
44
- @extend %caption;
45
- margin-top: -.125rem;
46
- margin-bottom: .5rem;
47
- }
48
-
49
- &_control {
50
- @include mixins.transition(variables.$transition-md, border-color);
51
- font-size: 1rem;
52
- font-family: variables.$font-fallback;
53
- width: 100%;
54
- border-radius: variables.$border-radius-md !important;
55
- padding: .325rem .5rem;
56
- background-color: variables.$input-background;
57
- border: variables.$border;
58
-
59
- @include mixins.responsive(down, mobile) {
60
- background-color: variables.$input-background;
61
- }
62
-
63
- &:not(textarea):not(.checkboxes):not(.radios) {
64
- display: inline-block;
65
- align-items: center;
66
- white-space: nowrap;
67
- text-overflow: ellipsis;
68
- line-height: 1.2;
69
- white-space: nowrap;
70
- text-overflow: ellipsis;
71
- }
72
-
73
- &:not(textarea) {
74
- height: variables.$input-height;
75
- }
76
- }
77
- }
78
-
79
- @include mixins.placeholder {
80
- color: variables.$text-alt;
81
- opacity: 1;
82
- }
83
-
84
- // —————————————————————————————————————————————————————————————————
85
- // elements / select
86
- // —————————————————————————————————————————————————————————————————
87
-
88
- .select {
89
-
90
- &:after {
91
- content: '';
92
- border: solid variables.$text;
93
- border-width: 0 .125rem .125rem 0;
94
- padding: .2rem;
95
- transform: rotate(45deg);
96
- margin-left: variables.$nav-item*0.5;
97
- position: absolute;
98
- bottom: variables.$input-height*.45;
99
- right: 1rem;
100
- }
101
-
102
- .input_control {
103
- display: flex;
104
- align-items: center;
105
- }
106
- }
107
-
108
- // —————————————————————————————————————————————————————————————————
109
- // elements / textarea
110
- // —————————————————————————————————————————————————————————————————
111
-
112
- textarea {
113
- resize: vertical;
114
- }
115
-
116
- // —————————————————————————————————————————————————————————————————
117
- // elements / checkbox & radio
118
- // —————————————————————————————————————————————————————————————————
119
-
120
- .checkboxes,
121
- .radios {
122
- display: flex;
123
- background-color: transparent;
124
- border: 0;
125
- padding-right: 0;
126
- padding-left: 0;
127
-
128
- &:not(&-landscape) {
129
- flex-direction: column;
130
- align-items: flex-start !important;
131
- height: auto !important;
132
-
133
- .checkbox + .checkbox,
134
- .radio + .radio {
135
- margin-top: 0.75rem;
136
- margin-left: 0;
137
- }
138
- }
139
-
140
- &-landscape {
141
-
142
- .checkbox + .checkbox,
143
- .radio + .radio {
144
- margin-left: 1rem;
145
- }
146
- }
147
- }
148
-
149
- .checkbox,
150
- .radio {
151
- display: flex;
152
- align-items: center;
153
- }
154
-
155
- input[type="checkbox"],
156
- input[type='radio'] {
157
- display: flex;
158
- align-items: center;
159
- justify-content: center;
160
- height: variables.$checkbox-width;
161
- width: variables.$checkbox-width;
162
- background-color: variables.$input-background;
163
- border: variables.$border;
164
- margin-right: .5rem;
165
- }
166
-
167
- input[type='checkbox'] { border-radius: variables.$border-radius-sm; }
168
- input[type='radio'] { border-radius: 50%; }
169
-
170
- input[type='checkbox']:checked {
171
- background-color: variables.$primary;
172
-
173
- &:after {
174
- content: "✔";
175
- font-size: 1rem;
176
- color: variables.$text-contrast;
177
- }
178
- }
179
-
180
- input[type='radio']:checked {
181
-
182
- &:after {
183
- content: "";
184
- height: variables.$checkbox-width*.5;
185
- width: variables.$checkbox-width*.5;
186
- background-color: variables.$primary;
187
- border-radius: 50%;
188
- }
189
- }
190
-
191
- // —————————————————————————————————————————————————————————————————
192
- // error
193
- // —————————————————————————————————————————————————————————————————
194
-
195
- .input.js-error {
196
-
197
- .input {
198
-
199
- &_label { color: variables.$error; }
200
-
201
- &_control {
202
- border: 1px solid variables.$error;
203
-
204
- &.checkboxes,
205
- &.radios {
206
- border: 0;
207
- }
208
- }
209
- }
210
- }
211
-
212
- // —————————————————————————————————————————————————————————————————
213
- // disabled
214
- // —————————————————————————————————————————————————————————————————
215
-
216
- .input-disabled,
217
- .input:disabled {
218
- opacity: 0.5;
219
-
220
- .input {
221
-
222
- &_label,
223
- &_control {
224
- cursor: not-allowed;
225
- }
226
- }
227
-
228
- &.select:after {
229
- opacity: 0.5;
230
- }
231
-
232
- .checkbox,
233
- .radio {
234
-
235
- &_control,
236
- &_label {
237
- pointer-events: none;
238
- }
239
- }
240
- }
241
-
242
- .checkbox-disabled,
243
- .radio-disabled {
244
- cursor: not-allowed;
245
- opacity: 0.5;
246
-
247
- > * {
248
- pointer-events: none;
249
- }
250
- }
251
-
252
- // —————————————————————————————————————————————————————————————————
253
- // optional
254
- // —————————————————————————————————————————————————————————————————
255
-
256
- .input-optional {
257
-
258
- .input_label:after {
259
- content: " (optional)";
260
- }
261
- }
262
-
263
- // —————————————————————————————————————————————————————————————————
264
- // icon
265
- // —————————————————————————————————————————————————————————————————
266
-
267
- .input-withIcon {
268
-
269
- .input_control {
270
- padding-right: variables.$input-height*1.25;
271
- }
272
- }
273
-
274
- // remove right padding to allow native input trigger
275
- input[type="date"],
276
- input[type="time"],
277
- input[type="number"] {
278
- appearance: initial;
279
- padding-right: 0;
280
- }
281
-
282
- .input_icon {
283
- display: flex;
284
- align-items: center;
285
- justify-content: center;
286
- position: absolute;
287
- bottom: 0;
288
- right: 0;
289
- width: variables.$input-height;
290
- height: variables.$input-height;
291
- pointer-events: none;
292
- border-left: variables.$border;
293
-
294
- svg {
295
- width: 50%;
296
- height: 50%;
297
- }
298
- }
@@ -1,46 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // color
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // elements
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- .link {
14
- display: inline-flex;
15
- align-items: center;
16
- font-weight: variables.$font-regular;
17
- text-decoration: underline;
18
- text-underline-offset: 0.1em;
19
- white-space: nowrap;
20
-
21
- &__icon {
22
- display: flex;
23
- margin-top: 0.1em;
24
- margin-left: 0.25em;
25
-
26
- svg {
27
- height: 1em;
28
- width: 1em;
29
- }
30
- }
31
- }
32
-
33
- // —————————————————————————————————————————————————————————————————
34
- // color
35
- // —————————————————————————————————————————————————————————————————
36
-
37
- // links color is handled by the color mixins in utilities/_text.scss
38
-
39
- .link {
40
- color: variables.$primary;
41
- text-decoration: underline rgba(variables.$primary, 0.5);
42
-
43
- @include mixins.hover {
44
- text-decoration: underline 0.125em;
45
- }
46
- }
@@ -1,60 +0,0 @@
1
- @use "../utilities/text";
2
-
3
- // —————————————————————————————————————————————————————————————————
4
- // elements
5
- // dense
6
- // list item - bold
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // elements
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- .list {
14
- display: flex;
15
- flex-direction: column;
16
- align-items: flex-start; // so that children don't take 100% width (for focus style)
17
-
18
- &_item {
19
- display: flex;
20
- align-items: center;
21
-
22
- &:not(:last-child) {
23
- margin-bottom: .5rem;
24
- }
25
-
26
- &Icon {
27
- display: flex;
28
- height: 1em;
29
- width: 1em;
30
- margin-right: .5em;
31
- }
32
- }
33
- }
34
-
35
- // —————————————————————————————————————————————————————————————————
36
- // dense
37
- // —————————————————————————————————————————————————————————————————
38
-
39
- .list-dense .list_item,
40
- .list_item-dense {
41
- @extend %caption;
42
- margin-top: 0 !important;
43
-
44
- &:not(:last-child) {
45
- margin-bottom: .25rem;
46
- }
47
- }
48
-
49
- // —————————————————————————————————————————————————————————————————
50
- // list item - bold
51
- // —————————————————————————————————————————————————————————————————
52
-
53
- .list_item-bold {
54
- @extend %text-bold;
55
-
56
- .list_itemIcon * {
57
- stroke: currentColor;
58
- stroke-width: 0.5rem;
59
- }
60
- }