@maggioli-design-system/styles 4.0.2 → 5.0.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.
- package/dist/css/base.css +42 -78
- package/dist/css/colors-rgb.css +577 -0
- package/dist/css/colors.css +572 -276
- package/dist/css/typography.css +101 -196
- package/dist/tailwind/base.css +7 -8
- package/package.json +15 -25
- package/dist/css/base.css.map +0 -1
- package/dist/css/base.min.css +0 -1
- package/dist/css/color-palette.css +0 -10917
- package/dist/css/color-palette.css.map +0 -1
- package/dist/css/color-palette.min.css +0 -1
- package/dist/css/colors.css.map +0 -1
- package/dist/css/colors.min.css +0 -1
- package/dist/css/components.css +0 -16
- package/dist/css/components.css.map +0 -1
- package/dist/css/components.min.css +0 -1
- package/dist/css/styles.css +0 -11607
- package/dist/css/styles.css.map +0 -1
- package/dist/css/styles.min.css +0 -1
- package/dist/css/typography.css.map +0 -1
- package/dist/css/typography.min.css +0 -1
- package/dist/scss/config.scss +0 -10
- package/dist/scss/export/base.scss +0 -2
- package/dist/scss/export/color-palette.scss +0 -2
- package/dist/scss/export/colors.scss +0 -2
- package/dist/scss/export/components.scss +0 -2
- package/dist/scss/export/styles.scss +0 -8
- package/dist/scss/export/typography.scss +0 -2
- package/dist/scss/extends/scroll.scss +0 -21
- package/dist/scss/functions/assets.scss +0 -3
- package/dist/scss/functions/color.scss +0 -24
- package/dist/scss/functions/lists.scss +0 -27
- package/dist/scss/functions/maps.scss +0 -54
- package/dist/scss/functions/math.scss +0 -18
- package/dist/scss/functions/media.scss +0 -10
- package/dist/scss/functions/scaffolding.scss +0 -8
- package/dist/scss/functions/strings.scss +0 -102
- package/dist/scss/global/base.scss +0 -101
- package/dist/scss/global/components/view-limit.scss +0 -9
- package/dist/scss/global/scaffolding/colors.scss +0 -66
- package/dist/scss/global/scaffolding/cosmetics.scss +0 -23
- package/dist/scss/global/scaffolding/tokens.scss +0 -91
- package/dist/scss/global/scaffolding/typography.scss +0 -17
- package/dist/scss/global/utility/overflow.scss +0 -9
- package/dist/scss/import-framework.scss +0 -13
- package/dist/scss/import-global.scss +0 -8
- package/dist/scss/mixins/export.scss +0 -49
- package/dist/scss/mixins/media.scss +0 -8
- package/dist/scss/mixins/parent.scss +0 -6
- package/dist/scss/mixins/scaffolding.scss +0 -75
- package/dist/scss/theme.scss +0 -36
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
@import '../import-framework';
|
|
2
|
-
@import '../global/scaffolding/colors';
|
|
3
|
-
@import '../global/scaffolding/cosmetics';
|
|
4
|
-
@import '../global/scaffolding/tokens';
|
|
5
|
-
@import '../global/scaffolding/typography';
|
|
6
|
-
@import '../global/base';
|
|
7
|
-
@import '../global/components/view-limit';
|
|
8
|
-
@import '../global/utility/overflow';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
%scroll {
|
|
2
|
-
overflow: auto;
|
|
3
|
-
|
|
4
|
-
// sass-lint:disable no-vendor-prefixes
|
|
5
|
-
-webkit-overflow-scrolling: touch;
|
|
6
|
-
|
|
7
|
-
&::-webkit-scrollbar {
|
|
8
|
-
background-color: transparent;
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&::-webkit-scrollbar-track {
|
|
13
|
-
background-color: transparent;
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&::-webkit-scrollbar-thumb {
|
|
18
|
-
background-color: transparent;
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@function color ($path, $contrast: '', $opacity: 1) {
|
|
2
|
-
// color: color('brand.maggioli', 3) => color: var(--hex-brand-maggioli-03)
|
|
3
|
-
$name: str-replace($path, '.', '-');
|
|
4
|
-
|
|
5
|
-
@if $contrast != '' {
|
|
6
|
-
|
|
7
|
-
$contrast: '-#{$contrast}';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@if $opacity == 1 {
|
|
11
|
-
|
|
12
|
-
@if list-has-value($palette-format, 'hex') {
|
|
13
|
-
@return var(--hex-#{$name}#{$contrast});
|
|
14
|
-
} @else {
|
|
15
|
-
@return RGB(var(--#{$name}#{$contrast})); /* stylelint-disable-line */
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@if list-has-value($palette-format, 'rgb-channels') {
|
|
20
|
-
@return rgba(var(--#{$name}#{$contrast}), $opacity);
|
|
21
|
-
} @else {
|
|
22
|
-
@return RGB(var(--#{$name}#{$contrast})); /* stylelint-disable-line */
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@function list-has-value ($list, $search-value) {
|
|
2
|
-
// list-has-value(('hello-world', 'foo'), 'hello') @return false
|
|
3
|
-
// list-has-value(('hello-world', 'foo'), 'hello-world') @return true
|
|
4
|
-
|
|
5
|
-
@each $value in $list {
|
|
6
|
-
|
|
7
|
-
@if ($search-value == $value) {
|
|
8
|
-
@return true;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
@return false;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@function list-like-value ($list, $search-value) {
|
|
15
|
-
// list-like-value(('hello-world', 'foo'), 'hello') @return true
|
|
16
|
-
// list-like-value(('hello-world', 'foo'), 'hello-world') @return true
|
|
17
|
-
|
|
18
|
-
@each $value in $list {
|
|
19
|
-
@each $name, $char in $value {
|
|
20
|
-
|
|
21
|
-
@if (str-index($name, $search-value)) {
|
|
22
|
-
@return true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
@return false;
|
|
27
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
@function get ($map, $search-key) {
|
|
2
|
-
// es:
|
|
3
|
-
// background-color: get($backgrounds, 'alto');
|
|
4
|
-
@each $key, $value in $map {
|
|
5
|
-
|
|
6
|
-
@if ('#{$key}' == '#{$search-key}') {
|
|
7
|
-
@return $value;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
@return null;
|
|
11
|
-
|
|
12
|
-
@error 'No attribute key \'#{$key}\' found inside map #{$map}\nPlease checkout your code to fine where is the problem.';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@function reverse ($map) {
|
|
16
|
-
|
|
17
|
-
$result: null;
|
|
18
|
-
|
|
19
|
-
@if type-of($map) == 'map' {
|
|
20
|
-
|
|
21
|
-
$keys: map-keys($map);
|
|
22
|
-
$map-reversed: ();
|
|
23
|
-
|
|
24
|
-
@for $i from length($keys) through 1 {
|
|
25
|
-
|
|
26
|
-
$map-reversed: map-merge($map-reversed, (nth($keys, $i): map-get($map, nth($keys, $i))));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@if type-of($map-reversed) == 'map' {
|
|
30
|
-
|
|
31
|
-
$result: $map-reversed;
|
|
32
|
-
} @else {
|
|
33
|
-
|
|
34
|
-
@warn 'There was an error reversing the order of "#{$map}"';
|
|
35
|
-
}
|
|
36
|
-
} @else {
|
|
37
|
-
|
|
38
|
-
@warn '"#{$map}" is not a valid map';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@return $result;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@function token ($path, $map, $separator: '.') {
|
|
45
|
-
|
|
46
|
-
$list: str-split($path, $separator);
|
|
47
|
-
$partial-map: $map;
|
|
48
|
-
|
|
49
|
-
@each $key in $list {
|
|
50
|
-
|
|
51
|
-
$partial-map: get($partial-map, $key);
|
|
52
|
-
}
|
|
53
|
-
@return $partial-map;
|
|
54
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
$gutter: 20px !default;
|
|
2
|
-
|
|
3
|
-
@function scale-value ($value, $scale) {
|
|
4
|
-
@return round($value * $scale);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@function spacing ($scale: 1) {
|
|
8
|
-
@return scale-value($gutter, $scale);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@function s ($scale: 1, $value: null) {
|
|
12
|
-
|
|
13
|
-
@if $value {
|
|
14
|
-
@return scale-value($value, $scale);
|
|
15
|
-
} @else {
|
|
16
|
-
@return spacing($scale);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
@function lead-zero ($value) {
|
|
2
|
-
|
|
3
|
-
@if str-length($value) < 2 {
|
|
4
|
-
@return '0#{$value}';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@return $value;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@function capitalize ($string) {
|
|
11
|
-
@return to-upper-case(str-slice($string, 1, 1)) + str-slice($string, 2);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@function str-ucfirst ($string) {
|
|
15
|
-
@return capitalize($string);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@function uncapitalize ($string) {
|
|
19
|
-
@return to-lower-case(str-slice($string, 1, 1)) + str-slice($string, 2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@function str-lcfirst ($string) {
|
|
23
|
-
@return uncapitalize($string);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@function str-ucwords ($string) {
|
|
27
|
-
|
|
28
|
-
$progress: $string;
|
|
29
|
-
$result: '';
|
|
30
|
-
$running: true;
|
|
31
|
-
|
|
32
|
-
@while $running {
|
|
33
|
-
|
|
34
|
-
$index: str-index($progress, ' ');
|
|
35
|
-
|
|
36
|
-
@if $index {
|
|
37
|
-
|
|
38
|
-
$result: $result + capitalize(str-slice($progress, 1, $index));
|
|
39
|
-
$progress: str-slice($progress, ($index + 1));
|
|
40
|
-
} @else {
|
|
41
|
-
|
|
42
|
-
$running: false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@return capitalize($result) + capitalize($progress);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@function contain ($list, $value) {
|
|
50
|
-
@return not not index($list, $value);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@function camelize ($string) {
|
|
54
|
-
|
|
55
|
-
$progress: $string;
|
|
56
|
-
$result: '';
|
|
57
|
-
$exclude: ' ', '-', '–', '—', '_', ',', ';', ':', '.';
|
|
58
|
-
|
|
59
|
-
@while str-length($progress) > 0 {
|
|
60
|
-
|
|
61
|
-
$char: str-slice($progress, 1, 1);
|
|
62
|
-
|
|
63
|
-
@if contain($exclude, $char) {
|
|
64
|
-
|
|
65
|
-
$progress: capitalize(str-slice($progress, 2, 2)) + str-slice($progress, 3);
|
|
66
|
-
} @else {
|
|
67
|
-
|
|
68
|
-
$result: $result + $char;
|
|
69
|
-
$progress: str-slice($progress, 2);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
@return $result;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@function str-replace ($string, $search, $replace: '') {
|
|
76
|
-
|
|
77
|
-
$index: str-index($string, $search);
|
|
78
|
-
|
|
79
|
-
@if $index {
|
|
80
|
-
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@return $string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@function str-split ($string, $separator) {
|
|
87
|
-
|
|
88
|
-
$split-arr: ();
|
|
89
|
-
$index: str-index($string, $separator);
|
|
90
|
-
|
|
91
|
-
@while $index != null {
|
|
92
|
-
|
|
93
|
-
$item: str-slice($string, 1, $index - 1);
|
|
94
|
-
$split-arr: append($split-arr, $item);
|
|
95
|
-
$string: str-slice($string, $index + 1);
|
|
96
|
-
$index: str-index($string, $separator);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
$split-arr: append($split-arr, $string);
|
|
100
|
-
|
|
101
|
-
@return $split-arr;
|
|
102
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
$default-font-set: 'paragraph';
|
|
2
|
-
$font-base-styles: $font-secondary-styles;
|
|
3
|
-
$font-base-variants: $font-secondary-variants;
|
|
4
|
-
|
|
5
|
-
body,
|
|
6
|
-
html {
|
|
7
|
-
margin: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
body {
|
|
11
|
-
background-color: color('adjust.tone');
|
|
12
|
-
color: color('adjust.tone', '03');
|
|
13
|
-
font-family: get($font-family, 'secondary');
|
|
14
|
-
-webkit-font-smoothing: antialiased;
|
|
15
|
-
-moz-osx-font-smoothing: grayscale;
|
|
16
|
-
-webkit-tap-highlight-color: transparent;
|
|
17
|
-
text-align: -webkit-left;
|
|
18
|
-
text-align: left;
|
|
19
|
-
text-rendering: optimizeLegibility;
|
|
20
|
-
text-size-adjust: 100%;
|
|
21
|
-
width: 100%;
|
|
22
|
-
@include apply-styles-set($map: $font-base-styles, $set: $default-font-set);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
button {
|
|
26
|
-
font-family: get($font-family, 'primary');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
input,
|
|
30
|
-
textarea {
|
|
31
|
-
appearance: none;
|
|
32
|
-
@include apply-styles-set($map: $font-base-styles, $set: $default-font-set);
|
|
33
|
-
|
|
34
|
-
&::placeholder {
|
|
35
|
-
user-select: none;
|
|
36
|
-
@include apply-styles-set($map: $font-base-styles, $set: $default-font-set);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
b,
|
|
41
|
-
strong {
|
|
42
|
-
@include apply-styles-set($map: $font-base-variants, $set: 'bold');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
a {
|
|
46
|
-
color: color('brand.maggioli');
|
|
47
|
-
font-family: inherit;
|
|
48
|
-
font-size: inherit;
|
|
49
|
-
font-weight: inherit;
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
a,
|
|
54
|
-
aside,
|
|
55
|
-
body,
|
|
56
|
-
code,
|
|
57
|
-
div,
|
|
58
|
-
datalist,
|
|
59
|
-
footer,
|
|
60
|
-
form,
|
|
61
|
-
h1,
|
|
62
|
-
h2,
|
|
63
|
-
h3,
|
|
64
|
-
h4,
|
|
65
|
-
h5,
|
|
66
|
-
h6,
|
|
67
|
-
header,
|
|
68
|
-
hr,
|
|
69
|
-
html,
|
|
70
|
-
input,
|
|
71
|
-
li,
|
|
72
|
-
main,
|
|
73
|
-
section,
|
|
74
|
-
span,
|
|
75
|
-
ul,
|
|
76
|
-
textarea {
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
h1,
|
|
81
|
-
h2,
|
|
82
|
-
h3,
|
|
83
|
-
h4,
|
|
84
|
-
h5,
|
|
85
|
-
h6,
|
|
86
|
-
p {
|
|
87
|
-
margin: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
button,
|
|
91
|
-
input,
|
|
92
|
-
optgroup,
|
|
93
|
-
select,
|
|
94
|
-
textarea {
|
|
95
|
-
font-family: inherit;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
::selection {
|
|
99
|
-
background-color: color('brand.maggioli', '15');
|
|
100
|
-
color: color('brand.maggioli');
|
|
101
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@function get-var-name ($prefix, $group-name, $tint-name, $color-name) {
|
|
2
|
-
|
|
3
|
-
@if $color-name == 'color' {
|
|
4
|
-
|
|
5
|
-
$color-name: '';
|
|
6
|
-
} @else {
|
|
7
|
-
|
|
8
|
-
$color-name: ' #{$color-name}';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@if $prefix == 'rgb' {
|
|
12
|
-
@return str-replace('--#{$group-name $tint-name}#{$color-name}', ' ', '-');
|
|
13
|
-
}
|
|
14
|
-
@return str-replace('--#{$prefix}-#{$group-name $tint-name}#{$color-name}', ' ', '-');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin scaffold-vars ($light-mode) {
|
|
18
|
-
@each $group-name, $group-map in get($tokens, 'color') {
|
|
19
|
-
|
|
20
|
-
@if list-like-value($palette-colors, $group-name) {
|
|
21
|
-
|
|
22
|
-
@each $tint-name, $tints-map in $group-map {
|
|
23
|
-
|
|
24
|
-
@if list-like-value($palette-colors, $tint-name) {
|
|
25
|
-
|
|
26
|
-
@each $light-mode-name, $light-modes-map in $tints-map {
|
|
27
|
-
|
|
28
|
-
@if ($light-mode-name == $light-mode) {
|
|
29
|
-
@each $color-name, $color-value in $light-modes-map {
|
|
30
|
-
|
|
31
|
-
@if list-has-value($palette-format, 'rgb-channels') {
|
|
32
|
-
#{get-var-name('rgb', $group-name, $tint-name, lead-zero($color-name))}: #{red($color-value), green($color-value), blue($color-value)};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@if list-has-value($palette-format, 'hex') {
|
|
36
|
-
#{get-var-name('hex', $group-name, $tint-name, lead-zero($color-name))}: #{$color-value};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:root {
|
|
48
|
-
@include scaffold-vars('light');
|
|
49
|
-
|
|
50
|
-
.color-mode {
|
|
51
|
-
&--auto {
|
|
52
|
-
|
|
53
|
-
@media (prefers-color-scheme: dark) { /* stylelint-disable-line */
|
|
54
|
-
@include scaffold-vars('dark');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--dark {
|
|
59
|
-
@include scaffold-vars('dark');
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&--light {
|
|
63
|
-
@include scaffold-vars('light');
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@mixin scaffold-property-set ($name, $property, $list) {
|
|
2
|
-
|
|
3
|
-
@if (property-name($property, 2) == $name) {
|
|
4
|
-
|
|
5
|
-
$property-selector: property-name($property, 1);
|
|
6
|
-
$property-name: property-name($property, 2);
|
|
7
|
-
|
|
8
|
-
@each $variant, $value in $list {
|
|
9
|
-
@include scaffold-property (
|
|
10
|
-
$property-name: $property-name,
|
|
11
|
-
$property-selector: $property-selector,
|
|
12
|
-
$variant: $variant,
|
|
13
|
-
$value: $value
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@each $property in $config-scaffold-properties {
|
|
20
|
-
@include scaffold-property-set($name: 'box-shadow', $property: $property, $list: $shadow);
|
|
21
|
-
@include scaffold-property-set($name: 'border-radius', $property: $property, $list: $radius);
|
|
22
|
-
@include scaffold-property-set($name: 'padding', $property: $property, $list: $list-sizes);
|
|
23
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@mixin scaffold-property-color ($property, $group-name, $tint-name, $contrast-level, $color-mode) {
|
|
2
|
-
|
|
3
|
-
$selector: '';
|
|
4
|
-
|
|
5
|
-
@if $contrast-level == 'color' {
|
|
6
|
-
|
|
7
|
-
$selector: str-replace('#{$group-name $tint-name}', ' ', '-');
|
|
8
|
-
} @else {
|
|
9
|
-
|
|
10
|
-
$selector: str-replace('#{$group-name $tint-name $contrast-level}', ' ', '-');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
$color-name: str-replace('#{$group-name $tint-name}', ' ', '.');
|
|
14
|
-
$property-selector: property-name($property, 1);
|
|
15
|
-
$property-name: property-name($property, 2);
|
|
16
|
-
|
|
17
|
-
@if ($color-mode == 'light') {
|
|
18
|
-
.#{$property-selector}-#{$selector} {
|
|
19
|
-
#{$property-name}: color($color-name, $contrast-level) !important;
|
|
20
|
-
}
|
|
21
|
-
} @else {
|
|
22
|
-
.color-mode {
|
|
23
|
-
&--auto {
|
|
24
|
-
@media (prefers-color-scheme: dark) { /* stylelint-disable-line */
|
|
25
|
-
.dark\:#{$property-selector}-#{$selector} {
|
|
26
|
-
#{$property-name}: color($color-name, $contrast-level) !important;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&--dark {
|
|
32
|
-
.dark\:#{$property-selector}-#{$selector} {
|
|
33
|
-
#{$property-name}: color($color-name, $contrast-level) !important;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin scaffold-color-mode ($color-mode, $light-mode-name, $group-name, $tint-name, $light-modes-map) {
|
|
41
|
-
|
|
42
|
-
$i: 0;
|
|
43
|
-
|
|
44
|
-
@each $contrast, $contrast-value in $light-modes-map {
|
|
45
|
-
|
|
46
|
-
@if $light-mode-name == $color-mode {
|
|
47
|
-
|
|
48
|
-
$i: $i + 1;
|
|
49
|
-
|
|
50
|
-
@each $property-name in $palette-scaffold {
|
|
51
|
-
|
|
52
|
-
@include scaffold-property-color(
|
|
53
|
-
$property: $property-name,
|
|
54
|
-
$group-name: $group-name,
|
|
55
|
-
$tint-name: $tint-name,
|
|
56
|
-
$contrast-level: lead-zero($contrast),
|
|
57
|
-
$color-mode: $color-mode
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin scaffold-colors ($colors) {
|
|
65
|
-
@each $group-name, $group-map in $colors {
|
|
66
|
-
@each $tint-name, $tints-map in $group-map {
|
|
67
|
-
@each $light-mode-name, $light-modes-map in $tints-map {
|
|
68
|
-
|
|
69
|
-
@include scaffold-color-mode (
|
|
70
|
-
$color-mode: 'light',
|
|
71
|
-
$light-mode-name: $light-mode-name,
|
|
72
|
-
$group-name: $group-name,
|
|
73
|
-
$tint-name: $tint-name,
|
|
74
|
-
$light-modes-map: $light-modes-map
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
@include scaffold-color-mode (
|
|
78
|
-
$color-mode: 'dark',
|
|
79
|
-
$light-mode-name: $light-mode-name,
|
|
80
|
-
$group-name: $group-name,
|
|
81
|
-
$tint-name: $tint-name,
|
|
82
|
-
$light-modes-map: $light-modes-map
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// stylelint-disable scss/at-mixin-named-arguments
|
|
90
|
-
|
|
91
|
-
@include scaffold-colors($colors: get($tokens, 'color'));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@mixin scaffold-text ($style, $font-styles) {
|
|
2
|
-
.text-#{$style} {
|
|
3
|
-
font-family: get($font-family, $style);
|
|
4
|
-
|
|
5
|
-
&::placeholder {
|
|
6
|
-
font-family: get($font-family, $style);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
@include add-styles-set(
|
|
10
|
-
$map: $font-styles,
|
|
11
|
-
$name: 'text-#{$style}'
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include scaffold-text($style: 'primary', $font-styles: $font-primary-styles);
|
|
16
|
-
@include scaffold-text($style: 'secondary', $font-styles: $font-secondary-styles);
|
|
17
|
-
@include scaffold-text($style: 'mono', $font-styles: $font-mono-styles);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@import 'functions/lists';
|
|
2
|
-
@import 'functions/maps';
|
|
3
|
-
@import 'functions/math';
|
|
4
|
-
@import 'functions/strings';
|
|
5
|
-
@import 'functions/color';
|
|
6
|
-
@import 'functions/media';
|
|
7
|
-
@import 'functions/scaffolding';
|
|
8
|
-
@import 'mixins/parent';
|
|
9
|
-
@import 'mixins/export';
|
|
10
|
-
@import 'mixins/media';
|
|
11
|
-
@import 'mixins/scaffolding';
|
|
12
|
-
@import 'extends/scroll';
|
|
13
|
-
@import 'theme';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
@import 'import-framework';
|
|
2
|
-
@import 'global/scaffolding/colors';
|
|
3
|
-
@import 'global/scaffolding/cosmetics';
|
|
4
|
-
@import 'global/scaffolding/tokens';
|
|
5
|
-
@import 'global/scaffolding/typography';
|
|
6
|
-
@import 'global/base';
|
|
7
|
-
@import 'global/components/view-limit';
|
|
8
|
-
@import 'global/utility/overflow';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@mixin get-font-viewports ($viewports, $set, $family) {
|
|
2
|
-
@each $viewport, $properties in map-get($viewports, $set) {
|
|
3
|
-
@each $property, $value in $properties {
|
|
4
|
-
|
|
5
|
-
$name: #{$family}-#{$set}-#{$viewport}-#{$property};
|
|
6
|
-
$camel-name: camelize($name);
|
|
7
|
-
|
|
8
|
-
#{$camel-name}: $value;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@mixin export-font-style ($map, $family, $prefix: '') {
|
|
14
|
-
@each $set, $viewports in $map {
|
|
15
|
-
|
|
16
|
-
$name: #{$family}-#{$set};
|
|
17
|
-
$selector: #{$family} #{$family}--#{$set};
|
|
18
|
-
|
|
19
|
-
@if $prefix != '' {
|
|
20
|
-
|
|
21
|
-
$selector: #{$prefix}-#{$family} #{$prefix}-#{$family}--#{$set};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
$camel-name: camelize($name);
|
|
25
|
-
|
|
26
|
-
#{$camel-name}Selector: $selector;
|
|
27
|
-
@include get-font-viewports ($viewports: $map, $set: $set, $family: $family);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin export-media-queries ($media) {
|
|
32
|
-
|
|
33
|
-
$list: '';
|
|
34
|
-
|
|
35
|
-
@each $viewport, $rule in $media {
|
|
36
|
-
|
|
37
|
-
@if ($list == '') {
|
|
38
|
-
|
|
39
|
-
$list: #{$viewport};
|
|
40
|
-
} @else {
|
|
41
|
-
|
|
42
|
-
$list: #{$viewport},#{$list};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$camel-name: camelize($viewport);
|
|
46
|
-
|
|
47
|
-
#{$camel-name}: #{$rule};
|
|
48
|
-
}
|
|
49
|
-
}
|