@anydigital/bricks 0.27.0-alpha.7 → 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 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 {
@@ -252,11 +281,33 @@ a[data-has-favicon] {
252
281
  /* Table of contents */
253
282
 
254
283
  [data-is-toc] {
284
+ font-size: 87.5%;
285
+
255
286
  a {
256
287
  text-decoration: none;
257
288
  }
258
289
  > ul {
259
- columns: 2;
260
- font-size: 90%;
290
+ columns: 30ch auto; /* 2 cols max for 65ch container */
291
+ }
292
+ }
293
+
294
+ /* @TODO: to TRICKS */
295
+
296
+ .columns {
297
+ columns: 20ch auto; /* 3 cols max for 65ch container */
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%;
261
312
  }
262
313
  }
@@ -18,21 +18,25 @@ hr {
18
18
 
19
19
  ul {
20
20
  ul {
21
- font-size: 90%;
21
+ font-size: 87.5%;
22
22
  }
23
23
  }
24
24
 
25
25
  pre {
26
26
  small {
27
- opacity: 50%;
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.7"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anydigital/bricks",
3
- "version": "0.27.0-alpha.7",
3
+ "version": "0.27.0-alpha.9",
4
4
  "description": "Framework-agnostic CSS utilities and single-file Liquid 'bricks' for modern web development.",
5
5
  "style": "./src/bricks.css",
6
6
  "exports": {
@@ -39,3 +39,10 @@ pre {
39
39
  border-radius: 0;
40
40
  }
41
41
  }
42
+
43
+ small {
44
+ [role="button"] {
45
+ padding: 0.75em 1em;
46
+ font-size: inherit;
47
+ }
48
+ }
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 */
@@ -75,11 +97,31 @@ a[data-has-favicon] {
75
97
 
76
98
  /* Table of contents */
77
99
  [data-is-toc] {
100
+ font-size: 87.5%;
101
+
78
102
  a {
79
103
  text-decoration: none;
80
104
  }
81
105
  > ul {
82
- columns: 2;
83
- font-size: 90%;
106
+ columns: 30ch auto; /* 2 cols max for 65ch container */
107
+ }
108
+ }
109
+
110
+ /* @TODO: to TRICKS */
111
+ .columns {
112
+ columns: 20ch auto; /* 3 cols max for 65ch container */
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%;
84
126
  }
85
127
  }
@@ -18,21 +18,25 @@ hr {
18
18
 
19
19
  ul {
20
20
  ul {
21
- font-size: 90%;
21
+ font-size: 87.5%;
22
22
  }
23
23
  }
24
24
 
25
25
  pre {
26
26
  small {
27
- opacity: 50%;
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
- }