@terrahq/design-system 0.0.5 → 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 (63) hide show
  1. package/package.json +1 -1
  2. package/src/index.html +46 -33
  3. package/src/scss/framework/_var/_vars.scss +95 -0
  4. package/src/scss/framework/foundation/_foundation.scss +36 -0
  5. package/src/scss/framework/foundation/background/_background.scss +8 -0
  6. package/src/scss/framework/foundation/color/_color.scss +8 -0
  7. package/src/scss/framework/foundation/font/_font.scss +27 -0
  8. package/src/scss/framework/foundation/font/_make-font.scss +55 -0
  9. package/src/scss/framework/foundation/gap/{gap.scss → _gap.scss} +2 -4
  10. package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
  11. package/src/scss/framework/foundation/grid/_columns.scss +115 -0
  12. package/src/scss/framework/foundation/grid/_container.scss +17 -0
  13. package/src/scss/framework/foundation/grid/_grid.scss +3 -0
  14. package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
  15. package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
  16. package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
  17. package/src/scss/framework/foundation/grid/_row.scss +9 -0
  18. package/src/scss/framework/foundation/reset/{reset.scss → _reset.scss} +19 -12
  19. package/src/scss/framework/{_mixins/foundation/section/_section.scss → foundation/section/_make-section.scss} +2 -0
  20. package/src/scss/framework/foundation/section/{section.scss → _section.scss} +2 -0
  21. package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
  22. package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
  23. package/src/scss/framework/utilities/_align-items.scss +39 -0
  24. package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
  25. package/src/scss/framework/utilities/_display.scss +45 -0
  26. package/src/scss/framework/utilities/_flex-direction.scss +40 -0
  27. package/src/scss/framework/utilities/{flex-wrap.scss → _flex-wrap.scss} +2 -0
  28. package/src/scss/framework/utilities/_font-style.scss +38 -0
  29. package/src/scss/framework/utilities/_font-weight.scss +45 -0
  30. package/src/scss/framework/utilities/_height.scss +46 -0
  31. package/src/scss/framework/utilities/{justify-content.scss → _justify-content.scss} +19 -7
  32. package/src/scss/framework/utilities/_order.scss +38 -0
  33. package/src/scss/framework/utilities/{overflow.scss → _overflow.scss} +13 -2
  34. package/src/scss/framework/utilities/{position.scss → _position.scss} +17 -4
  35. package/src/scss/framework/utilities/_spacing.scss +67 -0
  36. package/src/scss/framework/utilities/_text-align.scss +40 -0
  37. package/src/scss/framework/utilities/_utilities.scss +15 -0
  38. package/src/scss/framework/utilities/_width.scss +46 -0
  39. package/src/scss/index.scss +2 -6
  40. package/src/scss/framework/_mixins/_mixins.scss +0 -6
  41. package/src/scss/framework/_mixins/foundation/aspect-ratio/_ar.scss +0 -64
  42. package/src/scss/framework/_mixins/foundation/gap/_gap.scss +0 -28
  43. package/src/scss/framework/_mixins/foundation/grid/_columns.scss +0 -23
  44. package/src/scss/framework/_mixins/foundation/grid/_container.scss +0 -17
  45. package/src/scss/framework/_mixins/foundation/grid/_grid.scss +0 -3
  46. package/src/scss/framework/_mixins/foundation/grid/_row.scss +0 -8
  47. package/src/scss/framework/_mixins/foundation/spaces/_spaces.scss +0 -24
  48. package/src/scss/framework/_vars/_vars.scss +0 -114
  49. package/src/scss/framework/foundation/aspect-ratio/aspect-ratio.scss +0 -32
  50. package/src/scss/framework/foundation/background/background.scss +0 -5
  51. package/src/scss/framework/foundation/color/color.scss +0 -6
  52. package/src/scss/framework/foundation/foundation.scss +0 -41
  53. package/src/scss/framework/foundation/grid/columns.scss +0 -90
  54. package/src/scss/framework/foundation/grid/container.scss +0 -17
  55. package/src/scss/framework/foundation/grid/grid.scss +0 -3
  56. package/src/scss/framework/foundation/grid/row.scss +0 -12
  57. package/src/scss/framework/foundation/spacing/spacing.scss +0 -42
  58. package/src/scss/framework/utilities/align-items.scss +0 -29
  59. package/src/scss/framework/utilities/display.scss +0 -34
  60. package/src/scss/framework/utilities/font-style.scss +0 -52
  61. package/src/scss/framework/utilities/font-weight.scss +0 -32
  62. package/src/scss/framework/utilities/text-align.scss +0 -29
  63. package/src/scss/framework/utilities/utilities.scss +0 -9
@@ -1,7 +1,3 @@
1
- @import "./src/scss/framework/_vars/_vars.scss";
2
- @import "./src/scss/framework/_mixins/_mixins.scss";
3
- @import "./src/scss/framework/foundation/foundation.scss";
4
-
5
- @import "./src/scss/framework/utilities/utilities.scss";
6
-
1
+ @use "./src/scss/framework/foundation/foundation.scss";
7
2
 
3
+ @use "./src/scss/framework/utilities/utilities.scss";
@@ -1,6 +0,0 @@
1
- /* foundation mixins*/
2
- @import './foundation/grid/grid';
3
- @import './foundation/aspect-ratio/ar';
4
- @import './foundation/section/section';
5
- @import './foundation/spaces/spaces';
6
- @import './foundation/gap/gap';
@@ -1,64 +0,0 @@
1
- //IE img with parents width and auto height, if the img is put with correct AR it will see correctly (https://imgur.com/zkNrIOt)
2
- @mixin make-ar($size: default) {
3
- display: block;
4
- width: 100%;
5
- height: auto;
6
- object-fit: cover;
7
- @if $size == "default" {
8
- } @else {
9
- aspect-ratio: $size;
10
- }
11
- }
12
-
13
- @mixin make-ar-a-item{
14
- position: absolute;
15
- top: 0;
16
- left: 0;
17
- width: 100%;
18
- height: 100%;
19
- border-radius: $border-radius-a;
20
- // i explorer
21
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
22
- position: relative;
23
- top: auto;
24
- left: auto;
25
- height: auto;
26
- }
27
- }
28
- @mixin make-ar-a-item__img{
29
- @include make-ar-a-item();
30
- object-fit: cover;
31
- object-position: center;
32
- }
33
-
34
- //IE img with real size, you can see only a few part of the image (https://imgur.com/q5YsuBU)
35
- @mixin make-ar-b($size) {
36
- position: relative;
37
- width: 100%;
38
- padding-top:#{$size};
39
- border-radius: $border-radius-a;
40
- overflow: hidden;
41
- }
42
- @mixin make-ar-b-item{
43
- position: absolute;
44
- top: 0;
45
- left: 0;
46
- width: 100%;
47
- height: 100%;
48
- // i explorer
49
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
50
- top: 50%;
51
- left: 50%;
52
- width: auto;
53
- height: auto;
54
- min-width: 100%;
55
- min-height: 100%;
56
- max-width: inherit;
57
- transform: translate(-50%, -50%);
58
- }
59
- }
60
- @mixin make-ar-b-item__img{
61
- @include make-ar-b-item();
62
- object-fit: cover;
63
- object-position: center;
64
- }
@@ -1,28 +0,0 @@
1
- @mixin make-gap-a {
2
- row-gap: $measure*10;
3
- @media all and ($viewport-type: $tablets) {
4
- row-gap: $measure*7;
5
- }
6
- }
7
-
8
- @mixin make-gap-b {
9
- row-gap: $measure*7;
10
- @media all and ($viewport-type: $tablets) {
11
- row-gap: $measure*4;
12
- }
13
- }
14
-
15
- @mixin make-gap-c {
16
- row-gap: $measure*4;
17
- @media all and ($viewport-type: $tablets) {
18
- row-gap: $measure*3;
19
- }
20
- }
21
-
22
- @mixin make-gap-d {
23
- row-gap: $measure*3;
24
- }
25
-
26
- @mixin make-gap-e {
27
- row-gap: $measure*7;
28
- }
@@ -1,23 +0,0 @@
1
- /* build columns */
2
- @mixin make-col($i) {
3
- $value: calc((100% / $columns) * $i);
4
- flex: 0 0 $value;
5
- max-width: $value;
6
- position: relative;
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
-
13
- /* Start Responsive Offset */
14
- @mixin make-offset($i) {
15
- $value: calc((100% / $columns) * $i);
16
- margin-left: $value;
17
- transition: margin $time-a $ease-standard-a;
18
- }
19
-
20
- /* Start Responsive Order */
21
- @mixin make-order($i) {
22
- order: $i;
23
- }
@@ -1,17 +0,0 @@
1
- // container
2
- @mixin make-container () {
3
- margin: 0 auto;
4
- padding-right: 16px;
5
- padding-left: 16px;
6
- width: 100%;
7
- max-width: $g-container-width;
8
- }
9
-
10
- @mixin make-container-fluid () {
11
- padding: 0;
12
- width: 1900px;
13
- }
14
-
15
- @mixin make-container-fluid-responsive () {
16
- max-width: 1900px;
17
- }
@@ -1,3 +0,0 @@
1
- @import './columns.scss';
2
- @import './row.scss';
3
- @import './container.scss';
@@ -1,8 +0,0 @@
1
- // row
2
- @mixin make-row () {
3
- display: flex;
4
- flex: 0 1 auto;
5
- flex-wrap: wrap;
6
- margin-right: $gutter-compensation;
7
- margin-left: $gutter-compensation;
8
- }
@@ -1,24 +0,0 @@
1
- @mixin make-sp-a {
2
- margin-bottom: $measure*10;
3
- @media all and ($viewport-type: $tablets) {
4
- margin-bottom: $measure*7;
5
- }
6
- }
7
-
8
- @mixin make-sp-b {
9
- margin-bottom: $measure*7;
10
- @media all and ($viewport-type: $tablets) {
11
- margin-bottom: $measure*4;
12
- }
13
- }
14
-
15
- @mixin make-sp-c {
16
- margin-bottom: $measure*4;
17
- @media all and ($viewport-type: $tablets) {
18
- margin-bottom: $measure*3;
19
- }
20
- }
21
-
22
- @mixin make-sp-d {
23
- margin-bottom: $measure*3;
24
- }
@@ -1,114 +0,0 @@
1
- /*
2
- Foundations
3
- */
4
-
5
- // /* Core Colors */
6
- $color-a: #0f0f0f;
7
- $color-b: #fefefe;
8
- $color-c: #f7f8f4;
9
-
10
- /* Accent Color */
11
- $color-d: #7ce55e;
12
- $color-e: #2d9f66;
13
- $color-f: #429ed6;
14
- $color-g: #fdb335;
15
- $color-h: #f76e4a;
16
- $color-i: #f58dd7;
17
-
18
- $color-options: (
19
- a: $color-a,
20
- b: $color-b,
21
- c: $color-c,
22
- d: $color-d,
23
- e: $color-e,
24
- f: $color-f,
25
- g: $color-g,
26
- h: $color-h,
27
- i: $color-i,
28
- );
29
-
30
- $colorbg-options: (
31
- a: $color-a,
32
- b: $color-b,
33
- c: $color-c,
34
- d: $color-d,
35
- e: $color-e,
36
- );
37
-
38
-
39
-
40
- $line-height: 1.5;
41
- /* Grid */
42
- //Container
43
- $g-container-width: 1300px;
44
-
45
- $all: 0;
46
- $desktop: 1700px;
47
- $laptop: 1570px;
48
- $tabletl: 1300px;
49
- $tabletm: 1024px;
50
- $tablets: 810px;
51
- $mobile: 580px;
52
- $viewport-type: max-width;
53
- $viewport-layouts: (
54
- "all": (
55
- $viewport-type: $all,
56
- ),
57
- "desktop": (
58
- $viewport-type: $desktop,
59
- ),
60
- "laptop": (
61
- $viewport-type: $laptop,
62
- ),
63
- "tabletl": (
64
- $viewport-type: $tabletl,
65
- ),
66
- "tabletm": (
67
- $viewport-type: $tabletm,
68
- ),
69
- "tablets": (
70
- $viewport-type: $tablets,
71
- ),
72
- "mobile": (
73
- $viewport-type: $mobile,
74
- ),
75
- );
76
- $columns: 12;
77
- $gutter-width: 32px;
78
- $half-gutter-width: $gutter-width * 0.5;
79
- $gutter-compensation: -1 * $half-gutter-width;
80
-
81
- // Use for almost all Uitlities:
82
- // Display, Aspect Ratio, Flex, Float, Justify, Spacing, Text-align
83
- $breakpoints-grid: (
84
- all: $all,
85
- desktop: $desktop,
86
- laptop: $laptop,
87
- tabletl: $tabletl,
88
- tabletm: $tabletm,
89
- tablets: $tablets,
90
- mobile: $mobile,
91
- ) !default;
92
-
93
- /*
94
- End Foundations
95
- */
96
-
97
- // Measure
98
- $measure: 0.5rem; /* 0.5rem = 8px */
99
-
100
- // Time
101
- $time-a: 0.1s; // Micro-interactions such as button and toggle
102
- $time-b: 0.3s; // Expansion, system communication, toast
103
- $time-c: 0.6s; // Background dimming
104
-
105
-
106
-
107
- // Ease
108
- $ease-standard-a: cubic-bezier(0.2, 0, 0.38, 0.9); //productive
109
- $ease-standard-b: cubic-bezier(0, 0, 0.3, 1); //expresive
110
- $ease-entrance-a: cubic-bezier(0, 0, 0.38, 0.9); //productive
111
- $ease-entrance-b: cubic-bezier(0.4, 0.14, 0.3, 1); //expresive
112
- $ease-exit-a: cubic-bezier(0.2, 0, 1, 0.9); //productive
113
- $ease-exit-b: cubic-bezier(0.4, 0.14, 1, 1); //expresive
114
-
@@ -1,32 +0,0 @@
1
- $media-sizes: (
2
- a: 1.77777777,
3
- d: 1,
4
- b: 1.33333333, //* 4/3 c: 1.5, //* 3/2 d: 1,
5
- e: 0.75, //* 3/4 f: 0.33333333, //* 1/3
6
- );
7
-
8
- @mixin media-sizes($display-size, $breakpoints) {
9
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
10
- @if ($breakpoint-value == 0) {
11
- .f--ar {
12
- @include make-ar();
13
- }
14
- @each $name, $size in $display-size {
15
- .f--ar-#{$name} {
16
- @include make-ar($size);
17
- }
18
- }
19
- } @else {
20
- @media screen and ($viewport-type: $breakpoint-value) {
21
- @each $name, $size in $display-size {
22
- .f--ar-#{$breakpoint-name}-#{$name} {
23
- @include make-ar($size);
24
- }
25
- }
26
- }
27
- }
28
- }
29
- }
30
- @include media-sizes($media-sizes, $breakpoints-grid);
31
-
32
-
@@ -1,5 +0,0 @@
1
- @each $color-name, $color in $colorbg-options {
2
- .f--background-#{$color-name}{
3
- background-color:$color;
4
- }
5
- }
@@ -1,6 +0,0 @@
1
- /*Basic Loop Colors */
2
- @each $color-name, $color in $color-options {
3
- .f--color-#{$color-name}{
4
- color:$color;
5
- }
6
- }
@@ -1,41 +0,0 @@
1
- //Foundations
2
-
3
- // Reset
4
- @import './reset/reset.scss';
5
-
6
- // Grid System
7
- // f--container
8
- // f--row
9
- // f--col-*
10
- // f--offset-*
11
- @import './grid/grid.scss';
12
-
13
-
14
- // Color
15
- // f--color-*
16
- @import './color/color.scss';
17
-
18
-
19
- // Aspect Ratio
20
- // f--ar-*
21
- @import './aspect-ratio/aspect-ratio.scss';
22
-
23
- // Spacing ( pixel based )
24
- // f--*-*
25
- @import './spacing/spacing.scss';
26
-
27
- // b ( pixel based )
28
- // f--*-*
29
- @import './background/background.scss';
30
-
31
-
32
- // Section
33
- // f--section-*
34
- @import './section/section.scss';
35
-
36
- // Gap
37
- // f--gap-*
38
- @import './gap/gap.scss';
39
-
40
- //End
41
-
@@ -1,90 +0,0 @@
1
- /* columns*/
2
- /* offset */
3
- /* order first & last */
4
-
5
- /*Start loop columns*/
6
- .f--col{position: relative;
7
- min-height: 1px;
8
- padding-right: $half-gutter-width;
9
- padding-left: $half-gutter-width;
10
- transition: $time-a;
11
- flex: 1 0 0;}
12
- @mixin build-columns ($size,$bkpt) {
13
- @for $i from 1 through $columns {
14
- @if ($size == 'all') {
15
- .f--col-#{$i}{
16
- @include make-col($i);
17
- }
18
- }@else{
19
- .f--col-#{$size}-#{$i}{
20
- @media all and (#{$viewport-type}: #{$bkpt}){
21
- $value: calc((100% / $columns)*$i);
22
- flex: 0 0 $value;
23
- max-width: $value;
24
- transition: $time-a;
25
- }
26
- }
27
- }
28
- }
29
- }
30
- // Build Columns
31
- @each $size, $bkpt in $breakpoints-grid {
32
- @include build-columns($size,$bkpt);
33
- }
34
- /* End Responsive Columns */
35
-
36
- /* Start Responsive Offset */
37
-
38
- @mixin build-offset ($size,$bkpt) {
39
- @for $i from 0 through $columns {
40
- @if ($size == 'all') {
41
- .f--offset-#{$i}{
42
- @include make-offset($i);
43
- }
44
- }@else{
45
- .f--offset-#{$size}-#{$i}{
46
- @media all and (#{$viewport-type}: #{$bkpt}){
47
- @include make-offset($i);
48
- }
49
- }
50
- }
51
- }
52
- }
53
-
54
- @each $size, $bkpt in $breakpoints-grid {
55
- @include build-offset($size,$bkpt);
56
- }
57
- /* End Responsive Offset */
58
-
59
- /* Start Responsive Order */
60
- @mixin build-order ($size,$bkpt) {
61
- @for $i from 0 through $columns {
62
- @if ($size == 'all') {
63
- .f--order-#{$i}{
64
- @include make-order($i);
65
- }
66
- }@else{
67
- .f--order-#{$size}-#{$i}{
68
- @media all and (#{$viewport-type}: #{$bkpt}){
69
- @include make-order($i);
70
- }
71
- }
72
- }
73
- }
74
- @if ($size == 'all') {
75
- .f--order-first{
76
- order: -1;
77
- }
78
- }@else{
79
- .f--order-#{$size}-first{
80
- @media all and (#{$viewport-type}: #{$bkpt}){
81
- order: -1;
82
- }
83
- }
84
- }
85
- }
86
-
87
- @each $size, $bkpt in $breakpoints-grid {
88
- @include build-order($size,$bkpt);
89
- }
90
- /* End Responsive Order */
@@ -1,17 +0,0 @@
1
- // container
2
- // container fluid
3
- .f--container {
4
- @include make-container();
5
- @media all and ($viewport-type: $laptop){
6
- max-width: 90%;
7
- }
8
- @media all and ($viewport-type: $mobile){
9
- max-width: 95%;
10
- }
11
- &--fluid {
12
- @include make-container-fluid();
13
- @media all and ($viewport-type: 2000px){
14
- @include make-container-fluid-responsive();
15
- }
16
- }
17
- }
@@ -1,3 +0,0 @@
1
- @import './container.scss';
2
- @import './row.scss';
3
- @import './columns.scss';
@@ -1,12 +0,0 @@
1
- .f--row {
2
- @include make-row;
3
- &--remove-gutter{
4
- margin-right: 0;
5
- margin-left: 0;
6
- & > [class^="f--col"],
7
- & > [class*="f--col-"] {
8
- padding-right: 0;
9
- padding-left: 0;
10
- }
11
- }
12
- }
@@ -1,42 +0,0 @@
1
- $space-values: (0, 1, 2, 3 ,4, 5, 7, 10, 15) !default;
2
-
3
- $space-prefixes: (
4
- p: padding,
5
- pt: padding-top,
6
- pr : padding-right,
7
- pb: padding-bottom,
8
- pl: padding-left,
9
- m : margin,
10
- mt: margin-top,
11
- mr: margin-right,
12
- mb: margin-bottom,
13
- ml: margin-left,
14
- ) !default;
15
-
16
- @mixin make-spaces($values, $prefixes, $breakpoints) {
17
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
18
- // if xs value = 0, set it global without media queries
19
- @if ($breakpoint-value == 0) {
20
- @each $attr-short, $attr-long in $prefixes {
21
- @each $value in $values {
22
- .f--#{$attr-short}-#{$value} {
23
- #{$attr-long}: calc(#{$measure}*#{$value});
24
- }
25
- }
26
- }
27
- }
28
- // breakpoint values that not equal to 0
29
- @else {
30
- @media screen and ($viewport-type: $breakpoint-value) {
31
- @each $attr-short, $attr-long in $prefixes {
32
- @each $value in $values {
33
- .f--#{$attr-short}-#{$breakpoint-name}-#{$value} {
34
- #{$attr-long}: calc(#{$measure}*#{$value});
35
- }
36
- }
37
- }
38
- }
39
- }
40
- }
41
- }
42
- @include make-spaces($space-values, $space-prefixes, $breakpoints-grid);
@@ -1,29 +0,0 @@
1
- $align-properties:(
2
- // baseline: baseline,
3
- // stretch:stretch,
4
- flex-start:flex-start,
5
- flex-end:flex-end,
6
- center:center
7
- );
8
-
9
- @mixin flex-alignitems($align-prop,$breakpoints){
10
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
11
- @if($breakpoint-value == 0) {
12
- @each $name, $property in $align-prop {
13
- .u--align-items-#{$name}{
14
- align-items:$property;
15
- }
16
- }
17
- }@else{
18
- @media screen and ($viewport-type: $breakpoint-value) {
19
- @each $name, $property in $align-prop {
20
- .u--align-items-#{$breakpoint-name}-#{$name}{
21
- align-items:$property;
22
- }
23
- }
24
- }
25
- }
26
- }
27
- }
28
-
29
- @include flex-alignitems($align-properties,$breakpoints-grid)
@@ -1,34 +0,0 @@
1
- $display-properties:(
2
- block: block,
3
- hidden:hidden,
4
- none:none,
5
- inline-block:inline-block,
6
- inline:inline,
7
- // table:table,
8
- // table-cell:table-cell,
9
- // table-row:table-row,
10
- flex:flex,
11
- grid:grid,
12
- inline-flex:inline-flex
13
- );
14
- @mixin display-alignment($display-prop,$breakpoints){
15
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
16
- @if($breakpoint-value == 0) {
17
- @each $name, $property in $display-prop {
18
- .u--display-#{$name}{
19
- display:$property;
20
- }
21
- }
22
- }@else{
23
- @media screen and ($viewport-type: $breakpoint-value) {
24
- @each $name, $property in $display-prop {
25
- .u--display-#{$breakpoint-name}-#{$name}{
26
- display:$property;
27
- }
28
- }
29
- }
30
- }
31
- }
32
- }
33
-
34
- @include display-alignment($display-properties,$breakpoints-grid)
@@ -1,52 +0,0 @@
1
- $font-styles: (
2
- italic: italic,
3
- );
4
-
5
- @mixin font-style($f-style, $breakpoints) {
6
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
7
- @if ($breakpoint-value == 0) {
8
- @each $name, $property in $f-style {
9
- .u--font-style-#{$name} {
10
- font-style: $property;
11
- }
12
- }
13
- } @else {
14
- @media screen and ($viewport-type: $breakpoint-value) {
15
- @each $name, $property in $f-style {
16
- .u--font-style-#{$breakpoint-name}-#{$name} {
17
- font-style: $property;
18
- }
19
- }
20
- }
21
- }
22
- }
23
- }
24
-
25
- @include font-style($font-styles, $breakpoints-grid);
26
-
27
-
28
- $font-transform: (
29
- uppercase: uppercase,
30
- );
31
-
32
- @mixin font-transform($f-transform, $breakpoints) {
33
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
34
- @if ($breakpoint-value == 0) {
35
- @each $name, $property in $f-transform {
36
- .u--font-transform-#{$name} {
37
- text-transform: $property;
38
- }
39
- }
40
- } @else {
41
- @media screen and ($viewport-type: $breakpoint-value) {
42
- @each $name, $property in $f-transform {
43
- .u--font-transform-#{$breakpoint-name}-#{$name} {
44
- text-transform: $property;
45
- }
46
- }
47
- }
48
- }
49
- }
50
- }
51
-
52
- @include font-transform($font-transform, $breakpoints-grid);