@terrahq/design-system 0.6.1 → 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.
Files changed (35) hide show
  1. package/README.md +31 -9
  2. package/bin/terra-ds.mjs +33 -0
  3. package/dist/icons.css +1 -0
  4. package/dist/style.css +1 -1
  5. package/package.json +1 -1
  6. package/src/scss/framework/_var/_vars.scss +33 -22
  7. package/src/scss/framework/components/btn.scss +1 -0
  8. package/src/scss/framework/foundation/font/_make-font.scss +12 -12
  9. package/src/scss/framework/foundation/gap/_make-gap.scss +10 -10
  10. package/src/scss/framework/foundation/grid/_columns.scss +51 -10
  11. package/src/scss/framework/foundation/grid/_container.scss +0 -7
  12. package/src/scss/framework/foundation/grid/_make-container.scss +3 -3
  13. package/src/scss/framework/foundation/section/_make-section.scss +18 -18
  14. package/src/scss/framework/foundation/spaces/_make-spaces.scss +10 -10
  15. package/src/scss/framework/utilities/_align-items.scss +5 -5
  16. package/src/scss/framework/utilities/_aspect-ratio.scss +5 -5
  17. package/src/scss/framework/utilities/_display.scss +6 -5
  18. package/src/scss/framework/utilities/_flex-direction.scss +5 -5
  19. package/src/scss/framework/utilities/_font-style.scss +5 -5
  20. package/src/scss/framework/utilities/_font-weight.scss +5 -5
  21. package/src/scss/framework/utilities/_height.scss +5 -5
  22. package/src/scss/framework/utilities/_justify-content.scss +5 -5
  23. package/src/scss/framework/utilities/_offsets.scss +2 -1
  24. package/src/scss/framework/utilities/_opacity.scss +2 -1
  25. package/src/scss/framework/utilities/_order.scss +5 -5
  26. package/src/scss/framework/utilities/_overflow.scss +6 -5
  27. package/src/scss/framework/utilities/_position.scss +5 -5
  28. package/src/scss/framework/utilities/_size.scss +14 -0
  29. package/src/scss/framework/utilities/_spacing.scss +11 -8
  30. package/src/scss/framework/utilities/_text-align.scss +7 -7
  31. package/src/scss/framework/utilities/_text-transform.scss +47 -0
  32. package/src/scss/framework/utilities/_utilities.scss +2 -0
  33. package/src/scss/framework/utilities/_width.scss +5 -5
  34. package/src/scss/framework/utilities/_z-index.scss +2 -1
  35. package/terra.config.example.js +23 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@terrahq/design-system",
3
3
  "private": false,
4
- "version": "0.6.1",
4
+ "version": "0.10.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/style.css",
@@ -37,12 +37,16 @@ $space-values: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15) !default;
37
37
  // Steps for u--min-width-* (x $measure). Set it from terra.config.js with `minWidth`.
38
38
  $min-width-steps: (10, 20, 30, 40) !default;
39
39
 
40
+ // Steps for u--h-* and u--w-* (x $measure): a fixed height or width, 4 = 2rem. Set it from terra.config.js with `sizes`.
41
+ $size-steps: (2, 3, 4, 5, 6, 8, 10, 12) !default;
42
+
40
43
  // * TYPOGRAPHY
41
44
  // Terra's typeface. The package does not ship the font files: load Uncut Sans yourself, or the fallbacks are used.
42
45
  $type-a: 'Uncut Sans', system-ui, sans-serif !default;
43
46
 
44
47
  // * LAYOUT
45
- $viewport-type: max-width;
48
+ // Mobile-first, like Punky: a breakpoint class applies from that width up.
49
+ $viewport-type: min-width;
46
50
  $columns: 12;
47
51
  $gutter-width: 32px;
48
52
  $half-gutter-width: $gutter-width * 0.5;
@@ -54,23 +58,23 @@ $g-container-max-width: 1300px;
54
58
  $g-container-width: 90%;
55
59
  $g-container-width-mobile: 95%;
56
60
 
57
- // * breakpoints
61
+ // * breakpoints (the same names and widths as Punky)
58
62
  $all: 0;
59
- $desktop: 1700px;
60
- $laptop: 1570px;
61
- $tabletl: 1300px;
62
- $tabletm: 1024px;
63
- $tablets: 810px;
64
- $mobile: 580px;
63
+ $tablets: 580px;
64
+ $tabletm: 810px;
65
+ $tabletl: 1024px;
66
+ $laptop: 1300px;
67
+ $desktop: 1570px;
68
+ $wide: 1700px;
65
69
 
66
70
  $breakpoints-grid: (
67
71
  all: $all,
68
- desktop: $desktop,
69
- laptop: $laptop,
70
- tabletl: $tabletl,
71
- tabletm: $tabletm,
72
72
  tablets: $tablets,
73
- mobile: $mobile,
73
+ tabletm: $tabletm,
74
+ tabletl: $tabletl,
75
+ laptop: $laptop,
76
+ desktop: $desktop,
77
+ wide: $wide,
74
78
  ) !default;
75
79
 
76
80
  /*
@@ -91,15 +95,22 @@ $shadow-options: (
91
95
  c: (0 24px 64px rgb(15 15 15 / 0.2)),
92
96
  ) !default;
93
97
 
98
+ // Opacity steps for u--opacity-* (the number is the class, the value is the opacity)
99
+ $opacity-values: (100: 1, 85: 0.85, 70: 0.7, 50: 0.5) !default;
100
+ // Stacking levels for u--z-index-*
101
+ $z-index-values: (0, 10, 20, 40) !default;
102
+ // Offsets for u--top-*, u--right-*, u--bottom-* and u--left-*
103
+ $offset-values: (0: 0, 100: 100%) !default;
104
+
94
105
  // * Time
95
- $time-a: 0.1s; // * Micro-interactions such as button and toggle
96
- $time-b: 0.3s; // * Expansion, system communication, toast
97
- $time-c: 0.6s; // * Background dimming
106
+ $time-a: 0.1s !default; // * Micro-interactions such as button and toggle
107
+ $time-b: 0.3s !default; // * Expansion, system communication, toast
108
+ $time-c: 0.6s !default; // * Background dimming
98
109
 
99
110
  // * Ease
100
- $ease-standard-a: cubic-bezier(0.2, 0, 0.38, 0.9); // * productive
101
- $ease-standard-b: cubic-bezier(0, 0, 0.3, 1); // * expresive
102
- $ease-entrance-a: cubic-bezier(0, 0, 0.38, 0.9); // * productive
103
- $ease-entrance-b: cubic-bezier(0.4, 0.14, 0.3, 1); // * expresive
104
- $ease-exit-a: cubic-bezier(0.2, 0, 1, 0.9); // * productive
105
- $ease-exit-b: cubic-bezier(0.4, 0.14, 1, 1); // * expresive
111
+ $ease-standard-a: cubic-bezier(0.2, 0, 0.38, 0.9) !default; // * productive
112
+ $ease-standard-b: cubic-bezier(0, 0, 0.3, 1) !default; // * expresive
113
+ $ease-entrance-a: cubic-bezier(0, 0, 0.38, 0.9) !default; // * productive
114
+ $ease-entrance-b: cubic-bezier(0.4, 0.14, 0.3, 1) !default; // * expresive
115
+ $ease-exit-a: cubic-bezier(0.2, 0, 1, 0.9) !default; // * productive
116
+ $ease-exit-b: cubic-bezier(0.4, 0.14, 1, 1) !default; // * expresive
@@ -29,6 +29,7 @@ $btn-paper: pick(b, a);
29
29
  font-size: 14px;
30
30
  font-weight: 500;
31
31
  line-height: 1;
32
+ white-space: nowrap;
32
33
  text-decoration: none;
33
34
  cursor: pointer;
34
35
  transition:
@@ -5,9 +5,9 @@
5
5
  font-family: $type-a;
6
6
  font-weight: $weight;
7
7
  line-height: 1.1;
8
- font-size: 5rem;
9
- @media all and ($viewport-type: $tablets) {
10
- font-size: 4rem;
8
+ font-size: 4rem;
9
+ @media all and ($viewport-type: $tabletm) {
10
+ font-size: 5rem;
11
11
  }
12
12
  }
13
13
 
@@ -15,9 +15,9 @@
15
15
  font-family: $type-a;
16
16
  font-weight: $weight;
17
17
  line-height: 1.3;
18
- font-size: 3.5rem;
19
- @media all and ($viewport-type: $tablets) {
20
- font-size: 2.5rem;
18
+ font-size: 2.5rem;
19
+ @media all and ($viewport-type: $tabletm) {
20
+ font-size: 3.5rem;
21
21
  }
22
22
  }
23
23
 
@@ -25,9 +25,9 @@
25
25
  font-family: $type-a;
26
26
  font-weight: $weight;
27
27
  line-height: 1.3;
28
- font-size: 2rem;
29
- @media all and ($viewport-type: $tablets) {
30
- font-size: 1.625rem;
28
+ font-size: 1.625rem;
29
+ @media all and ($viewport-type: $tabletm) {
30
+ font-size: 2rem;
31
31
  }
32
32
  }
33
33
 
@@ -35,9 +35,9 @@
35
35
  font-family: $type-a;
36
36
  font-weight: $weight;
37
37
  line-height: 1.4;
38
- font-size: 1.5rem;
39
- @media all and ($viewport-type: $tablets) {
40
- font-size: 1.25rem;
38
+ font-size: 1.25rem;
39
+ @media all and ($viewport-type: $tabletm) {
40
+ font-size: 1.5rem;
41
41
  }
42
42
  }
43
43
 
@@ -1,29 +1,29 @@
1
1
  @use "@scss/framework/_var/_vars.scss" as *;
2
2
 
3
3
  @mixin make-gap-a {
4
- row-gap: $measure * 10;
5
- @media all and ($viewport-type: $tablets) {
6
- row-gap: $measure * 7;
4
+ row-gap: $measure * 7;
5
+ @media all and ($viewport-type: $tabletm) {
6
+ row-gap: $measure * 10;
7
7
  }
8
8
  }
9
9
 
10
10
  @mixin make-gap-b {
11
- row-gap: $measure * 7;
12
- @media all and ($viewport-type: $tablets) {
13
- row-gap: $measure * 4;
11
+ row-gap: $measure * 4;
12
+ @media all and ($viewport-type: $tabletm) {
13
+ row-gap: $measure * 7;
14
14
  }
15
15
  }
16
16
 
17
17
  @mixin make-gap-c {
18
- row-gap: $measure * 4;
19
- @media all and ($viewport-type: $tablets) {
20
- row-gap: $measure * 3;
18
+ row-gap: $measure * 3;
19
+ @media all and ($viewport-type: $tabletm) {
20
+ row-gap: $measure * 4;
21
21
  }
22
22
  }
23
23
 
24
24
  @mixin make-gap-d {
25
25
  row-gap: $measure * 3;
26
- @media all and ($viewport-type: $tablets) {
26
+ @media all and ($viewport-type: $tabletm) {
27
27
  row-gap: $measure * 3;
28
28
  }
29
29
  }
@@ -23,12 +23,12 @@ $available-columns: (
23
23
 
24
24
  $columns-breakpoints: (
25
25
  all: $all,
26
- desktop: $desktop,
27
- laptop: $laptop,
28
- tabletl: $tabletl,
29
- tabletm: $tabletm,
30
26
  tablets: $tablets,
31
- mobile: $mobile,
27
+ tabletm: $tabletm,
28
+ tabletl: $tabletl,
29
+ laptop: $laptop,
30
+ desktop: $desktop,
31
+ wide: $wide,
32
32
  );
33
33
  @mixin build-columns ($size,$bkpt,$availablecolumns) {
34
34
  @for $i from 1 through $columns {
@@ -77,12 +77,12 @@ $available-offset: (
77
77
 
78
78
  $offset-breakpoints: (
79
79
  all: $all,
80
- desktop: $desktop,
81
- laptop: $laptop,
82
- tabletl: $tabletl,
83
- tabletm: $tabletm,
84
80
  tablets: $tablets,
85
- mobile: $mobile,
81
+ tabletm: $tabletm,
82
+ tabletl: $tabletl,
83
+ laptop: $laptop,
84
+ desktop: $desktop,
85
+ wide: $wide,
86
86
  );
87
87
  @mixin build-offset ($size,$bkpt,$availableoffset) {
88
88
  @for $i from 0 through $columns {
@@ -113,3 +113,44 @@ $offset-breakpoints: (
113
113
  }
114
114
  /* End Responsive Offset */
115
115
 
116
+
117
+
118
+ /* Start Responsive Order (as Punky): f--order-1 and f--order-tabletm-1 */
119
+ $available-order: (
120
+ 1,
121
+ ) !default;
122
+
123
+ $order-breakpoints: (
124
+ all: $all,
125
+ tabletm: $tabletm,
126
+ tabletl: $tabletl,
127
+ );
128
+
129
+ @mixin build-order ($size,$bkpt,$availableorder) {
130
+ @for $i from 0 through $columns {
131
+ @if ($size == 'all') {
132
+ @each $order in $availableorder {
133
+ @if $i == $order {
134
+ .f--order-#{$order}{
135
+ @include make-order($order);
136
+ }
137
+ }
138
+ }
139
+ }@else{
140
+ @each $order in $availableorder {
141
+ @if $i == $order {
142
+ .f--order-#{$size}-#{$order}{
143
+ @media all and (#{$viewport-type}: #{$bkpt}){
144
+ @include make-order($order);
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+
153
+ @each $size, $bkpt in $order-breakpoints {
154
+ @include build-order($size,$bkpt, $available-order);
155
+ }
156
+ /* End Responsive Order */
@@ -7,11 +7,4 @@
7
7
  &--fluid {
8
8
  @include make-container-fluid();
9
9
  }
10
-
11
- // * container fluid responsive
12
- &--tabletm-fluid {
13
- @media all and ($viewport-type: $tabletm) {
14
- @include make-container-fluid();
15
- }
16
- }
17
10
  }
@@ -6,9 +6,9 @@
6
6
  padding-right: $half-gutter-width;
7
7
  padding-left: $half-gutter-width;
8
8
  width: $g-container-width;
9
- max-width: $g-container-max-width;
10
- @media all and ($viewport-type: $mobile){
11
- max-width: $g-container-width-mobile;
9
+ max-width: $g-container-width-mobile;
10
+ @media all and ($viewport-type: $tablets) {
11
+ max-width: $g-container-max-width;
12
12
  }
13
13
  }
14
14
 
@@ -1,49 +1,49 @@
1
1
  @use "@scss/framework/_var/_vars.scss" as *;
2
2
 
3
3
  @mixin make-section-a() {
4
- padding: $measure*15 0;
4
+ padding: $measure*10 0;
5
5
 
6
- @media all and ($viewport-type: $tablets) {
7
- padding: $measure*10 0;
6
+ @media all and ($viewport-type: $tabletm) {
7
+ padding: $measure*15 0;
8
8
  }
9
9
  }
10
10
 
11
11
  @mixin make-section-b() {
12
- padding: 0 0 $measure*15;
12
+ padding: 0 0 $measure*10;
13
13
 
14
- @media all and ($viewport-type: $tablets) {
15
- padding: 0 0 $measure*10;
14
+ @media all and ($viewport-type: $tabletm) {
15
+ padding: 0 0 $measure*15;
16
16
  }
17
17
  }
18
18
 
19
19
  @mixin make-section-c() {
20
- padding: $measure*15 0 $measure*10;
20
+ padding: $measure*10 0 $measure*7;
21
21
 
22
- @media all and ($viewport-type: $tablets) {
23
- padding: $measure*10 0 $measure*7;
22
+ @media all and ($viewport-type: $tabletm) {
23
+ padding: $measure*15 0 $measure*10;
24
24
  }
25
25
  }
26
26
 
27
27
  @mixin make-section-d() {
28
- padding: $measure*10 0 $measure*15;
28
+ padding: $measure*7 0 $measure*10;
29
29
 
30
- @media all and ($viewport-type: $tablets) {
31
- padding: $measure*7 0 $measure*10;
30
+ @media all and ($viewport-type: $tabletm) {
31
+ padding: $measure*10 0 $measure*15;
32
32
  }
33
33
  }
34
34
 
35
35
  @mixin make-section-e() {
36
- padding: $measure*10 0 0;
36
+ padding: $measure*7 0 0;
37
37
 
38
- @media all and ($viewport-type: $tablets) {
39
- padding: $measure*7 0 0;
38
+ @media all and ($viewport-type: $tabletm) {
39
+ padding: $measure*10 0 0;
40
40
  }
41
41
  }
42
42
 
43
43
  @mixin make-section-f() {
44
- padding: $measure*10 0 ;
44
+ padding: $measure*7 0;
45
45
 
46
- @media all and ($viewport-type: $tablets) {
47
- padding: $measure*7 0;
46
+ @media all and ($viewport-type: $tabletm) {
47
+ padding: $measure*10 0 ;
48
48
  }
49
49
  }
@@ -1,29 +1,29 @@
1
1
  @use "@scss/framework/_var/_vars.scss" as *;
2
2
 
3
3
  @mixin make-sp-a {
4
- margin-bottom: $measure * 10;
5
- @media all and ($viewport-type: $tablets) {
6
- margin-bottom: $measure * 7;
4
+ margin-bottom: $measure * 7;
5
+ @media all and ($viewport-type: $tabletm) {
6
+ margin-bottom: $measure * 10;
7
7
  }
8
8
  }
9
9
 
10
10
  @mixin make-sp-b {
11
- margin-bottom: $measure * 7;
12
- @media all and ($viewport-type: $tablets) {
13
- margin-bottom: $measure * 4;
11
+ margin-bottom: $measure * 4;
12
+ @media all and ($viewport-type: $tabletm) {
13
+ margin-bottom: $measure * 7;
14
14
  }
15
15
  }
16
16
 
17
17
  @mixin make-sp-c {
18
- margin-bottom: $measure * 4;
19
- @media all and ($viewport-type: $tablets) {
20
- margin-bottom: $measure * 3;
18
+ margin-bottom: $measure * 3;
19
+ @media all and ($viewport-type: $tabletm) {
20
+ margin-bottom: $measure * 4;
21
21
  }
22
22
  }
23
23
 
24
24
  @mixin make-sp-d {
25
25
  margin-bottom: $measure * 3;
26
- @media all and ($viewport-type: $tablets) {
26
+ @media all and ($viewport-type: $tabletm) {
27
27
  margin-bottom: $measure * 3;
28
28
  }
29
29
  }
@@ -10,12 +10,12 @@ $align-items-values:(
10
10
 
11
11
  $align-items-breakpoints: (
12
12
  all: $all,
13
- desktop: $desktop,
14
- laptop: $laptop,
15
- tabletl: $tabletl,
16
- tabletm: $tabletm,
17
13
  tablets: $tablets,
18
- mobile: $mobile,
14
+ tabletm: $tabletm,
15
+ tabletl: $tabletl,
16
+ laptop: $laptop,
17
+ desktop: $desktop,
18
+ wide: $wide,
19
19
  );
20
20
 
21
21
  @mixin align-items-utility($align-prop,$breakpoints){
@@ -21,12 +21,12 @@ $ar-sizes: (
21
21
  );
22
22
  $ar-breakpoints: (
23
23
  all: $all,
24
- desktop: $desktop,
25
- laptop: $laptop,
26
- tabletl: $tabletl,
27
- tabletm: $tabletm,
28
24
  tablets: $tablets,
29
- mobile: $mobile,
25
+ tabletm: $tabletm,
26
+ tabletl: $tabletl,
27
+ laptop: $laptop,
28
+ desktop: $desktop,
29
+ wide: $wide,
30
30
  );
31
31
 
32
32
  @mixin ar-sizes($ar, $breakpoints) {
@@ -1,6 +1,7 @@
1
1
  @use "@scss/framework/_var/_vars.scss" as *;
2
2
 
3
3
  $display-values: (
4
+ grid: grid,
4
5
  block: block,
5
6
  none: none,
6
7
  inline-block:inline-block,
@@ -14,12 +15,12 @@ $display-values: (
14
15
 
15
16
  $display-breakpoints: (
16
17
  all: $all,
17
- desktop: $desktop,
18
- laptop: $laptop,
19
- tabletl: $tabletl,
20
- tabletm: $tabletm,
21
18
  tablets: $tablets,
22
- mobile: $mobile,
19
+ tabletm: $tabletm,
20
+ tabletl: $tabletl,
21
+ laptop: $laptop,
22
+ desktop: $desktop,
23
+ wide: $wide,
23
24
  );
24
25
 
25
26
  @mixin display-utility($display-prop, $breakpoints) {
@@ -9,12 +9,12 @@ $flex-direction-values:(
9
9
 
10
10
  $flex-direction-breakpoints: (
11
11
  all: $all,
12
- desktop: $desktop,
13
- laptop: $laptop,
14
- tabletl: $tabletl,
15
- tabletm: $tabletm,
16
12
  tablets: $tablets,
17
- mobile: $mobile,
13
+ tabletm: $tabletm,
14
+ tabletl: $tabletl,
15
+ laptop: $laptop,
16
+ desktop: $desktop,
17
+ wide: $wide,
18
18
  );
19
19
 
20
20
  @mixin flex-direction-utility($align-prop,$breakpoints){
@@ -7,12 +7,12 @@ $font-style-values: (
7
7
 
8
8
  $font-style-breakpoints: (
9
9
  all: $all,
10
- desktop: $desktop,
11
- laptop: $laptop,
12
- tabletl: $tabletl,
13
- tabletm: $tabletm,
14
10
  tablets: $tablets,
15
- mobile: $mobile,
11
+ tabletm: $tabletm,
12
+ tabletl: $tabletl,
13
+ laptop: $laptop,
14
+ desktop: $desktop,
15
+ wide: $wide,
16
16
  );
17
17
 
18
18
  @mixin font-style-utility($font-style-prop, $breakpoints) {
@@ -14,12 +14,12 @@ $font-weight-values: (
14
14
 
15
15
  $font-weight-breakpoints: (
16
16
  all: $all,
17
- desktop: $desktop,
18
- laptop: $laptop,
19
- tabletl: $tabletl,
20
- tabletm: $tabletm,
21
17
  tablets: $tablets,
22
- mobile: $mobile,
18
+ tabletm: $tabletm,
19
+ tabletl: $tabletl,
20
+ laptop: $laptop,
21
+ desktop: $desktop,
22
+ wide: $wide,
23
23
  );
24
24
 
25
25
  @mixin font-weight-utility($font-weight-prop, $breakpoints) {
@@ -11,12 +11,12 @@ $height-values: (
11
11
 
12
12
  $height-breakpoints: (
13
13
  all: $all,
14
- desktop: $desktop,
15
- laptop: $laptop,
16
- tabletl: $tabletl,
17
- tabletm: $tabletm,
18
14
  tablets: $tablets,
19
- mobile: $mobile,
15
+ tabletm: $tabletm,
16
+ tabletl: $tabletl,
17
+ laptop: $laptop,
18
+ desktop: $desktop,
19
+ wide: $wide,
20
20
  );
21
21
 
22
22
  @mixin height-utility($height-prop, $breakpoints) {
@@ -11,12 +11,12 @@ $justify-content-properties:(
11
11
 
12
12
  $justify-content-breakpoints: (
13
13
  all: $all,
14
- desktop: $desktop,
15
- laptop: $laptop,
16
- tabletl: $tabletl,
17
- tabletm: $tabletm,
18
14
  tablets: $tablets,
19
- mobile: $mobile,
15
+ tabletm: $tabletm,
16
+ tabletl: $tabletl,
17
+ laptop: $laptop,
18
+ desktop: $desktop,
19
+ wide: $wide,
20
20
  );
21
21
 
22
22
  @mixin justify-content-utility($justify-prop,$breakpoints){
@@ -1,5 +1,6 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
1
3
  // u--top-0, u--top-100 ... : offsets for positioned elements (sticky bars, dropdowns under their trigger).
2
- $offset-values: (0: 0, 100: 100%) !default;
3
4
 
4
5
  @each $side in (top, right, bottom, left) {
5
6
  @each $name, $value in $offset-values {
@@ -1,5 +1,6 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
1
3
  // u--opacity-{n}: opacity of the element. Used for secondary text (Noche at lower strength).
2
- $opacity-values: (100: 1, 85: 0.85, 70: 0.7, 50: 0.5) !default;
3
4
 
4
5
  @each $name, $value in $opacity-values {
5
6
  .u--opacity-#{$name} {
@@ -4,12 +4,12 @@ $order-values: (first, last, none, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
4
4
 
5
5
  $order-breakpoints: (
6
6
  all: $all,
7
- desktop: $desktop,
8
- laptop: $laptop,
9
- tabletl: $tabletl,
10
- tabletm: $tabletm,
11
7
  tablets: $tablets,
12
- mobile: $mobile,
8
+ tabletm: $tabletm,
9
+ tabletl: $tabletl,
10
+ laptop: $laptop,
11
+ desktop: $desktop,
12
+ wide: $wide,
13
13
  );
14
14
 
15
15
  @mixin order-utility($order-values, $breakpoints) {
@@ -4,16 +4,17 @@ $overflow-values:(
4
4
  hidden: hidden,
5
5
  visible: visible,
6
6
  auto: auto,
7
+ clip: clip,
7
8
  );
8
9
 
9
10
  $overflow-breakpoints: (
10
11
  all: $all,
11
- desktop: $desktop,
12
- laptop: $laptop,
13
- tabletl: $tabletl,
14
- tabletm: $tabletm,
15
12
  tablets: $tablets,
16
- mobile: $mobile,
13
+ tabletm: $tabletm,
14
+ tabletl: $tabletl,
15
+ laptop: $laptop,
16
+ desktop: $desktop,
17
+ wide: $wide,
17
18
  );
18
19
 
19
20
  @mixin overflow-utility($overflow-prop,$breakpoints){
@@ -11,12 +11,12 @@ $position-values:(
11
11
 
12
12
  $position-breakpoints: (
13
13
  all: $all,
14
- desktop: $desktop,
15
- laptop: $laptop,
16
- tabletl: $tabletl,
17
- tabletm: $tabletm,
18
14
  tablets: $tablets,
19
- mobile: $mobile,
15
+ tabletm: $tabletm,
16
+ tabletl: $tabletl,
17
+ laptop: $laptop,
18
+ desktop: $desktop,
19
+ wide: $wide,
20
20
  );
21
21
 
22
22
  @mixin position-utility($position-prop,$breakpoints){
@@ -0,0 +1,14 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ // u--height-{n} and u--width-{n}: a fixed height or width of n x $measure (n = 4 is 2rem, 5 is 2.5rem, 6 is 3rem). They are
4
+ // what a button, an avatar or an icon box needs. The percentage classes (u--height-50, u--width-100) are 25, 50, 75 and 100:
5
+ // those four numbers are not valid steps here, so the two kinds never clash.
6
+ // The steps live in _vars.scss and come from `sizes` in terra.config.js.
7
+ @each $n in $size-steps {
8
+ .u--height-#{$n} {
9
+ height: $n * $measure;
10
+ }
11
+ .u--width-#{$n} {
12
+ width: $n * $measure;
13
+ }
14
+ }