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,274 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
- @use "../utilities/text";
4
-
5
- // —————————————————————————————————————————————————————————————————
6
- // elements
7
- // active
8
- // show
9
- // direction
10
- // dense
11
- // navbar
12
- // —————————————————————————————————————————————————————————————————
13
-
14
- // —————————————————————————————————————————————————————————————————
15
- // elements
16
- // —————————————————————————————————————————————————————————————————
17
-
18
- .nav ul,
19
- .nav__group,
20
- .nav__target {
21
- list-style: none;
22
- }
23
-
24
- .nav {
25
- width: fit-content;
26
-
27
- &__container,
28
- &__group {
29
- display: flex;
30
- }
31
-
32
- &__item,
33
- &__trigger {
34
- border-radius: variables.$border-radius-md;
35
- }
36
-
37
- &__item {
38
- margin: 0;
39
- position: relative;
40
-
41
- &:not(:first-child) {
42
- margin-left: variables.$spacing-xs;
43
- padding-top: 0;
44
- }
45
-
46
- &--dropdown {
47
- display: flex;
48
- flex-direction: column;
49
- }
50
- }
51
-
52
- &__trigger {
53
- @extend %caption;
54
- font-weight: variables.$font-bold;
55
- white-space: nowrap;
56
- cursor: pointer;
57
- height: variables.$nav-item*2;
58
- padding: variables.$nav-item*0.5 variables.$nav-item;
59
- display: flex;
60
- align-items: center;
61
- justify-content: space-between;
62
-
63
- &:hover {
64
- background-color: variables.$hover;
65
- }
66
-
67
- .nav__item--dropdown > & {
68
-
69
- &:after {
70
- content: '';
71
- border: solid variables.$text;
72
- border-width: 0 variables.$spacing-xxs variables.$spacing-xxs 0;
73
- padding: variables.$spacing-xxs;
74
- transform: rotate(45deg);
75
- margin-left: variables.$nav-item*0.5;
76
- }
77
- }
78
- }
79
-
80
- &__icon {
81
- display: flex;
82
- width: 1rem;
83
- height: 1rem;
84
- align-items: center;
85
- justify-content: center;
86
- margin-right: 0.25rem;
87
- margin-left: -0.25rem;
88
- }
89
-
90
- &__target {
91
- display: none;
92
- flex-direction: column;
93
- padding: variables.$nav-item*0.25 variables.$nav-item*0.5 variables.$nav-item*0.5 variables.$nav-item*0.5;
94
-
95
- .nav {
96
-
97
- &__item {
98
-
99
- &:not(:first-child) {
100
- margin-top: variables.$spacing-xs;
101
- margin-left: 0;
102
- }
103
- }
104
-
105
- &__trigger {
106
- padding-right: variables.$nav-item*0.5;
107
- padding-left: variables.$nav-item*0.5;
108
- border-radius: variables.$border-radius-sm;
109
- }
110
- }
111
- }
112
- }
113
-
114
- // —————————————————————————————————————————————————————————————————
115
- // active
116
- // —————————————————————————————————————————————————————————————————
117
-
118
- .nav__trigger--active {
119
- color: variables.$primary;
120
- background-color: variables.$hover;
121
-
122
- .nav__item--dropdown &:after {
123
- border-color: variables.$primary;
124
- }
125
- }
126
-
127
- // —————————————————————————————————————————————————————————————————
128
- // show
129
- // —————————————————————————————————————————————————————————————————
130
-
131
- .nav__item--dropdown.js-show {
132
- height: auto;
133
- background-color: variables.$hover;
134
-
135
- > .nav {
136
-
137
- &__trigger--active,
138
- &__trigger:hover {
139
- background-color: transparent;
140
- }
141
-
142
- &__target {
143
- display: flex;
144
- }
145
- }
146
- }
147
-
148
- // —————————————————————————————————————————————————————————————————
149
- // direction
150
- // —————————————————————————————————————————————————————————————————
151
-
152
- .nav--portrait {
153
- width: 100%;
154
- flex-direction: column;
155
-
156
- .nav {
157
-
158
- &__item:not(:first-child) {
159
- margin-left: 0;
160
- margin-top: variables.$spacing-xs;
161
- }
162
-
163
- &__group {
164
- display: flex;
165
- flex-direction: column;
166
- align-items: stretch;
167
-
168
- &:not(:first-child) {
169
- margin-top: variables.$nav-item;
170
- }
171
- }
172
- }
173
- }
174
-
175
- // —————————————————————————————————————————————————————————————————
176
- // dense
177
- // —————————————————————————————————————————————————————————————————
178
-
179
- .nav--dense {
180
-
181
- &.nav--portrait .nav__item:not(:first-child) {
182
- margin-top: variables.$spacing-xxs;
183
- }
184
-
185
- .nav {
186
-
187
- &__item,
188
- &__trigger {
189
- border-radius: variables.$border-radius-sm;
190
- }
191
-
192
- &__trigger {
193
- padding: variables.$nav-item*0.25 variables.$nav-item*0.5;
194
- height: variables.$nav-item*1.5;
195
- }
196
-
197
- &__item--dropdown {
198
-
199
- .nav__target {
200
- padding: 0 variables.$nav-item*0.25 variables.$nav-item*0.25 variables.$nav-item*0.25;
201
-
202
- .nav__trigger {
203
- padding-right: variables.$nav-item*0.25;
204
- padding-left: variables.$nav-item*0.25;
205
- }
206
- }
207
- }
208
- }
209
- }
210
-
211
- // —————————————————————————————————————————————————————————————————
212
- // navbar
213
- // —————————————————————————————————————————————————————————————————
214
-
215
- .navbar {
216
-
217
- .nav {
218
-
219
- @include mixins.responsive(up, tablet) { height: 100%; }
220
- @include mixins.responsive(down, tablet) { width: 100%; }
221
-
222
- &__container {
223
-
224
- @include mixins.responsive(up, tablet) {
225
- height: 100%;
226
- align-items: center;
227
- }
228
-
229
- @include mixins.responsive(down, tablet) {
230
- @include mixins.calc(max-height, '100vh - 'variables.$spacing-xl*3);
231
- align-items: stretch;
232
- overflow: scroll;
233
- width: 100%;
234
- margin-top: variables.$nav-item;
235
- margin-bottom: variables.$nav-item;
236
- flex-direction: column;
237
- width: 100%;
238
- }
239
- }
240
-
241
- &__item:not(:first-child) {
242
-
243
- @include mixins.responsive(down, tablet) {
244
- margin-top: variables.$spacing-xs;
245
- margin-left: 0;
246
- }
247
- }
248
-
249
- &__item--dropdown {
250
-
251
- @include mixins.responsive(up, tablet) {
252
-
253
- .nav__target {
254
- @include mixins.calc(top, '100% +' variables.$nav-item*0.5);
255
- position: absolute;
256
- left: 0;
257
- width: variables.$spacing-xl*2.5;
258
- padding: variables.$nav-item*0.5;
259
- border-radius: variables.$border-radius-md;
260
- border: variables.$border;
261
- z-index: 1;
262
- background-color: variables.$background-paper;
263
- }
264
- }
265
- }
266
-
267
- &__trigger {
268
-
269
- @include mixins.responsive(down, tablet) {
270
- height: auto;
271
- }
272
- }
273
- }
274
- }
@@ -1,192 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
-
4
- // —————————————————————————————————————————————————————————————————
5
- // elements
6
- // align
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // button apparition
10
- @include mixins.keyframes(button-menu-opacity) {
11
- 0% { opacity: 0; }
12
- 50% { opacity: 0; }
13
- 100% { opacity: 100%; }
14
- }
15
-
16
- // lines > close
17
- @include mixins.keyframes(button-menu-open-before) {
18
- 0% { transform: translateY(variables.$spacing-xs*1.5); }
19
- 50% { transform: translateY(0);
20
- transform: rotate(0); }
21
- 100% { transform: rotate(45deg); }
22
- }
23
- @include mixins.keyframes(button-menu-open-after) {
24
- 0% { transform: translateY(-(variables.$spacing-xs)*1.5); }
25
- 50% { transform: translateY(0);
26
- transform: rotate(0); }
27
- 100% { transform: rotate(-45deg); }
28
- }
29
-
30
- // close > lines
31
- @include mixins.keyframes(button-menu-close-before) {
32
- 0% { transform: rotate(45deg); }
33
- 50% { transform: rotate(0);
34
- transform: translateY(0); }
35
- 100% { transform: translateY(variables.$spacing-xs*1.5); }
36
- }
37
- @include mixins.keyframes(button-menu-close-after) {
38
- 0% { transform: rotate(-45deg); }
39
- 50% { transform: rotate(0);
40
- transform: translateY(0); }
41
- 100% { transform: translateY(-(variables.$spacing-xs)*1.5); }
42
- }
43
-
44
- // —————————————————————————————————————————————————————————————————
45
- // elements
46
- // —————————————————————————————————————————————————————————————————
47
-
48
- .navbar {
49
- top: 0;
50
- left: 0;
51
- width: 100%;
52
- background-color: variables.$background-paper;
53
- border-bottom: variables.$border;
54
- z-index: 13;
55
-
56
- @include mixins.responsive(up, tablet) {
57
- height: variables.$navbar-height;
58
- }
59
-
60
- @include mixins.responsive(down, tablet) {
61
- z-index: 11;
62
- }
63
-
64
- &.section {
65
- overflow: visible;
66
- position: sticky;
67
- }
68
-
69
- .section_container {
70
- display: flex;
71
- flex-direction: row;
72
- align-items: center;
73
- justify-content: space-between;
74
- padding-top: 0;
75
- padding-bottom: 0;
76
-
77
- @include mixins.responsive(up, tablet) {
78
- height: 100%;
79
- }
80
-
81
- @include mixins.responsive(down, tablet) {
82
- flex-direction: column;
83
- align-items: stretch;
84
- padding-top: 0;
85
- }
86
- }
87
-
88
- &__main {
89
- display: flex;
90
- align-items: center;
91
-
92
- @include mixins.responsive(down, tablet) {
93
- height: variables.$navbar-height-sm;
94
- }
95
- }
96
-
97
- &__logo {
98
- display: flex;
99
- align-items: baseline;
100
- font-weight: variables.$font-bold;
101
- flex-grow: 1;
102
-
103
- > * {
104
- margin-right: variables.$spacing-xs;
105
- }
106
- }
107
-
108
- &__button {
109
- @include mixins.transition(variables.$transition-md, opacity);
110
- animation: button-menu-opacity variables.$transition-lg;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- cursor: pointer;
115
- position: relative;
116
- width: variables.$spacing-md;
117
- height: variables.$spacing-md;
118
-
119
- @include mixins.responsive(up, tablet) {
120
- display: none;
121
- }
122
-
123
- &:before,
124
- &:after,
125
- span {
126
- background-color: variables.$text;
127
- border-radius: 0.15rem;
128
- }
129
-
130
- &:before,
131
- &:after {
132
- @include mixins.pseudo-element('', auto, auto, auto, auto, variables.$spacing-md, 2px);
133
- @include mixins.transition(variables.$transition-md, transform);
134
- }
135
-
136
- &:before {
137
- transform: translateY(variables.$spacing-xs*1.5);
138
- animation: button-menu-close-before variables.$transition-lg;
139
- }
140
-
141
- &:after {
142
- transform: translateY(-(variables.$spacing-xs)*1.5);
143
- animation: button-menu-close-after variables.$transition-lg;
144
- }
145
-
146
- span {
147
- @include mixins.transition(variables.$transition-md, opacity);
148
- position: absolute;
149
- width: variables.$spacing-md;
150
- height: 2px;
151
- }
152
-
153
- &.js-opened {
154
-
155
- &:before { animation: button-menu-open-before variables.$transition-lg forwards; }
156
- &:after { animation: button-menu-open-after variables.$transition-lg forwards; }
157
- span { opacity: 0; }
158
- }
159
- }
160
-
161
- &__nav {
162
-
163
- @include mixins.responsive(down, tablet) {
164
- @include mixins.transition(variables.$transition-md, max-height);
165
- align-items: flex-start;
166
- max-height: 0;
167
- overflow: hidden;
168
-
169
- .js-opened & {
170
- max-height: 80vh;
171
- }
172
- }
173
- }
174
- }
175
-
176
- // —————————————————————————————————————————————————————————————————
177
- // align
178
- // —————————————————————————————————————————————————————————————————
179
-
180
- .navbar--right {
181
-
182
- .section_container {
183
-
184
- @include mixins.responsive(up, tablet) {
185
- flex-direction: row-reverse;
186
- }
187
- }
188
-
189
- .navbar__main {
190
- flex-direction: row-reverse;
191
- }
192
- }
@@ -1,33 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // elements
3
- // withSidebar
4
- // —————————————————————————————————————————————————————————————————
5
-
6
- // —————————————————————————————————————————————————————————————————
7
- // elements
8
- // —————————————————————————————————————————————————————————————————
9
-
10
- .page {
11
- display: flex;
12
- flex-direction: column;
13
- min-height: 100vh;
14
-
15
- &__content {
16
- width: 100%;
17
- }
18
- }
19
-
20
- // —————————————————————————————————————————————————————————————————
21
- // withSidebar
22
- // —————————————————————————————————————————————————————————————————
23
-
24
- .page--withSidebar {
25
-
26
- .page__container {
27
- display: flex;
28
- }
29
-
30
- .section_container {
31
- max-width: none;
32
- }
33
- }
@@ -1,193 +0,0 @@
1
- @use "../common/mixins";
2
- @use "../common/variables";
3
- @use "../utilities/text";
4
-
5
- // —————————————————————————————————————————————————————————————————
6
- // elements
7
- // align
8
- // color
9
- // landing (website title on homepage)
10
- // header (page title)
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- // —————————————————————————————————————————————————————————————————
14
- // elements
15
- // —————————————————————————————————————————————————————————————————
16
-
17
- .section {
18
- @include mixins.clamp(padding-right, 1rem, 4vw, 4rem);
19
- @include mixins.clamp(padding-left, 1rem, 4vw, 4rem);
20
- width: 100%;
21
- overflow: hidden; // prevent horizontal scroll on mobile
22
- position: relative;
23
- display: flex;
24
- flex-direction: column;
25
- align-items: center;
26
-
27
- &_container {
28
- @include mixins.clamp(padding-top, 2rem, 8vw, 4rem);
29
- @include mixins.clamp(padding-bottom, 2rem, 8vw, 4rem);
30
- width: 100%;
31
- max-width: variables.$desktop;
32
- position: relative; // needed to have the content over section-landing:before
33
- }
34
-
35
- &_header {
36
- display: flex;
37
- flex-direction: column;
38
-
39
- & + .section_content { @include mixins.clamp(padding-top, 2rem, 8vw, 4rem); }
40
- &-dense + .section_content { padding-top: 2rem; }
41
- }
42
-
43
- &_content {
44
- width: 100%;
45
-
46
- & + & {
47
- @include mixins.clamp(padding-top, 2rem, 8vw, 4rem);
48
- }
49
- }
50
-
51
- &_label {
52
- color: variables.$text-alt;
53
- font-weight: variables.$font-bold;
54
- }
55
-
56
- &_title {
57
- @extend %h3;
58
- color: variables.$primary;
59
- max-width: variables.$desktop*0.75;
60
-
61
- .section_label + & {
62
- margin-top: .5rem;
63
- }
64
- }
65
-
66
- &_subtitle {
67
- @extend %subtitle;
68
- max-width: variables.$max-width-subtitle;
69
-
70
- .section_title + & {
71
- margin-top: 2rem - 1rem;
72
- }
73
-
74
- & + & {
75
- margin-top: 1rem;
76
- }
77
- }
78
-
79
- &_actions {
80
-
81
- .section_title + &,
82
- .section_subtitle + & {
83
- margin-top: 2rem;
84
- }
85
- }
86
- }
87
-
88
- // —————————————————————————————————————————————————————————————————
89
- // align
90
- // —————————————————————————————————————————————————————————————————
91
-
92
- .section_container {
93
- align-items: flex-start;
94
- text-align: left;
95
- }
96
-
97
- .section-center .section_container,
98
- .section-center .section_header,
99
- .section_content-center {
100
- align-items: center;
101
- text-align: center;
102
- }
103
-
104
- .section-right .section_container,
105
- .section-right .section_header,
106
- .section_content-right {
107
- align-items: flex-end;
108
- text-align: right;
109
- }
110
-
111
- // —————————————————————————————————————————————————————————————————
112
- // color
113
- // —————————————————————————————————————————————————————————————————
114
-
115
- @mixin color(
116
- $background-color,
117
- $title-color: variables.$primary,
118
- $color: variables.$text,
119
- $paper-color: variables.$background-paper,
120
- $border-color: variables.$border-color
121
- ) {
122
- background-color: $background-color;
123
- color: $color;
124
-
125
- & + & {
126
-
127
- .section_container {
128
- padding-top: 0;
129
- }
130
- }
131
-
132
- .section_title { color: $title-color; }
133
- .button-stroke { color: $color; }
134
- .snippet {
135
- border-color: $border-color;
136
- }
137
- }
138
-
139
- .section {
140
- &-default { @include color(variables.$background-default); }
141
- &-paper { @include color(variables.$background-paper); }
142
- &-primary { @include color(
143
- variables.$primary, // background-color
144
- variables.$primary-contrast, // title-color
145
- variables.$primary-contrast, // color
146
- variables.$hover-contrast, // paper-color
147
- variables.$border-color-contrast // border-color
148
- );}
149
- &-primaryLight { @include color(
150
- variables.$primary-light, // background-color
151
- variables.$text, // title-color
152
- variables.$text, // color
153
- variables.$hover-contrast, // paper-color
154
- variables.$border-color-contrast // border-color
155
- );}
156
- }
157
-
158
- // —————————————————————————————————————————————————————————————————
159
- // landing (website title on homepage)
160
- // —————————————————————————————————————————————————————————————————
161
-
162
- .section-landing {
163
-
164
- .section {
165
-
166
- &_container {
167
- @include mixins.clamp(padding-top, 2rem, 10vw, 7rem);
168
- @include mixins.clamp(padding-bottom, 2rem, 10vw, 7rem);
169
- }
170
-
171
- &_title { @extend %h1; max-width: variables.$desktop*0.5; }
172
- &_subtitle { @extend %h5; }
173
- &_title + .section_subtitle { margin-top: 2rem; }
174
- &_title + .section_actions,
175
- &_subtitle + .section_actions { margin-top: 3rem; }
176
- }
177
- }
178
-
179
- // —————————————————————————————————————————————————————————————————
180
- // header (page title)
181
- // —————————————————————————————————————————————————————————————————
182
-
183
- .section-header {
184
-
185
- .section {
186
-
187
- &_title { @extend %h2; }
188
- &_subtitle { @extend %subtitle; }
189
- &_title + .section_subtitle { margin-top: 2rem; }
190
- &_title + .section_actions,
191
- &_subtitle + .section_actions { margin-top: 2.5rem; }
192
- }
193
- }