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,6 @@
1
+ @use "sass:color";
2
+ @use "sass:string";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // dependencies
3
6
  // color palette
@@ -26,16 +29,16 @@ $contrast: #000A1E !default;
26
29
 
27
30
  // grey
28
31
 
29
- $grey-90: mix($contrast, $main, 90%) !default;
30
- $grey-80: mix($contrast, $main, 80%) !default;
31
- $grey-70: mix($contrast, $main, 70%) !default;
32
- $grey-60: mix($contrast, $main, 60%) !default;
33
- $grey-50: mix($contrast, $main, 50%) !default;
34
- $grey-40: mix($contrast, $main, 40%) !default;
35
- $grey-30: mix($contrast, $main, 30%) !default;
36
- $grey-20: mix($contrast, $main, 20%) !default;
37
- $grey-10: mix($contrast, $main, 10%) !default;
38
- $grey-5: mix($contrast, $main, 5%) !default;
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;
39
42
 
40
43
  // background
41
44
 
@@ -55,35 +58,35 @@ $text-contrast-disabled: rgba($text-contrast, 0.3) !default;
55
58
  // brand
56
59
 
57
60
  $primary: #0076AC !default;
58
- $primary-light: mix($main, $primary, 70%) !default;
59
- $primary-dark: mix($contrast, $primary, 50%) !default;
61
+ $primary-light: color.mix($main, $primary, 70%) !default;
62
+ $primary-dark: color.mix($contrast, $primary, 50%) !default;
60
63
  $primary-contrast: $text-contrast !default;
61
64
 
62
65
  $secondary: #C24889 !default;
63
- $secondary-light: mix($main, $secondary, 70%) !default;
64
- $secondary-dark: mix($contrast, $secondary, 50%) !default;
66
+ $secondary-light: color.mix($main, $secondary, 70%) !default;
67
+ $secondary-dark: color.mix($contrast, $secondary, 50%) !default;
65
68
  $secondary-contrast: $text-contrast !default;
66
69
 
67
70
  // feedback
68
71
 
69
72
  $success: #27AE60 !default;
70
- $success-light: mix($main, $success, 70%) !default;
71
- $success-dark: mix($contrast, $success, 50%) !default;
73
+ $success-light: color.mix($main, $success, 70%) !default;
74
+ $success-dark: color.mix($contrast, $success, 50%) !default;
72
75
  $success-contrast: $text-contrast !default;
73
76
 
74
77
  $info: #17A0CC !default;
75
- $info-light: mix($main, $info, 70%) !default;
76
- $info-dark: mix($contrast, $info, 50%) !default;
78
+ $info-light: color.mix($main, $info, 70%) !default;
79
+ $info-dark: color.mix($contrast, $info, 50%) !default;
77
80
  $info-contrast: $text-contrast !default;
78
81
 
79
82
  $warning: #FFDC46 !default;
80
- $warning-light: mix($main, $warning, 70%) !default;
81
- $warning-dark: mix($contrast, $warning, 50%) !default;
83
+ $warning-light: color.mix($main, $warning, 70%) !default;
84
+ $warning-dark: color.mix($contrast, $warning, 50%) !default;
82
85
  $warning-contrast: $text !default;
83
86
 
84
87
  $error: #EB5757 !default;
85
- $error-light: mix($main, $error, 70%) !default;
86
- $error-dark: mix($contrast, $error, 50%) !default;
88
+ $error-light: color.mix($main, $error, 70%) !default;
89
+ $error-dark: color.mix($contrast, $error, 50%) !default;
87
90
  $error-contrast: $text-contrast !default;
88
91
 
89
92
  // others
@@ -129,11 +132,11 @@ $nav-item: $spacing-md !default;
129
132
 
130
133
  // Functions to unquote and remove spaces
131
134
  @function str-replace($string, $search, $replace: "") {
132
- $index: str-index($string, $search);
135
+ $index: string.index($string, $search);
133
136
 
134
137
  @if $index {
135
138
  @return str-replace(
136
- str-slice($string, 1, $index - 1) + $replace + str-slice($string, $index + str-length($search), str-length($string)),
139
+ string.slice($string, 1, $index - 1) + $replace + string.slice($string, $index + string.length($search), string.length($string)),
137
140
  $search,
138
141
  $replace
139
142
  );
@@ -142,7 +145,7 @@ $nav-item: $spacing-md !default;
142
145
  @return $string;
143
146
  }
144
147
  @function clean-string($string) {
145
- @return str-replace(unquote($string), " ");
148
+ @return str-replace(string.unquote($string), " ");
146
149
  }
147
150
 
148
151
  // typefaces
@@ -1,3 +1,6 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // size
@@ -14,13 +17,13 @@
14
17
 
15
18
  &__item {
16
19
  position: relative;
17
- background-color: $hover;
20
+ background-color: variables.$hover;
18
21
  width: 100%;
19
22
  }
20
23
 
21
24
  &__control,
22
25
  &__content {
23
- transition: padding $transition-md;
26
+ transition: padding variables.$transition-md;
24
27
  will-change: padding;
25
28
  }
26
29
 
@@ -31,12 +34,12 @@
31
34
  cursor: pointer;
32
35
 
33
36
  &:after {
34
- content: url($icons-path + 'phosphor/caret-down.svg');
35
- transition: transform $transition-md;
37
+ // content: url(variables.$icons-path + 'phosphor/caret-down.svg');
38
+ transition: transform variables.$transition-md;
36
39
  will-change: transform;
37
40
  position: absolute;
38
- height: $spacing-md;
39
- width: $spacing-md;
41
+ height: variables.$spacing-md;
42
+ width: variables.$spacing-md;
40
43
  transform-origin: center 60%;
41
44
  pointer-events: none;
42
45
  }
@@ -45,7 +48,7 @@
45
48
  &__content {
46
49
  max-height: 0;
47
50
  overflow: hidden;
48
- transition: max-height $transition-md;
51
+ transition: max-height variables.$transition-md;
49
52
  will-change: max-height;
50
53
  }
51
54
  }
@@ -93,9 +96,9 @@
93
96
 
94
97
  .accordion {
95
98
 
96
- @include size(md, $spacing-sm);
97
- &--sm { @include size(sm, $spacing-xs); }
98
- &--lg { @include size(lg, $spacing-md); }
99
+ @include size(md, variables.$spacing-sm);
100
+ &--sm { @include size(sm, variables.$spacing-xs); }
101
+ &--lg { @include size(lg, variables.$spacing-md); }
99
102
  }
100
103
 
101
104
  // —————————————————————————————————————————————————————————————————
@@ -105,12 +108,12 @@
105
108
  .accordion--transparent {
106
109
 
107
110
  .accordion__item {
108
- transition: background-color $transition-md, margin $transition-md;
111
+ transition: background-color variables.$transition-md, margin variables.$transition-md;
109
112
  will-change: background-color, margin;
110
113
  background-color: transparent;
111
114
 
112
- @include hover { background-color: $hover; }
113
- &--active { background-color: $hover; }
115
+ @include mixins.hover { background-color: variables.$hover; }
116
+ &--active { background-color: variables.$hover; }
114
117
 
115
118
  &:not(:last-child):not(.accordion__item--active) {
116
119
  margin-bottom: 0;
@@ -1,3 +1,7 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+ @use "../utilities/text";
4
+
1
5
  // —————————————————————————————————————————————————————————————————
2
6
  // elements
3
7
  // color
@@ -7,51 +11,51 @@
7
11
  // noIcon
8
12
  // —————————————————————————————————————————————————————————————————
9
13
 
10
- $spacing-alert: $spacing-sm;
14
+ $spacing-alert: variables.$spacing-sm;
11
15
 
12
16
  // —————————————————————————————————————————————————————————————————
13
17
  // elements
14
18
  // —————————————————————————————————————————————————————————————————
15
19
 
16
20
  .alert {
17
- border-radius: $spacing-sm;
18
- background-color: $info-light;
19
- color: $text;
21
+ border-radius: variables.$spacing-sm;
22
+ background-color: variables.$info-light;
23
+ color: variables.$text;
20
24
  padding: $spacing-alert $spacing-alert*2;
21
25
  position: fixed;
22
- top: $spacing-md;
23
- right: $spacing-md;
26
+ top: variables.$spacing-md;
27
+ right: variables.$spacing-md;
24
28
  width: fit-content;
25
- max-width: $spacing-xxl*3;
29
+ max-width: variables.$spacing-xxl*3;
26
30
  z-index: 20;
27
31
 
28
32
  &:not(.alert--bar) {
29
- padding-left: $spacing-lg + $spacing-sm;
33
+ padding-left: variables.$spacing-lg + variables.$spacing-sm;
30
34
  }
31
35
 
32
- @include responsive(down, mobile) {
33
- @include calc(max-width, '100vw - '$spacing-md);
36
+ @include mixins.responsive(down, mobile) {
37
+ @include mixins.calc(max-width, '100vw - 'variables.$spacing-md);
34
38
  right: 8px;
35
- top: $spacing-sm;
39
+ top: variables.$spacing-sm;
36
40
  }
37
41
 
38
- @include responsive(down, mobile-sm) {
39
- @include calc(width, '100vw - '$spacing-md);
42
+ @include mixins.responsive(down, mobile-sm) {
43
+ @include mixins.calc(width, '100vw - 'variables.$spacing-md);
40
44
  }
41
45
 
42
46
  &:before {
43
47
  content: "";
44
48
  position: absolute;
45
49
  top: $spacing-alert;
46
- left: $spacing-sm;
47
- height: $spacing-md*1.5;
48
- width: $spacing-md*1.5;
50
+ left: variables.$spacing-sm;
51
+ height: variables.$spacing-md*1.5;
52
+ width: variables.$spacing-md*1.5;
49
53
  background-size: cover;
50
54
  background-repeat: no-repeat;
51
55
  }
52
56
 
53
57
  &__title {
54
- font-weight: $font-bold !important;
58
+ font-weight: variables.$font-bold !important;
55
59
  }
56
60
 
57
61
  &__subtitle {
@@ -60,16 +64,16 @@ $spacing-alert: $spacing-sm;
60
64
  }
61
65
 
62
66
  &__close {
63
- transition: opacity $transition-md;
67
+ transition: opacity variables.$transition-md;
64
68
  position: absolute;
65
- top: $spacing-sm;
66
- right: $spacing-sm;
69
+ top: variables.$spacing-sm;
70
+ right: variables.$spacing-sm;
67
71
  line-height: 0;
68
72
 
69
73
  svg {
70
- width: $spacing-sm;
71
- height: $spacing-sm;
72
- fill: $success-dark
74
+ width: variables.$spacing-sm;
75
+ height: variables.$spacing-sm;
76
+ fill: variables.$success-dark
73
77
  }
74
78
 
75
79
  &:hover {
@@ -82,23 +86,23 @@ $spacing-alert: $spacing-sm;
82
86
  // color
83
87
  // —————————————————————————————————————————————————————————————————
84
88
 
85
- @mixin color($color, $background-color: $info-light, $border-color: $info) {
86
- @if $color == success { $background-color: $success-light; $border-color: $success; }
87
- @else if $color == info { $background-color: $info-light; $border-color: $info; }
88
- @else if $color == warning { $background-color: $warning-light; $border-color: $warning; }
89
- @else if $color == error { $background-color: $error-light; $border-color: $error; }
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; }
90
94
 
91
95
  background-color: $background-color;
92
96
  border: 1px solid $border-color;
93
- color: $text;
97
+ color: variables.$text;
94
98
 
95
- &:not(.alert--bar):before {
99
+ // &:not(.alert--bar):before {
96
100
 
97
- @if $color == success { content: url($icons-path + 'phosphor/check-circle.svg'); }
98
- @else if $color == info { content: url($icons-path + 'phosphor/info.svg'); }
99
- @else if $color == warning { content: url($icons-path + 'phosphor/warning.svg'); }
100
- @else if $color == error { content: url($icons-path + 'phosphor/x-circle.svg'); }
101
- }
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
+ // }
102
106
  }
103
107
 
104
108
  .alert {
@@ -154,12 +158,12 @@ $spacing-alert: $spacing-sm;
154
158
  &:before {
155
159
  top: $spacing-alert*0.5;
156
160
  left: $spacing-alert*0.5;
157
- height: $spacing-md*1.25;
158
- width: $spacing-md*1.25;
161
+ height: variables.$spacing-md*1.25;
162
+ width: variables.$spacing-md*1.25;
159
163
  }
160
164
 
161
165
  &:not(.alert--bar) {
162
- padding-left: $spacing-md*1.75;
166
+ padding-left: variables.$spacing-md*1.75;
163
167
  }
164
168
 
165
169
  .alert__title {
@@ -181,10 +185,10 @@ $spacing-alert: $spacing-sm;
181
185
  .alert.alert {
182
186
 
183
187
  &--noIcon {
184
- padding-left: $spacing-md;
188
+ padding-left: variables.$spacing-md;
185
189
 
186
190
  &.alert--dense {
187
- padding-left: $spacing-sm;
191
+ padding-left: variables.$spacing-sm;
188
192
  }
189
193
 
190
194
  &:before {
@@ -1,3 +1,6 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // separator
@@ -11,7 +14,7 @@
11
14
  display: inline-flex;
12
15
  align-items: baseline;
13
16
 
14
- @include responsive(down, tablet) {
17
+ @include mixins.responsive(down, tablet) {
15
18
  flex-direction: column;
16
19
  }
17
20
 
@@ -19,17 +22,17 @@
19
22
  cursor: pointer;
20
23
 
21
24
  &:not(:first-child) {
22
- margin-left: $spacing-xs;
25
+ margin-left: variables.$spacing-xs;
23
26
 
24
27
  &:before {
25
28
  content: "/";
26
- margin-right: $spacing-xs;
27
- color: $text-alt;
29
+ margin-right: variables.$spacing-xs;
30
+ color: variables.$text-alt;
28
31
  display: inline-block; // required to remove underline on hover for before element
29
32
  }
30
33
  }
31
34
 
32
- @include hover {
35
+ @include mixins.hover {
33
36
  text-decoration: underline;
34
37
  }
35
38
  }
@@ -1,3 +1,9 @@
1
+ @use "sass:color";
2
+ @use "sass:list";
3
+ @use "../common/mixins";
4
+ @use "../common/variables";
5
+ @use "../utilities/text";
6
+
1
7
  // —————————————————————————————————————————————————————————————————
2
8
  // elements
3
9
  // kind
@@ -18,11 +24,11 @@
18
24
  display: inline-flex;
19
25
  align-items: center;
20
26
  justify-content: center;
21
- border-radius: $border-radius-md;
27
+ border-radius: variables.$border-radius-md;
22
28
  position: relative;
23
29
  line-height: 0;
24
30
  text-transform: uppercase;
25
- font-weight: $font-bold;
31
+ font-weight: variables.$font-bold;
26
32
  white-space: nowrap;
27
33
  outline-offset: 2px;
28
34
  width: fit-content;
@@ -58,7 +64,7 @@
58
64
 
59
65
  @if $value == xs or $value == sm {
60
66
  @extend %overline;
61
- border-radius: $border-radius-sm;
67
+ border-radius: variables.$border-radius-sm;
62
68
  }
63
69
  @if $value == md { @extend %body; }
64
70
  @if $value == lg { @extend %subtitle; }
@@ -98,57 +104,57 @@
98
104
  @mixin color($prefix, $colors...) {
99
105
 
100
106
  @each $i in $colors {
101
- .#{$prefix}#{nth($i, 1)} {
102
- background-color: nth($i, 2);
103
- color: nth($i, 3);
107
+ .#{$prefix}#{list.nth($i, 1)} {
108
+ background-color: list.nth($i, 2);
109
+ color: list.nth($i, 3);
104
110
 
105
111
  &:focus {
106
- outline: 2px solid nth($i, 2);
112
+ outline: 2px solid list.nth($i, 2);
107
113
  }
108
114
 
109
- @include hover {
115
+ @include mixins.hover {
110
116
 
111
117
  &:not(.button-disabled) {
112
- background-color: mix(black, nth($i, 2), 20%);
118
+ background-color: color.mix(black, list.nth($i, 2), 20%);
113
119
  }
114
120
  }
115
121
 
116
122
  &.button-stroke {
117
123
  background-color: transparent;
118
- border: 1px solid nth($i, 2);
119
- color: $text;
124
+ border: 1px solid list.nth($i, 2);
125
+ color: variables.$text;
120
126
 
121
- @include hover {
127
+ @include mixins.hover {
122
128
 
123
129
  &:not(.button-disabled) {
124
- background-color: $hover;
130
+ background-color: variables.$hover;
125
131
  }
126
132
  }
127
133
 
128
- svg { stroke: $text; }
134
+ svg { stroke: variables.$text; }
129
135
  }
130
136
 
131
137
  &.button-transparent {
132
138
  background-color: transparent;
133
- color: nth($i, 2);
139
+ color: list.nth($i, 2);
134
140
 
135
- @include hover { background-color: $hover; }
136
- svg { stroke: nth($i, 2); }
141
+ @include mixins.hover { background-color: variables.$hover; }
142
+ svg { stroke: list.nth($i, 2); }
137
143
  }
138
144
  }
139
145
  }
140
146
  }
141
147
 
142
148
  @include color('button',
143
- '' $primary $primary-contrast,
144
- '-secondary' $secondary $secondary-contrast,
145
- '-grey' $text-disabled $text,
146
- '-success' $success $success-contrast,
147
- '-info' $info $info-contrast,
148
- '-warning' $warning $warning-contrast,
149
- '-error' $error $error-contrast,
150
- '-main' $main $text,
151
- '-contrast' $contrast $text-contrast
149
+ '' variables.$primary variables.$primary-contrast,
150
+ '-secondary' variables.$secondary variables.$secondary-contrast,
151
+ '-grey' variables.$text-disabled variables.$text,
152
+ '-success' variables.$success variables.$success-contrast,
153
+ '-info' variables.$info variables.$info-contrast,
154
+ '-warning' variables.$warning variables.$warning-contrast,
155
+ '-error' variables.$error variables.$error-contrast,
156
+ '-main' variables.$main variables.$text,
157
+ '-contrast' variables.$contrast variables.$text-contrast
152
158
  );
153
159
 
154
160
  // —————————————————————————————————————————————————————————————————
@@ -1,3 +1,5 @@
1
+ @use "../common/mixins";
2
+
1
3
  // —————————————————————————————————————————————————————————————————
2
4
  // elements
3
5
  // direction
@@ -16,8 +18,8 @@
16
18
  gap: .5rem;
17
19
 
18
20
  // larger spacing on small and touch devices
19
- @include responsive(down, mobile) { gap: 1rem; }
20
- @include responsive-touch { gap: 1rem; }
21
+ @include mixins.responsive(down, mobile) { gap: 1rem; }
22
+ @include mixins.responsive-touch { gap: 1rem; }
21
23
  }
22
24
 
23
25
  // —————————————————————————————————————————————————————————————————
@@ -1,3 +1,6 @@
1
+ @use "../common/variables";
2
+ @use "../utilities/text";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // size
@@ -17,10 +20,10 @@
17
20
  align-items: stretch;
18
21
  width: 100%;
19
22
  overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
20
- border: $border;
23
+ border: variables.$border;
21
24
 
22
25
  &:not(.card--transparent) {
23
- background-color: $background-paper;
26
+ background-color: variables.$background-paper;
24
27
  }
25
28
 
26
29
  &__media {
@@ -32,12 +35,12 @@
32
35
  background-position: center center;
33
36
  width: 100%;
34
37
  height: 100%;
35
- background-color: $overlay;
38
+ background-color: variables.$overlay;
36
39
  overflow: hidden;
37
40
  padding-bottom: 50%;
38
41
 
39
42
  .card--transparent & {
40
- background-color: $overlay-contrast;
43
+ background-color: variables.$overlay-contrast;
41
44
  }
42
45
  }
43
46
  }
@@ -81,7 +84,7 @@
81
84
  flex-direction: column;
82
85
 
83
86
  >*:not(:last-child) {
84
- margin-bottom: $spacing-md;
87
+ margin-bottom: variables.$spacing-md;
85
88
  }
86
89
  }
87
90
  }
@@ -98,7 +101,7 @@
98
101
  }
99
102
 
100
103
  &.card--hasShadow {
101
- box-shadow: 0 0 $size $size*0.25 rgba($main ,0.3);
104
+ box-shadow: 0 0 $size $size*0.25 rgba(variables.$main ,0.3);
102
105
  }
103
106
 
104
107
  > .card__media,
@@ -226,11 +229,11 @@
226
229
  }
227
230
 
228
231
  .card {
229
- @include size(md, $spacing-md+$spacing-sm);
230
- &--xs.card { @include size(xs, $spacing-sm+$spacing-xs); }
231
- &--sm.card { @include size(sm, $spacing-md); }
232
- &--lg.card { @include size(lg, $spacing-lg); }
233
- &--xl.card { @include size(xl, $spacing-lg+$spacing-sm); }
232
+ @include size(md, variables.$spacing-md+variables.$spacing-sm);
233
+ &--xs.card { @include size(xs, variables.$spacing-sm+variables.$spacing-xs); }
234
+ &--sm.card { @include size(sm, variables.$spacing-md); }
235
+ &--lg.card { @include size(lg, variables.$spacing-lg); }
236
+ &--xl.card { @include size(xl, variables.$spacing-lg+variables.$spacing-sm); }
234
237
  }
235
238
 
236
239
  // —————————————————————————————————————————————————————————————————
@@ -1,3 +1,5 @@
1
+ @use "../common/variables";
2
+
1
3
  // —————————————————————————————————————————————————————————————————
2
4
  // elements
3
5
  // direction
@@ -10,7 +12,7 @@
10
12
 
11
13
  .divider {
12
14
  display: inline-block;
13
- background-color: $border-color;
15
+ background-color: variables.$border-color;
14
16
  height: 1px;
15
17
  width: 100%;
16
18
  }
@@ -1,3 +1,6 @@
1
+ @use "../common/variables";
2
+ @use "../utilities/text";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // elements
3
6
  // dense
@@ -22,7 +25,7 @@
22
25
 
23
26
  &_title {
24
27
  @extend %subtitle;
25
- font-weight: $font-bold;
28
+ font-weight: variables.$font-bold;
26
29
  }
27
30
  }
28
31
 
@@ -1,3 +1,6 @@
1
+ @use "../common/mixins";
2
+ @use "../common/variables";
3
+
1
4
  // —————————————————————————————————————————————————————————————————
2
5
  // variables
3
6
  // elements
@@ -15,7 +18,7 @@
15
18
  // variables
16
19
  // —————————————————————————————————————————————————————————————————
17
20
 
18
- $col: calc(100% / 12);
21
+ variables.$col: calc(100% / 12);
19
22
 
20
23
  // —————————————————————————————————————————————————————————————————
21
24
  // elements
@@ -130,16 +133,16 @@ $col: calc(100% / 12);
130
133
  @for $colWidth from 1 through 12 {
131
134
 
132
135
  .grid--#{$colWidth} {
133
- width: $colWidth*$col;
136
+ width: $colWidth*variables.$col;
134
137
 
135
138
  &.grid {
136
- width: $colWidth*$col;
139
+ width: $colWidth*variables.$col;
137
140
  }
138
141
 
139
142
  @for $spacingWidth from 1 through 12 {
140
143
 
141
144
  &.grid--spacing#{$spacingWidth} {
142
- width: calc(#{$colWidth*$col} + #{$spacingWidth * 0.5rem});
145
+ width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
143
146
  }
144
147
  }
145
148
  }
@@ -147,21 +150,21 @@ $col: calc(100% / 12);
147
150
 
148
151
  @mixin break-width($breakpoint) {
149
152
 
150
- @include responsive(up, $breakpoint) {
153
+ @include mixins.responsive(up, $breakpoint) {
151
154
 
152
155
  @for $colWidth from 1 through 12 {
153
156
 
154
157
  &#{$colWidth} {
155
- width: $colWidth*$col;
158
+ width: $colWidth*variables.$col;
156
159
 
157
160
  &.grid {
158
- width: $colWidth*$col;
161
+ width: $colWidth*variables.$col;
159
162
  }
160
163
 
161
164
  @for $spacingWidth from 1 through 12 {
162
165
 
163
166
  &.grid--spacing#{$spacingWidth} {
164
- width: calc(#{$colWidth*$col} + #{$spacingWidth * 0.5rem});
167
+ width: calc(#{$colWidth*variables.$col} + #{$spacingWidth * 0.5rem});
165
168
  }
166
169
  }
167
170
  }