@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
@@ -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);
@@ -1,32 +0,0 @@
1
- $font-weight-values: (
2
- thin: 100,
3
- extralight: 200,
4
- light: 300,
5
- regular: 400,
6
- medium: 500,
7
- semibold: 600,
8
- bold: 700,
9
- extrabold: 800,
10
- );
11
-
12
- @mixin font-weight-utility($font-weight-prop, $breakpoints) {
13
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
14
- @if ($breakpoint-value == 0) {
15
- @each $name, $property in $font-weight-prop {
16
- .u--font-weight-#{$name} {
17
- font-weight: $property;
18
- }
19
- }
20
- } @else {
21
- @media screen and ($viewport-type: $breakpoint-value) {
22
- @each $name, $property in $font-weight-prop {
23
- .u--font-weight-#{$breakpoint-name}-#{$name} {
24
- font-weight: $property;
25
- }
26
- }
27
- }
28
- }
29
- }
30
- }
31
-
32
- @include font-weight-utility($font-weight-values, $breakpoints-grid);
@@ -1,29 +0,0 @@
1
- $text-properties:(
2
- left: left,
3
- center:center,
4
- right:right,
5
- justify:justify
6
- );
7
-
8
- @mixin text-alignment($text-prop,$breakpoints){
9
- @each $breakpoint-name, $breakpoint-value in $breakpoints {
10
- @if($breakpoint-value == 0) {
11
- @each $name, $property in $text-prop {
12
- .u--text-align-#{$name}{
13
- text-align:$property;
14
- }
15
- }
16
- }@else{
17
- @media screen and ($viewport-type: $breakpoint-value) {
18
- @each $name, $property in $text-prop {
19
- .u--text-align-#{$breakpoint-name}-#{$name}{
20
- text-align:$property;
21
- }
22
- }
23
- }
24
- }
25
- }
26
- }
27
-
28
- @include text-alignment($text-properties,$breakpoints-grid)
29
-
@@ -1,9 +0,0 @@
1
- @import "./text-align.scss";
2
- @import "./flex-wrap.scss";
3
- @import "./display.scss";
4
- @import "./align-items.scss";
5
- @import "./justify-content.scss";
6
- @import "./position.scss";
7
- @import "./font-style.scss";
8
- @import "./overflow.scss";
9
- @import "./font-weight.scss";