@panda-lingo/goldendict 0.1.0 → 0.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"article-document.d.ts","sourceRoot":"","sources":["../../src/renderer/article-document.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,eAAe,EAEf,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAoOD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CA6BR"}
1
+ {"version":3,"file":"article-document.d.ts","sourceRoot":"","sources":["../../src/renderer/article-document.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,eAAe,EAEf,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AA4QD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CA+BR"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser-only layout safeguards layered after GoldenDict-ng's pinned styles.
3
+ * Keeping these rules separate means upstream stylesheet syncs remain exact.
4
+ */
5
+ export declare const GOLDENDICT_RESPONSIVE_CSS = "\n :root {\n --gd-responsive-gutter: clamp(0.5rem, 2.5vw, 1rem);\n }\n\n html,\n body {\n box-sizing: border-box;\n inline-size: 100%;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n body {\n margin: 0;\n padding: var(--gd-responsive-gutter);\n overflow-wrap: break-word;\n }\n\n .gdarticle,\n .gdarticlebody,\n .gdstemmedsuggestion {\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .gddictname {\n display: flex;\n align-items: center;\n gap: 0.4rem;\n max-inline-size: 100%;\n }\n\n .gddicticon,\n .collapse_expand_area {\n flex: 0 0 auto;\n }\n\n .gddicttitle {\n flex: 1 1 auto;\n min-inline-size: 0;\n overflow-wrap: anywhere;\n }\n\n .collapse_expand_area {\n margin-inline-start: auto;\n }\n\n .gddictname:focus-visible {\n outline: 2px solid var(--link-color, currentColor);\n outline-offset: -2px;\n }\n\n /* Keep nested, absolutely positioned sidecar controls at their authored size. */\n .gdarticlebody > :where(div, section, article, aside, header, footer, figure),\n .gdarticlebody :where(img, picture, video, canvas, svg, iframe, object, embed),\n .gdarticlebody :where(pre, table) {\n max-inline-size: 100% !important;\n }\n\n .gdarticlebody :where(img, video, canvas, svg) {\n block-size: auto !important;\n }\n\n .gdarticlebody :where(a, p, li, dd, dt, td, th, code) {\n overflow-wrap: anywhere;\n }\n\n .gdarticlebody pre {\n overflow-x: auto !important;\n overscroll-behavior-inline: contain;\n -webkit-overflow-scrolling: touch;\n }\n\n .gdstemmedsuggestion_body {\n inline-size: auto;\n margin-inline: 0.75rem;\n }\n\n .empty-space {\n block-size: clamp(6rem, 20vw, 15rem);\n }\n\n @media (max-width: 64rem) {\n .gdarticlebody table {\n display: block !important;\n overflow-x: auto !important;\n overscroll-behavior-inline: contain;\n -webkit-overflow-scrolling: touch;\n }\n }\n\n @media (max-width: 40rem) {\n :root {\n --gd-responsive-gutter: 0.5rem;\n }\n\n .gddictname {\n min-block-size: 2.75rem;\n margin-block: 0.35rem;\n }\n\n .gdarticlebody :where(.infobox, .navbox, .thumb, .tright, .tleft) {\n float: none !important;\n inline-size: auto !important;\n max-inline-size: 100% !important;\n margin-inline: 0 !important;\n }\n\n .gdarticlebody .thumbinner {\n inline-size: 100% !important;\n max-inline-size: 100% !important;\n }\n }\n\n @media (pointer: coarse) {\n .gddictname {\n min-block-size: 2.75rem;\n }\n }\n";
6
+ //# sourceMappingURL=responsive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/styles/responsive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,gnFA8HrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panda-lingo/goldendict",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Framework-independent GoldenDict article client and renderer",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-or-later",