@obvi/blueprint 1.0.10 → 1.1.0
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 +13 -436
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/blueprint-choices.js +64 -4
- package/dist/blueprint.css +1655 -668
- package/dist/blueprint.js +2460 -36
- package/dist/code-highlighting/blueprint-code.css +12 -7
- package/package.json +4 -3
|
@@ -116,13 +116,17 @@
|
|
|
116
116
|
------------------------------------------------------------------- */
|
|
117
117
|
:where(pre[class*="language-"]) {
|
|
118
118
|
position: relative; /* anchor for the straight accent bar */
|
|
119
|
-
margin:
|
|
119
|
+
/* Block-only margin: leaves the inline axis free so a host shell can center
|
|
120
|
+
the block (e.g. blueprint's main > * margin-inline: auto). A `margin: x 0`
|
|
121
|
+
shorthand would pin margin-inline to 0 and override that centering. For
|
|
122
|
+
standalone consumers the inline margin stays at its initial 0 regardless. */
|
|
123
|
+
margin-block: 1.5em;
|
|
120
124
|
padding: 1rem 1.15rem;
|
|
121
125
|
overflow: auto; /* horizontal scroll on long lines stays inside block */
|
|
122
126
|
background: var(--bpc-surface);
|
|
123
127
|
color: var(--bpc-base);
|
|
124
128
|
border: 1px solid var(--bpc-border);
|
|
125
|
-
border-radius: var(--bp-radius-
|
|
129
|
+
border-radius: var(--bp-radius-0, 0);
|
|
126
130
|
font-family: var(
|
|
127
131
|
--bp-mono,
|
|
128
132
|
var(
|
|
@@ -172,7 +176,7 @@
|
|
|
172
176
|
adopts blue token colors. */
|
|
173
177
|
:where(:not(pre) > code[class*="language-"]) {
|
|
174
178
|
padding: 0.12em 0.4em;
|
|
175
|
-
border-radius: var(--bp-radius-
|
|
179
|
+
border-radius: var(--bp-radius-0, 0);
|
|
176
180
|
background: var(--bpc-surface-2);
|
|
177
181
|
color: var(--bpc-base);
|
|
178
182
|
white-space: normal;
|
|
@@ -346,7 +350,8 @@
|
|
|
346
350
|
the block. Purely additive — no JS, degrades to a plain caption.
|
|
347
351
|
------------------------------------------------------------------- */
|
|
348
352
|
:where(figure.bpc-code) {
|
|
349
|
-
|
|
353
|
+
/* Block-only so a host shell can center the figure (see pre rule above). */
|
|
354
|
+
margin-block: 1.5em;
|
|
350
355
|
}
|
|
351
356
|
:where(figure.bpc-code > figcaption) {
|
|
352
357
|
font-family: var(
|
|
@@ -360,13 +365,13 @@
|
|
|
360
365
|
background: var(--bpc-surface-2);
|
|
361
366
|
border: 1px solid var(--bpc-border);
|
|
362
367
|
border-bottom: none;
|
|
363
|
-
border-radius: var(--bp-radius-
|
|
368
|
+
border-radius: var(--bp-radius-0, 0) var(--bp-radius-0, 0) 0 0;
|
|
364
369
|
padding: 0.45rem 0.8rem;
|
|
365
370
|
}
|
|
366
371
|
:where(figure.bpc-code > figcaption + pre[class*="language-"]),
|
|
367
372
|
:where(figure.bpc-code > pre[class*="language-"]) {
|
|
368
373
|
margin: 0;
|
|
369
|
-
border-radius: 0 0 var(--bp-radius-
|
|
374
|
+
border-radius: 0 0 var(--bp-radius-0, 0) var(--bp-radius-0, 0);
|
|
370
375
|
}
|
|
371
376
|
|
|
372
377
|
/* ---------------------------------------------------------------------
|
|
@@ -399,7 +404,7 @@
|
|
|
399
404
|
max-height: 320px;
|
|
400
405
|
margin: 0;
|
|
401
406
|
border: 0;
|
|
402
|
-
border-radius: 0 0 var(--bp-radius-
|
|
407
|
+
border-radius: 0 0 var(--bp-radius-0, 0) var(--bp-radius-0, 0);
|
|
403
408
|
}
|
|
404
409
|
:where(.bp-cite-pop pre[class*="language-"])::before {
|
|
405
410
|
display: none; /* flush inside popover, no accent bar */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obvi/blueprint",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A classless-first CSS design system for beautiful technical blueprint documents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"registry": "https://registry.npmjs.org",
|
|
36
|
-
"access": "
|
|
36
|
+
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "npm run build:code && node scripts/build-package.mjs",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"render": "node harness/render.mjs",
|
|
42
42
|
"measure": "node harness/measure.mjs && node harness/behavior.mjs",
|
|
43
43
|
"verify:package": "node scripts/verify-package.mjs",
|
|
44
|
-
"
|
|
44
|
+
"lint:style": "node scripts/lint-style.mjs",
|
|
45
|
+
"verify": "npm run build && npm run lint:style && npm run measure && npm run verify:package",
|
|
45
46
|
"prepack": "npm run build"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|