@foris/avocado-core 0.0.1-beta.0 → 0.0.2
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/dist/index.d.ts +1 -1
- package/dist/scss/_grid.scss +13 -13
- package/dist/scss/_variables.scss +19 -55
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './index.js'
|
|
1
|
+
export * from './src/index.js'
|
package/dist/scss/_grid.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This grid use CSS Flexbox. To transform this grid in css use https://www.sassmeister.com/ <3
|
|
2
|
-
@use './variables' as
|
|
2
|
+
@use './variables' as variables;
|
|
3
3
|
@use 'sass:math';
|
|
4
4
|
|
|
5
5
|
// Quantity columns
|
|
@@ -33,7 +33,7 @@ $alignItems: (
|
|
|
33
33
|
);
|
|
34
34
|
|
|
35
35
|
// Values for spacing
|
|
36
|
-
$
|
|
36
|
+
$gridSpacing: (
|
|
37
37
|
full: 24px,
|
|
38
38
|
md: 16px,
|
|
39
39
|
);
|
|
@@ -46,21 +46,21 @@ $spacing: (
|
|
|
46
46
|
// Generate responsive spacing
|
|
47
47
|
@mixin responsiveSpacing($colPrefix) {
|
|
48
48
|
@if $colPrefix == map-get($breakpointsPrefix, full) {
|
|
49
|
-
margin-left: -#{map-get($
|
|
50
|
-
width: calc(100% + #{map-get($
|
|
51
|
-
padding: 0 map-get($
|
|
49
|
+
margin-left: -#{map-get($gridSpacing, full)};
|
|
50
|
+
width: calc(100% + #{map-get($gridSpacing, full)});
|
|
51
|
+
padding: 0 map-get($gridSpacing, full);
|
|
52
52
|
} @else if $colPrefix == map-get($breakpointsPrefix, md) {
|
|
53
|
-
margin-left: -#{map-get($
|
|
54
|
-
width: calc(100% + #{map-get($
|
|
55
|
-
padding: 0 map-get($
|
|
53
|
+
margin-left: -#{map-get($gridSpacing, md)};
|
|
54
|
+
width: calc(100% + #{map-get($gridSpacing, md)});
|
|
55
|
+
padding: 0 map-get($gridSpacing, md);
|
|
56
56
|
}
|
|
57
57
|
> [class*='col_'] {
|
|
58
58
|
@if $colPrefix == map-get($breakpointsPrefix, full) {
|
|
59
|
-
padding-top: map-get($
|
|
60
|
-
padding-left: map-get($
|
|
59
|
+
padding-top: map-get($gridSpacing, full);
|
|
60
|
+
padding-left: map-get($gridSpacing, full);
|
|
61
61
|
} @else if $colPrefix == map-get($breakpointsPrefix, md) {
|
|
62
|
-
padding-top: map-get($
|
|
63
|
-
padding-left: map-get($
|
|
62
|
+
padding-top: map-get($gridSpacing, md);
|
|
63
|
+
padding-left: map-get($gridSpacing, md);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -166,7 +166,7 @@ $spacing: (
|
|
|
166
166
|
@if $media == full {
|
|
167
167
|
@include contentFlexboxGrid(map-get($breakpointsPrefix, full));
|
|
168
168
|
} @else if $media == md {
|
|
169
|
-
@media (max-width: map-get(
|
|
169
|
+
@media (max-width: map-get(variables.$breakpoints, md )) {
|
|
170
170
|
@include contentFlexboxGrid(map-get($breakpointsPrefix, md));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -1,60 +1,15 @@
|
|
|
1
|
-
//
|
|
2
|
-
$grid-cols: 12;
|
|
3
|
-
$i: 0;
|
|
4
|
-
//Clases responsive
|
|
5
|
-
$col: '';
|
|
6
|
-
|
|
1
|
+
// Line height
|
|
7
2
|
$lineHeight: 1.15;
|
|
8
3
|
|
|
9
|
-
//
|
|
10
|
-
$font-stack: 'Roboto', sans-serif, Arial;
|
|
11
|
-
$font-icon: 'icomoon';
|
|
12
|
-
|
|
13
|
-
//Old breakpoints - We need to deprecated o rename for Grids (css flexbox and css grid versions)
|
|
14
|
-
$oldBreakpoints: (
|
|
15
|
-
lg: 1199.98px,
|
|
16
|
-
md: 991.98px,
|
|
17
|
-
sm: 767.98px,
|
|
18
|
-
xs: 575.98px,
|
|
19
|
-
us: 361.98px,
|
|
20
|
-
) !default;
|
|
21
|
-
|
|
22
|
-
//Type class
|
|
23
|
-
$mapCols: (
|
|
24
|
-
full: '',
|
|
25
|
-
lg: '_lg',
|
|
26
|
-
md: '_md',
|
|
27
|
-
sm: '_sm',
|
|
28
|
-
xs: '_xs',
|
|
29
|
-
us: '_us',
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
//New breakpoints
|
|
4
|
+
// Breakpoints
|
|
33
5
|
$breakpoints: (
|
|
34
6
|
md: 992px,
|
|
35
7
|
);
|
|
36
8
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//Type justify-content/self and align-item/self/content
|
|
40
|
-
$justifyContent: (
|
|
41
|
-
between: space-between,
|
|
42
|
-
around: space-around,
|
|
43
|
-
center: center,
|
|
44
|
-
left: flex-start,
|
|
45
|
-
right: flex-end,
|
|
46
|
-
);
|
|
9
|
+
// Default font
|
|
10
|
+
$font-stack: 'Roboto', sans-serif;
|
|
47
11
|
|
|
48
|
-
//
|
|
49
|
-
$side-map: (
|
|
50
|
-
top: '_top',
|
|
51
|
-
bottom: '_bottom',
|
|
52
|
-
right: '_right',
|
|
53
|
-
left: '_left',
|
|
54
|
-
center: '_center',
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
//Type fontWeight
|
|
12
|
+
// Values for font-weight
|
|
58
13
|
$fonts: (
|
|
59
14
|
thin: 100,
|
|
60
15
|
light: 300,
|
|
@@ -64,7 +19,7 @@ $fonts: (
|
|
|
64
19
|
black: 900,
|
|
65
20
|
);
|
|
66
21
|
|
|
67
|
-
//
|
|
22
|
+
// Values for font-size
|
|
68
23
|
$sizeText: (
|
|
69
24
|
30: 1.875rem,
|
|
70
25
|
28: 1.75rem,
|
|
@@ -78,6 +33,7 @@ $sizeText: (
|
|
|
78
33
|
8: 0.5rem,
|
|
79
34
|
);
|
|
80
35
|
|
|
36
|
+
// Colors available
|
|
81
37
|
$colors: (
|
|
82
38
|
transparent: transparent,
|
|
83
39
|
darwined-blue-10: #6993c9,
|
|
@@ -121,7 +77,7 @@ $colors: (
|
|
|
121
77
|
massages-positive-confirmation-50: #35ab5f,
|
|
122
78
|
);
|
|
123
79
|
|
|
124
|
-
//
|
|
80
|
+
// Colors palette
|
|
125
81
|
$colorsPalette: (
|
|
126
82
|
palette1: #f69b70,
|
|
127
83
|
palette2: #afcea7,
|
|
@@ -151,6 +107,7 @@ $colorsPalette: (
|
|
|
151
107
|
palette26: #a3ac7c,
|
|
152
108
|
);
|
|
153
109
|
|
|
110
|
+
// Check if we can delete this var
|
|
154
111
|
$colorsPrincipal: (
|
|
155
112
|
darwined-blue-10: #6993c9,
|
|
156
113
|
darwined-blue-30: #507aaf,
|
|
@@ -159,6 +116,7 @@ $colorsPrincipal: (
|
|
|
159
116
|
darwined-blue-90: #1a365b,
|
|
160
117
|
);
|
|
161
118
|
|
|
119
|
+
// Check if we can delete this var
|
|
162
120
|
$colorsConfirm: (
|
|
163
121
|
message-negative-30: #ff5f58,
|
|
164
122
|
message-negative-50: #e33932,
|
|
@@ -170,6 +128,7 @@ $colorsConfirm: (
|
|
|
170
128
|
message-positive-70: #21865d,
|
|
171
129
|
);
|
|
172
130
|
|
|
131
|
+
// Check if we can move this var or change this values
|
|
173
132
|
$donutColors: (
|
|
174
133
|
1: #5ecbdc,
|
|
175
134
|
2: #f69b70,
|
|
@@ -178,9 +137,7 @@ $donutColors: (
|
|
|
178
137
|
5: yellow,
|
|
179
138
|
);
|
|
180
139
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// zIndex
|
|
140
|
+
// Check if we can delete or move this var
|
|
184
141
|
$zIndex: (
|
|
185
142
|
basic: 1,
|
|
186
143
|
element: 2,
|
|
@@ -190,14 +147,17 @@ $zIndex: (
|
|
|
190
147
|
menu: 11,
|
|
191
148
|
);
|
|
192
149
|
|
|
150
|
+
// DT borders
|
|
193
151
|
$borders: (
|
|
194
152
|
md: 1px,
|
|
195
153
|
);
|
|
196
154
|
|
|
155
|
+
// DT radius
|
|
197
156
|
$radius: (
|
|
198
157
|
md: 0.25rem,
|
|
199
158
|
);
|
|
200
159
|
|
|
160
|
+
// DT spacing
|
|
201
161
|
$spacing: (
|
|
202
162
|
xxs: 0.25rem,
|
|
203
163
|
xs: 0.5rem,
|
|
@@ -207,6 +167,7 @@ $spacing: (
|
|
|
207
167
|
xl: 2rem,
|
|
208
168
|
);
|
|
209
169
|
|
|
170
|
+
// DT shadow
|
|
210
171
|
$shadow: (
|
|
211
172
|
sm: 0 0 2px 0 rgba(52, 58, 64, 0.5),
|
|
212
173
|
md: (
|
|
@@ -221,3 +182,6 @@ $shadow: (
|
|
|
221
182
|
0 2px 4px 0 rgba(52, 58, 64, 0.15),
|
|
222
183
|
),
|
|
223
184
|
);
|
|
185
|
+
|
|
186
|
+
// Replace and remove this var
|
|
187
|
+
$boxShadow: 0 0 3px 0 rgba(map-get($colors, layout-grey-90), 0.2);
|