@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.
- package/README.md +58 -1
- package/package.json +1 -1
- package/src/index.html +46 -33
- package/src/scss/framework/_var/_vars.scss +95 -0
- package/src/scss/framework/foundation/_foundation.scss +36 -0
- package/src/scss/framework/foundation/background/_background.scss +8 -0
- package/src/scss/framework/foundation/color/_color.scss +8 -0
- package/src/scss/framework/foundation/font/_font.scss +27 -0
- package/src/scss/framework/foundation/font/_make-font.scss +55 -0
- package/src/scss/framework/foundation/gap/{gap.scss → _gap.scss} +2 -4
- package/src/scss/framework/foundation/gap/_make-gap.scss +29 -0
- package/src/scss/framework/foundation/grid/_columns.scss +115 -0
- package/src/scss/framework/foundation/grid/_container.scss +17 -0
- package/src/scss/framework/foundation/grid/_grid.scss +3 -0
- package/src/scss/framework/foundation/grid/_make-columns.scss +28 -0
- package/src/scss/framework/foundation/grid/_make-container.scss +33 -0
- package/src/scss/framework/foundation/grid/_make-row.scss +20 -0
- package/src/scss/framework/foundation/grid/_row.scss +9 -0
- package/src/scss/framework/foundation/reset/{reset.scss → _reset.scss} +19 -12
- package/src/scss/framework/{_mixins/foundation/section/_section.scss → foundation/section/_make-section.scss} +2 -0
- package/src/scss/framework/foundation/section/{section.scss → _section.scss} +2 -0
- package/src/scss/framework/foundation/spaces/_make-spaces.scss +29 -0
- package/src/scss/framework/foundation/spaces/_spaces.scss +17 -0
- package/src/scss/framework/utilities/_align-items.scss +39 -0
- package/src/scss/framework/utilities/_aspect-ratio.scss +55 -0
- package/src/scss/framework/utilities/_display.scss +45 -0
- package/src/scss/framework/utilities/_flex-direction.scss +40 -0
- package/src/scss/framework/utilities/{flex-wrap.scss → _flex-wrap.scss} +2 -0
- package/src/scss/framework/utilities/_font-style.scss +38 -0
- package/src/scss/framework/utilities/_font-weight.scss +45 -0
- package/src/scss/framework/utilities/_height.scss +46 -0
- package/src/scss/framework/utilities/{justify-content.scss → _justify-content.scss} +19 -7
- package/src/scss/framework/utilities/_order.scss +38 -0
- package/src/scss/framework/utilities/{overflow.scss → _overflow.scss} +13 -2
- package/src/scss/framework/utilities/{position.scss → _position.scss} +17 -4
- package/src/scss/framework/utilities/_spacing.scss +67 -0
- package/src/scss/framework/utilities/_text-align.scss +40 -0
- package/src/scss/framework/utilities/_utilities.scss +15 -0
- package/src/scss/framework/utilities/_width.scss +46 -0
- package/src/scss/index.scss +2 -6
- package/src/scss/framework/_mixins/_mixins.scss +0 -6
- package/src/scss/framework/_mixins/foundation/aspect-ratio/_ar.scss +0 -64
- package/src/scss/framework/_mixins/foundation/gap/_gap.scss +0 -28
- package/src/scss/framework/_mixins/foundation/grid/_columns.scss +0 -23
- package/src/scss/framework/_mixins/foundation/grid/_container.scss +0 -17
- package/src/scss/framework/_mixins/foundation/grid/_grid.scss +0 -3
- package/src/scss/framework/_mixins/foundation/grid/_row.scss +0 -8
- package/src/scss/framework/_mixins/foundation/spaces/_spaces.scss +0 -24
- package/src/scss/framework/_vars/_vars.scss +0 -114
- package/src/scss/framework/foundation/aspect-ratio/aspect-ratio.scss +0 -32
- package/src/scss/framework/foundation/background/background.scss +0 -5
- package/src/scss/framework/foundation/color/color.scss +0 -6
- package/src/scss/framework/foundation/foundation.scss +0 -41
- package/src/scss/framework/foundation/grid/columns.scss +0 -90
- package/src/scss/framework/foundation/grid/container.scss +0 -17
- package/src/scss/framework/foundation/grid/grid.scss +0 -3
- package/src/scss/framework/foundation/grid/row.scss +0 -12
- package/src/scss/framework/foundation/spacing/spacing.scss +0 -42
- package/src/scss/framework/utilities/align-items.scss +0 -29
- package/src/scss/framework/utilities/display.scss +0 -34
- package/src/scss/framework/utilities/font-style.scss +0 -52
- package/src/scss/framework/utilities/font-weight.scss +0 -32
- package/src/scss/framework/utilities/text-align.scss +0 -29
- package/src/scss/framework/utilities/utilities.scss +0 -9
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
|
|
3
|
+
$text-align-values: (
|
|
4
|
+
left: left,
|
|
5
|
+
center: center,
|
|
6
|
+
right:right,
|
|
7
|
+
justify:justify,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$text-align-breakpoints: (
|
|
11
|
+
all: $all,
|
|
12
|
+
desktop: $desktop,
|
|
13
|
+
laptop: $laptop,
|
|
14
|
+
tabletl: $tabletl,
|
|
15
|
+
tabletm: $tabletm,
|
|
16
|
+
tablets: $tablets,
|
|
17
|
+
mobile: $mobile,
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
@mixin text-align-utility($text-prop, $breakpoints) {
|
|
21
|
+
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
22
|
+
@if ($breakpoint-value == 0) {
|
|
23
|
+
@each $name, $property in $text-prop {
|
|
24
|
+
.u--text-align-#{$name} {
|
|
25
|
+
text-align: $property;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
} @else {
|
|
29
|
+
@media screen and ($viewport-type: $breakpoint-value) {
|
|
30
|
+
@each $name, $property in $text-prop {
|
|
31
|
+
.u--text-align-#{$breakpoint-name}-#{$name} {
|
|
32
|
+
text-align: $property;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include text-align-utility($text-align-values, $text-align-breakpoints);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@forward './align-items.scss';
|
|
2
|
+
@forward './aspect-ratio.scss';
|
|
3
|
+
@forward './display.scss';
|
|
4
|
+
@forward './flex-direction.scss';
|
|
5
|
+
@forward './flex-wrap.scss';
|
|
6
|
+
@forward './font-style.scss';
|
|
7
|
+
@forward './font-weight.scss';
|
|
8
|
+
@forward './height.scss';
|
|
9
|
+
@forward './justify-content.scss';
|
|
10
|
+
@forward './order.scss';
|
|
11
|
+
@forward './overflow.scss';
|
|
12
|
+
@forward './position.scss';
|
|
13
|
+
@forward './spacing.scss';
|
|
14
|
+
@forward './text-align.scss';
|
|
15
|
+
@forward './width.scss';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
|
|
3
|
+
$width-values: (
|
|
4
|
+
100: 100%,
|
|
5
|
+
75: 75%,
|
|
6
|
+
50: 50%,
|
|
7
|
+
25: 25%,
|
|
8
|
+
auto: auto,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
$width-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 width-utility($width-prop, $breakpoints) {
|
|
22
|
+
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
23
|
+
@if ($breakpoint-value == 0) {
|
|
24
|
+
@each $name, $property in $width-prop {
|
|
25
|
+
.u--width-#{$name} {
|
|
26
|
+
width: $property;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} @else {
|
|
30
|
+
@media screen and ($viewport-type: $breakpoint-value) {
|
|
31
|
+
@each $name, $property in $width-prop {
|
|
32
|
+
.u--width-#{$breakpoint-name}-#{$name} {
|
|
33
|
+
width: $property;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@if variable-exists(width-breakpoints) {
|
|
42
|
+
@include width-utility($width-values, $width-breakpoints);
|
|
43
|
+
}
|
|
44
|
+
@else {
|
|
45
|
+
@include width-utility($width-values, $breakpoints-grid);
|
|
46
|
+
}
|
package/src/scss/index.scss
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
@
|
|
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,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,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,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,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);
|