@oardi/css-utils 0.47.1 → 0.49.0
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/package.json +1 -1
- package/scss/borders.scss +24 -19
- package/scss/components/breadcrumb.scss +27 -25
- package/scss/components/button.scss +146 -140
- package/scss/components/card.scss +49 -47
- package/scss/components/chip.scss +81 -79
- package/scss/components/drawer.scss +30 -28
- package/scss/components/expansion-panel.scss +93 -91
- package/scss/components/form.scss +156 -155
- package/scss/components/icon-button.scss +112 -110
- package/scss/components/list.scss +57 -55
- package/scss/components/navbar.scss +24 -22
- package/scss/components/overlay.scss +9 -7
- package/scss/components/table.scss +35 -33
- package/scss/components/tabs.scss +54 -52
- package/scss/components/toast.scss +19 -17
- package/scss/components/tooltip.scss +54 -52
- package/scss/flex-responsive.scss +64 -76
- package/scss/flex.scss +114 -127
- package/scss/gap-responsive.scss +22 -0
- package/scss/gap.scss +18 -0
- package/scss/grid-responsive.scss +7 -5
- package/scss/grid.scss +14 -12
- package/scss/index.scss +9 -1
- package/scss/reboot.scss +110 -108
- package/scss/spacings-responsive.scss +12 -10
- package/scss/spacings.scss +33 -28
- package/scss/text.scss +69 -39
- package/scss/typography.scss +92 -125
- package/scss/utilities.scss +207 -205
- package/scss/variables.scss +70 -68
|
@@ -1,104 +1,92 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use './theme.scss';
|
|
3
3
|
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
@layer utilities {
|
|
5
|
+
@each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
|
|
6
|
+
@media (min-width: #{$bp-value}) {
|
|
7
|
+
// basic
|
|
8
|
+
.d-#{$bp}-flex {
|
|
9
|
+
display: flex;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
.
|
|
12
|
-
|
|
12
|
+
.d-#{$bp}-inline-flex {
|
|
13
|
+
display: inline-flex;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
// directions
|
|
17
|
+
.flex-#{$bp}-row {
|
|
18
|
+
flex-direction: row;
|
|
17
19
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// basic
|
|
21
|
-
.d-#{$bp}-flex {
|
|
22
|
-
display: flex !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.d-#{$bp}-inline-flex {
|
|
26
|
-
display: inline-flex !important;
|
|
27
|
-
}
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.flex-#{$bp}-column {
|
|
35
|
-
flex-direction: column !important;
|
|
36
|
-
}
|
|
21
|
+
.flex-#{$bp}-column {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
37
24
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
.flex-#{$bp}-row-reverse {
|
|
26
|
+
flex-direction: row-reverse;
|
|
27
|
+
}
|
|
41
28
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
.flex-#{$bp}-column-reverse {
|
|
30
|
+
flex-direction: column-reverse;
|
|
31
|
+
}
|
|
45
32
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
// justify content - start, end, center, between, around, evenly
|
|
34
|
+
.justify-content-#{$bp}-start {
|
|
35
|
+
justify-content: start;
|
|
36
|
+
}
|
|
50
37
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
.justify-content-#{$bp}-end {
|
|
39
|
+
justify-content: end;
|
|
40
|
+
}
|
|
54
41
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
.justify-content-#{$bp}-center {
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
58
45
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
.justify-content-#{$bp}-between {
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
}
|
|
62
49
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
.justify-content-#{$bp}-around {
|
|
51
|
+
justify-content: space-around;
|
|
52
|
+
}
|
|
66
53
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
54
|
+
.justify-content-#{$bp}-evenly {
|
|
55
|
+
justify-content: space-evenly;
|
|
56
|
+
}
|
|
70
57
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
58
|
+
// align items - start, end, center, baseline, or stretch
|
|
59
|
+
.align-items-#{$bp}-start {
|
|
60
|
+
align-items: start;
|
|
61
|
+
}
|
|
75
62
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
63
|
+
.align-items-#{$bp}-end {
|
|
64
|
+
align-items: end;
|
|
65
|
+
}
|
|
79
66
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
.align-items-#{$bp}-center {
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
83
70
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
.align-items-#{$bp}-baseline {
|
|
72
|
+
align-items: baseline;
|
|
73
|
+
}
|
|
87
74
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
.align-items-#{$bp}-stretch {
|
|
76
|
+
align-items: stretch;
|
|
77
|
+
}
|
|
91
78
|
|
|
92
|
-
|
|
93
|
-
|
|
79
|
+
// align self
|
|
80
|
+
// TODO
|
|
94
81
|
|
|
95
|
-
|
|
96
|
-
|
|
82
|
+
// fill
|
|
83
|
+
// TODO
|
|
97
84
|
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
// grow
|
|
86
|
+
// TODO
|
|
100
87
|
|
|
101
|
-
|
|
102
|
-
|
|
88
|
+
// shrink
|
|
89
|
+
// TODO
|
|
90
|
+
}
|
|
103
91
|
}
|
|
104
92
|
}
|
package/scss/flex.scss
CHANGED
|
@@ -1,166 +1,153 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use './theme.scss' as theme;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$flex-
|
|
7
|
-
$flex-
|
|
8
|
-
$flex-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.d-inline-flex {
|
|
16
|
-
display: inline-flex;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// directions
|
|
20
|
-
.flex-row {
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.flex-row-reverse {
|
|
25
|
-
flex-direction: row-reverse;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.flex-column {
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
}
|
|
4
|
+
@layer utilities {
|
|
5
|
+
// TODO - use the following to iterate
|
|
6
|
+
$flex-directions: (row, row-reverse, column, column-reverse);
|
|
7
|
+
$flex-ratios: (0, 1);
|
|
8
|
+
$flex-justify-content-alignments: (start, end, center, between, around, evenly);
|
|
9
|
+
$flex-align-items-alignments: (start, end, center, between, around, evenly);
|
|
10
|
+
|
|
11
|
+
// basic
|
|
12
|
+
.d-flex {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
31
15
|
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
}
|
|
16
|
+
.d-inline-flex {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
}
|
|
35
19
|
|
|
36
|
-
//
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
}
|
|
20
|
+
// directions
|
|
21
|
+
.flex-row {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
}
|
|
40
24
|
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
}
|
|
25
|
+
.flex-row-reverse {
|
|
26
|
+
flex-direction: row-reverse;
|
|
27
|
+
}
|
|
44
28
|
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
}
|
|
29
|
+
.flex-column {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
48
32
|
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
}
|
|
33
|
+
.flex-column-reverse {
|
|
34
|
+
flex-direction: column-reverse;
|
|
35
|
+
}
|
|
52
36
|
|
|
53
|
-
|
|
54
|
-
justify-content
|
|
55
|
-
|
|
37
|
+
// justify content - start, end, center, between, around or evenly
|
|
38
|
+
.justify-content-start {
|
|
39
|
+
justify-content: start;
|
|
40
|
+
}
|
|
56
41
|
|
|
57
|
-
.justify-content-
|
|
58
|
-
|
|
59
|
-
}
|
|
42
|
+
.justify-content-end {
|
|
43
|
+
justify-content: end;
|
|
44
|
+
}
|
|
60
45
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
46
|
+
.justify-content-center {
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
65
49
|
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
}
|
|
50
|
+
.justify-content-between {
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
69
53
|
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
}
|
|
54
|
+
.justify-content-around {
|
|
55
|
+
justify-content: space-around;
|
|
56
|
+
}
|
|
73
57
|
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
}
|
|
58
|
+
.justify-content-evenly {
|
|
59
|
+
justify-content: space-evenly;
|
|
60
|
+
}
|
|
77
61
|
|
|
78
|
-
|
|
79
|
-
align-items
|
|
80
|
-
|
|
62
|
+
// align items - start, end, center, baseline, or stretch
|
|
63
|
+
.align-items-start {
|
|
64
|
+
align-items: start;
|
|
65
|
+
}
|
|
81
66
|
|
|
82
|
-
|
|
83
|
-
|
|
67
|
+
.align-items-end {
|
|
68
|
+
align-items: end;
|
|
69
|
+
}
|
|
84
70
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
71
|
+
.align-items-center {
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
89
74
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
75
|
+
.align-items-baseline {
|
|
76
|
+
align-items: baseline;
|
|
77
|
+
}
|
|
94
78
|
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
}
|
|
79
|
+
.align-items-stretch {
|
|
80
|
+
align-items: stretch;
|
|
81
|
+
}
|
|
98
82
|
|
|
99
|
-
//
|
|
100
|
-
|
|
101
|
-
flex-shrink: 0;
|
|
102
|
-
}
|
|
83
|
+
// align self
|
|
84
|
+
// TODO
|
|
103
85
|
|
|
104
|
-
|
|
105
|
-
flex-
|
|
106
|
-
|
|
86
|
+
// fill
|
|
87
|
+
.flex-fill {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
}
|
|
107
90
|
|
|
108
|
-
//
|
|
109
|
-
.flex-
|
|
110
|
-
|
|
111
|
-
}
|
|
91
|
+
// grow
|
|
92
|
+
.flex-grow-0 {
|
|
93
|
+
flex-grow: 0;
|
|
94
|
+
}
|
|
112
95
|
|
|
113
|
-
.flex-
|
|
114
|
-
|
|
115
|
-
}
|
|
96
|
+
.flex-grow-1 {
|
|
97
|
+
flex-grow: 1;
|
|
98
|
+
}
|
|
116
99
|
|
|
117
|
-
//
|
|
118
|
-
.
|
|
119
|
-
|
|
120
|
-
}
|
|
100
|
+
// shrink
|
|
101
|
+
.flex-shrink-0 {
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
}
|
|
121
104
|
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
}
|
|
105
|
+
.flex-shrink-1 {
|
|
106
|
+
flex-shrink: 1;
|
|
107
|
+
}
|
|
125
108
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
109
|
+
// wrap
|
|
110
|
+
.flex-wrap {
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
}
|
|
129
113
|
|
|
130
|
-
.
|
|
131
|
-
|
|
132
|
-
}
|
|
114
|
+
.flex-nowrap {
|
|
115
|
+
flex-wrap: nowrap;
|
|
116
|
+
}
|
|
133
117
|
|
|
134
|
-
|
|
135
|
-
order
|
|
136
|
-
|
|
118
|
+
// order
|
|
119
|
+
.order-0 {
|
|
120
|
+
order: 0;
|
|
121
|
+
}
|
|
137
122
|
|
|
138
|
-
.order-
|
|
139
|
-
|
|
140
|
-
}
|
|
123
|
+
.order-1 {
|
|
124
|
+
order: 1;
|
|
125
|
+
}
|
|
141
126
|
|
|
142
|
-
.order-
|
|
143
|
-
|
|
144
|
-
}
|
|
127
|
+
.order-2 {
|
|
128
|
+
order: 2;
|
|
129
|
+
}
|
|
145
130
|
|
|
146
|
-
.order-
|
|
147
|
-
|
|
148
|
-
}
|
|
131
|
+
.order-3 {
|
|
132
|
+
order: 3;
|
|
133
|
+
}
|
|
149
134
|
|
|
150
|
-
|
|
151
|
-
|
|
135
|
+
.order-4 {
|
|
136
|
+
order: 4;
|
|
137
|
+
}
|
|
152
138
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
.gap-#{$key} {
|
|
156
|
-
gap: $value !important;
|
|
139
|
+
.order-5 {
|
|
140
|
+
order: 5;
|
|
157
141
|
}
|
|
158
142
|
|
|
159
|
-
.
|
|
160
|
-
|
|
143
|
+
.order-first {
|
|
144
|
+
order: -1;
|
|
161
145
|
}
|
|
162
146
|
|
|
163
|
-
.
|
|
164
|
-
|
|
147
|
+
.order-last {
|
|
148
|
+
order: 6;
|
|
165
149
|
}
|
|
150
|
+
|
|
151
|
+
// align-content
|
|
152
|
+
// TODO
|
|
166
153
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './theme.scss';
|
|
3
|
+
|
|
4
|
+
@layer utilities {
|
|
5
|
+
@each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
|
|
6
|
+
@media (min-width: #{$bp-value}) {
|
|
7
|
+
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
8
|
+
.gap-#{$bp}-#{$key} {
|
|
9
|
+
gap: $value;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.row-gap-#{$bp}-#{$key} {
|
|
13
|
+
row-gap: $value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.column-gap-#{$bp}-#{$key} {
|
|
17
|
+
column-gap: $value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/scss/gap.scss
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './theme.scss' as theme;
|
|
3
|
+
|
|
4
|
+
@layer utilities {
|
|
5
|
+
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
6
|
+
.gap-#{$key} {
|
|
7
|
+
gap: $value;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.row-gap-#{$key} {
|
|
11
|
+
row-gap: $value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.column-gap-#{$key} {
|
|
15
|
+
column-gap: $value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
// grid responsive
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
@layer utilities {
|
|
7
|
+
@each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
|
|
8
|
+
@media (min-width: #{$bp-value}) {
|
|
9
|
+
@for $i from 1 through 12 {
|
|
10
|
+
.col-#{$bp}-#{$i} {
|
|
11
|
+
grid-column: span $i;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
}
|
package/scss/grid.scss
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer utilities {
|
|
2
|
+
.grid {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
column-gap: 1rem;
|
|
7
|
+
row-gap: 1rem;
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
.col {
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
.col {
|
|
11
|
+
grid-column: span 12;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
@for $i from 1 through 12 {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@for $i from 1 through 12 {
|
|
15
|
+
.col-#{$i} {
|
|
16
|
+
grid-column: span $i;
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
package/scss/index.scss
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
@forward './reboot.scss';
|
|
1
2
|
@forward './theme.scss';
|
|
2
3
|
@forward './variables.scss';
|
|
3
|
-
@forward './reboot.scss';
|
|
4
4
|
@forward './typography.scss';
|
|
5
5
|
@forward './text.scss';
|
|
6
|
+
|
|
6
7
|
@forward './utilities.scss';
|
|
8
|
+
|
|
7
9
|
@forward './spacings.scss';
|
|
8
10
|
@forward './spacings-responsive.scss';
|
|
11
|
+
|
|
9
12
|
@forward './flex.scss';
|
|
10
13
|
@forward './flex-responsive.scss';
|
|
14
|
+
|
|
11
15
|
@forward './grid.scss';
|
|
12
16
|
@forward './grid-responsive.scss';
|
|
17
|
+
|
|
18
|
+
@forward './gap.scss';
|
|
19
|
+
@forward './gap-responsive.scss';
|
|
20
|
+
|
|
13
21
|
@forward './borders.scss';
|
|
14
22
|
|
|
15
23
|
@forward './components/breadcrumb.scss';
|