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,211 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // responsive
6
- // spacing and size
7
- // position
8
- // display
9
- // border
10
- // border-radius
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- // —————————————————————————————————————————————————————————————————
14
- // responsive
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- .hide {
18
-
19
- &-desktop { @include mixins.responsive(down, desktop) { display: none !important; } }
20
- &-laptop { @include mixins.responsive(down, laptop) { display: none !important; } }
21
- &-tablet { @include mixins.responsive(down, tablet) { display: none !important; } }
22
- &-mobile { @include mixins.responsive(down, mobile) { display: none !important; } }
23
- &-mobileSm { @include mixins.responsive(down, mobile-sm) { display: none !important; } }
24
- &-touch { @include mixins.responsive-touch { display: none !important; } }
25
- }
26
-
27
- .show {
28
-
29
- &-desktop { @include mixins.responsive(up, desktop) { display: none !important; } }
30
- &-laptop { @include mixins.responsive(up, laptop) { display: none !important; } }
31
- &-tablet { @include mixins.responsive(up, tablet) { display: none !important; } }
32
- &-mobile { @include mixins.responsive(up, mobile) { display: none !important; } }
33
- &-mobileSm { @include mixins.responsive(up, mobile-sm) { display: none !important; } }
34
- &-touch { @include mixins.responsive-click { display: none !important; } }
35
- }
36
-
37
- // —————————————————————————————————————————————————————————————————
38
- // spacing and size
39
- // —————————————————————————————————————————————————————————————————
40
-
41
- .w-full { width: 100% !important; }
42
- .w-fit { width: fit-content !important; }
43
-
44
- .h-full { height: 100% !important; }
45
- .h-fit { height: fit-content !important; }
46
-
47
- .m-auto { margin: auto !important; }
48
- .mt-auto { margin-top: auto !important; }
49
- .mr-auto { margin-right: auto !important; }
50
- .mb-auto { margin-bottom: auto !important; }
51
- .ml-auto { margin-left: auto !important; }
52
- .mv-auto { margin-top: auto !important; margin-bottom: auto !important; }
53
- .mh-auto { margin-right: auto !important; margin-left: auto !important; }
54
-
55
- // from .25rem to 5rem, every quarter
56
-
57
- $fractions: ( "¼": 0.25, "½": 0.5, "¾": 0.75 );
58
-
59
- @for $i from 0 through 5 {
60
- .w-#{$i} { width: #{$i}rem !important; }
61
- .h-#{$i} { height: #{$i}rem !important; }
62
-
63
- .m-#{$i} { margin: #{$i}rem !important; }
64
- .mt-#{$i} { margin-top: #{$i}rem !important; }
65
- .mr-#{$i} { margin-right: #{$i}rem !important; }
66
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
67
- .ml-#{$i} { margin-left: #{$i}rem !important; }
68
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
69
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
70
-
71
- .p-#{$i} { padding: #{$i}rem !important; }
72
- .pt-#{$i} { padding-top: #{$i}rem !important; }
73
- .pr-#{$i} { padding-right: #{$i}rem !important; }
74
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
75
- .pl-#{$i} { padding-left: #{$i}rem !important; }
76
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
77
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
78
-
79
- @each $symbol, $value in $fractions {
80
-
81
- @if $i == 0 {
82
- .w-#{$symbol} { width: #{$i + $value}rem !important; }
83
- .h-#{$symbol} { height: #{$i + $value}rem !important; }
84
-
85
- .m-#{$symbol} { margin: #{$i + $value}rem !important; }
86
- .mt-#{$symbol} { margin-top: #{$i + $value}rem !important; }
87
- .mr-#{$symbol} { margin-right: #{$i + $value}rem !important; }
88
- .mb-#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
89
- .ml-#{$symbol} { margin-left: #{$i + $value}rem !important; }
90
- .mv-#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
91
- .mh-#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
92
-
93
- .p-#{$symbol} { padding: #{$i + $value}rem !important; }
94
- .pt-#{$symbol} { padding-top: #{$i + $value}rem !important; }
95
- .pr-#{$symbol} { padding-right: #{$i + $value}rem !important; }
96
- .pb-#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
97
- .pl-#{$symbol} { padding-left: #{$i + $value}rem !important; }
98
- .pv-#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
99
- .ph-#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
100
-
101
- } @else {
102
- .w-#{$i}#{$symbol} { width: #{$i + $value}rem !important; }
103
- .h-#{$i}#{$symbol} { height: #{$i + $value}rem !important; }
104
-
105
- .m-#{$i}#{$symbol} { margin: #{$i + $value}rem !important; }
106
- .mt-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; }
107
- .mr-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; }
108
- .mb-#{$i}#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
109
- .ml-#{$i}#{$symbol} { margin-left: #{$i + $value}rem !important; }
110
- .mv-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
111
- .mh-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
112
-
113
- .p-#{$i}#{$symbol} { padding: #{$i + $value}rem !important; }
114
- .pt-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; }
115
- .pr-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; }
116
- .pb-#{$i}#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
117
- .pl-#{$i}#{$symbol} { padding-left: #{$i + $value}rem !important; }
118
- .pv-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
119
- .ph-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
120
- }
121
- }
122
- }
123
-
124
- // from 6 to 20 rem, only integer
125
-
126
- @for $i from 6 through 20 {
127
- .w-#{$i} { width: #{$i}rem !important; }
128
- .h-#{$i} { height: #{$i}rem !important; }
129
-
130
- .m-#{$i} { margin: #{$i}rem !important; }
131
- .mt-#{$i} { margin-top: #{$i}rem !important; }
132
- .mr-#{$i} { margin-right: #{$i}rem !important; }
133
- .mb-#{$i} { margin-bottom: #{$i}rem !important; }
134
- .ml-#{$i} { margin-left: #{$i}rem !important; }
135
- .mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
136
- .mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
137
-
138
- .p-#{$i} { padding: #{$i}rem !important; }
139
- .pt-#{$i} { padding-top: #{$i}rem !important; }
140
- .pr-#{$i} { padding-right: #{$i}rem !important; }
141
- .pb-#{$i} { padding-bottom: #{$i}rem !important; }
142
- .pl-#{$i} { padding-left: #{$i}rem !important; }
143
- .pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
144
- .ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
145
- }
146
-
147
- // —————————————————————————————————————————————————————————————————
148
- // position
149
- // —————————————————————————————————————————————————————————————————
150
-
151
- .pos {
152
-
153
- &-absolute { position: absolute !important; }
154
- &-relative { position: relative !important; }
155
- &-fixed { position: relative !important; }
156
- &-sticky { position: relative !important; }
157
- }
158
-
159
- // —————————————————————————————————————————————————————————————————
160
- // display
161
- // —————————————————————————————————————————————————————————————————
162
-
163
- // general display
164
-
165
- .dis-flex { display: flex !important; }
166
- .dis-inlineFlex { display: inline-flex !important; }
167
- .dis-block { display: block !important; }
168
- .dis-inlineBlock { display: inline-block !important; }
169
-
170
- // flexbasis
171
-
172
- .fb {
173
-
174
- &-content { flex-basis: content !important; }
175
- &-0 { flex-basis: 0 !important; }
176
- &-1 { flex-basis: 1 !important; }
177
- }
178
-
179
- // flex-grow
180
-
181
- .fg {
182
-
183
- &-0 { flex-grow: 0 !important; }
184
- &-1 { flex-grow: 1 !important; }
185
- }
186
-
187
- // flex-shrink
188
-
189
- .fs {
190
-
191
- &-0 { flex-shrink: 0 !important; }
192
- &-1 { flex-shrink: 1 !important; }
193
- }
194
-
195
- // —————————————————————————————————————————————————————————————————
196
- // border
197
- // —————————————————————————————————————————————————————————————————
198
-
199
- .b-1 { border: variables.$border; }
200
- .bt-1 { border-top: variables.$border; }
201
- .br-1 { border-right: variables.$border; }
202
- .bb-1 { border-bottom: variables.$border; }
203
- .bl-1 { border-left: variables.$border; }
204
-
205
- // —————————————————————————————————————————————————————————————————
206
- // border-radius
207
- // —————————————————————————————————————————————————————————————————
208
-
209
- .br-sm { border-radius: variables.$border-radius-sm; }
210
- .br-md { border-radius: variables.$border-radius-md; }
211
- .br-lg { border-radius: variables.$border-radius-lg; }
@@ -1,207 +0,0 @@
1
- @use "sass:list";
2
- @use "../common/mixins";
3
- @use "../common/variables";
4
-
5
- // —————————————————————————————————————————————————————————————————
6
- // elements
7
- // align
8
- // weight
9
- // transform
10
- // italic
11
- // underline
12
- // strikeThrough
13
- // code
14
- // color
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- // —————————————————————————————————————————————————————————————————
18
- // elements
19
- // —————————————————————————————————————————————————————————————————
20
-
21
- @mixin font-size($font-size, $font-weight, $line-height) {
22
- font-size: $font-size;
23
- font-weight: $font-weight;
24
- line-height: $line-height;
25
- }
26
-
27
- .h1, %h1 {
28
- @include font-size(
29
- variables.$h1-size,
30
- variables.$h1-weight,
31
- variables.$h1-line-height
32
- );
33
- }
34
-
35
- .h2, %h2 {
36
- @include font-size(
37
- variables.$h2-size,
38
- variables.$h2-weight,
39
- variables.$h2-line-height
40
- );
41
- }
42
-
43
- .h3, %h3 {
44
- @include font-size(
45
- variables.$h3-size,
46
- variables.$h3-weight,
47
- variables.$h3-line-height
48
- );
49
- }
50
-
51
- .h4, %h4 {
52
- @include font-size(
53
- variables.$h4-size,
54
- variables.$h4-weight,
55
- variables.$h4-line-height
56
- );
57
- }
58
-
59
- .h5, %h5 {
60
- @include font-size(
61
- variables.$h5-size,
62
- variables.$h5-weight,
63
- variables.$h5-line-height
64
- );
65
- }
66
-
67
- .h6, %h6 {
68
- @include font-size(
69
- variables.$h6-size,
70
- variables.$h6-weight,
71
- variables.$h6-line-height
72
- );
73
- }
74
-
75
- .subtitle, %subtitle {
76
- @include font-size(
77
- variables.$subtitle-size,
78
- variables.$subtitle-weight,
79
- variables.$subtitle-line-height
80
- );
81
- }
82
-
83
- .body, %body {
84
- @include font-size(
85
- variables.$body-size,
86
- variables.$body-weight,
87
- variables.$body-line-height
88
- );
89
- }
90
-
91
- .caption, %caption {
92
- @include font-size(
93
- variables.$caption-size,
94
- variables.$caption-weight,
95
- variables.$caption-line-height
96
- );
97
- }
98
-
99
- .overline, %overline {
100
- @include font-size(
101
- variables.$overline-size,
102
- variables.$overline-weight,
103
- variables.$overline-line-height
104
- );
105
- }
106
-
107
- @mixin gutter {
108
-
109
- & + & {
110
- margin-top: .75em;
111
- }
112
- }
113
-
114
- .h1, .h2, .h3, .h4, .h5, .h6,
115
- .subtitle, .body, .caption, .overline {
116
- @include gutter;
117
- }
118
-
119
- // —————————————————————————————————————————————————————————————————
120
- // align
121
- // —————————————————————————————————————————————————————————————————
122
-
123
- .text-left, %text-left { text-align: left !important; }
124
- .text-center, %text-center { text-align: center !important; }
125
- .text-right, %text-right { text-align: right !important; }
126
-
127
- // —————————————————————————————————————————————————————————————————
128
- // weight
129
- // —————————————————————————————————————————————————————————————————
130
-
131
- .text-regular, %text-regular { font-weight: variables.$font-regular !important; }
132
- .text-bold, %text-bold { font-weight: variables.$font-bold !important; }
133
-
134
- // —————————————————————————————————————————————————————————————————
135
- // transform
136
- // —————————————————————————————————————————————————————————————————
137
-
138
- .text-none, %text-none { text-transform: none; }
139
- .text-capitalize, %text-capitalize { text-transform: capitalize; }
140
- .text-uppercase, %text-uppercase { text-transform: uppercase; }
141
- .text-lowercase, %text-lowercase { text-transform: lowercase; }
142
- .text-initial, %text-initial { text-transform: initial; }
143
- .text-inherit, %text-inherit { text-transform: inherit; }
144
-
145
- // —————————————————————————————————————————————————————————————————
146
- // italic
147
- // —————————————————————————————————————————————————————————————————
148
-
149
- .text-italic, %text-italic { font-style: italic !important; }
150
-
151
- // —————————————————————————————————————————————————————————————————
152
- // underline
153
- // —————————————————————————————————————————————————————————————————
154
-
155
- .text-underline, %text-underline { text-decoration: underline !important; }
156
-
157
- // —————————————————————————————————————————————————————————————————
158
- // strikeThrough
159
- // —————————————————————————————————————————————————————————————————
160
-
161
- .text-strikeThrough, %text-strikeThrough { text-decoration: line-through !important; }
162
-
163
- // —————————————————————————————————————————————————————————————————
164
- // code
165
- // —————————————————————————————————————————————————————————————————
166
-
167
- .text-code, %text-code { font-family: variables.$font-code !important; }
168
-
169
- // —————————————————————————————————————————————————————————————————
170
- // color
171
- // —————————————————————————————————————————————————————————————————
172
-
173
- @mixin color($prefix, $colors...) {
174
- @each $i in $colors {
175
- .#{$prefix}#{list.nth($i, 1)} {
176
- color: list.nth($i, 2) !important;
177
-
178
- .h1, .h2, .h3, .h4, .h5, .h6 {
179
- color: list.nth($i, 2) !important;
180
- }
181
-
182
- &.link {
183
- text-decoration: underline rgba(list.nth($i, 2), 0.5);
184
-
185
- @include mixins.hover {
186
- text-decoration: underline 0.125em;
187
- }
188
- }
189
- }
190
- }
191
- }
192
-
193
- @include color('text-',
194
- 'default' variables.$text,
195
- 'alt' variables.$text-alt,
196
- 'disabled' variables.$text-disabled,
197
- 'contrast' variables.$text-contrast,
198
- 'contrastAlt' variables.$text-contrast-alt,
199
- 'contrastDisabled' variables.$text-contrast-disabled,
200
- 'primary' variables.$primary,
201
- 'secondary' variables.$secondary,
202
- 'primary' variables.$primary,
203
- 'success' variables.$success,
204
- 'info' variables.$info,
205
- 'warning' variables.$warning,
206
- 'error' variables.$error,
207
- );