@zsviczian/kplex-web 0.0.1 → 0.0.2
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/LICENSES/Source.txt +3 -5
- package/README.md +7 -8
- package/cdn.js +4874 -0
- package/chunk.js +9 -9
- package/compass.css +42 -7
- package/demo.js +1 -1
- package/offline.js +9 -9
- package/package.json +5 -5
- package/runtime-pack.json +1 -1
- package/kplex-source.tar.gz +0 -0
package/compass.css
CHANGED
|
@@ -4363,6 +4363,10 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4363
4363
|
overflow-wrap: anywhere;
|
|
4364
4364
|
}
|
|
4365
4365
|
|
|
4366
|
+
.hover-popover.kplex-publish-hover {
|
|
4367
|
+
z-index: max(var(--layer-popover, 30), calc(var(--layer-modal, 50) + 1));
|
|
4368
|
+
}
|
|
4369
|
+
|
|
4366
4370
|
.modal.kplex-publish-modal .modal-content [hidden] {
|
|
4367
4371
|
display: none;
|
|
4368
4372
|
}
|
|
@@ -4437,6 +4441,7 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4437
4441
|
}
|
|
4438
4442
|
.kplex-publication-viewport:active { cursor: grabbing; }
|
|
4439
4443
|
.kplex-publication .kplex-camera { left: 50%; top: 50%; }
|
|
4444
|
+
.kplex-publication-exits { position: absolute; inset: 0; pointer-events: none; }
|
|
4440
4445
|
.kplex-publication .kplex-publication-sibling-scroll { touch-action: pan-y; scrollbar-color: var(--background-modifier-border) transparent; }
|
|
4441
4446
|
.kplex-publication .kplex-publication-sibling-scroll:focus-visible { outline-offset: -2px; }
|
|
4442
4447
|
.kplex-publication .kplex-thought {
|
|
@@ -4473,13 +4478,14 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4473
4478
|
--input-height: 2.75rem;
|
|
4474
4479
|
position: relative;
|
|
4475
4480
|
overflow-x: clip;
|
|
4476
|
-
grid-template-rows: auto minmax(24rem, 1fr);
|
|
4481
|
+
grid-template-rows: auto minmax(24rem, 1fr) auto;
|
|
4477
4482
|
}
|
|
4478
|
-
.kplex-publication-demo .kplex-publication-production { height: 100vh; height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
|
|
4483
|
+
.kplex-publication-demo .kplex-publication-production { height: 100vh; height: 100dvh; grid-template-rows: auto minmax(0, 1fr) auto; }
|
|
4479
4484
|
.kplex-publication-production .kplex-publication-header { justify-content: flex-start; padding: .5rem clamp(.75rem, 2vw, 1.5rem); }
|
|
4480
4485
|
.kplex-publication-production .kplex-publication-header h1 { max-width: min(28rem, 65vw); overflow-wrap: anywhere; }
|
|
4481
4486
|
.kplex-publication-tools { display: flex; gap: .5rem 1rem; align-items: center; flex: 1 1 26rem; min-width: 0; flex-wrap: wrap; }
|
|
4482
|
-
.kplex-publication-tools .kplex-search-shell { flex: 1 1 12rem; min-width: min(100%, 10rem); }
|
|
4487
|
+
.kplex-publication-tools .kplex-search-shell { flex: 1 1 12rem; min-width: min(100%, 10rem); max-width: none; }
|
|
4488
|
+
.kplex-publication-tools .kplex-search-shell input { width: 100%; }
|
|
4483
4489
|
.kplex-publication-production .kplex-search-results { max-width: calc(100% - 1rem); }
|
|
4484
4490
|
.kplex-publication-tools input {
|
|
4485
4491
|
min-width: 0; max-width: 100%; min-height: var(--input-height); box-sizing: border-box;
|
|
@@ -4493,9 +4499,10 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4493
4499
|
}
|
|
4494
4500
|
.kplex-publication-tools button[aria-pressed="true"] { background: var(--background-primary); border-color: var(--interactive-accent); }
|
|
4495
4501
|
.kplex-publication-search-options { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
|
|
4496
|
-
.kplex-publication-address { position: relative; margin: 0; flex:
|
|
4497
|
-
.kplex-publication-address .kplex-form-inline { display: grid; grid-template-columns: auto minmax(
|
|
4502
|
+
.kplex-publication-address { position: relative; margin: 0; flex: 0 1 clamp(16rem, 56%, 24rem); min-width: min(100%, 16rem); }
|
|
4503
|
+
.kplex-publication-address .kplex-form-inline { display: grid; grid-template-columns: auto minmax(6rem, 1fr) auto; gap: .45rem; align-items: center; }
|
|
4498
4504
|
.kplex-publication-address .kplex-form-inline label { font-size: .9rem; }
|
|
4505
|
+
.kplex-publication-address input { width: 100%; }
|
|
4499
4506
|
.kplex-publication-address-matches {
|
|
4500
4507
|
position: absolute; right: 0; top: 100%; z-index: 5; max-width: 100%; max-height: min(20rem, 52vh); overflow: auto;
|
|
4501
4508
|
padding: .65rem; box-sizing: border-box; background: var(--kplex-publication-panel); color: var(--text-normal);
|
|
@@ -4503,6 +4510,34 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4503
4510
|
}
|
|
4504
4511
|
.kplex-publication-address-matches ul { list-style: none; padding: 0; }
|
|
4505
4512
|
.kplex-publication-address-matches button { max-width: 100%; overflow-wrap: anywhere; text-align: start; }
|
|
4513
|
+
.kplex-publication-trail {
|
|
4514
|
+
display: flex; align-items: center; gap: .65rem; min-width: 0;
|
|
4515
|
+
background: var(--background-secondary); font-size: .875rem;
|
|
4516
|
+
}
|
|
4517
|
+
.kplex-publication-pins { flex: 1 1 100%; }
|
|
4518
|
+
.kplex-publication-history { padding: .25rem clamp(.75rem, 2vw, 1.5rem); border-top: 1px solid var(--background-modifier-border); }
|
|
4519
|
+
.kplex-publication-trail > span { flex: none; color: var(--text-muted); }
|
|
4520
|
+
.kplex-publication-trail ol { display: flex; align-items: center; gap: .3rem; min-width: 0; margin: 0; padding: .15rem 0; overflow-x: auto; list-style: none; }
|
|
4521
|
+
.kplex-publication-trail li { flex: none; min-width: 0; }
|
|
4522
|
+
.kplex-publication-trail a {
|
|
4523
|
+
display: block; max-width: min(18rem, 55vw); padding: .25rem .55rem;
|
|
4524
|
+
border: 1px solid var(--background-modifier-border); border-radius: .35rem; color: inherit;
|
|
4525
|
+
text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
4526
|
+
}
|
|
4527
|
+
.kplex-publication-trail a:hover, .kplex-publication-trail a[aria-current] { border-color: var(--interactive-accent); }
|
|
4528
|
+
.kplex-publication-address-menu {
|
|
4529
|
+
z-index: 90; box-sizing: border-box; padding: .3rem; overflow: auto;
|
|
4530
|
+
background: var(--background-secondary); color: var(--text-normal);
|
|
4531
|
+
border: 1px solid var(--background-modifier-border); border-radius: .45rem; box-shadow: var(--shadow-s);
|
|
4532
|
+
}
|
|
4533
|
+
.kplex-publication-address-menu :is(button,input) {
|
|
4534
|
+
box-sizing: border-box; width: 100%; min-height: 2rem; padding: .25rem .5rem;
|
|
4535
|
+
color: inherit; background: var(--background-primary); font: inherit; border: 1px solid var(--background-modifier-border); border-radius: .3rem;
|
|
4536
|
+
}
|
|
4537
|
+
.kplex-publication-address-menu button { text-align: start; cursor: pointer; }
|
|
4538
|
+
.kplex-publication-address-menu button + button { margin-block-start: .25rem; }
|
|
4539
|
+
.kplex-publication-address-menu button:disabled { opacity: .6; cursor: default; }
|
|
4540
|
+
.kplex-publication-address-menu p { margin: .25rem .4rem; color: var(--text-muted); font-size: .9em; }
|
|
4506
4541
|
.kplex-publication-workspace {
|
|
4507
4542
|
display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0;
|
|
4508
4543
|
}
|
|
@@ -4580,9 +4615,9 @@ body.is-mobile > .app-container > .mobile-navbar.kplex-mobile-navbar-hidden { di
|
|
|
4580
4615
|
}
|
|
4581
4616
|
}
|
|
4582
4617
|
@media (max-width: 46rem) {
|
|
4583
|
-
.kplex-publication-demo .kplex-publication-production { grid-template-rows: auto minmax(20rem, 1fr); }
|
|
4618
|
+
.kplex-publication-demo .kplex-publication-production { grid-template-rows: auto minmax(20rem, 1fr) auto; }
|
|
4584
4619
|
.kplex-publication-tools { flex-basis: 100%; }
|
|
4585
|
-
.kplex-publication-
|
|
4620
|
+
.kplex-publication-address { flex-grow: 1; }
|
|
4586
4621
|
}
|
|
4587
4622
|
|
|
4588
4623
|
/* Obsidian-inspired shell and Markdown styles. A publication may carry a literal author theme. */
|
package/demo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as c,d
|
|
1
|
+
import{a as r,b as c,d}from"./chunk.js";var u=document.querySelector("[data-kplex-demo]");u&&m(u);function m(t){let o=t.ownerDocument.defaultView;if(!o)return;let l=new URL("./publication.json",t.ownerDocument.baseURI),s=new o.AbortController,a,i=async()=>{let e=t.ownerDocument.createElement("p");e.className="kplex-publication-opening",e.setAttribute("role","status"),e.textContent=r.loading,t.replaceChildren(e);try{let n=await c(o,l,s.signal);s.signal.throwIfAborted(),a=d(t,n,l)}catch{if(s.signal.aborted)return;e.setAttribute("role","alert"),e.textContent=o.crypto.subtle?r.loadFailed:r.insecure;let n=t.ownerDocument.createElement("button");n.type="button",n.textContent=r.retry,n.addEventListener("click",()=>{i()},{once:!0}),e.append(" ",n),n.focus()}};o.addEventListener("pagehide",e=>{e.persisted||(s.abort(),a?.dispose())}),i()}
|