@anydigital/bricks 0.27.0-alpha.8 → 0.27.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/assets/bricks.css +44 -0
- package/assets/bricks.theme.css +12 -2
- package/bricks.gemspec +1 -1
- package/package.json +1 -1
- package/src/_classless.css +7 -0
- package/src/_tricks.css +36 -0
- package/src/bricks.theme.css +12 -2
- package/src/_TODO.css +0 -51
package/assets/bricks.css
CHANGED
|
@@ -45,6 +45,13 @@ pre {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
small {
|
|
49
|
+
[role="button"] {
|
|
50
|
+
padding: 0.75em 1em;
|
|
51
|
+
font-size: inherit;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
/* Breakout CSS - Framework-agnostic utilities for breaking out images and figures */
|
|
49
56
|
|
|
50
57
|
.breakout,
|
|
@@ -169,6 +176,18 @@ pre {
|
|
|
169
176
|
}
|
|
170
177
|
}
|
|
171
178
|
|
|
179
|
+
table {
|
|
180
|
+
/* Workaround to widen particular columns @TODO: add to tricks-wiki */
|
|
181
|
+
th {
|
|
182
|
+
hr {
|
|
183
|
+
width: 12ch; /* min ~65/12 = ~5 cols */
|
|
184
|
+
height: 0;
|
|
185
|
+
margin: 0;
|
|
186
|
+
visibility: hidden;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
172
191
|
table.borderless {
|
|
173
192
|
th,
|
|
174
193
|
td {
|
|
@@ -226,6 +245,16 @@ a[data-has-favicon] {
|
|
|
226
245
|
}
|
|
227
246
|
}
|
|
228
247
|
|
|
248
|
+
code[data-caption] {
|
|
249
|
+
&::before {
|
|
250
|
+
content: attr(data-caption);
|
|
251
|
+
display: block;
|
|
252
|
+
margin-bottom: 1rem;
|
|
253
|
+
opacity: 50%;
|
|
254
|
+
font-style: italic;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
229
258
|
/* Tailwind tricks */
|
|
230
259
|
|
|
231
260
|
.invert {
|
|
@@ -267,3 +296,18 @@ a[data-has-favicon] {
|
|
|
267
296
|
.columns {
|
|
268
297
|
columns: 20ch auto; /* 3 cols max for 65ch container */
|
|
269
298
|
}
|
|
299
|
+
|
|
300
|
+
/* @TODO: to TRICKS */
|
|
301
|
+
|
|
302
|
+
ul {
|
|
303
|
+
li[data-marker]::marker {
|
|
304
|
+
content: attr(data-marker) " ";
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.faded {
|
|
309
|
+
opacity: 50%;
|
|
310
|
+
&:hover {
|
|
311
|
+
opacity: 87.5%;
|
|
312
|
+
}
|
|
313
|
+
}
|
package/assets/bricks.theme.css
CHANGED
|
@@ -18,21 +18,25 @@ hr {
|
|
|
18
18
|
|
|
19
19
|
ul {
|
|
20
20
|
ul {
|
|
21
|
-
font-size:
|
|
21
|
+
font-size: 87.5%;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
pre {
|
|
26
26
|
small {
|
|
27
|
-
opacity:
|
|
27
|
+
opacity: 75%;
|
|
28
28
|
font-weight: lighter;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
table {
|
|
33
33
|
th {
|
|
34
|
+
vertical-align: bottom;
|
|
34
35
|
font-weight: bold;
|
|
35
36
|
}
|
|
37
|
+
td {
|
|
38
|
+
vertical-align: top;
|
|
39
|
+
}
|
|
36
40
|
pre {
|
|
37
41
|
margin-bottom: 0.25rem;
|
|
38
42
|
}
|
|
@@ -62,3 +66,9 @@ table {
|
|
|
62
66
|
margin-bottom: 1rem;
|
|
63
67
|
}
|
|
64
68
|
}
|
|
69
|
+
|
|
70
|
+
.faded {
|
|
71
|
+
a {
|
|
72
|
+
text-decoration-style: dotted;
|
|
73
|
+
}
|
|
74
|
+
}
|
package/bricks.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "bricks"
|
|
5
|
-
spec.version = "0.27.0-alpha.
|
|
5
|
+
spec.version = "0.27.0-alpha.9"
|
|
6
6
|
spec.authors = ["Anton Staroverov"]
|
|
7
7
|
|
|
8
8
|
spec.summary = "Framework-agnostic CSS utilities and single-file Liquid 'bricks' for modern web development."
|
package/package.json
CHANGED
package/src/_classless.css
CHANGED
package/src/_tricks.css
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
table {
|
|
2
|
+
/* Workaround to widen particular columns @TODO: add to tricks-wiki */
|
|
3
|
+
th {
|
|
4
|
+
hr {
|
|
5
|
+
width: 12ch; /* min ~65/12 = ~5 cols */
|
|
6
|
+
height: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
visibility: hidden;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
table.borderless {
|
|
2
14
|
th,
|
|
3
15
|
td {
|
|
@@ -52,6 +64,16 @@ a[data-has-favicon] {
|
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
|
|
67
|
+
code[data-caption] {
|
|
68
|
+
&::before {
|
|
69
|
+
content: attr(data-caption);
|
|
70
|
+
display: block;
|
|
71
|
+
margin-bottom: 1rem;
|
|
72
|
+
opacity: 50%;
|
|
73
|
+
font-style: italic;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
55
77
|
/* Tailwind tricks */
|
|
56
78
|
.invert {
|
|
57
79
|
/* Fix the scrollbar color when inverted */
|
|
@@ -89,3 +111,17 @@ a[data-has-favicon] {
|
|
|
89
111
|
.columns {
|
|
90
112
|
columns: 20ch auto; /* 3 cols max for 65ch container */
|
|
91
113
|
}
|
|
114
|
+
|
|
115
|
+
/* @TODO: to TRICKS */
|
|
116
|
+
ul {
|
|
117
|
+
li[data-marker]::marker {
|
|
118
|
+
content: attr(data-marker) " ";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.faded {
|
|
123
|
+
opacity: 50%;
|
|
124
|
+
&:hover {
|
|
125
|
+
opacity: 87.5%;
|
|
126
|
+
}
|
|
127
|
+
}
|
package/src/bricks.theme.css
CHANGED
|
@@ -18,21 +18,25 @@ hr {
|
|
|
18
18
|
|
|
19
19
|
ul {
|
|
20
20
|
ul {
|
|
21
|
-
font-size:
|
|
21
|
+
font-size: 87.5%;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
pre {
|
|
26
26
|
small {
|
|
27
|
-
opacity:
|
|
27
|
+
opacity: 75%;
|
|
28
28
|
font-weight: lighter;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
table {
|
|
33
33
|
th {
|
|
34
|
+
vertical-align: bottom;
|
|
34
35
|
font-weight: bold;
|
|
35
36
|
}
|
|
37
|
+
td {
|
|
38
|
+
vertical-align: top;
|
|
39
|
+
}
|
|
36
40
|
pre {
|
|
37
41
|
margin-bottom: 0.25rem;
|
|
38
42
|
}
|
|
@@ -62,3 +66,9 @@ table {
|
|
|
62
66
|
margin-bottom: 1rem;
|
|
63
67
|
}
|
|
64
68
|
}
|
|
69
|
+
|
|
70
|
+
.faded {
|
|
71
|
+
a {
|
|
72
|
+
text-decoration-style: dotted;
|
|
73
|
+
}
|
|
74
|
+
}
|
package/src/_TODO.css
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.prose {
|
|
2
|
-
th,
|
|
3
|
-
td {
|
|
4
|
-
/* Keep extra space on the right for better horizontal scroll on mobile */
|
|
5
|
-
padding: 1rem 2rem 1rem 0;
|
|
6
|
-
vertical-align: top;
|
|
7
|
-
/* Workaround to widen particular columns */
|
|
8
|
-
hr {
|
|
9
|
-
width: 12ch;
|
|
10
|
-
height: 0;
|
|
11
|
-
margin: 0;
|
|
12
|
-
visibility: hidden;
|
|
13
|
-
/* &.ch16 {
|
|
14
|
-
width: 16ch;
|
|
15
|
-
} */
|
|
16
|
-
}
|
|
17
|
-
/* Workaround for headings in Markdown tables */
|
|
18
|
-
big {
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
th {
|
|
23
|
-
vertical-align: bottom;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
blockquote {
|
|
27
|
-
font-weight: 300;
|
|
28
|
-
|
|
29
|
-
+ figcaption {
|
|
30
|
-
margin-top: -1em;
|
|
31
|
-
text-align: right;
|
|
32
|
-
font-style: italic;
|
|
33
|
-
font-weight: 300;
|
|
34
|
-
|
|
35
|
-
&::before {
|
|
36
|
-
content: "—";
|
|
37
|
-
margin-right: 0.25em;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
code[data-caption] {
|
|
43
|
-
&::before {
|
|
44
|
-
content: attr(data-caption);
|
|
45
|
-
display: block;
|
|
46
|
-
margin-bottom: 1.5em;
|
|
47
|
-
opacity: 0.5;
|
|
48
|
-
font-style: italic;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|