@terrahq/design-system 0.0.4 → 0.0.6

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 (64) hide show
  1. package/README.md +58 -1
  2. package/package.json +1 -1
  3. package/src/index.html +46 -33
  4. package/src/scss/framework/_var/_vars.scss +95 -0
  5. package/src/scss/framework/foundation/_foundation.scss +36 -0
  6. package/src/scss/framework/foundation/background/_background.scss +8 -0
  7. package/src/scss/framework/foundation/color/_color.scss +8 -0
  8. package/src/scss/framework/foundation/font/_font.scss +27 -0
  9. package/src/scss/framework/foundation/font/_make-font.scss +55 -0
  10. package/src/scss/framework/foundation/gap/{gap.scss → _gap.scss} +2 -4
  11. package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
  12. package/src/scss/framework/foundation/grid/_columns.scss +115 -0
  13. package/src/scss/framework/foundation/grid/_container.scss +17 -0
  14. package/src/scss/framework/foundation/grid/_grid.scss +3 -0
  15. package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
  16. package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
  17. package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
  18. package/src/scss/framework/foundation/grid/_row.scss +9 -0
  19. package/src/scss/framework/foundation/reset/{reset.scss → _reset.scss} +19 -12
  20. package/src/scss/framework/{_mixins/foundation/section/_section.scss → foundation/section/_make-section.scss} +2 -0
  21. package/src/scss/framework/foundation/section/{section.scss → _section.scss} +2 -0
  22. package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
  23. package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
  24. package/src/scss/framework/utilities/_align-items.scss +39 -0
  25. package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
  26. package/src/scss/framework/utilities/_display.scss +45 -0
  27. package/src/scss/framework/utilities/_flex-direction.scss +40 -0
  28. package/src/scss/framework/utilities/{flex-wrap.scss → _flex-wrap.scss} +2 -0
  29. package/src/scss/framework/utilities/_font-style.scss +38 -0
  30. package/src/scss/framework/utilities/_font-weight.scss +45 -0
  31. package/src/scss/framework/utilities/_height.scss +46 -0
  32. package/src/scss/framework/utilities/{justify-content.scss → _justify-content.scss} +19 -7
  33. package/src/scss/framework/utilities/_order.scss +38 -0
  34. package/src/scss/framework/utilities/{overflow.scss → _overflow.scss} +13 -2
  35. package/src/scss/framework/utilities/{position.scss → _position.scss} +17 -4
  36. package/src/scss/framework/utilities/_spacing.scss +67 -0
  37. package/src/scss/framework/utilities/_text-align.scss +40 -0
  38. package/src/scss/framework/utilities/_utilities.scss +15 -0
  39. package/src/scss/framework/utilities/_width.scss +46 -0
  40. package/src/scss/index.scss +2 -6
  41. package/src/scss/framework/_mixins/_mixins.scss +0 -6
  42. package/src/scss/framework/_mixins/foundation/aspect-ratio/_ar.scss +0 -64
  43. package/src/scss/framework/_mixins/foundation/gap/_gap.scss +0 -28
  44. package/src/scss/framework/_mixins/foundation/grid/_columns.scss +0 -23
  45. package/src/scss/framework/_mixins/foundation/grid/_container.scss +0 -17
  46. package/src/scss/framework/_mixins/foundation/grid/_grid.scss +0 -3
  47. package/src/scss/framework/_mixins/foundation/grid/_row.scss +0 -8
  48. package/src/scss/framework/_mixins/foundation/spaces/_spaces.scss +0 -24
  49. package/src/scss/framework/_vars/_vars.scss +0 -114
  50. package/src/scss/framework/foundation/aspect-ratio/aspect-ratio.scss +0 -32
  51. package/src/scss/framework/foundation/background/background.scss +0 -5
  52. package/src/scss/framework/foundation/color/color.scss +0 -6
  53. package/src/scss/framework/foundation/foundation.scss +0 -41
  54. package/src/scss/framework/foundation/grid/columns.scss +0 -90
  55. package/src/scss/framework/foundation/grid/container.scss +0 -17
  56. package/src/scss/framework/foundation/grid/grid.scss +0 -3
  57. package/src/scss/framework/foundation/grid/row.scss +0 -12
  58. package/src/scss/framework/foundation/spacing/spacing.scss +0 -42
  59. package/src/scss/framework/utilities/align-items.scss +0 -29
  60. package/src/scss/framework/utilities/display.scss +0 -34
  61. package/src/scss/framework/utilities/font-style.scss +0 -52
  62. package/src/scss/framework/utilities/font-weight.scss +0 -32
  63. package/src/scss/framework/utilities/text-align.scss +0 -29
  64. package/src/scss/framework/utilities/utilities.scss +0 -9
package/README.md CHANGED
@@ -5,9 +5,66 @@ This package is a small helper for building demos or small projects outside of o
5
5
  You can include the following stylesheet in your project:
6
6
 
7
7
  ```
8
- <link rel="stylesheet" href="hhttps://unpkg.com/@terrahq/design-system@latest/dist/style.css">
8
+ <link rel="stylesheet" href="https://unpkg.com/@terrahq/design-system@latest/dist/style.css">
9
9
 
10
10
  ```
11
11
 
12
+ ### Features
13
+
14
+ ### breakpoints names
15
+ ```
16
+ desktop: 1700px;
17
+ laptop: 1570px;
18
+ tabletl: 1300px;
19
+ tabletm: 1024px;
20
+ tablets: 810px;
21
+ mobile: 580px;
22
+ ```
23
+
24
+ ### colors
25
+
26
+ ```
27
+ /* Core Colors */
28
+ $color-a: #0f0f0f;
29
+ $color-b: #fefefe;
30
+ $color-c: #f7f8f4;
31
+
32
+ /* Accent Color */
33
+ $color-d: #7ce55e;
34
+ $color-e: #2d9f66;
35
+ $color-f: #429ed6;
36
+ $color-g: #fdb335;
37
+ $color-h: #f76e4a;
38
+ $color-i: #f58dd7;
39
+ ```
40
+ <br><br>
41
+
42
+ #### Foundation
43
+ - Grid:
44
+ - .f--container || .f--container--fluid
45
+ - .f--row || .f--row--remove-gutter
46
+ - .f--col-#{$i} 1 to 12 (columns) or f--col-#{$size}-#{$i}
47
+ - .f--offset-#{$i} 0 to 12 (columns) or f--offset-#{$size}-#{$i}
48
+
49
+ - Color: Terra Branded colors .f--color-a/i
50
+ - Background: Terra Brand Colors .f--color-a/e
51
+ - Aspect Ratio (1.7 - 1 - 1.3 - 0.75)
52
+ - Spacing .f--#{$attr-short}-#{$value} or .f--#{$attr-short}-#{$breakpoint-name}-#{$value}
53
+ - Section .f--section-#{letter}
54
+ - Gap .f--gap-#{letter}
55
+
56
+ #### Utilities
57
+
58
+ - Align Items .u--align-items-#{$name} or u--align-items-#{$breakpoint-name}-#{$name}
59
+ - Display .u--display-#{$name} or .u--display-#{$breakpoint-name}-#{$name}
60
+ - Flex-wrap .u--flex-wrap-#{$name} or .u--flex-wrap-#{$breakpoint-name}-#{$name}
61
+ - Font Style .u--font-style-#{$name} or .u--font-style-#{$breakpoint-name}-#{$name}
62
+ - Font Weight .u--font-weight-#{$name} or .u--font-weight-#{$breakpoint-name}-#{$name}
63
+ - Justify Content .u--justify-content-#{$name} or .u--justify-content-#{$breakpoint-name}-#{$name}
64
+ - Overflow .u--overflow-#{$name} or .u--overflow-#{$breakpoint-name}-#{$name}
65
+ - Position .u--position-#{$name} or .u--position-#{$breakpoint-name}-#{$name}
66
+ - Text-align .u--text-align-#{$name} or .u--position-#{$breakpoint-name}-#{$name}
67
+
68
+ <br>
12
69
  Note: This is not intended for use in ongoing projects.
13
70
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@terrahq/design-system",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/style.css"
package/src/index.html CHANGED
@@ -10,41 +10,54 @@
10
10
  </head>
11
11
 
12
12
  <body>
13
- <div class="f--container">
14
- <div class="f--row">
15
- <div class="f--col-12">
16
- <div class="f--font-a f--sp-a f--mt-3 u--font-bold" style="font-size:30px">Design System <span class="f--font-c">By Terra</span></div>
17
- <p class="f--font-d f--mt-3 f--mb-5" style="font-size:18px">A small collection of css helpers that include</p>
18
-
19
-
20
- <p class="f--font-d f--mt-1 f--mb-1">Foundation</p>
21
-
22
- <ul class="f--font-e f--mb-2">
23
- <li>Grid ( container, row, col offset)</li>
24
- <li>Color (terra branded) </li>
25
- <li>Aspect Ratio</li>
26
- <li>Spacing</li>
27
- <li>Section</li>
28
- <li>Gap</li>
29
- </ul>
30
-
31
-
32
- <p class="f--font-d f--mt-3 f--mb-1">Utilities</p>
33
-
34
- <ul class="f--font-e f--mb-2">
35
- <li>Align items</li>
36
- <li>Display </li>
37
- <li>Flex-wrap</li>
38
- <li>Font style</li>
39
- <li>Font Weight</li>
40
- <li>Justify Content</li>
41
- <li>Overflow</li>
42
- <li>Position</li>
43
- <li>Text-align</li>
44
- </ul>
13
+ <section class="f--section-a">
14
+ <div class="f--container">
15
+ <div class="f--row">
16
+ <div class="f--col-12">
17
+ <div class="f--font-a f--sp-c u--font-bold">Design System <span class="f--font-c">By Terra</span></div>
18
+ <p class="f--font-d">A small collection of css helpers that include</p>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </section>
23
+ <section class="f--section-b">
24
+ <div class="f--container">
25
+ <div class="f--row f--gap-b">
26
+ <div class="f--col-6 f--col-tablets-12">
27
+ <p class="f--font-d f--sp-d">Foundation</p>
28
+ <ul class="f--font-e">
29
+ <li>Grid ( container, row, col offset)</li>
30
+ <li>Color (terra branded)</li>
31
+ <li>Background (terra branded)</li>
32
+ <li>Font</li>
33
+ <li>Spaces</li>
34
+ <li>Section</li>
35
+ <li>Gap</li>
36
+ </ul>
37
+ </div>
38
+ <div class="f--col-6 f--col-tablets-12">
39
+ <p class="f--font-d f--sp-d">Utilities</p>
40
+ <ul class="f--font-e" style="columns: 2;">
41
+ <li>Align items</li>
42
+ <li>Aspect ratio</li>
43
+ <li>Display </li>
44
+ <li>Flex-direction</li>
45
+ <li>Flex-wrap</li>
46
+ <li>Font style</li>
47
+ <li>Font Weight</li>
48
+ <li>Height</li>
49
+ <li>Justify Content</li>
50
+ <li>Order</li>
51
+ <li>Overflow</li>
52
+ <li>Position</li>
53
+ <li>Spacing</li>
54
+ <li>Text-align</li>
55
+ <li>Width</li>
56
+ </ul>
57
+ </div>
45
58
  </div>
46
59
  </div>
47
- </div>
60
+ </section>
48
61
 
49
62
 
50
63
  </body>
@@ -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
+ }