cacao-css 4.0.0 → 4.1.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.1.0 (Nov 30, 2023)
4
+
5
+ - Added typography word break and word wrap styles.
6
+ - Added clearfix utility.
7
+
3
8
  ## 4.0.0 (Nov 6, 2023)
4
9
 
5
10
  - Changed default breakpoints to be mobile first.
package/imports.css CHANGED
@@ -1,10 +1,10 @@
1
1
  /* =========================================================================== *\
2
2
  Cacao CSS
3
-
3
+
4
4
  To be included by a project to selectively include modules.
5
-
5
+
6
6
  Ideally located at "my-project/src/css/main.css".
7
-
7
+
8
8
  Most imports are commented out by default. You should uncomment
9
9
  modules that your project needs. This keeps the CSS lean and mean.
10
10
  \* =========================================================================== */
@@ -29,6 +29,9 @@
29
29
  /* Images */
30
30
  @import '../../node_modules/cacao-css/src/image/image.css';
31
31
 
32
+ /* Layout */
33
+ @import '../../node_modules/cacao-css/src/layout/layout.css';
34
+
32
35
  /* Fit */
33
36
  /* @import '../../node_modules/cacao-css/src/fit/fit.css'; */
34
37
 
@@ -55,6 +58,7 @@
55
58
 
56
59
  /* Typography */
57
60
  /* @import '../../node_modules/cacao-css/src/typography/align.css'; */
61
+ /* @import '../../node_modules/cacao-css/src/typography/break.css'; */
58
62
  /* @import '../../node_modules/cacao-css/src/typography/transform.css'; */
59
63
  /* @import '../../node_modules/cacao-css/src/typography/weight.css'; */
60
64
 
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.0.0",
4
+ "version": "4.1.0",
5
5
  "author": "Aptuitiv, Inc <hello@aptuitiv.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
package/src/fit/fit.css CHANGED
@@ -6,6 +6,6 @@
6
6
  object-fit: cover;
7
7
  }
8
8
 
9
- .fir-contain {
9
+ .fit-contain {
10
10
  object-fit: contain;
11
11
  }
@@ -0,0 +1,13 @@
1
+ /* =========================================================================== *\
2
+ Layout Options
3
+ \* =========================================================================== */
4
+
5
+ .clearfix::before,
6
+ .clearfix::after {
7
+ content: ' ' !important;
8
+ display: table !important;
9
+ }
10
+
11
+ .clearfix::after {
12
+ clear: both !important;
13
+ }
@@ -0,0 +1,27 @@
1
+ /* ===========================================================================
2
+ Word wrapping and word break styles
3
+ =========================================================================== */
4
+
5
+ /**
6
+ * Break strings when their length exceeds the width of their container.
7
+ */
8
+
9
+ .break-word {
10
+ overflow-wrap: break-word !important;
11
+ }
12
+
13
+ /**
14
+ * word-break breaks more aggressively than overflow-wrap and it best for URLS or long strings
15
+ * that could be all "one word".
16
+ */
17
+ .break-all {
18
+ word-break: break-all;
19
+ }
20
+
21
+ /**
22
+ * Prevent whitespace wrapping
23
+ */
24
+
25
+ .no-wrap {
26
+ white-space: nowrap !important;
27
+ }