@nuvoui/core 1.1.8 → 1.2.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 +90 -35
- package/dist/nuvoui.css +28531 -0
- package/dist/nuvoui.css.map +1 -0
- package/dist/nuvoui.min.css +2 -1
- package/dist/nuvoui.min.css.map +1 -0
- package/package.json +48 -27
- package/src/styles/abstracts/_config.scss +157 -0
- package/src/styles/abstracts/_functions.scss +81 -0
- package/src/styles/abstracts/_index.scss +2 -0
- package/src/styles/base/_base.scss +2 -2
- package/src/styles/base/_index.scss +2 -0
- package/src/styles/base/_reset.scss +8 -6
- package/src/styles/index.scss +11 -30
- package/src/styles/layouts/_container.scss +7 -23
- package/src/styles/layouts/_flex.scss +116 -113
- package/src/styles/layouts/_grid.scss +70 -100
- package/src/styles/layouts/_index.scss +3 -0
- package/src/styles/mixins-map.scss +1 -1515
- package/src/styles/themes/_index.scss +1 -0
- package/src/styles/themes/_theme.scss +175 -55
- package/src/styles/utilities/_alignment.scss +9 -7
- package/src/styles/utilities/_animations.scss +65 -61
- package/src/styles/utilities/_borders.scss +283 -18
- package/src/styles/utilities/_colors.scss +68 -49
- package/src/styles/utilities/_container-queries.scss +19 -18
- package/src/styles/utilities/_display.scss +59 -57
- package/src/styles/utilities/_helpers.scss +110 -108
- package/src/styles/utilities/_index.scss +19 -0
- package/src/styles/utilities/_media-queries.scss +68 -15
- package/src/styles/utilities/_opacity.scss +51 -27
- package/src/styles/utilities/_position.scss +38 -37
- package/src/styles/utilities/_shadows.scss +195 -137
- package/src/styles/utilities/_sizing.scss +74 -71
- package/src/styles/utilities/_spacing.scss +117 -99
- package/src/styles/utilities/_tooltips.scss +153 -105
- package/src/styles/utilities/_transitions.scss +77 -73
- package/src/styles/utilities/_typography.scss +23 -26
- package/src/styles/utilities/_functions.scss +0 -84
- package/src/styles/utilities/_variables.scss +0 -126
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Section: Layout
|
|
2
2
|
// Module: Grid | Grid Inline
|
|
3
|
+
// Note: Gap utilities are defined in _spacing.scss
|
|
3
4
|
|
|
4
5
|
@use 'sass:math';
|
|
5
|
-
@use '../
|
|
6
|
-
@use '../
|
|
6
|
+
@use '../abstracts/functions' as FN;
|
|
7
|
+
@use '../abstracts' as VAR;
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @description Establishes a grid container.
|
|
@@ -50,6 +51,14 @@
|
|
|
50
51
|
|
|
51
52
|
// Grid Alignment Mixins
|
|
52
53
|
|
|
54
|
+
// Alignment Classes
|
|
55
|
+
$alignments: (
|
|
56
|
+
'start': start,
|
|
57
|
+
'end': end,
|
|
58
|
+
'center': center,
|
|
59
|
+
'stretch': stretch
|
|
60
|
+
);
|
|
61
|
+
|
|
53
62
|
/**
|
|
54
63
|
* @description justify-items container.
|
|
55
64
|
* @param {string} $value - The value for the justify-items property.
|
|
@@ -87,120 +96,81 @@
|
|
|
87
96
|
grid-row: $row;
|
|
88
97
|
}
|
|
89
98
|
|
|
90
|
-
@
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
// Classes
|
|
95
|
-
.grid { @include grid; }
|
|
96
|
-
.grid.inline { @include grid-inline; }
|
|
99
|
+
@if VAR.$generate-utility-classes {
|
|
100
|
+
// Classes
|
|
101
|
+
.grid { @include grid; }
|
|
102
|
+
.grid.inline { @include grid-inline; }
|
|
97
103
|
|
|
98
104
|
|
|
99
|
-
@for $i from 1 through VAR.$column-count {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Grid Template Classes
|
|
105
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
106
|
-
// Responsive grid columns
|
|
107
|
-
@media (min-width: #{$width}) {
|
|
108
|
-
@for $i from 1 through VAR.$column-count {
|
|
109
|
-
.grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
|
|
110
|
-
.grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
|
|
111
|
-
}
|
|
105
|
+
@for $i from 1 through VAR.$column-count {
|
|
106
|
+
.grid.cols-#{$i} { @include cols($i); }
|
|
107
|
+
.grid.rows-#{$i} { @include rows($i); }
|
|
112
108
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
109
|
|
|
116
|
-
//
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
.
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.row-gap-4 { @include row-gap(1rem); }
|
|
126
|
-
|
|
127
|
-
// Responsive grid gaps
|
|
128
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
129
|
-
@media (min-width: #{$width}) {
|
|
130
|
-
.grid-gap-1\@#{$breakpoint} { @include grid-gap(0.25rem); }
|
|
131
|
-
.grid-gap-2\@#{$breakpoint} { @include grid-gap(0.5rem); }
|
|
132
|
-
.grid-gap-4\@#{$breakpoint} { @include grid-gap(1rem); }
|
|
133
|
-
|
|
134
|
-
.col-gap-1\@#{$breakpoint} { @include col-gap(0.25rem); }
|
|
135
|
-
.col-gap-2\@#{$breakpoint} { @include col-gap(0.5rem); }
|
|
136
|
-
.col-gap-4\@#{$breakpoint} { @include col-gap(1rem); }
|
|
137
|
-
|
|
138
|
-
.row-gap-1\@#{$breakpoint} { @include row-gap(0.25rem); }
|
|
139
|
-
.row-gap-2\@#{$breakpoint} { @include row-gap(0.5rem); }
|
|
140
|
-
.row-gap-4\@#{$breakpoint} { @include row-gap(1rem); }
|
|
110
|
+
// Grid Template Classes
|
|
111
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
112
|
+
// Responsive grid columns
|
|
113
|
+
@media (min-width: #{$width}) {
|
|
114
|
+
@for $i from 1 through VAR.$column-count {
|
|
115
|
+
.grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
|
|
116
|
+
.grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
141
119
|
}
|
|
142
|
-
}
|
|
143
120
|
|
|
144
121
|
|
|
145
|
-
// Generate Column Span Classes with Responsive Variants
|
|
146
|
-
@for $i from 1 through VAR.$column-count {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
122
|
+
// Generate Column Span Classes with Responsive Variants
|
|
123
|
+
@for $i from 1 through VAR.$column-count {
|
|
124
|
+
.span-col-#{$i} {
|
|
125
|
+
@include span-col($i);
|
|
126
|
+
}
|
|
150
127
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
128
|
+
.span-row-#{$i} {
|
|
129
|
+
@include span-row($i);
|
|
130
|
+
}
|
|
154
131
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
132
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
133
|
+
@media (min-width: #{$width}) {
|
|
134
|
+
.span-col-#{$i}\@#{$breakpoint} {
|
|
135
|
+
@include span-col($i);
|
|
136
|
+
}
|
|
160
137
|
|
|
161
|
-
|
|
162
|
-
|
|
138
|
+
.span-row-#{$i}\@#{$breakpoint} {
|
|
139
|
+
@include span-row($i);
|
|
140
|
+
}
|
|
163
141
|
}
|
|
164
142
|
}
|
|
165
143
|
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
144
|
|
|
169
|
-
// Auto-fit/fill Classes
|
|
170
|
-
@each $size, $width in VAR.$grid-item-sizes {
|
|
171
|
-
.grid.auto-fit-#{$size} { @include auto-fit($width); }
|
|
172
|
-
.grid.auto-fill-#{$size} { @include auto-fill($width); }
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// Flow Classes
|
|
176
|
-
.grid.flow-row { @include flow-in-row; }
|
|
177
|
-
.grid.flow-col { @include flow-in-col; }
|
|
178
|
-
.grid.flow-dense { @include flow-dense-items; }
|
|
179
|
-
|
|
180
|
-
// Alignment Classes
|
|
181
|
-
$alignments: (
|
|
182
|
-
'start': start,
|
|
183
|
-
'end': end,
|
|
184
|
-
'center': center,
|
|
185
|
-
'stretch': stretch
|
|
186
|
-
);
|
|
187
145
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
146
|
+
// Auto-fit/fill Classes
|
|
147
|
+
@each $size, $width in VAR.$grid-item-sizes {
|
|
148
|
+
.grid.auto-fit-#{$size} { @include auto-fit($width); }
|
|
149
|
+
.grid.auto-fill-#{$size} { @include auto-fill($width); }
|
|
150
|
+
}
|
|
192
151
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
152
|
+
// Flow Classes
|
|
153
|
+
.grid.flow-row { @include flow-in-row; }
|
|
154
|
+
.grid.flow-col { @include flow-in-col; }
|
|
155
|
+
.grid.flow-dense { @include flow-dense-items; }
|
|
156
|
+
|
|
157
|
+
@each $name, $value in $alignments {
|
|
158
|
+
.justify-items-#{$name} { justify-items: $value; }
|
|
159
|
+
.align-items-#{$name} { align-items: $value; }
|
|
160
|
+
.place-items-#{$name} { place-items: $value; }
|
|
161
|
+
|
|
162
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
163
|
+
@media (min-width: #{$width}) {
|
|
164
|
+
.justify-items-#{$name}\@#{$breakpoint} {
|
|
165
|
+
justify-items: $value;
|
|
166
|
+
}
|
|
167
|
+
.align-items-#{$name}\@#{$breakpoint} {
|
|
168
|
+
align-items: $value;
|
|
169
|
+
}
|
|
170
|
+
.place-items-#{$name}\@#{$breakpoint} {
|
|
171
|
+
place-items: $value;
|
|
172
|
+
}
|
|
203
173
|
}
|
|
204
174
|
}
|
|
205
175
|
}
|
|
206
|
-
}
|
|
176
|
+
}
|