@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 +3 -2
- package/bricks/__html.css +2 -0
- package/bricks/__html.njk +1 -1
- package/bricks/_prose.css +0 -4
- package/dist/bricks.css +2 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# *Any
|
|
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
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
|
|
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
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.
|
|
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",
|