@terrahq/design-system 0.0.5 → 0.0.9

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 (65) hide show
  1. package/README.md +130 -22
  2. package/dist/style.css +1 -1
  3. package/package.json +1 -1
  4. package/src/index.html +46 -33
  5. package/src/scss/framework/_var/_vars.scss +95 -0
  6. package/src/scss/framework/foundation/_foundation.scss +36 -0
  7. package/src/scss/framework/foundation/background/_background.scss +8 -0
  8. package/src/scss/framework/foundation/color/_color.scss +8 -0
  9. package/src/scss/framework/foundation/font/_font.scss +27 -0
  10. package/src/scss/framework/foundation/font/_make-font.scss +55 -0
  11. package/src/scss/framework/foundation/gap/{gap.scss → _gap.scss} +2 -4
  12. package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
  13. package/src/scss/framework/foundation/grid/_columns.scss +115 -0
  14. package/src/scss/framework/foundation/grid/_container.scss +17 -0
  15. package/src/scss/framework/foundation/grid/_grid.scss +3 -0
  16. package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
  17. package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
  18. package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
  19. package/src/scss/framework/foundation/grid/_row.scss +9 -0
  20. package/src/scss/framework/foundation/reset/{reset.scss → _reset.scss} +19 -12
  21. package/src/scss/framework/{_mixins/foundation/section/_section.scss → foundation/section/_make-section.scss} +2 -0
  22. package/src/scss/framework/foundation/section/{section.scss → _section.scss} +2 -0
  23. package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
  24. package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
  25. package/src/scss/framework/utilities/_align-items.scss +39 -0
  26. package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
  27. package/src/scss/framework/utilities/_display.scss +45 -0
  28. package/src/scss/framework/utilities/_flex-direction.scss +40 -0
  29. package/src/scss/framework/utilities/{flex-wrap.scss → _flex-wrap.scss} +2 -0
  30. package/src/scss/framework/utilities/_font-style.scss +38 -0
  31. package/src/scss/framework/utilities/_font-weight.scss +45 -0
  32. package/src/scss/framework/utilities/_height.scss +46 -0
  33. package/src/scss/framework/utilities/{justify-content.scss → _justify-content.scss} +19 -7
  34. package/src/scss/framework/utilities/_order.scss +38 -0
  35. package/src/scss/framework/utilities/{overflow.scss → _overflow.scss} +13 -2
  36. package/src/scss/framework/utilities/{position.scss → _position.scss} +16 -3
  37. package/src/scss/framework/utilities/_spacing.scss +67 -0
  38. package/src/scss/framework/utilities/_text-align.scss +40 -0
  39. package/src/scss/framework/utilities/_utilities.scss +15 -0
  40. package/src/scss/framework/utilities/_width.scss +46 -0
  41. package/src/scss/index.scss +2 -6
  42. package/src/scss/framework/_mixins/_mixins.scss +0 -6
  43. package/src/scss/framework/_mixins/foundation/aspect-ratio/_ar.scss +0 -64
  44. package/src/scss/framework/_mixins/foundation/gap/_gap.scss +0 -28
  45. package/src/scss/framework/_mixins/foundation/grid/_columns.scss +0 -23
  46. package/src/scss/framework/_mixins/foundation/grid/_container.scss +0 -17
  47. package/src/scss/framework/_mixins/foundation/grid/_grid.scss +0 -3
  48. package/src/scss/framework/_mixins/foundation/grid/_row.scss +0 -8
  49. package/src/scss/framework/_mixins/foundation/spaces/_spaces.scss +0 -24
  50. package/src/scss/framework/_vars/_vars.scss +0 -114
  51. package/src/scss/framework/foundation/aspect-ratio/aspect-ratio.scss +0 -32
  52. package/src/scss/framework/foundation/background/background.scss +0 -5
  53. package/src/scss/framework/foundation/color/color.scss +0 -6
  54. package/src/scss/framework/foundation/foundation.scss +0 -41
  55. package/src/scss/framework/foundation/grid/columns.scss +0 -90
  56. package/src/scss/framework/foundation/grid/container.scss +0 -17
  57. package/src/scss/framework/foundation/grid/grid.scss +0 -3
  58. package/src/scss/framework/foundation/grid/row.scss +0 -12
  59. package/src/scss/framework/foundation/spacing/spacing.scss +0 -42
  60. package/src/scss/framework/utilities/align-items.scss +0 -29
  61. package/src/scss/framework/utilities/display.scss +0 -34
  62. package/src/scss/framework/utilities/font-style.scss +0 -52
  63. package/src/scss/framework/utilities/font-weight.scss +0 -32
  64. package/src/scss/framework/utilities/text-align.scss +0 -29
  65. package/src/scss/framework/utilities/utilities.scss +0 -9
@@ -0,0 +1,95 @@
1
+ @use "sass:map";
2
+
3
+ /*
4
+ Foundations
5
+ */
6
+ // * COLORS
7
+ $color-a: #0f0f0f;
8
+ $color-b: #fefefe;
9
+ $color-c: #f7f8f4;
10
+
11
+ /* Accent Color */
12
+ $color-d: #7ce55e;
13
+ $color-e: #2d9f66;
14
+ $color-f: #429ed6;
15
+ $color-g: #fdb335;
16
+ $color-h: #f76e4a;
17
+ $color-i: #f58dd7;
18
+
19
+ $color-options: (
20
+ a: $color-a,
21
+ b: $color-b,
22
+ c: $color-c,
23
+ d: $color-d,
24
+ e: $color-e,
25
+ f: $color-f,
26
+ g: $color-g,
27
+ h: $color-h,
28
+ i: $color-i,
29
+ );
30
+
31
+ $colorbg-options: (
32
+ a: $color-a,
33
+ b: $color-b,
34
+ c: $color-c,
35
+ d: $color-d,
36
+ e: $color-e,
37
+ );
38
+
39
+ // * TYPOGRAPHY
40
+ $type-a:'Arial', sans-serif;
41
+
42
+ // * LAYOUT
43
+ $viewport-type: max-width;
44
+ $columns: 12;
45
+ $gutter-width: 32px;
46
+ $half-gutter-width: $gutter-width * 0.5;
47
+ $gutter-compensation: -1 * $half-gutter-width;
48
+
49
+ // * Container
50
+ $g-container-fluid-max-width: 2000px;
51
+ $g-container-max-width: 1300px;
52
+ $g-container-width: 90%;
53
+ $g-container-width-mobile: 95%;
54
+
55
+ // * breakpoints
56
+ $all: 0;
57
+ $desktop: 1700px;
58
+ $laptop: 1570px;
59
+ $tabletl: 1300px;
60
+ $tabletm: 1024px;
61
+ $tablets: 810px;
62
+ $mobile: 580px;
63
+
64
+ $breakpoints-grid: (
65
+ all: $all,
66
+ desktop: $desktop,
67
+ laptop: $laptop,
68
+ tabletl: $tabletl,
69
+ tabletm: $tabletm,
70
+ tablets: $tablets,
71
+ mobile: $mobile,
72
+ ) !default;
73
+
74
+ /*
75
+ End Foundations
76
+ */
77
+
78
+ // * Measure
79
+ $measure: 0.5rem; /* 0.5rem = 8px */
80
+
81
+ // * border
82
+ $border-radius-a: $measure;
83
+
84
+ // * Time
85
+ $time-a: 0.1s; // * Micro-interactions such as button and toggle
86
+ $time-b: 0.3s; // * Expansion, system communication, toast
87
+ $time-c: 0.6s; // * Background dimming
88
+
89
+ // * Ease
90
+ $ease-standard-a: cubic-bezier(0.2, 0, 0.38, 0.9); // * productive
91
+ $ease-standard-b: cubic-bezier(0, 0, 0.3, 1); // * expresive
92
+ $ease-entrance-a: cubic-bezier(0, 0, 0.38, 0.9); // * productive
93
+ $ease-entrance-b: cubic-bezier(0.4, 0.14, 0.3, 1); // * expresive
94
+ $ease-exit-a: cubic-bezier(0.2, 0, 1, 0.9); // * productive
95
+ $ease-exit-b: cubic-bezier(0.4, 0.14, 1, 1); // * expresive
@@ -0,0 +1,36 @@
1
+ //Foundations
2
+
3
+ // Reset
4
+ @forward './reset/reset.scss';
5
+
6
+
7
+ // background
8
+ // f--*-*
9
+ @forward './background/background.scss';
10
+
11
+ // Color
12
+ // f--color-*
13
+ @forward './color/color.scss';
14
+
15
+ // Typography
16
+ // f--font-*
17
+ @forward './font/font.scss';
18
+
19
+ // Gap
20
+ // f--gap-*
21
+ @forward './gap/gap.scss';
22
+
23
+ // Grid System
24
+ // f--container
25
+ // f--row
26
+ // f--col-*
27
+ // f--offset-*
28
+ @forward './grid/grid.scss';
29
+
30
+ // Section
31
+ // f--section-*
32
+ @forward './section/section.scss';
33
+
34
+ // Spaces
35
+ // f--sp-*
36
+ @forward './spaces/spaces.scss';
@@ -0,0 +1,8 @@
1
+ @use "sass:map";
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+
4
+ @each $color-name, $color in $colorbg-options {
5
+ .f--background-#{$color-name}{
6
+ background: map.get($colorbg-options, $color-name);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ @use "sass:map";
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+
4
+ @each $color-name, $color in $color-options {
5
+ .f--color-#{$color-name}{
6
+ color: map.get($color-options, $color-name);
7
+ }
8
+ }
@@ -0,0 +1,27 @@
1
+ @use "@scss/framework/foundation/font/make-font" as *;
2
+
3
+ /* Font library */
4
+
5
+ .f--font-a {
6
+ @include make-font-a();
7
+ }
8
+
9
+ .f--font-b {
10
+ @include make-font-b();
11
+ }
12
+
13
+ .f--font-c {
14
+ @include make-font-c();
15
+ }
16
+
17
+ .f--font-d {
18
+ @include make-font-d();
19
+ }
20
+
21
+ .f--font-e {
22
+ @include make-font-e();
23
+ }
24
+
25
+ .f--font-f {
26
+ @include make-font-f();
27
+ }
@@ -0,0 +1,55 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-font-a($weight: 400) {
4
+ font-family: $type-a;
5
+ font-weight: $weight;
6
+ line-height: 1.1;
7
+ font-size: 5rem;
8
+ @media all and ($viewport-type: $tablets) {
9
+ font-size: 4rem;
10
+ }
11
+ }
12
+
13
+ @mixin make-font-b($weight: 400) {
14
+ font-family: $type-a;
15
+ font-weight: $weight;
16
+ line-height: 1.3;
17
+ font-size: 3.5rem;
18
+ @media all and ($viewport-type: $tablets) {
19
+ font-size: 2.5rem;
20
+ }
21
+ }
22
+
23
+ @mixin make-font-c($weight: 400) {
24
+ font-family: $type-a;
25
+ font-weight: $weight;
26
+ line-height: 1.3;
27
+ font-size: 2rem;
28
+ @media all and ($viewport-type: $tablets) {
29
+ font-size: 1.625rem;
30
+ }
31
+ }
32
+
33
+ @mixin make-font-d($weight: 400) {
34
+ font-family: $type-a;
35
+ font-weight: $weight;
36
+ line-height: 1.4;
37
+ font-size: 1.5rem;
38
+ @media all and ($viewport-type: $tablets) {
39
+ font-size: 1.25rem;
40
+ }
41
+ }
42
+
43
+ @mixin make-font-e($weight: 400) {
44
+ font-family: $type-a;
45
+ font-weight: $weight;
46
+ line-height: 1.4;
47
+ font-size: 1rem;
48
+ }
49
+
50
+ @mixin make-font-f($weight: 400) {
51
+ font-family: $type-a;
52
+ font-weight: $weight;
53
+ line-height: 1.4;
54
+ font-size: 0.75rem;
55
+ }
@@ -1,3 +1,5 @@
1
+ @use "@scss/framework/foundation/gap/make-gap" as *;
2
+
1
3
  .f--gap-a {
2
4
  @include make-gap-a();
3
5
  }
@@ -13,7 +15,3 @@
13
15
  .f--gap-d {
14
16
  @include make-gap-d();
15
17
  }
16
-
17
- .f--gap-e {
18
- @include make-gap-e();
19
- }
@@ -0,0 +1,29 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-gap-a {
4
+ row-gap: $measure * 10;
5
+ @media all and ($viewport-type: $tablets) {
6
+ row-gap: $measure * 7;
7
+ }
8
+ }
9
+
10
+ @mixin make-gap-b {
11
+ row-gap: $measure * 7;
12
+ @media all and ($viewport-type: $tablets) {
13
+ row-gap: $measure * 4;
14
+ }
15
+ }
16
+
17
+ @mixin make-gap-c {
18
+ row-gap: $measure * 4;
19
+ @media all and ($viewport-type: $tablets) {
20
+ row-gap: $measure * 3;
21
+ }
22
+ }
23
+
24
+ @mixin make-gap-d {
25
+ row-gap: $measure * 3;
26
+ @media all and ($viewport-type: $tablets) {
27
+ row-gap: $measure * 3;
28
+ }
29
+ }
@@ -0,0 +1,115 @@
1
+ @use "@scss/framework/foundation/grid/make-columns" as *;
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+
4
+ /* columns*/
5
+ /* offset */
6
+ /* order first & last */
7
+
8
+ // * columns
9
+ $available-columns: (
10
+ 1,
11
+ 2,
12
+ 3,
13
+ 4,
14
+ 5,
15
+ 6,
16
+ 7,
17
+ 8,
18
+ 9,
19
+ 10,
20
+ 11,
21
+ 12,
22
+ );
23
+
24
+ $columns-breakpoints: (
25
+ all: $all,
26
+ desktop: $desktop,
27
+ laptop: $laptop,
28
+ tabletl: $tabletl,
29
+ tabletm: $tabletm,
30
+ tablets: $tablets,
31
+ mobile: $mobile,
32
+ );
33
+ @mixin build-columns ($size,$bkpt,$availablecolumns) {
34
+ @for $i from 1 through $columns {
35
+ @if ($size == 'all') {
36
+ @each $column in $availablecolumns {
37
+ @if $i == $column {
38
+ .f--col-#{$column}{
39
+ @include make-col($column);
40
+ }
41
+ }
42
+ }
43
+ }@else{
44
+ @each $column in $availablecolumns {
45
+ @if $i == $column {
46
+ .f--col-#{$size}-#{$column}{
47
+ @media all and (#{$viewport-type}: #{$bkpt}){
48
+ @include make-col-responsive($column);
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ // Build Columns
57
+ @each $size, $bkpt in $columns-breakpoints {
58
+ @include build-columns($size,$bkpt,$available-columns);
59
+ }
60
+ /* End Responsive Columns */
61
+
62
+ /* Start Responsive Offset */
63
+ $available-offset: (
64
+ 0,
65
+ 1,
66
+ 2,
67
+ 3,
68
+ 4,
69
+ 5,
70
+ 6,
71
+ 7,
72
+ 8,
73
+ 9,
74
+ 10,
75
+ 11
76
+ );
77
+
78
+ $offset-breakpoints: (
79
+ all: $all,
80
+ desktop: $desktop,
81
+ laptop: $laptop,
82
+ tabletl: $tabletl,
83
+ tabletm: $tabletm,
84
+ tablets: $tablets,
85
+ mobile: $mobile,
86
+ );
87
+ @mixin build-offset ($size,$bkpt,$availableoffset) {
88
+ @for $i from 0 through $columns {
89
+ @if ($size == 'all') {
90
+ @each $offset in $availableoffset {
91
+ @if $i == $offset {
92
+ .f--offset-#{$offset}{
93
+ @include make-offset($offset);
94
+ }
95
+ }
96
+ }
97
+ }@else{
98
+ @each $offset in $availableoffset {
99
+ @if $i == $offset {
100
+ .f--offset-#{$size}-#{$offset}{
101
+ @media all and (#{$viewport-type}: #{$bkpt}){
102
+ @include make-offset($offset);
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ @each $size, $bkpt in $offset-breakpoints {
112
+ @include build-offset($size,$bkpt, $available-offset);
113
+ }
114
+ /* End Responsive Offset */
115
+
@@ -0,0 +1,17 @@
1
+ @use "@scss/framework/foundation/grid/make-container" as *;
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+
4
+ .f--container {
5
+ @include make-container();
6
+ // * container fluid
7
+ &--fluid {
8
+ @include make-container-fluid();
9
+ }
10
+
11
+ // * container fluid responsive
12
+ &--tabletm-fluid {
13
+ @media all and ($viewport-type: $tabletm) {
14
+ @include make-container-fluid();
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ @forward './container.scss';
2
+ @forward './row.scss';
3
+ @forward './columns.scss';
@@ -0,0 +1,28 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-col($i) {
4
+ $value: calc(100% / $columns)*$i;
5
+ flex: 0 0 $value;
6
+ max-width: $value;
7
+ min-height: 1px;
8
+ padding-right: $half-gutter-width;
9
+ padding-left: $half-gutter-width;
10
+ transition: width $time-a $ease-standard-a;
11
+ }
12
+ @mixin make-col-responsive($i) {
13
+ $value: calc(100% / $columns)*$i;
14
+ flex: 0 0 $value;
15
+ max-width: $value;
16
+ }
17
+
18
+ /* Start Responsive Offset */
19
+ @mixin make-offset($i) {
20
+ $value: calc(100% / $columns)*$i;
21
+ margin-left: $value;
22
+ transition: $time-a;
23
+ }
24
+
25
+ /* Start Responsive Order */
26
+ @mixin make-order($i) {
27
+ order: $i;
28
+ }
@@ -0,0 +1,33 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-container () {
4
+ margin: 0 auto;
5
+ padding-right: $half-gutter-width;
6
+ padding-left: $half-gutter-width;
7
+ width: $g-container-width;
8
+ max-width: $g-container-max-width;
9
+ @media all and ($viewport-type: $mobile){
10
+ max-width: $g-container-width-mobile;
11
+ }
12
+ }
13
+
14
+ @mixin make-container-fluid () {
15
+ padding: 0;
16
+ width: 100%;
17
+ @if variable-exists(g-container-fluid-max-width) {
18
+ max-width: $g-container-fluid-max-width;
19
+ } @else {
20
+ max-width: 100%;
21
+ }
22
+
23
+ & > [class*="f--row"] {
24
+ margin-right: 0;
25
+ margin-left: 0;
26
+
27
+ & > [class^="f--col"],
28
+ & > [class*="f--col-"] {
29
+ padding-right: 0;
30
+ padding-left: 0;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,20 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ // row
4
+ @mixin make-row () {
5
+ display: flex;
6
+ flex: 0 1 auto;
7
+ flex-wrap: wrap;
8
+ margin-right: $gutter-compensation;
9
+ margin-left: $gutter-compensation;
10
+ }
11
+
12
+ @mixin make-row-remove-gutter () {
13
+ margin-right: 0;
14
+ margin-left: 0;
15
+ & > [class^="f--col"],
16
+ & > [class*="f--col-"] {
17
+ padding-right: 0;
18
+ padding-left: 0;
19
+ }
20
+ }
@@ -0,0 +1,9 @@
1
+ @use "@scss/framework/foundation/grid/make-row" as *;
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+
4
+ .f--row {
5
+ @include make-row;
6
+ &--remove-gutter{
7
+ @include make-row-remove-gutter;
8
+ }
9
+ }
@@ -1,3 +1,8 @@
1
+ @use "sass:map";
2
+ @use "@scss/framework/_var/_vars.scss" as *;
3
+ @use "@scss/framework/foundation/background/background.scss" as *;
4
+ @use "@scss/framework/foundation/color/color.scss" as *;
5
+
1
6
  *,
2
7
  *::before,
3
8
  *::after {
@@ -6,27 +11,28 @@
6
11
  padding: 0;
7
12
  border: none;
8
13
  scroll-behavior: smooth;
9
- font-synthesis: none;
10
14
  }
11
15
 
12
16
  :focus {
13
17
  outline: 0;
14
18
  }
15
19
  *:focus-visible {
16
- outline: 1px solid map-get($color-options, c);
20
+ outline: 1px solid map.get($color-options, a);
17
21
  }
18
22
 
19
- html {
23
+ html,
24
+ body {
20
25
  overscroll-behavior: none;
26
+ }
27
+ html {
21
28
  font-size: 16px;
22
29
  }
23
-
24
30
  body {
25
- overflow: clip;
31
+ @extend .f--background-b;
32
+ @extend .f--color-a;
33
+ font-synthesis: none;
26
34
  }
27
35
 
28
-
29
-
30
36
  b,
31
37
  strong {
32
38
  font-weight: 600;
@@ -95,7 +101,7 @@ button {
95
101
  // remove dotted outline/border in Firefox
96
102
  select:-moz-focusring {
97
103
  color: transparent !important;
98
- text-shadow: 0 0 0 $color-c !important;
104
+ text-shadow: 0 0 0 map.get($color-options, a) !important;
99
105
  }
100
106
 
101
107
  input:-webkit-autofill,
@@ -107,8 +113,9 @@ textarea:-webkit-autofill:focus,
107
113
  select:-webkit-autofill,
108
114
  select:-webkit-autofill:hover,
109
115
  select:-webkit-autofill:focus {
110
- -webkit-text-fill-color: map-get($color-options, b);
111
- color: map-get($color-options, b);
112
- -webkit-box-shadow: 0 0 0px 1000px map-get($color-options, a) inset;
116
+ border: 1px solid map.get($color-options, b);
117
+ -webkit-text-fill-color: map.get($color-options, b);
118
+ color: map.get($color-options, b);
119
+ -webkit-box-shadow: 0 0 0px 1000px #fff inset;
113
120
  transition: background-color 5000s ease-in-out 0s;
114
- }
121
+ }
@@ -1,3 +1,5 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
1
3
  @mixin make-section-a() {
2
4
  padding: $measure*15 0;
3
5
 
@@ -1,3 +1,5 @@
1
+ @use "@scss/framework/foundation/section/make-section" as *;
2
+
1
3
  .f--section-a {
2
4
  @include make-section-a();
3
5
  }
@@ -0,0 +1,29 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ @mixin make-sp-a {
4
+ margin-bottom: $measure * 10;
5
+ @media all and ($viewport-type: $tablets) {
6
+ margin-bottom: $measure * 7;
7
+ }
8
+ }
9
+
10
+ @mixin make-sp-b {
11
+ margin-bottom: $measure * 7;
12
+ @media all and ($viewport-type: $tablets) {
13
+ margin-bottom: $measure * 4;
14
+ }
15
+ }
16
+
17
+ @mixin make-sp-c {
18
+ margin-bottom: $measure * 4;
19
+ @media all and ($viewport-type: $tablets) {
20
+ margin-bottom: $measure * 3;
21
+ }
22
+ }
23
+
24
+ @mixin make-sp-d {
25
+ margin-bottom: $measure * 3;
26
+ @media all and ($viewport-type: $tablets) {
27
+ margin-bottom: $measure * 3;
28
+ }
29
+ }
@@ -0,0 +1,17 @@
1
+ @use "@scss/framework/foundation/spaces/make-spaces" as *;
2
+
3
+ .f--sp-a {
4
+ @include make-sp-a();
5
+ }
6
+
7
+ .f--sp-b {
8
+ @include make-sp-b();
9
+ }
10
+
11
+ .f--sp-c {
12
+ @include make-sp-c();
13
+ }
14
+
15
+ .f--sp-d {
16
+ @include make-sp-d();
17
+ }
@@ -0,0 +1,39 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+
3
+ $align-items-values:(
4
+ baseline: baseline,
5
+ stretch:stretch,
6
+ flex-start:flex-start,
7
+ flex-end:flex-end,
8
+ center:center
9
+ );
10
+
11
+ $align-items-breakpoints: (
12
+ all: $all,
13
+ desktop: $desktop,
14
+ laptop: $laptop,
15
+ tabletl: $tabletl,
16
+ tabletm: $tabletm,
17
+ tablets: $tablets,
18
+ mobile: $mobile,
19
+ );
20
+
21
+ @mixin align-items-utility($align-prop,$breakpoints){
22
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
23
+ @each $name, $property in $align-prop {
24
+ $class-name: if($breakpoint-name == all, "", "-#{$breakpoint-name}");
25
+ .u--align-items#{$class-name}-#{$name}{
26
+ @if($breakpoint-value == 0) {
27
+ align-items: $property;
28
+ } @else {
29
+ @media screen and ($viewport-type: $breakpoint-value) {
30
+ align-items: $property;
31
+ }
32
+ }
33
+
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ @include align-items-utility($align-items-values,$align-items-breakpoints)