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,252 +0,0 @@
1
- @use "sass:color";
2
- @use "sass:string";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // dependencies
6
- // color palette
7
- // spacing
8
- // typography
9
- // breakpoints
10
- // misc
11
- // components
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- // —————————————————————————————————————————————————————————————————
15
- // dependencies
16
- // —————————————————————————————————————————————————————————————————
17
-
18
- $fonts-path: './assets/fonts/' !default;
19
- $icons-path: './assets/icons/' !default;
20
-
21
- // —————————————————————————————————————————————————————————————————
22
- // color palette
23
- // —————————————————————————————————————————————————————————————————
24
-
25
- // main
26
-
27
- $main: #FFFFFF !default;
28
- $contrast: #000A1E !default;
29
-
30
- // grey
31
-
32
- $grey-90: color.mix($contrast, $main, 90%) !default;
33
- $grey-80: color.mix($contrast, $main, 80%) !default;
34
- $grey-70: color.mix($contrast, $main, 70%) !default;
35
- $grey-60: color.mix($contrast, $main, 60%) !default;
36
- $grey-50: color.mix($contrast, $main, 50%) !default;
37
- $grey-40: color.mix($contrast, $main, 40%) !default;
38
- $grey-30: color.mix($contrast, $main, 30%) !default;
39
- $grey-20: color.mix($contrast, $main, 20%) !default;
40
- $grey-10: color.mix($contrast, $main, 10%) !default;
41
- $grey-5: color.mix($contrast, $main, 5%) !default;
42
-
43
- // background
44
-
45
- $background-default: $grey-5 !default;
46
- $background-paper: $main !default;
47
-
48
- // text
49
-
50
- $text: $contrast !default;
51
- $text-alt: rgba($text, 0.5) !default;
52
- $text-disabled: rgba($text, 0.25) !default;
53
-
54
- $text-contrast: $main !default;
55
- $text-contrast-alt: rgba($text-contrast, 0.6) !default;
56
- $text-contrast-disabled: rgba($text-contrast, 0.3) !default;
57
-
58
- // brand
59
-
60
- $primary: #0076AC !default;
61
- $primary-light: color.mix($main, $primary, 70%) !default;
62
- $primary-dark: color.mix($contrast, $primary, 50%) !default;
63
- $primary-contrast: $text-contrast !default;
64
-
65
- $secondary: #C24889 !default;
66
- $secondary-light: color.mix($main, $secondary, 70%) !default;
67
- $secondary-dark: color.mix($contrast, $secondary, 50%) !default;
68
- $secondary-contrast: $text-contrast !default;
69
-
70
- // feedback
71
-
72
- $success: #27AE60 !default;
73
- $success-light: color.mix($main, $success, 70%) !default;
74
- $success-dark: color.mix($contrast, $success, 50%) !default;
75
- $success-contrast: $text-contrast !default;
76
-
77
- $info: #17A0CC !default;
78
- $info-light: color.mix($main, $info, 70%) !default;
79
- $info-dark: color.mix($contrast, $info, 50%) !default;
80
- $info-contrast: $text-contrast !default;
81
-
82
- $warning: #FFDC46 !default;
83
- $warning-light: color.mix($main, $warning, 70%) !default;
84
- $warning-dark: color.mix($contrast, $warning, 50%) !default;
85
- $warning-contrast: $text !default;
86
-
87
- $error: #EB5757 !default;
88
- $error-light: color.mix($main, $error, 70%) !default;
89
- $error-dark: color.mix($contrast, $error, 50%) !default;
90
- $error-contrast: $text-contrast !default;
91
-
92
- // others
93
-
94
- $border-color: rgba($text, 0.2) !default;
95
- $border: 1px solid $border-color !default;
96
- $border-color-contrast: rgba($text-contrast, 0.3) !default;
97
- $border-contrast: 1px solid $border-color-contrast !default;
98
-
99
- $hover: rgba($text, 0.12) !default;
100
- $hover-contrast: rgba($text-contrast, 0.12) !default;
101
-
102
- $overlay: rgba($text-contrast, 0.8) !default;
103
- $overlay-contrast: rgba($text, 0.2) !default;
104
-
105
- $input-background: rgba($text, 0.05);
106
-
107
- // —————————————————————————————————————————————————————————————————
108
- // spacing
109
- // —————————————————————————————————————————————————————————————————
110
-
111
- $col: calc(100%/12);
112
-
113
- $spacing-xxs: 0.125rem !default;
114
- $spacing-xs: 0.25rem !default;
115
- $spacing-sm: 0.5rem !default;
116
- $spacing-md: 1rem !default;
117
- $spacing-lg: 2rem !default;
118
- $spacing-xl: 4rem !default;
119
- $spacing-xxl: 7rem !default;
120
-
121
- $max-width-subtitle: 27.5rem !default;
122
- $max-width-editor: 40rem !default;
123
- $max-width-form: 40rem !default;
124
-
125
- $navbar-height: 4rem !default;
126
- $navbar-height-sm: 3rem !default;
127
- $nav-item: $spacing-md !default;
128
-
129
- // —————————————————————————————————————————————————————————————————
130
- // typography
131
- // —————————————————————————————————————————————————————————————————
132
-
133
- // Functions to unquote and remove spaces
134
- @function str-replace($string, $search, $replace: "") {
135
- $index: string.index($string, $search);
136
-
137
- @if $index {
138
- @return str-replace(
139
- string.slice($string, 1, $index - 1) + $replace + string.slice($string, $index + string.length($search), string.length($string)),
140
- $search,
141
- $replace
142
- );
143
- }
144
-
145
- @return $string;
146
- }
147
- @function clean-string($string) {
148
- @return str-replace(string.unquote($string), " ");
149
- }
150
-
151
- // typefaces
152
- $font: "Source Sans Pro" !default;
153
- $font-clean: clean-string($font);
154
- $font-fallback: Arial, sans-serif !default;
155
- $font-code: monospace !default;
156
-
157
- // weight
158
-
159
- $font-regular: 400 !default;
160
- $font-bold: 700 !default;
161
-
162
- // styles
163
-
164
- $h1-size: 3rem !default;
165
- $h1-weight: $font-bold !default;
166
- $h1-line-height: 1.25 !default;
167
-
168
- $h2-size: 2.5rem !default;
169
- $h2-weight: $font-bold !default;
170
- $h2-line-height: 1.25 !default;
171
-
172
- $h3-size: 2rem !default;
173
- $h3-weight: $font-bold !default;
174
- $h3-line-height: 1.25 !default;
175
-
176
- $h4-size: 1.75rem !default;
177
- $h4-weight: $font-bold !default;
178
- $h4-line-height: 1.25 !default;
179
-
180
- $h5-size: 1.5rem !default;
181
- $h5-weight: $font-bold !default;
182
- $h5-line-height: 1.25 !default;
183
-
184
- $h6-size: 1.25rem !default;
185
- $h6-weight: $font-bold !default;
186
- $h6-line-height: 1.25 !default;
187
-
188
- $subtitle-size: 1.125rem !default;
189
- $subtitle-weight: $font-regular !default;
190
- $subtitle-line-height: 1.5 !default;
191
-
192
- $body-size: 1rem !default;
193
- $body-weight: $font-regular !default;
194
- $body-line-height: 1.5 !default;
195
-
196
- $caption-size: 0.875rem !default;
197
- $caption-weight: $font-regular !default;
198
- $caption-line-height: 1.5 !default;
199
-
200
- $overline-size: 0.75rem !default;
201
- $overline-weight: $font-regular !default;
202
- $overline-line-height: 1.5 !default;
203
-
204
- // —————————————————————————————————————————————————————————————————
205
- // breakpoints
206
- // —————————————————————————————————————————————————————————————————
207
-
208
- $desktop-lg: 1440px !default;
209
- $desktop-lg-down: calc(#{$desktop-lg} - 0.02px);
210
-
211
- $desktop: 1280px !default;
212
- $desktop-down: calc(#{$desktop} - 0.02px);
213
-
214
- $laptop: 1024px !default;
215
- $laptop-down: calc(#{$laptop} - 0.02px);
216
-
217
- $tablet: 768px !default;
218
- $tablet-down: calc(#{$tablet} - 0.02px);
219
-
220
- $mobile: 568px !default;
221
- $mobile-down: calc(#{$mobile} - 0.02px);
222
-
223
- $mobile-sm: 350px !default;
224
- $mobile-sm-down: calc(#{$mobile-sm} - 0.02px);
225
-
226
- // —————————————————————————————————————————————————————————————————
227
- // misc
228
- // —————————————————————————————————————————————————————————————————
229
-
230
- // box-shadow
231
-
232
- $box-shadow: 0 0 .5rem 0 rgba($text, 0.2) !default;
233
-
234
- // transition
235
-
236
- $transition-md: 0.4s ease 0s !default;
237
- $transition-lg: 0.8s ease 0s !default;
238
-
239
- // border-radius
240
-
241
- $border-radius-sm: .25rem !default;
242
- $border-radius-md: .5rem !default;
243
- $border-radius-lg: 1rem !default;
244
-
245
- // —————————————————————————————————————————————————————————————————
246
- // components
247
- // —————————————————————————————————————————————————————————————————
248
-
249
- // input
250
-
251
- $input-height: 2.5rem;
252
- $checkbox-width: 1.5rem;
@@ -1,133 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // size
7
- // transparent
8
- // active
9
- // —————————————————————————————————————————————————————————————————
10
-
11
- // —————————————————————————————————————————————————————————————————
12
- // elements
13
- // —————————————————————————————————————————————————————————————————
14
-
15
- .accordion {
16
- width: 100%;
17
-
18
- &__item {
19
- position: relative;
20
- background-color: variables.$hover;
21
- width: 100%;
22
- }
23
-
24
- &__control,
25
- &__content {
26
- transition: padding variables.$transition-md;
27
- will-change: padding;
28
- }
29
-
30
- &__control {
31
- display: flex;
32
- align-items: center;
33
- width: 100%;
34
- cursor: pointer;
35
-
36
- &:after {
37
- // content: url(variables.$icons-path + 'phosphor/caret-down.svg');
38
- transition: transform variables.$transition-md;
39
- will-change: transform;
40
- position: absolute;
41
- height: variables.$spacing-md;
42
- width: variables.$spacing-md;
43
- transform-origin: center 60%;
44
- pointer-events: none;
45
- }
46
- }
47
-
48
- &__content {
49
- max-height: 0;
50
- overflow: hidden;
51
- transition: max-height variables.$transition-md;
52
- will-change: max-height;
53
- }
54
- }
55
-
56
- // —————————————————————————————————————————————————————————————————
57
- // size
58
- // —————————————————————————————————————————————————————————————————
59
-
60
- @mixin size($proportion, $size) {
61
-
62
- .accordion {
63
-
64
- &__item {
65
- border-radius: calc($size*2/3);
66
-
67
- &:not(:last-child) { margin-bottom: calc($size/3); }
68
- &--active { padding-bottom: $size; }
69
- }
70
-
71
- &__control {
72
- padding: $size $size*1.5;
73
-
74
- &:after {
75
- top: $size;
76
- right: $size*1.25;
77
- }
78
- }
79
-
80
- &__header {
81
-
82
- @if $proportion == sm { margin-bottom: -1px; }
83
- @if $proportion == lg { margin: -1px 0 -2px 0; }
84
- }
85
-
86
- &__content {
87
- padding: 0 $size*1.5;
88
- overflow: hidden;
89
- }
90
- }
91
-
92
- &.accordion--transparent .accordion__item--active:not(:first-child) {
93
- margin-top: calc($size/3);
94
- }
95
- }
96
-
97
- .accordion {
98
-
99
- @include size(md, variables.$spacing-sm);
100
- &--sm { @include size(sm, variables.$spacing-xs); }
101
- &--lg { @include size(lg, variables.$spacing-md); }
102
- }
103
-
104
- // —————————————————————————————————————————————————————————————————
105
- // transparent
106
- // —————————————————————————————————————————————————————————————————
107
-
108
- .accordion--transparent {
109
-
110
- .accordion__item {
111
- transition: background-color variables.$transition-md, margin variables.$transition-md;
112
- will-change: background-color, margin;
113
- background-color: transparent;
114
-
115
- @include mixins.hover { background-color: variables.$hover; }
116
- &--active { background-color: variables.$hover; }
117
-
118
- &:not(:last-child):not(.accordion__item--active) {
119
- margin-bottom: 0;
120
- }
121
- }
122
- }
123
-
124
- // —————————————————————————————————————————————————————————————————
125
- // active
126
- // —————————————————————————————————————————————————————————————————
127
-
128
- .accordion__item--active {
129
-
130
- .accordion__control:after {
131
- transform: rotate(180deg);
132
- }
133
- }
@@ -1,198 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
- @use "../utilities/text";
4
-
5
- // —————————————————————————————————————————————————————————————————
6
- // elements
7
- // color
8
- // notice
9
- // bar
10
- // dense
11
- // noIcon
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- $spacing-alert: variables.$spacing-sm;
15
-
16
- // —————————————————————————————————————————————————————————————————
17
- // elements
18
- // —————————————————————————————————————————————————————————————————
19
-
20
- .alert {
21
- border-radius: variables.$spacing-sm;
22
- background-color: variables.$info-light;
23
- color: variables.$text;
24
- padding: $spacing-alert $spacing-alert*2;
25
- position: fixed;
26
- top: variables.$spacing-md;
27
- right: variables.$spacing-md;
28
- width: fit-content;
29
- max-width: variables.$spacing-xxl*3;
30
- z-index: 20;
31
-
32
- &:not(.alert--bar) {
33
- padding-left: variables.$spacing-lg + variables.$spacing-sm;
34
- }
35
-
36
- @include mixins.responsive(down, mobile) {
37
- @include mixins.calc(max-width, '100vw - 'variables.$spacing-md);
38
- right: 8px;
39
- top: variables.$spacing-sm;
40
- }
41
-
42
- @include mixins.responsive(down, mobile-sm) {
43
- @include mixins.calc(width, '100vw - 'variables.$spacing-md);
44
- }
45
-
46
- &:before {
47
- content: "";
48
- position: absolute;
49
- top: $spacing-alert;
50
- left: variables.$spacing-sm;
51
- height: variables.$spacing-md*1.5;
52
- width: variables.$spacing-md*1.5;
53
- background-size: cover;
54
- background-repeat: no-repeat;
55
- }
56
-
57
- &__title {
58
- font-weight: variables.$font-bold !important;
59
- }
60
-
61
- &__subtitle {
62
- @extend .caption;
63
- padding-bottom: 0.2em;
64
- }
65
-
66
- &__close {
67
- transition: opacity variables.$transition-md;
68
- position: absolute;
69
- top: variables.$spacing-sm;
70
- right: variables.$spacing-sm;
71
- line-height: 0;
72
-
73
- svg {
74
- width: variables.$spacing-sm;
75
- height: variables.$spacing-sm;
76
- fill: variables.$success-dark
77
- }
78
-
79
- &:hover {
80
- opacity: 0.5;
81
- }
82
- }
83
- }
84
-
85
- // —————————————————————————————————————————————————————————————————
86
- // color
87
- // —————————————————————————————————————————————————————————————————
88
-
89
- @mixin color($color, $background-color: variables.$info-light, $border-color: variables.$info) {
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; }
94
-
95
- background-color: $background-color;
96
- border: 1px solid $border-color;
97
- color: variables.$text;
98
-
99
- // &:not(.alert--bar):before {
100
-
101
- // @if $color == success { content: url(variables.$icons-path + 'phosphor/check-circle.svg'); }
102
- // @else if $color == info { content: url(variables.$icons-path + 'phosphor/info.svg'); }
103
- // @else if $color == warning { content: url(variables.$icons-path + 'phosphor/warning.svg'); }
104
- // @else if $color == error { content: url(variables.$icons-path + 'phosphor/x-circle.svg'); }
105
- // }
106
- }
107
-
108
- .alert {
109
-
110
- &--success { @include color(success); }
111
- &--info { @include color(info); }
112
- &--warning { @include color(warning); }
113
- &--error { @include color(error); }
114
- }
115
-
116
- // —————————————————————————————————————————————————————————————————
117
- // notice
118
- // —————————————————————————————————————————————————————————————————
119
-
120
- .alert {
121
-
122
- &--notice {
123
- position: relative;
124
- max-width: none;
125
- z-index: 1;
126
- top: 0;
127
- right: 0;
128
- }
129
- }
130
-
131
- // —————————————————————————————————————————————————————————————————
132
- // bar
133
- // —————————————————————————————————————————————————————————————————
134
-
135
- .alert {
136
-
137
- &--bar {
138
- position: fixed;
139
- top: 0;
140
- right: 0;
141
- max-width: none;
142
- width: 100%; // needed for small devices to not overflow the container
143
- z-index: 1;
144
- border-radius: 0;
145
- border-left: 0;
146
- border-right: 0;
147
- text-align: center;
148
- }
149
- }
150
-
151
- // —————————————————————————————————————————————————————————————————
152
- // dense
153
- // —————————————————————————————————————————————————————————————————
154
-
155
- .alert--dense {
156
- padding: $spacing-alert*0.5 $spacing-alert;
157
-
158
- &:before {
159
- top: $spacing-alert*0.5;
160
- left: $spacing-alert*0.5;
161
- height: variables.$spacing-md*1.25;
162
- width: variables.$spacing-md*1.25;
163
- }
164
-
165
- &:not(.alert--bar) {
166
- padding-left: variables.$spacing-md*1.75;
167
- }
168
-
169
- .alert__title {
170
-
171
- + .alert__title,
172
- + .alert__subtitle {
173
- margin-top: 0;
174
- }
175
- }
176
-
177
- .alert__title { @extend .caption; }
178
- .alert__subtitle { @extend .overline; }
179
- }
180
-
181
- // —————————————————————————————————————————————————————————————————
182
- // noIcon
183
- // —————————————————————————————————————————————————————————————————
184
-
185
- .alert.alert {
186
-
187
- &--noIcon {
188
- padding-left: variables.$spacing-md;
189
-
190
- &.alert--dense {
191
- padding-left: variables.$spacing-sm;
192
- }
193
-
194
- &:before {
195
- display: none;
196
- }
197
- }
198
- }
@@ -1,50 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // separator
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // elements
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- .breadcrumbs {
14
- display: inline-flex;
15
- align-items: baseline;
16
-
17
- @include mixins.responsive(down, tablet) {
18
- flex-direction: column;
19
- }
20
-
21
- &__item {
22
- cursor: pointer;
23
-
24
- &:not(:first-child) {
25
- margin-left: variables.$spacing-xs;
26
-
27
- &:before {
28
- content: "/";
29
- margin-right: variables.$spacing-xs;
30
- color: variables.$text-alt;
31
- display: inline-block; // required to remove underline on hover for before element
32
- }
33
- }
34
-
35
- @include mixins.hover {
36
- text-decoration: underline;
37
- }
38
- }
39
- }
40
-
41
- // —————————————————————————————————————————————————————————————————
42
- // separator
43
- // —————————————————————————————————————————————————————————————————
44
-
45
- .breadcrumbs--arrow .breadcrumbs__item:not(:first-child):before {
46
- content: "\2039";
47
- transform: rotate(180deg);
48
- font-size: 1.5em;
49
- float: left;
50
- }