pallote-css 0.3.10 → 0.3.12

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 (61) hide show
  1. package/README.md +0 -144
  2. package/dist/pallote.min.css +1 -1
  3. package/dist/pallote.min.css.map +1 -1
  4. package/dist/pallote.scss +31 -36
  5. package/dist/styles/common/_editor.scss +29 -25
  6. package/dist/styles/common/_fontface.scss +7 -4
  7. package/dist/styles/common/_global.scss +25 -22
  8. package/dist/styles/common/_mixins.scss +19 -16
  9. package/dist/styles/common/_reset.scss +4 -2
  10. package/dist/styles/common/_variables.scss +28 -25
  11. package/dist/styles/components/_accordion.scss +16 -13
  12. package/dist/styles/components/_alert.scss +44 -40
  13. package/dist/styles/components/_breadcrumbs.scss +8 -5
  14. package/dist/styles/components/_button.scss +32 -26
  15. package/dist/styles/components/_buttons.scss +4 -2
  16. package/dist/styles/components/_card.scss +14 -11
  17. package/dist/styles/components/_divider.scss +3 -1
  18. package/dist/styles/components/_form.scss +4 -1
  19. package/dist/styles/components/_grid.scss +11 -8
  20. package/dist/styles/components/_input.scss +36 -32
  21. package/dist/styles/components/_link.scss +7 -4
  22. package/dist/styles/components/_list.scss +2 -0
  23. package/dist/styles/components/_nav.scss +49 -45
  24. package/dist/styles/components/_navbar.scss +42 -39
  25. package/dist/styles/components/_section.scss +35 -31
  26. package/dist/styles/components/_sidebar.scss +20 -16
  27. package/dist/styles/components/_snippet.scss +25 -22
  28. package/dist/styles/components/_status.scss +8 -5
  29. package/dist/styles/components/_switch.scss +11 -8
  30. package/dist/styles/components/_tabs.scss +18 -15
  31. package/dist/styles/components/_tag.scss +16 -12
  32. package/dist/styles/utilities/_color.scss +84 -81
  33. package/dist/styles/utilities/_global.scss +23 -20
  34. package/dist/styles/utilities/_text.scss +55 -51
  35. package/package.json +12 -8
  36. package/dist/assets/fonts/SourceSansPro/regular.woff2 +0 -0
  37. package/dist/assets/fonts/SourceSansPro/regularitalic.woff2 +0 -0
  38. package/dist/assets/fonts/SourceSansPro/semibold.woff2 +0 -0
  39. package/dist/assets/fonts/SourceSansPro/semibolditalic.woff2 +0 -0
  40. package/dist/assets/icons/logos/patreon.svg +0 -3
  41. package/dist/assets/icons/phosphor/arrow-right.svg +0 -1
  42. package/dist/assets/icons/phosphor/arrow-square-out.svg +0 -1
  43. package/dist/assets/icons/phosphor/caret-down.svg +0 -1
  44. package/dist/assets/icons/phosphor/check-circle.svg +0 -1
  45. package/dist/assets/icons/phosphor/check.svg +0 -1
  46. package/dist/assets/icons/phosphor/coffee.svg +0 -1
  47. package/dist/assets/icons/phosphor/download-simple.svg +0 -1
  48. package/dist/assets/icons/phosphor/envelope-simple.svg +0 -1
  49. package/dist/assets/icons/phosphor/files.svg +0 -1
  50. package/dist/assets/icons/phosphor/info.svg +0 -1
  51. package/dist/assets/icons/phosphor/warning.svg +0 -1
  52. package/dist/assets/icons/phosphor/x-circle.svg +0 -1
  53. package/dist/assets/icons/rabbit.svg +0 -1
  54. package/dist/scripts/accordion.js +0 -42
  55. package/dist/scripts/button.js +0 -5
  56. package/dist/scripts/cookie.js +0 -15
  57. package/dist/scripts/input.js +0 -18
  58. package/dist/scripts/nav.js +0 -22
  59. package/dist/scripts/navbar.js +0 -28
  60. package/dist/scripts/switch.js +0 -3
  61. package/dist/scripts/tabs.js +0 -30
@@ -1,3 +1,7 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+ @use "../utilities/text";
4
+
1
5
  // —————————————————————————————————————————————————————————————————
2
6
  // elements / default
3
7
  // elements / select
@@ -19,15 +23,15 @@
19
23
  text-align: left;
20
24
  position: relative;
21
25
  width: 100%;
22
- max-width: $max-width-form;
26
+ max-width: variables.$max-width-form;
23
27
 
24
28
  &:not(:last-child) {
25
29
  margin-bottom: 1rem;
26
30
  }
27
31
 
28
32
  &_label {
29
- @include transition($transition-md, color);
30
- font-weight: $font-bold;
33
+ @include mixins.transition(variables.$transition-md, color);
34
+ font-weight: variables.$font-bold;
31
35
  text-overflow: ellipsis;
32
36
  display: block;
33
37
  overflow: hidden;
@@ -43,17 +47,17 @@
43
47
  }
44
48
 
45
49
  &_control {
46
- @include transition($transition-md, border-color);
50
+ @include mixins.transition(variables.$transition-md, border-color);
47
51
  font-size: 1rem;
48
- font-family: $font, $font-fallback;
52
+ font-family: variables.$font-fallback;
49
53
  width: 100%;
50
- border-radius: $border-radius-md !important;
54
+ border-radius: variables.$border-radius-md !important;
51
55
  padding: .325rem .5rem;
52
- background-color: $input-background;
53
- border: $border;
56
+ background-color: variables.$input-background;
57
+ border: variables.$border;
54
58
 
55
- @include responsive(down, mobile) {
56
- background-color: $input-background;
59
+ @include mixins.responsive(down, mobile) {
60
+ background-color: variables.$input-background;
57
61
  }
58
62
 
59
63
  &:not(textarea):not(.checkboxes):not(.radios) {
@@ -67,13 +71,13 @@
67
71
  }
68
72
 
69
73
  &:not(textarea) {
70
- height: $input-height;
74
+ height: variables.$input-height;
71
75
  }
72
76
  }
73
77
  }
74
78
 
75
- @include placeholder {
76
- color: $text-alt;
79
+ @include mixins.placeholder {
80
+ color: variables.$text-alt;
77
81
  opacity: 1;
78
82
  }
79
83
 
@@ -85,13 +89,13 @@
85
89
 
86
90
  &:after {
87
91
  content: '';
88
- border: solid $text;
92
+ border: solid variables.$text;
89
93
  border-width: 0 .125rem .125rem 0;
90
94
  padding: .2rem;
91
95
  transform: rotate(45deg);
92
- margin-left: $nav-item*0.5;
96
+ margin-left: variables.$nav-item*0.5;
93
97
  position: absolute;
94
- bottom: $input-height*.45;
98
+ bottom: variables.$input-height*.45;
95
99
  right: 1rem;
96
100
  }
97
101
 
@@ -153,23 +157,23 @@ input[type='radio'] {
153
157
  display: flex;
154
158
  align-items: center;
155
159
  justify-content: center;
156
- height: $checkbox-width;
157
- width: $checkbox-width;
158
- background-color: $input-background;
159
- border: $border;
160
+ height: variables.$checkbox-width;
161
+ width: variables.$checkbox-width;
162
+ background-color: variables.$input-background;
163
+ border: variables.$border;
160
164
  margin-right: .5rem;
161
165
  }
162
166
 
163
- input[type='checkbox'] { border-radius: $border-radius-sm; }
167
+ input[type='checkbox'] { border-radius: variables.$border-radius-sm; }
164
168
  input[type='radio'] { border-radius: 50%; }
165
169
 
166
170
  input[type='checkbox']:checked {
167
- background-color: $primary;
171
+ background-color: variables.$primary;
168
172
 
169
173
  &:after {
170
174
  content: "✔";
171
175
  font-size: 1rem;
172
- color: $text-contrast;
176
+ color: variables.$text-contrast;
173
177
  }
174
178
  }
175
179
 
@@ -177,9 +181,9 @@ input[type='radio']:checked {
177
181
 
178
182
  &:after {
179
183
  content: "";
180
- height: $checkbox-width*.5;
181
- width: $checkbox-width*.5;
182
- background-color: $primary;
184
+ height: variables.$checkbox-width*.5;
185
+ width: variables.$checkbox-width*.5;
186
+ background-color: variables.$primary;
183
187
  border-radius: 50%;
184
188
  }
185
189
  }
@@ -192,10 +196,10 @@ input[type='radio']:checked {
192
196
 
193
197
  .input {
194
198
 
195
- &_label { color: $error; }
199
+ &_label { color: variables.$error; }
196
200
 
197
201
  &_control {
198
- border: 1px solid $error;
202
+ border: 1px solid variables.$error;
199
203
 
200
204
  &.checkboxes,
201
205
  &.radios {
@@ -263,7 +267,7 @@ input[type='radio']:checked {
263
267
  .input-withIcon {
264
268
 
265
269
  .input_control {
266
- padding-right: $input-height*1.25;
270
+ padding-right: variables.$input-height*1.25;
267
271
  }
268
272
  }
269
273
 
@@ -282,10 +286,10 @@ input[type="number"] {
282
286
  position: absolute;
283
287
  bottom: 0;
284
288
  right: 0;
285
- width: $input-height;
286
- height: $input-height;
289
+ width: variables.$input-height;
290
+ height: variables.$input-height;
287
291
  pointer-events: none;
288
- border-left: $border;
292
+ border-left: variables.$border;
289
293
 
290
294
  svg {
291
295
  width: 50%;
@@ -1,3 +1,6 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // color
@@ -10,7 +13,7 @@
10
13
  .link {
11
14
  display: inline-flex;
12
15
  align-items: center;
13
- font-weight: $font-regular;
16
+ font-weight: variables.$font-regular;
14
17
  text-decoration: underline;
15
18
  text-underline-offset: 0.1em;
16
19
  white-space: nowrap;
@@ -34,10 +37,10 @@
34
37
  // links color is handled by the color mixins in utilities/_text.scss
35
38
 
36
39
  .link {
37
- color: $primary;
38
- text-decoration: underline rgba($primary, 0.5);
40
+ color: variables.$primary;
41
+ text-decoration: underline rgba(variables.$primary, 0.5);
39
42
 
40
- @include hover {
43
+ @include mixins.hover {
41
44
  text-decoration: underline 0.125em;
42
45
  }
43
46
  }
@@ -1,3 +1,5 @@
1
+ @use "../utilities/text";
2
+
1
3
  // —————————————————————————————————————————————————————————————————
2
4
  // elements
3
5
  // dense
@@ -1,3 +1,7 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+ @use "../utilities/text";
4
+
1
5
  // —————————————————————————————————————————————————————————————————
2
6
  // elements
3
7
  // active
@@ -27,7 +31,7 @@
27
31
 
28
32
  &__item,
29
33
  &__trigger {
30
- border-radius: $border-radius-md;
34
+ border-radius: variables.$border-radius-md;
31
35
  }
32
36
 
33
37
  &__item {
@@ -35,7 +39,7 @@
35
39
  position: relative;
36
40
 
37
41
  &:not(:first-child) {
38
- margin-left: $spacing-xs;
42
+ margin-left: variables.$spacing-xs;
39
43
  padding-top: 0;
40
44
  }
41
45
 
@@ -47,28 +51,28 @@
47
51
 
48
52
  &__trigger {
49
53
  @extend %caption;
50
- font-weight: $font-bold;
54
+ font-weight: variables.$font-bold;
51
55
  white-space: nowrap;
52
56
  cursor: pointer;
53
- height: $nav-item*2;
54
- padding: $nav-item*0.5 $nav-item;
57
+ height: variables.$nav-item*2;
58
+ padding: variables.$nav-item*0.5 variables.$nav-item;
55
59
  display: flex;
56
60
  align-items: center;
57
61
  justify-content: space-between;
58
62
 
59
63
  &:hover {
60
- background-color: $hover;
64
+ background-color: variables.$hover;
61
65
  }
62
66
 
63
67
  .nav__item--dropdown > & {
64
68
 
65
69
  &:after {
66
70
  content: '';
67
- border: solid $text;
68
- border-width: 0 $spacing-xxs $spacing-xxs 0;
69
- padding: $spacing-xxs;
71
+ border: solid variables.$text;
72
+ border-width: 0 variables.$spacing-xxs variables.$spacing-xxs 0;
73
+ padding: variables.$spacing-xxs;
70
74
  transform: rotate(45deg);
71
- margin-left: $nav-item*0.5;
75
+ margin-left: variables.$nav-item*0.5;
72
76
  }
73
77
  }
74
78
  }
@@ -86,22 +90,22 @@
86
90
  &__target {
87
91
  display: none;
88
92
  flex-direction: column;
89
- padding: $nav-item*0.25 $nav-item*0.5 $nav-item*0.5 $nav-item*0.5;
93
+ padding: variables.$nav-item*0.25 variables.$nav-item*0.5 variables.$nav-item*0.5 variables.$nav-item*0.5;
90
94
 
91
95
  .nav {
92
96
 
93
97
  &__item {
94
98
 
95
99
  &:not(:first-child) {
96
- margin-top: $spacing-xs;
100
+ margin-top: variables.$spacing-xs;
97
101
  margin-left: 0;
98
102
  }
99
103
  }
100
104
 
101
105
  &__trigger {
102
- padding-right: $nav-item*0.5;
103
- padding-left: $nav-item*0.5;
104
- border-radius: $border-radius-sm;
106
+ padding-right: variables.$nav-item*0.5;
107
+ padding-left: variables.$nav-item*0.5;
108
+ border-radius: variables.$border-radius-sm;
105
109
  }
106
110
  }
107
111
  }
@@ -112,11 +116,11 @@
112
116
  // —————————————————————————————————————————————————————————————————
113
117
 
114
118
  .nav__trigger--active {
115
- color: $primary;
116
- background-color: $hover;
119
+ color: variables.$primary;
120
+ background-color: variables.$hover;
117
121
 
118
122
  .nav__item--dropdown &:after {
119
- border-color: $primary;
123
+ border-color: variables.$primary;
120
124
  }
121
125
  }
122
126
 
@@ -126,7 +130,7 @@
126
130
 
127
131
  .nav__item--dropdown.js-show {
128
132
  height: auto;
129
- background-color: $hover;
133
+ background-color: variables.$hover;
130
134
 
131
135
  > .nav {
132
136
 
@@ -153,7 +157,7 @@
153
157
 
154
158
  &__item:not(:first-child) {
155
159
  margin-left: 0;
156
- margin-top: $spacing-xs;
160
+ margin-top: variables.$spacing-xs;
157
161
  }
158
162
 
159
163
  &__group {
@@ -162,7 +166,7 @@
162
166
  align-items: stretch;
163
167
 
164
168
  &:not(:first-child) {
165
- margin-top: $nav-item;
169
+ margin-top: variables.$nav-item;
166
170
  }
167
171
  }
168
172
  }
@@ -175,29 +179,29 @@
175
179
  .nav--dense {
176
180
 
177
181
  &.nav--portrait .nav__item:not(:first-child) {
178
- margin-top: $spacing-xxs;
182
+ margin-top: variables.$spacing-xxs;
179
183
  }
180
184
 
181
185
  .nav {
182
186
 
183
187
  &__item,
184
188
  &__trigger {
185
- border-radius: $border-radius-sm;
189
+ border-radius: variables.$border-radius-sm;
186
190
  }
187
191
 
188
192
  &__trigger {
189
- padding: $nav-item*0.25 $nav-item*0.5;
190
- height: $nav-item*1.5;
193
+ padding: variables.$nav-item*0.25 variables.$nav-item*0.5;
194
+ height: variables.$nav-item*1.5;
191
195
  }
192
196
 
193
197
  &__item--dropdown {
194
198
 
195
199
  .nav__target {
196
- padding: 0 $nav-item*0.25 $nav-item*0.25 $nav-item*0.25;
200
+ padding: 0 variables.$nav-item*0.25 variables.$nav-item*0.25 variables.$nav-item*0.25;
197
201
 
198
202
  .nav__trigger {
199
- padding-right: $nav-item*0.25;
200
- padding-left: $nav-item*0.25;
203
+ padding-right: variables.$nav-item*0.25;
204
+ padding-left: variables.$nav-item*0.25;
201
205
  }
202
206
  }
203
207
  }
@@ -212,23 +216,23 @@
212
216
 
213
217
  .nav {
214
218
 
215
- @include responsive(up, tablet) { height: 100%; }
216
- @include responsive(down, tablet) { width: 100%; }
219
+ @include mixins.responsive(up, tablet) { height: 100%; }
220
+ @include mixins.responsive(down, tablet) { width: 100%; }
217
221
 
218
222
  &__container {
219
223
 
220
- @include responsive(up, tablet) {
224
+ @include mixins.responsive(up, tablet) {
221
225
  height: 100%;
222
226
  align-items: center;
223
227
  }
224
228
 
225
- @include responsive(down, tablet) {
226
- @include calc(max-height, '100vh - '$spacing-xl*3);
229
+ @include mixins.responsive(down, tablet) {
230
+ @include mixins.calc(max-height, '100vh - 'variables.$spacing-xl*3);
227
231
  align-items: stretch;
228
232
  overflow: scroll;
229
233
  width: 100%;
230
- margin-top: $nav-item;
231
- margin-bottom: $nav-item;
234
+ margin-top: variables.$nav-item;
235
+ margin-bottom: variables.$nav-item;
232
236
  flex-direction: column;
233
237
  width: 100%;
234
238
  }
@@ -236,33 +240,33 @@
236
240
 
237
241
  &__item:not(:first-child) {
238
242
 
239
- @include responsive(down, tablet) {
240
- margin-top: $spacing-xs;
243
+ @include mixins.responsive(down, tablet) {
244
+ margin-top: variables.$spacing-xs;
241
245
  margin-left: 0;
242
246
  }
243
247
  }
244
248
 
245
249
  &__item--dropdown {
246
250
 
247
- @include responsive(up, tablet) {
251
+ @include mixins.responsive(up, tablet) {
248
252
 
249
253
  .nav__target {
250
- @include calc(top, '100% +' $nav-item*0.5);
254
+ @include mixins.calc(top, '100% +' variables.$nav-item*0.5);
251
255
  position: absolute;
252
256
  left: 0;
253
- width: $spacing-xl*2.5;
254
- padding: $nav-item*0.5;
255
- border-radius: $border-radius-md;
256
- border: $border;
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;
257
261
  z-index: 1;
258
- background-color: $background-paper;
262
+ background-color: variables.$background-paper;
259
263
  }
260
264
  }
261
265
  }
262
266
 
263
267
  &__trigger {
264
268
 
265
- @include responsive(down, tablet) {
269
+ @include mixins.responsive(down, tablet) {
266
270
  height: auto;
267
271
  }
268
272
  }
@@ -1,41 +1,44 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // align
4
7
  // —————————————————————————————————————————————————————————————————
5
8
 
6
9
  // button apparition
7
- @include keyframes(button-menu-opacity) {
10
+ @include mixins.keyframes(button-menu-opacity) {
8
11
  0% { opacity: 0; }
9
12
  50% { opacity: 0; }
10
13
  100% { opacity: 100%; }
11
14
  }
12
15
 
13
16
  // lines > close
14
- @include keyframes(button-menu-open-before) {
15
- 0% { transform: translateY($spacing-xs*1.5); }
17
+ @include mixins.keyframes(button-menu-open-before) {
18
+ 0% { transform: translateY(variables.$spacing-xs*1.5); }
16
19
  50% { transform: translateY(0);
17
20
  transform: rotate(0); }
18
21
  100% { transform: rotate(45deg); }
19
22
  }
20
- @include keyframes(button-menu-open-after) {
21
- 0% { transform: translateY(-$spacing-xs*1.5); }
23
+ @include mixins.keyframes(button-menu-open-after) {
24
+ 0% { transform: translateY(-(variables.$spacing-xs)*1.5); }
22
25
  50% { transform: translateY(0);
23
26
  transform: rotate(0); }
24
27
  100% { transform: rotate(-45deg); }
25
28
  }
26
29
 
27
30
  // close > lines
28
- @include keyframes(button-menu-close-before) {
31
+ @include mixins.keyframes(button-menu-close-before) {
29
32
  0% { transform: rotate(45deg); }
30
33
  50% { transform: rotate(0);
31
34
  transform: translateY(0); }
32
- 100% { transform: translateY($spacing-xs*1.5); }
35
+ 100% { transform: translateY(variables.$spacing-xs*1.5); }
33
36
  }
34
- @include keyframes(button-menu-close-after) {
37
+ @include mixins.keyframes(button-menu-close-after) {
35
38
  0% { transform: rotate(-45deg); }
36
39
  50% { transform: rotate(0);
37
40
  transform: translateY(0); }
38
- 100% { transform: translateY(-$spacing-xs*1.5); }
41
+ 100% { transform: translateY(-(variables.$spacing-xs)*1.5); }
39
42
  }
40
43
 
41
44
  // —————————————————————————————————————————————————————————————————
@@ -46,15 +49,15 @@
46
49
  top: 0;
47
50
  left: 0;
48
51
  width: 100%;
49
- background-color: $background-paper;
50
- border-bottom: $border;
52
+ background-color: variables.$background-paper;
53
+ border-bottom: variables.$border;
51
54
  z-index: 13;
52
55
 
53
- @include responsive(up, tablet) {
54
- height: $navbar-height;
56
+ @include mixins.responsive(up, tablet) {
57
+ height: variables.$navbar-height;
55
58
  }
56
59
 
57
- @include responsive(down, tablet) {
60
+ @include mixins.responsive(down, tablet) {
58
61
  z-index: 11;
59
62
  }
60
63
 
@@ -71,11 +74,11 @@
71
74
  padding-top: 0;
72
75
  padding-bottom: 0;
73
76
 
74
- @include responsive(up, tablet) {
77
+ @include mixins.responsive(up, tablet) {
75
78
  height: 100%;
76
79
  }
77
80
 
78
- @include responsive(down, tablet) {
81
+ @include mixins.responsive(down, tablet) {
79
82
  flex-direction: column;
80
83
  align-items: stretch;
81
84
  padding-top: 0;
@@ -86,79 +89,79 @@
86
89
  display: flex;
87
90
  align-items: center;
88
91
 
89
- @include responsive(down, tablet) {
90
- height: $navbar-height-sm;
92
+ @include mixins.responsive(down, tablet) {
93
+ height: variables.$navbar-height-sm;
91
94
  }
92
95
  }
93
96
 
94
97
  &__logo {
95
98
  display: flex;
96
99
  align-items: baseline;
97
- font-weight: $font-bold;
100
+ font-weight: variables.$font-bold;
98
101
  flex-grow: 1;
99
102
 
100
103
  > * {
101
- margin-right: $spacing-xs;
104
+ margin-right: variables.$spacing-xs;
102
105
  }
103
106
  }
104
107
 
105
108
  &__button {
106
- @include transition($transition-md, opacity);
107
- animation: button-menu-opacity $transition-lg;
109
+ @include mixins.transition(variables.$transition-md, opacity);
110
+ animation: button-menu-opacity variables.$transition-lg;
108
111
  display: flex;
109
112
  align-items: center;
110
113
  justify-content: center;
111
114
  cursor: pointer;
112
115
  position: relative;
113
- width: $spacing-md;
114
- height: $spacing-md;
116
+ width: variables.$spacing-md;
117
+ height: variables.$spacing-md;
115
118
 
116
- @include responsive(up, tablet) {
119
+ @include mixins.responsive(up, tablet) {
117
120
  display: none;
118
121
  }
119
122
 
120
123
  &:before,
121
124
  &:after,
122
125
  span {
123
- background-color: $text;
126
+ background-color: variables.$text;
124
127
  border-radius: 0.15rem;
125
128
  }
126
129
 
127
130
  &:before,
128
131
  &:after {
129
- @include pseudo-element('', auto, auto, auto, auto, $spacing-md, 2px);
130
- @include transition($transition-md, transform);
132
+ @include mixins.pseudo-element('', auto, auto, auto, auto, variables.$spacing-md, 2px);
133
+ @include mixins.transition(variables.$transition-md, transform);
131
134
  }
132
135
 
133
136
  &:before {
134
- transform: translateY($spacing-xs*1.5);
135
- animation: button-menu-close-before $transition-lg;
137
+ transform: translateY(variables.$spacing-xs*1.5);
138
+ animation: button-menu-close-before variables.$transition-lg;
136
139
  }
137
140
 
138
141
  &:after {
139
- transform: translateY(-$spacing-xs*1.5);
140
- animation: button-menu-close-after $transition-lg;
142
+ transform: translateY(-(variables.$spacing-xs)*1.5);
143
+ animation: button-menu-close-after variables.$transition-lg;
141
144
  }
142
145
 
143
146
  span {
144
- @include transition($transition-md, opacity);
147
+ @include mixins.transition(variables.$transition-md, opacity);
145
148
  position: absolute;
146
- width: $spacing-md;
149
+ width: variables.$spacing-md;
147
150
  height: 2px;
148
151
  }
149
152
 
150
153
  &.js-opened {
151
154
 
152
- &:before { animation: button-menu-open-before $transition-lg forwards; }
153
- &:after { animation: button-menu-open-after $transition-lg forwards; }
155
+ &:before { animation: button-menu-open-before variables.$transition-lg forwards; }
156
+ &:after { animation: button-menu-open-after variables.$transition-lg forwards; }
154
157
  span { opacity: 0; }
155
158
  }
156
159
  }
157
160
 
158
161
  &__nav {
159
162
 
160
- @include responsive(down, tablet) {
161
- @include transition($transition-md, max-height);
163
+ @include mixins.responsive(down, tablet) {
164
+ @include mixins.transition(variables.$transition-md, max-height);
162
165
  align-items: flex-start;
163
166
  max-height: 0;
164
167
  overflow: hidden;
@@ -178,7 +181,7 @@
178
181
 
179
182
  .section_container {
180
183
 
181
- @include responsive(up, tablet) {
184
+ @include mixins.responsive(up, tablet) {
182
185
  flex-direction: row-reverse;
183
186
  }
184
187
  }