cacao-css 4.1.0 → 4.2.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/CHANGELOG.md +5 -0
- package/imports.css +27 -26
- package/package.json +1 -1
- package/src/aspect/horizontal.css +40 -0
- package/src/aspect/vertical.css +40 -0
- package/src/gutter/core/all.css +6 -1
- package/src/aspect/aspect.css +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.2.0 (Dec 19, 2023) - Breaking change
|
|
4
|
+
|
|
5
|
+
- Fixed the order of import examples. The gutter styles have to come after grid styles.
|
|
6
|
+
- Breaking Change - Changed the aspect ratio styles into two separate files. `aspect/horizontal.css` and `aspect/vertical.css`. Imports will need to be updated. Also added new aspect ratios.
|
|
7
|
+
|
|
3
8
|
## 4.1.0 (Nov 30, 2023)
|
|
4
9
|
|
|
5
10
|
- Added typography word break and word wrap styles.
|
package/imports.css
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
@import '../../node_modules/cacao-css/src/base/base.css';
|
|
22
22
|
|
|
23
23
|
/* Aspect Ratios */
|
|
24
|
-
@import '../../node_modules/cacao-css/src/aspect/
|
|
24
|
+
@import '../../node_modules/cacao-css/src/aspect/horizontal.css';
|
|
25
|
+
/* @import '../../node_modules/cacao-css/src/aspect/vertical.css'; */
|
|
25
26
|
|
|
26
27
|
/* Embed */
|
|
27
28
|
@import '../../node_modules/cacao-css/src/embed/embed.css';
|
|
@@ -62,31 +63,6 @@
|
|
|
62
63
|
/* @import '../../node_modules/cacao-css/src/typography/transform.css'; */
|
|
63
64
|
/* @import '../../node_modules/cacao-css/src/typography/weight.css'; */
|
|
64
65
|
|
|
65
|
-
/* Gutter */
|
|
66
|
-
@import '../../node_modules/cacao-css/src/gutter/core/all.css';
|
|
67
|
-
@import '../../node_modules/cacao-css/src/gutter/core/horizontal.css';
|
|
68
|
-
@import '../../node_modules/cacao-css/src/gutter/core/vertical.css';
|
|
69
|
-
|
|
70
|
-
/* Gutter (sm) */
|
|
71
|
-
/* @import '../../node_modules/cacao-css/src/gutter/sm/all.css'; */
|
|
72
|
-
/* @import '../../node_modules/cacao-css/src/gutter/sm/horizontal.css'; */
|
|
73
|
-
/* @import '../../node_modules/cacao-css/src/gutter/sm/vertical.css'; */
|
|
74
|
-
|
|
75
|
-
/* Gutter (md) */
|
|
76
|
-
/* @import '../../node_modules/cacao-css/src/gutter/md/all.css'; */
|
|
77
|
-
/* @import '../../node_modules/cacao-css/src/gutter/md/horizontal.css'; */
|
|
78
|
-
/* @import '../../node_modules/cacao-css/src/gutter/md/vertical.css'; */
|
|
79
|
-
|
|
80
|
-
/* Gutter (lg) */
|
|
81
|
-
/* @import '../../node_modules/cacao-css/src/gutter/lg/all.css'; */
|
|
82
|
-
/* @import '../../node_modules/cacao-css/src/gutter/lg/horizontal.css'; */
|
|
83
|
-
/* @import '../../node_modules/cacao-css/src/gutter/lg/vertical.css'; */
|
|
84
|
-
|
|
85
|
-
/* Gutter (xl) */
|
|
86
|
-
/* @import '../../node_modules/cacao-css/src/gutter/xl/all.css'; */
|
|
87
|
-
/* @import '../../node_modules/cacao-css/src/gutter/xl/horizontal.css'; */
|
|
88
|
-
/* @import '../../node_modules/cacao-css/src/gutter/xl/vertical.css'; */
|
|
89
|
-
|
|
90
66
|
/* Display */
|
|
91
67
|
/* @import '../../node_modules/cacao-css/src/display/core/align.css'; */
|
|
92
68
|
@import '../../node_modules/cacao-css/src/display/core/display.css';
|
|
@@ -193,6 +169,31 @@
|
|
|
193
169
|
/* @import '../../node_modules/cacao-css/src/grid/xl/col-11.css'; */
|
|
194
170
|
/* @import '../../node_modules/cacao-css/src/grid/xl/col-12.css'; */
|
|
195
171
|
|
|
172
|
+
/* Gutter */
|
|
173
|
+
@import '../../node_modules/cacao-css/src/gutter/core/all.css';
|
|
174
|
+
@import '../../node_modules/cacao-css/src/gutter/core/horizontal.css';
|
|
175
|
+
@import '../../node_modules/cacao-css/src/gutter/core/vertical.css';
|
|
176
|
+
|
|
177
|
+
/* Gutter (sm) */
|
|
178
|
+
/* @import '../../node_modules/cacao-css/src/gutter/sm/all.css'; */
|
|
179
|
+
/* @import '../../node_modules/cacao-css/src/gutter/sm/horizontal.css'; */
|
|
180
|
+
/* @import '../../node_modules/cacao-css/src/gutter/sm/vertical.css'; */
|
|
181
|
+
|
|
182
|
+
/* Gutter (md) */
|
|
183
|
+
/* @import '../../node_modules/cacao-css/src/gutter/md/all.css'; */
|
|
184
|
+
/* @import '../../node_modules/cacao-css/src/gutter/md/horizontal.css'; */
|
|
185
|
+
/* @import '../../node_modules/cacao-css/src/gutter/md/vertical.css'; */
|
|
186
|
+
|
|
187
|
+
/* Gutter (lg) */
|
|
188
|
+
/* @import '../../node_modules/cacao-css/src/gutter/lg/all.css'; */
|
|
189
|
+
/* @import '../../node_modules/cacao-css/src/gutter/lg/horizontal.css'; */
|
|
190
|
+
/* @import '../../node_modules/cacao-css/src/gutter/lg/vertical.css'; */
|
|
191
|
+
|
|
192
|
+
/* Gutter (xl) */
|
|
193
|
+
/* @import '../../node_modules/cacao-css/src/gutter/xl/all.css'; */
|
|
194
|
+
/* @import '../../node_modules/cacao-css/src/gutter/xl/horizontal.css'; */
|
|
195
|
+
/* @import '../../node_modules/cacao-css/src/gutter/xl/vertical.css'; */
|
|
196
|
+
|
|
196
197
|
/* Margin */
|
|
197
198
|
/* @import '../../node_modules/cacao-css/src/margin/core/all.css'; */
|
|
198
199
|
@import '../../node_modules/cacao-css/src/margin/core/bottom.css';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cacao-css",
|
|
3
3
|
"description": "A set of composable CSS utilities that provide a solid foundation for starting a new project.",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"author": "Aptuitiv, Inc <hello@aptuitiv.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* =========================================================================== *\
|
|
2
|
+
Horizontal Aspect Ratio Utilities
|
|
3
|
+
\* =========================================================================== */
|
|
4
|
+
|
|
5
|
+
.aspect-1-1 {
|
|
6
|
+
aspect-ratio: 1 / 1; /* 1.0:1 */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.aspect-5-4 {
|
|
10
|
+
aspect-ratio: 5 / 4; /* 1.25:1 */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.aspect-4-3 {
|
|
14
|
+
aspect-ratio: 4 / 3; /* 1.3:1 */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.aspect-7-5 {
|
|
18
|
+
aspect-ratio: 7 / 5; /* 1.4:1 */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aspect-3-2 {
|
|
22
|
+
aspect-ratio: 3 / 2; /* 1.5:1 */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aspect-16-9 {
|
|
26
|
+
aspect-ratio: 16 / 9; /* 1.7:1 */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.aspect-2-1 {
|
|
30
|
+
aspect-ratio: 2 / 1; /* 2:1 */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aspect-7-3,
|
|
34
|
+
.aspect-21-9 {
|
|
35
|
+
aspect-ratio: 7 / 3; /* 2.3:1 */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.aspect-3-1 {
|
|
39
|
+
aspect-ratio: 3 / 1; /* 3.0:1 */
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* =========================================================================== *\
|
|
2
|
+
Vertical Aspect Ratio Utilities
|
|
3
|
+
\* =========================================================================== */
|
|
4
|
+
|
|
5
|
+
.aspect-1-1 {
|
|
6
|
+
aspect-ratio: 1 / 1; /* 1.0:1 */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.aspect-4-5 {
|
|
10
|
+
aspect-ratio: 4 / 5; /* 1:1.25 */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.aspect-3-4 {
|
|
14
|
+
aspect-ratio: 3 / 4; /* 1:1.3 */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.aspect-5-7 {
|
|
18
|
+
aspect-ratio: 5 / 7; /* 1:1.4 */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aspect-2-3 {
|
|
22
|
+
aspect-ratio: 2 / 3; /* 1:1.5 */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aspect-9-16 {
|
|
26
|
+
aspect-ratio: 9 / 16; /* 1:1.7 */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.aspect-1-2 {
|
|
30
|
+
aspect-ratio: 1 / 2; /* 1:2 */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aspect-3-7,
|
|
34
|
+
.aspect-9-21 {
|
|
35
|
+
aspect-ratio: 3 / 7; /* 1:2.3 */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.aspect-1-3 {
|
|
39
|
+
aspect-ratio: 1 / 3; /* 1:3.0 */
|
|
40
|
+
}
|
package/src/gutter/core/all.css
CHANGED
package/src/aspect/aspect.css
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* =========================================================================== *\
|
|
2
|
-
Aspect Ratio Utilities
|
|
3
|
-
\* =========================================================================== */
|
|
4
|
-
|
|
5
|
-
.aspect-1-1 {
|
|
6
|
-
aspect-ratio: 1 / 1;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.aspect-2-1 {
|
|
10
|
-
aspect-ratio: 2 / 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.aspect-4-3 {
|
|
14
|
-
aspect-ratio: 4 / 3;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.aspect-16-9 {
|
|
18
|
-
aspect-ratio: 16 / 9;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.aspect-21-9 {
|
|
22
|
-
aspect-ratio: 21 / 9;
|
|
23
|
-
}
|