@terrahq/design-system 0.0.1
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 +123 -0
- package/decs.d.ts +2 -0
- package/dist/design-system.js +4 -0
- package/dist/design-system.umd.cjs +1 -0
- package/dist/style.css +1 -0
- package/package.json +20 -0
- package/public/vite.svg +1 -0
- package/src/index.html +54 -0
- package/src/scss/framework/_mixins/_mixins.scss +6 -0
- package/src/scss/framework/_mixins/foundation/aspect-ratio/_ar.scss +64 -0
- package/src/scss/framework/_mixins/foundation/gap/_gap.scss +28 -0
- package/src/scss/framework/_mixins/foundation/grid/_columns.scss +23 -0
- package/src/scss/framework/_mixins/foundation/grid/_container.scss +17 -0
- package/src/scss/framework/_mixins/foundation/grid/_grid.scss +3 -0
- package/src/scss/framework/_mixins/foundation/grid/_row.scss +8 -0
- package/src/scss/framework/_mixins/foundation/section/_section.scss +47 -0
- package/src/scss/framework/_mixins/foundation/spaces/_spaces.scss +24 -0
- package/src/scss/framework/_vars/_vars.scss +114 -0
- package/src/scss/framework/foundation/aspect-ratio/aspect-ratio.scss +32 -0
- package/src/scss/framework/foundation/background/background.scss +5 -0
- package/src/scss/framework/foundation/color/color.scss +6 -0
- package/src/scss/framework/foundation/foundation.scss +41 -0
- package/src/scss/framework/foundation/gap/gap.scss +19 -0
- package/src/scss/framework/foundation/grid/columns.scss +90 -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/row.scss +12 -0
- package/src/scss/framework/foundation/reset/reset.scss +114 -0
- package/src/scss/framework/foundation/section/section.scss +23 -0
- package/src/scss/framework/foundation/spacing/spacing.scss +42 -0
- package/src/scss/framework/utilities/align-items.scss +29 -0
- package/src/scss/framework/utilities/display.scss +34 -0
- package/src/scss/framework/utilities/flex-wrap.scss +25 -0
- package/src/scss/framework/utilities/font-style.scss +52 -0
- package/src/scss/framework/utilities/font-weight.scss +32 -0
- package/src/scss/framework/utilities/justify-content.scss +30 -0
- package/src/scss/framework/utilities/overflow.scss +28 -0
- package/src/scss/framework/utilities/position.scss +29 -0
- package/src/scss/framework/utilities/text-align.scss +29 -0
- package/src/scss/framework/utilities/utilities.scss +9 -0
- package/src/scss/index.scss +7 -0
- package/src/style.css +99 -0
- package/src/vite-env.d.ts +3 -0
- package/tsconfig.json +24 -0
- package/vite.config.js +37 -0
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 */
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
border: none;
|
|
8
|
+
scroll-behavior: smooth;
|
|
9
|
+
font-synthesis: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:focus {
|
|
13
|
+
outline: 0;
|
|
14
|
+
}
|
|
15
|
+
*:focus-visible {
|
|
16
|
+
outline: 1px solid map-get($color-options, c);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
html {
|
|
20
|
+
overscroll-behavior: none;
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
body {
|
|
25
|
+
overflow: clip;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
b,
|
|
31
|
+
strong {
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
ul,
|
|
36
|
+
ol {
|
|
37
|
+
list-style: none;
|
|
38
|
+
}
|
|
39
|
+
img {
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
}
|
|
42
|
+
fieldset {
|
|
43
|
+
border: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//todos los input menos, range
|
|
47
|
+
// input[type=search]::-webkit-search-decoration,
|
|
48
|
+
// input[type=search]::-webkit-search-results-button,
|
|
49
|
+
// input[type=search]::-webkit-search-results-decoration,
|
|
50
|
+
input[type=search]::-webkit-search-cancel-button, // X que aparece en focus
|
|
51
|
+
input[type=text],
|
|
52
|
+
input[type=tel],
|
|
53
|
+
input[type=number],
|
|
54
|
+
input[type=password],
|
|
55
|
+
input[type=url],
|
|
56
|
+
input[type=email],
|
|
57
|
+
input[type=search],
|
|
58
|
+
input[type=color],
|
|
59
|
+
input[type=date],
|
|
60
|
+
input[type=datetime-local],
|
|
61
|
+
input[type=month],
|
|
62
|
+
input[type=time],
|
|
63
|
+
input[type=week],
|
|
64
|
+
input[type=file],
|
|
65
|
+
input[type=checkbox],
|
|
66
|
+
input[type=radio],
|
|
67
|
+
input[type=submit],
|
|
68
|
+
input[type=button],
|
|
69
|
+
input[type=reset],
|
|
70
|
+
select,
|
|
71
|
+
textarea,
|
|
72
|
+
button {
|
|
73
|
+
appearance: none;
|
|
74
|
+
-webkit-appearance: none;
|
|
75
|
+
outline: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
textarea {
|
|
79
|
+
resize: vertical;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
select,
|
|
83
|
+
input[type="button"],
|
|
84
|
+
input[type="reset"],
|
|
85
|
+
input[type="submit"] {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
// background: transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
button {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
background: transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// remove dotted outline/border in Firefox
|
|
96
|
+
select:-moz-focusring {
|
|
97
|
+
color: transparent !important;
|
|
98
|
+
text-shadow: 0 0 0 $color-c !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
input:-webkit-autofill,
|
|
102
|
+
input:-webkit-autofill:hover,
|
|
103
|
+
input:-webkit-autofill:focus,
|
|
104
|
+
textarea:-webkit-autofill,
|
|
105
|
+
textarea:-webkit-autofill:hover,
|
|
106
|
+
textarea:-webkit-autofill:focus,
|
|
107
|
+
select:-webkit-autofill,
|
|
108
|
+
select:-webkit-autofill:hover,
|
|
109
|
+
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;
|
|
113
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
114
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.f--section-a {
|
|
2
|
+
@include make-section-a();
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.f--section-b {
|
|
6
|
+
@include make-section-b();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.f--section-c {
|
|
10
|
+
@include make-section-c();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.f--section-d {
|
|
14
|
+
@include make-section-d();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.f--section-e {
|
|
18
|
+
@include make-section-e();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.f--section-f {
|
|
22
|
+
@include make-section-f();
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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)
|
|
@@ -0,0 +1,34 @@
|
|
|
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)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$wrap-properties:(
|
|
2
|
+
wrap: wrap,
|
|
3
|
+
nowrap:nowrap,
|
|
4
|
+
);
|
|
5
|
+
@mixin wrap-alignment($wrap-prop,$breakpoints){
|
|
6
|
+
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
7
|
+
@if($breakpoint-value == 0) {
|
|
8
|
+
@each $name, $property in $wrap-prop {
|
|
9
|
+
.u--flex-wrap-#{$name}{
|
|
10
|
+
flex-wrap:$property;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}@else{
|
|
14
|
+
@media screen and ($viewport-type: $breakpoint-value) {
|
|
15
|
+
@each $name, $property in $wrap-prop {
|
|
16
|
+
.u--flex-wrap-#{$breakpoint-name}-#{$name}{
|
|
17
|
+
flex-wrap:$property;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include wrap-alignment($wrap-properties,$breakpoints-grid)
|
|
@@ -0,0 +1,52 @@
|
|
|
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);
|