breakouts 0.0.2 → 0.0.3

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 CHANGED
@@ -25,6 +25,11 @@ Breakouts includes a small set of layout-focused utility classes to help you bui
25
25
  | `.breakout` | Expands content outside the container’s padding without going full-bleed |
26
26
  | `.grid` | Defines a named-line CSS grid with `main` and `full` layout regions |
27
27
  | `.grid--full` | Forces children of `.grid` to span the entire width (`full` region) |
28
+ | `.breakouts-grid` | A more advanced named-line grid layout using CSS variables |
29
+ | `.content` | Places content in the main centered column within `.breakouts-grid` |
30
+ | `.popout` | Slightly outside the `.content` width for medium breakout |
31
+ | `.feature` | Wider area used for highlighting visual components |
32
+ | `.full` | Full-width layout spanning the entire grid |
28
33
 
29
34
  ## 🛠️ Development
30
35
 
@@ -7,6 +7,14 @@
7
7
  padding: 0;
8
8
  }
9
9
 
10
+ html,
11
+ body {
12
+ margin: 0;
13
+ padding: 0;
14
+ width: 100%;
15
+ overflow-x: hidden;
16
+ }
17
+
10
18
  .container {
11
19
  margin-inline: auto;
12
20
  max-width: 72rem;
@@ -24,16 +32,33 @@
24
32
  margin-left: calc(-1 * (100vw - 100%) / 2);
25
33
  }
26
34
 
27
- .grid {
35
+ :root {
36
+ --gap: clamp(1rem, 6vw, 3rem);
37
+ --full: minmax(var(--gap), 1fr);
38
+ --feature: minmax(0, 5rem);
39
+ --popout: minmax(0, 2rem);
40
+ --content: min(50ch, 100% - var(--gap) * 2);
41
+ }
42
+
43
+ .breakouts-grid {
28
44
  display: grid;
29
- grid-template-columns: [full-start] minmax(1rem, 1fr) [main-start] minmax(0, 72rem) [main-end] minmax(1rem, 1fr) [full-end];
45
+ grid-template-columns: [full-start] var(--full) [feature-start] var(--feature) [popout-start] var(--popout) [content-start] var(--content) [content-end] var(--popout) [popout-end] var(--feature) [feature-end] var(--full) [full-end];
46
+ gap: var(--gap);
47
+ }
48
+
49
+ .content {
50
+ grid-column: content;
51
+ }
52
+
53
+ .popout {
54
+ grid-column: popout;
30
55
  }
31
56
 
32
- .grid > * {
33
- grid-column: main;
57
+ .feature {
58
+ grid-column: feature;
34
59
  }
35
60
 
36
- .grid--full > * {
61
+ .full {
37
62
  grid-column: full;
38
63
  }
39
64
 
@@ -1 +1 @@
1
- *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}.container{margin-inline:auto;max-width:72rem;padding-inline:1rem}.full-bleed{width:100vw;margin-left:50%;transform:translateX(-50%)}.breakout{width:100vw;margin-left:calc(-1*(100vw - 100%)/2)}.grid{display:grid;grid-template-columns:[full-start] minmax(1rem, 1fr) [main-start] minmax(0, 72rem) [main-end] minmax(1rem, 1fr) [full-end]}.grid>*{grid-column:main}.grid--full>*{grid-column:full}/*# sourceMappingURL=breakouts.min.css.map */
1
+ *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}html,body{margin:0;padding:0;width:100%;overflow-x:hidden}.container{margin-inline:auto;max-width:72rem;padding-inline:1rem}.full-bleed{width:100vw;margin-left:50%;transform:translateX(-50%)}.breakout{width:100vw;margin-left:calc(-1*(100vw - 100%)/2)}:root{--gap: clamp(1rem, 6vw, 3rem);--full: minmax(var(--gap), 1fr);--feature: minmax(0, 5rem);--popout: minmax(0, 2rem);--content: min(50ch, 100% - var(--gap) * 2)}.breakouts-grid{display:grid;grid-template-columns:[full-start] var(--full) [feature-start] var(--feature) [popout-start] var(--popout) [content-start] var(--content) [content-end] var(--popout) [popout-end] var(--feature) [feature-end] var(--full) [full-end];gap:var(--gap)}.content{grid-column:content}.popout{grid-column:popout}.feature{grid-column:feature}.full{grid-column:full}/*# sourceMappingURL=breakouts.min.css.map */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "breakouts",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A personal SCSS/CSS layout utility framework.",
5
5
  "main": "dist/breakouts.css",
6
6
  "files": [
@@ -15,4 +15,4 @@
15
15
  "devDependencies": {
16
16
  "sass": "^1.75.0"
17
17
  }
18
- }
18
+ }