@anydigital/bricks 1.0.0-alpha.10 → 1.0.0-alpha.9

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
@@ -1,4 +1,4 @@
1
- # *Any*bricks
1
+ # *Any*`bricks`
2
2
 
3
3
  Framework-agnostic CSS utilities and single-file Nunjucks 'bricks' for modern web development.
4
4
 
@@ -75,7 +75,6 @@ The `.prose` class provides enhanced typography for article content and long-for
75
75
 
76
76
  **Links:**
77
77
  - Custom underline offset (`0.1em`) and thickness (`1px` default, `2px` on hover)
78
- - Anchor links (starting with `#`) have no text decoration
79
78
  - Special handling for `small`, `sup`, or `sub` elements: lighter weight (`300`) and displayed as `inline-block` to prevent underline decoration
80
79
 
81
80
  **Headings:**
@@ -117,6 +116,8 @@ body {
117
116
  }
118
117
 
119
118
  body > main {
119
+ display: flex;
120
+ flex-direction: column;
120
121
  flex-grow: 1;
121
122
  }
122
123
  ```
package/bricks/__html.css CHANGED
@@ -16,6 +16,8 @@ body {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  > main {
19
+ display: flex;
20
+ flex-direction: column;
19
21
  flex-grow: 1;
20
22
  }
21
23
  }
package/bricks/__html.njk CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
7
- <title>{{ title | striptags ~ ' | ' if title }}{{ site.title }}</title>
7
+ <title>{{ title | string | striptags }}{{ ' ' if title }}{{ site.title }}</title>
8
8
  <link rel="icon" href="/favicon.ico">
9
9
  {% block head %}{% endblock %}
10
10
  {% import fromBricks ~ '_gtm.njk' as gtm %}
package/bricks/_prose.css CHANGED
@@ -7,10 +7,6 @@
7
7
  a {
8
8
  text-underline-offset: 0.1em;
9
9
  text-decoration-thickness: 1px;
10
- /* Don't underline links that point to anchors */
11
- &[href^="#"] {
12
- text-decoration: none;
13
- }
14
10
  &:hover {
15
11
  text-decoration-thickness: 2px;
16
12
  }
package/dist/bricks.css CHANGED
@@ -24,6 +24,8 @@ body {
24
24
  }
25
25
 
26
26
  body > main {
27
+ display: flex;
28
+ flex-direction: column;
27
29
  flex-grow: 1;
28
30
  }
29
31
 
@@ -37,13 +39,8 @@ body > main {
37
39
  .prose a {
38
40
  text-underline-offset: 0.1em;
39
41
  text-decoration-thickness: 1px;
40
- /* Don't underline links that point to anchors */
41
42
  }
42
43
 
43
- .prose a[href^="#"] {
44
- text-decoration: none;
45
- }
46
-
47
44
  .prose a:hover {
48
45
  text-decoration-thickness: 2px;
49
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anydigital/bricks",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.9",
4
4
  "description": "Framework-agnostic CSS utilities and single-file Nunjucks 'bricks' for modern web development.",
5
5
  "main": "dist/bricks.css",
6
6
  "style": "dist/bricks.css",