@terrahq/design-system 0.8.0 → 0.10.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/README.md +5 -4
- package/bin/terra-ds.mjs +0 -4
- package/dist/icons.css +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/scss/framework/_var/_vars.scss +14 -15
- package/src/scss/framework/components/btn.scss +1 -0
- package/src/scss/framework/foundation/font/_make-font.scss +12 -12
- package/src/scss/framework/foundation/gap/_make-gap.scss +10 -10
- package/src/scss/framework/foundation/grid/_columns.scss +51 -10
- package/src/scss/framework/foundation/grid/_container.scss +0 -7
- package/src/scss/framework/foundation/grid/_make-container.scss +3 -3
- package/src/scss/framework/foundation/section/_make-section.scss +18 -18
- package/src/scss/framework/foundation/spaces/_make-spaces.scss +10 -10
- package/src/scss/framework/utilities/_align-items.scss +5 -5
- package/src/scss/framework/utilities/_aspect-ratio.scss +5 -5
- package/src/scss/framework/utilities/_display.scss +6 -5
- package/src/scss/framework/utilities/_flex-direction.scss +5 -5
- package/src/scss/framework/utilities/_font-style.scss +5 -5
- package/src/scss/framework/utilities/_font-weight.scss +5 -5
- package/src/scss/framework/utilities/_height.scss +5 -5
- package/src/scss/framework/utilities/_justify-content.scss +5 -5
- package/src/scss/framework/utilities/_order.scss +5 -5
- package/src/scss/framework/utilities/_overflow.scss +6 -5
- package/src/scss/framework/utilities/_position.scss +5 -5
- package/src/scss/framework/utilities/_spacing.scss +26 -26
- package/src/scss/framework/utilities/_states.scss +0 -7
- package/src/scss/framework/utilities/_text-align.scss +7 -7
- package/src/scss/framework/utilities/_text-transform.scss +47 -0
- package/src/scss/framework/utilities/_utilities.scss +1 -0
- package/src/scss/framework/utilities/_width.scss +5 -5
- package/terra.config.example.js +1 -2
|
@@ -25,13 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// u--hover-tint-{letter}: a faint wash of the color (10%) on hover, for quiet buttons: pair it with the same f--color-{letter}
|
|
29
|
-
@each $name, $color in $color-options {
|
|
30
|
-
.u--hover-tint-#{$name}:hover {
|
|
31
|
-
background-color: rgba($color, $tint-alpha);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
28
|
// u--group on a parent, u--group-hover-* on its children
|
|
36
29
|
@each $name, $color in $color-options {
|
|
37
30
|
.u--group:hover .u--group-hover-color-#{$name} {
|
|
@@ -9,26 +9,26 @@ $text-align-values: (
|
|
|
9
9
|
|
|
10
10
|
$text-align-breakpoints: (
|
|
11
11
|
all: $all,
|
|
12
|
-
desktop: $desktop,
|
|
13
|
-
laptop: $laptop,
|
|
14
|
-
tabletl: $tabletl,
|
|
15
|
-
tabletm: $tabletm,
|
|
16
12
|
tablets: $tablets,
|
|
17
|
-
|
|
13
|
+
tabletm: $tabletm,
|
|
14
|
+
tabletl: $tabletl,
|
|
15
|
+
laptop: $laptop,
|
|
16
|
+
desktop: $desktop,
|
|
17
|
+
wide: $wide,
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
@mixin text-align-utility($text-prop, $breakpoints) {
|
|
21
21
|
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
22
22
|
@if ($breakpoint-value == 0) {
|
|
23
23
|
@each $name, $property in $text-prop {
|
|
24
|
-
.u--text
|
|
24
|
+
.u--text-#{$name} {
|
|
25
25
|
text-align: $property;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
} @else {
|
|
29
29
|
@media screen and ($viewport-type: $breakpoint-value) {
|
|
30
30
|
@each $name, $property in $text-prop {
|
|
31
|
-
.u--text
|
|
31
|
+
.u--text-#{$breakpoint-name}-#{$name} {
|
|
32
32
|
text-align: $property;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
|
|
4
|
+
$text-transform-values: (
|
|
5
|
+
// capitalize: capitalize,
|
|
6
|
+
uppercase: uppercase,
|
|
7
|
+
// lowercase:lowercase,
|
|
8
|
+
// none:none,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
$text-transform-breakpoints: (
|
|
12
|
+
all: $all,
|
|
13
|
+
// tablets: $tablets,
|
|
14
|
+
// tabletm: $tabletm,
|
|
15
|
+
//tabletl: $tabletl,
|
|
16
|
+
// laptop: $laptop,
|
|
17
|
+
// desktop: $desktop,
|
|
18
|
+
// wide: $wide,
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
@mixin text-transform-utility($text-prop, $breakpoints) {
|
|
22
|
+
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
23
|
+
@if ($breakpoint-value == 0) {
|
|
24
|
+
@each $name, $property in $text-prop {
|
|
25
|
+
.u--text-#{$name} {
|
|
26
|
+
text-transform: $property;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} @else {
|
|
30
|
+
@media screen and ($viewport-type: $breakpoint-value) {
|
|
31
|
+
@each $name, $property in $text-prop {
|
|
32
|
+
.u--text-#{$breakpoint-name}-#{$name} {
|
|
33
|
+
text-transform: $property;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
@if meta.variable-exists(text-transform-breakpoints) {
|
|
41
|
+
@include text-transform-utility(
|
|
42
|
+
$text-transform-values,
|
|
43
|
+
$text-transform-breakpoints
|
|
44
|
+
);
|
|
45
|
+
} @else {
|
|
46
|
+
@include text-transform-utility($text-transform-values, $breakpoints-grid);
|
|
47
|
+
}
|
|
@@ -11,12 +11,12 @@ $width-values: (
|
|
|
11
11
|
|
|
12
12
|
$width-breakpoints: (
|
|
13
13
|
all: $all,
|
|
14
|
-
desktop: $desktop,
|
|
15
|
-
laptop: $laptop,
|
|
16
|
-
tabletl: $tabletl,
|
|
17
|
-
tabletm: $tabletm,
|
|
18
14
|
tablets: $tablets,
|
|
19
|
-
|
|
15
|
+
tabletm: $tabletm,
|
|
16
|
+
tabletl: $tabletl,
|
|
17
|
+
laptop: $laptop,
|
|
18
|
+
desktop: $desktop,
|
|
19
|
+
wide: $wide,
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
@mixin width-utility($width-prop, $breakpoints) {
|
package/terra.config.example.js
CHANGED
|
@@ -11,13 +11,12 @@ export default {
|
|
|
11
11
|
shadows: { a: '0 1px 2px rgb(15 15 15 / .06), 0 4px 16px rgb(15 15 15 / .08)' }, // f--shadow-* (default a, b, c)
|
|
12
12
|
|
|
13
13
|
// Scales of the utilities (each step is a class)
|
|
14
|
-
spacing: [0, 1, 2, 4, 8], // u--
|
|
14
|
+
spacing: [0, 1, 2, 4, 8], // u--padding-*, u--margin-*, u--gap-* (x 8px; default 0 to 10, 12 and 15)
|
|
15
15
|
sizes: [2, 4, 5, 6, 8], // u--height-*, u--width-* (x 8px; default 2, 3, 4, 5, 6, 8, 10, 12)
|
|
16
16
|
minWidth: [10, 20, 30, 40], // u--min-width-* (x 8px; this is the default)
|
|
17
17
|
opacity: { 100: 1, 85: 0.85, 70: 0.7, 50: 0.5 }, // u--opacity-* (this is the default)
|
|
18
18
|
zIndex: [0, 10, 20, 40], // u--z-index-* (this is the default)
|
|
19
19
|
offsets: { 0: '0', 100: '100%' }, // u--top-*, u--right-*, u--bottom-*, u--left-* (this is the default)
|
|
20
|
-
tint: 0.1, // strength of u--hover-tint-* (this is the default)
|
|
21
20
|
|
|
22
21
|
// Motion
|
|
23
22
|
time: { a: '0.1s', b: '0.3s', c: '0.6s' }, // micro-interactions, expansion, background dimming (this is the default)
|