@heycys/gallery 0.1.2 → 0.2.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/THIRD-PARTY-NOTICES.md +2 -2
- package/browser/editor/components/align.mjs +58 -0
- package/browser/editor/components/code/index.mjs +1 -1
- package/browser/editor/components/embed/page.mjs +1 -1
- package/browser/editor/components/file/page.mjs +4 -4
- package/browser/editor/components/heading/index.mjs +7 -6
- package/browser/editor/components/icons.mjs +3 -0
- package/browser/editor/components/image/index.mjs +2 -0
- package/browser/editor/components/image/page.mjs +172 -90
- package/browser/editor/components/installed/index.mjs +6 -2
- package/browser/editor/components/installed/page.mjs +80 -13
- package/browser/editor/components/media/icons.mjs +13 -8
- package/browser/editor/components/media/page.mjs +5 -3
- package/browser/editor/components/media/toolbar.mjs +12 -3
- package/browser/editor/components/paragraph/index.mjs +4 -3
- package/browser/editor/components/registry.mjs +17 -5
- package/browser/editor/components/table/index.mjs +4 -2
- package/browser/editor/page/after/index.mjs +288 -0
- package/browser/editor/page/align.mjs +91 -0
- package/browser/editor/page/beside.mjs +5 -6
- package/browser/editor/page/block-menu/index.mjs +6 -3
- package/browser/editor/page/blocks.mjs +3 -1
- package/browser/editor/page/board/hint.mjs +64 -27
- package/browser/editor/page/board/index.mjs +160 -71
- package/browser/editor/page/board/motion.mjs +177 -0
- package/browser/editor/page/board/settings.mjs +4 -3
- package/browser/editor/page/clipboard/index.mjs +10 -3
- package/browser/editor/page/clipboard/own/blocks.mjs +3 -4
- package/browser/editor/page/clipboard/own/describe.mjs +6 -2
- package/browser/editor/page/commit.mjs +2 -2
- package/browser/editor/page/core.mjs +3 -1
- package/browser/editor/page/custom-page.mjs +15 -11
- package/browser/editor/page/editor.mjs +31 -14
- package/browser/editor/page/history.mjs +19 -4
- package/browser/editor/page/insert/index.mjs +20 -22
- package/browser/editor/page/menu.mjs +15 -7
- package/browser/editor/page/page-objects.mjs +3 -7
- package/browser/editor/page/present-links.mjs +5 -4
- package/browser/editor/page/present-shell.mjs +63 -0
- package/browser/editor/page/selection/index.mjs +10 -2
- package/browser/editor/page/table/binding.mjs +87 -0
- package/browser/editor/page/table/icons.mjs +0 -2
- package/browser/editor/page/table/index.mjs +10 -14
- package/browser/editor/page/table/views.mjs +5 -52
- package/browser/editor/page/table/widths.mjs +82 -10
- package/browser/editor/page/typing/index.mjs +44 -12
- package/browser/editor/page/typing/leave.mjs +19 -5
- package/browser/shared/block-packs.mjs +23 -8
- package/browser/shared/component-catalog.mjs +15 -8
- package/browser/shared/component-source.mjs +3 -1
- package/browser/shared/components/heading.mjs +2 -1
- package/browser/shared/components/installed.mjs +1 -1
- package/browser/shared/components/page.mjs +2 -0
- package/browser/shared/components/paragraph.mjs +8 -1
- package/browser/shared/components/table.mjs +1 -0
- package/browser/shared/emoji/line-icons.mjs +37 -0
- package/browser/shared/http.mjs +9 -0
- package/browser/shared/i18n/en.mjs +40 -17
- package/browser/shared/outline.mjs +30 -2
- package/browser/shared/pack-manifest.mjs +12 -1
- package/browser/shared/pages.mjs +169 -57
- package/browser/shared/pinyin.mjs +92 -0
- package/browser/shared/present-step.mjs +17 -0
- package/browser/shared/sidebar-head.mjs +70 -0
- package/browser/shared/web-links.mjs +5 -0
- package/dist/chunk-2OHANJ6Q.mjs +2 -0
- package/dist/{chunk-QOUEFUCH.mjs → chunk-3MBRL2PM.mjs} +1 -1
- package/dist/{chunk-NWR2LT5B.mjs → chunk-4OKWZY5E.mjs} +1 -1
- package/dist/{chunk-RMECZA2K.mjs → chunk-5K44HLTZ.mjs} +1 -1
- package/dist/{chunk-NFMCP2HI.mjs → chunk-5XA2ZBAE.mjs} +2 -2
- package/dist/{chunk-OUUP3WKT.mjs → chunk-67N2QJYT.mjs} +1 -1
- package/dist/chunk-6KBYRA2C.mjs +2 -0
- package/dist/{chunk-SX4LJYT6.mjs → chunk-6N3PX4XX.mjs} +1 -1
- package/dist/{chunk-RFDZXFJF.mjs → chunk-7JDX4E65.mjs} +1 -1
- package/dist/chunk-7M2BQQGZ.mjs +2 -0
- package/dist/{chunk-ZUNVAXLH.mjs → chunk-7OG26PGF.mjs} +1 -1
- package/dist/{chunk-B4P2CM2J.mjs → chunk-AHN3NFKJ.mjs} +1 -1
- package/dist/chunk-ALZ6ZENZ.mjs +3 -0
- package/dist/{chunk-UGWYKHBL.mjs → chunk-AR5D57ZD.mjs} +2 -2
- package/dist/{chunk-W3BGBJQW.mjs → chunk-BFJGHSQN.mjs} +1 -1
- package/dist/{chunk-HLYV7RIH.mjs → chunk-CMA72MAG.mjs} +1 -1
- package/dist/{chunk-D4CKRD3V.mjs → chunk-DAZL73VK.mjs} +2 -2
- package/dist/{chunk-6VTU6KEO.mjs → chunk-DJISHPUL.mjs} +1 -1
- package/dist/{chunk-BPL64HGA.mjs → chunk-EAIFITAV.mjs} +1 -1
- package/dist/chunk-EP25HDAJ.mjs +2 -0
- package/dist/{chunk-6EZ7FNIK.mjs → chunk-F4ZA6JRZ.mjs} +1 -1
- package/dist/{chunk-3KJHLHUO.mjs → chunk-F6HVDZR4.mjs} +1 -1
- package/dist/{chunk-3NJACR4W.mjs → chunk-FDMAXMQA.mjs} +1 -1
- package/dist/chunk-FETSREUN.mjs +5 -0
- package/dist/{chunk-RKPWLGZ3.mjs → chunk-GHOYKMQ3.mjs} +1 -1
- package/dist/chunk-HDWTZ763.mjs +12 -0
- package/dist/{chunk-VTKNEYT3.mjs → chunk-HPOI4ZX7.mjs} +1 -1
- package/dist/{chunk-OW5NWPOJ.mjs → chunk-HXG7EOPJ.mjs} +1 -1
- package/dist/{chunk-V6RIYQZZ.mjs → chunk-ITOH5EGO.mjs} +1 -1
- package/dist/{chunk-ZWPMCK7P.mjs → chunk-IV64FFI4.mjs} +1 -1
- package/dist/chunk-J43Z6LSS.mjs +2 -0
- package/dist/chunk-J5PUIV3Y.mjs +4 -0
- package/dist/{chunk-KTKHRC6H.mjs → chunk-JA7G53PC.mjs} +1 -1
- package/dist/{chunk-NWFBE2YA.mjs → chunk-JLTZF4LA.mjs} +1 -1
- package/dist/{chunk-GY3FAUVM.mjs → chunk-JZT7I2OJ.mjs} +1 -1
- package/dist/{chunk-QKXMPUXC.mjs → chunk-K5XATEOO.mjs} +1 -1
- package/dist/chunk-L2SUIS5S.mjs +2 -0
- package/dist/{chunk-TEZAWDSQ.mjs → chunk-LM4XFQHZ.mjs} +1 -1
- package/dist/{chunk-5ZJA7CXT.mjs → chunk-MN7BZL4R.mjs} +1 -1
- package/dist/chunk-MTYYHM2G.mjs +15 -0
- package/dist/{chunk-HMYTM3GT.mjs → chunk-MXUBKDRO.mjs} +1 -1
- package/dist/{chunk-MHW7ZKOU.mjs → chunk-OEXWRJME.mjs} +1 -1
- package/dist/{chunk-CRJEG7MT.mjs → chunk-OFHXGWOX.mjs} +1 -1
- package/dist/chunk-ORID3AE7.mjs +166 -0
- package/dist/{chunk-32ZUEFZ7.mjs → chunk-PGDE24N5.mjs} +1 -1
- package/dist/{chunk-UNOYVIYR.mjs → chunk-POTA2FV4.mjs} +1 -1
- package/dist/{chunk-N7AZZLGT.mjs → chunk-QE5RG76S.mjs} +18 -17
- package/dist/{chunk-N76HWBA3.mjs → chunk-R2ZDLJYT.mjs} +1 -1
- package/dist/chunk-SWUTTZCN.mjs +2 -0
- package/dist/{chunk-POQSE4C2.mjs → chunk-TR7TWGHB.mjs} +1 -1
- package/dist/chunk-U5XL7D6A.mjs +3 -0
- package/dist/{chunk-PVER7LSC.mjs → chunk-U7NZI6N4.mjs} +2 -2
- package/dist/{chunk-Q47PLKIJ.mjs → chunk-UGWMMEJ5.mjs} +1 -1
- package/dist/chunk-UJQJKNGK.mjs +2 -0
- package/dist/chunk-UYVCQK3H.mjs +22 -0
- package/dist/{chunk-FJYN7RTH.mjs → chunk-VFX2KNHP.mjs} +1 -1
- package/dist/{chunk-UBBRTJ2R.mjs → chunk-VS7JIGJW.mjs} +1 -1
- package/dist/{chunk-NVRNLK25.mjs → chunk-W7665ZEC.mjs} +2 -2
- package/dist/{chunk-NG375ILQ.mjs → chunk-WQDQWCX5.mjs} +1 -1
- package/dist/chunk-YLPSMDIS.mjs +5 -0
- package/dist/{chunk-VXACTLO3.mjs → chunk-YNAWBAYN.mjs} +1 -1
- package/dist/{chunk-ZB4H7ZN4.mjs → chunk-YROX2O22.mjs} +1 -1
- package/dist/{chunk-YQGT4AB2.mjs → chunk-ZDLPUOAG.mjs} +1 -1
- package/dist/chunk-ZQS6H473.mjs +16 -0
- package/dist/{chunk-OJKMINIU.mjs → chunk-ZWWC4KLF.mjs} +15 -15
- package/dist/cli.mjs +1 -1
- package/dist/server.mjs +1 -1
- package/dist/worker.mjs +1 -1
- package/kit/board.css +5 -5
- package/kit/code.js +15 -15
- package/kit/report.css +120 -41
- package/kit/runtime.js +45 -7
- package/kit/tables.js +2 -0
- package/kit/ui.js +2 -0
- package/package.json +1 -1
- package/packs/gallery/chart-view/kit.js +3 -3
- package/packs/gallery/chart-view/writing.md +1 -1
- package/packs/gallery/countdown/component.json +1 -1
- package/packs/gallery/countdown/kit.js +89 -29
- package/packs/gallery/countdown/preview.svg +1 -1
- package/packs/gallery/countdown/style.css +88 -100
- package/packs/gallery/countdown/writing.md +2 -2
- package/packs/gallery/habit/component.json +3 -3
- package/packs/gallery/habit/kit.js +114 -75
- package/packs/gallery/habit/preview.svg +1 -1
- package/packs/gallery/habit/style.css +133 -205
- package/packs/gallery/habit/writing.md +2 -2
- package/packs/gallery/heatmap/component.json +2 -2
- package/packs/gallery/heatmap/kit.js +335 -173
- package/packs/gallery/heatmap/preview.svg +1 -1
- package/packs/gallery/heatmap/style.css +158 -170
- package/packs/gallery/heatmap/writing.md +2 -2
- package/packs/gallery/kanban/kit.js +3 -3
- package/packs/gallery/kanban/writing.md +1 -1
- package/packs/gallery/metric/kit.js +3 -3
- package/packs/gallery/metric/writing.md +1 -1
- package/packs/gallery/note/component.json +3 -3
- package/packs/gallery/note/kit.js +40 -13
- package/packs/gallery/note/preview.svg +1 -1
- package/packs/gallery/note/style.css +51 -30
- package/packs/gallery/note/writing.md +2 -2
- package/packs/gallery/recent/component.json +2 -2
- package/packs/gallery/recent/kit.js +141 -86
- package/packs/gallery/recent/preview.svg +1 -1
- package/packs/gallery/recent/style.css +53 -126
- package/packs/gallery/recent/writing.md +2 -2
- package/packs/gallery/static/component.json +2 -2
- package/packs/gallery/static/preview.svg +1 -1
- package/packs/gallery/static/style.css +99 -66
- package/packs/gallery/static/writing.md +2 -2
- package/packs/gallery/stats/component.json +3 -3
- package/packs/gallery/stats/kit.js +253 -72
- package/packs/gallery/stats/preview.svg +1 -1
- package/packs/gallery/stats/style.css +64 -142
- package/packs/gallery/stats/writing.md +2 -2
- package/packs/gallery/today/component.json +2 -2
- package/packs/gallery/today/kit.js +62 -27
- package/packs/gallery/today/preview.svg +1 -1
- package/packs/gallery/today/style.css +101 -72
- package/packs/gallery/today/writing.md +2 -2
- package/packs/gallery/todos/component.json +1 -1
- package/packs/gallery/todos/kit.js +218 -71
- package/packs/gallery/todos/preview.svg +1 -1
- package/packs/gallery/todos/style.css +170 -223
- package/packs/gallery/todos/writing.md +1 -1
- package/packs/gallery/weather/component.json +2 -2
- package/packs/gallery/weather/kit.js +165 -90
- package/packs/gallery/weather/preview.svg +1 -1
- package/packs/gallery/weather/style.css +100 -218
- package/packs/gallery/weather/writing.md +1 -1
- package/packs/gallery-soft/countdown/component.json +18 -0
- package/packs/gallery-soft/countdown/example.html +3 -0
- package/packs/gallery-soft/countdown/kit.js +206 -0
- package/packs/gallery-soft/countdown/preview.svg +1 -0
- package/packs/gallery-soft/countdown/style.css +211 -0
- package/packs/gallery-soft/countdown/template.html +3 -0
- package/packs/gallery-soft/countdown/writing.md +24 -0
- package/packs/gallery-soft/habit/component.json +14 -0
- package/packs/gallery-soft/habit/example.html +3 -0
- package/packs/gallery-soft/habit/kit.js +366 -0
- package/packs/gallery-soft/habit/preview.svg +1 -0
- package/packs/gallery-soft/habit/style.css +251 -0
- package/packs/gallery-soft/habit/template.html +3 -0
- package/packs/gallery-soft/habit/writing.md +23 -0
- package/packs/gallery-soft/heatmap/component.json +18 -0
- package/packs/gallery-soft/heatmap/example.html +3 -0
- package/packs/gallery-soft/heatmap/kit.js +498 -0
- package/packs/gallery-soft/heatmap/preview.svg +1 -0
- package/packs/gallery-soft/heatmap/style.css +181 -0
- package/packs/gallery-soft/heatmap/template.html +3 -0
- package/packs/gallery-soft/heatmap/writing.md +23 -0
- package/packs/gallery-soft/note/component.json +14 -0
- package/packs/gallery-soft/note/example.html +3 -0
- package/packs/gallery-soft/note/kit.js +162 -0
- package/packs/gallery-soft/note/preview.svg +1 -0
- package/packs/gallery-soft/note/style.css +148 -0
- package/packs/gallery-soft/note/template.html +3 -0
- package/packs/gallery-soft/note/writing.md +20 -0
- package/packs/gallery-soft/recent/component.json +13 -0
- package/packs/gallery-soft/recent/example.html +1 -0
- package/packs/gallery-soft/recent/kit.js +335 -0
- package/packs/gallery-soft/recent/preview.svg +1 -0
- package/packs/gallery-soft/recent/style.css +160 -0
- package/packs/gallery-soft/recent/template.html +1 -0
- package/packs/gallery-soft/recent/writing.md +17 -0
- package/packs/gallery-soft/static/component.json +13 -0
- package/packs/gallery-soft/static/example.html +12 -0
- package/packs/gallery-soft/static/preview.svg +1 -0
- package/packs/gallery-soft/static/style.css +186 -0
- package/packs/gallery-soft/static/template.html +1 -0
- package/packs/gallery-soft/static/writing.md +20 -0
- package/packs/gallery-soft/stats/component.json +13 -0
- package/packs/gallery-soft/stats/example.html +1 -0
- package/packs/gallery-soft/stats/kit.js +341 -0
- package/packs/gallery-soft/stats/preview.svg +1 -0
- package/packs/gallery-soft/stats/style.css +119 -0
- package/packs/gallery-soft/stats/template.html +1 -0
- package/packs/gallery-soft/stats/writing.md +13 -0
- package/packs/gallery-soft/today/component.json +12 -0
- package/packs/gallery-soft/today/example.html +1 -0
- package/packs/gallery-soft/today/kit.js +222 -0
- package/packs/gallery-soft/today/preview.svg +1 -0
- package/packs/gallery-soft/today/style.css +178 -0
- package/packs/gallery-soft/today/template.html +1 -0
- package/packs/gallery-soft/today/writing.md +16 -0
- package/packs/gallery-soft/todos/component.json +19 -0
- package/packs/gallery-soft/todos/example.html +3 -0
- package/packs/gallery-soft/todos/kit.js +527 -0
- package/packs/gallery-soft/todos/preview.svg +1 -0
- package/packs/gallery-soft/todos/style.css +212 -0
- package/packs/gallery-soft/todos/template.html +3 -0
- package/packs/gallery-soft/todos/writing.md +32 -0
- package/packs/gallery-soft/weather/component.json +19 -0
- package/packs/gallery-soft/weather/example.html +3 -0
- package/packs/gallery-soft/weather/kit.js +411 -0
- package/packs/gallery-soft/weather/preview.svg +1 -0
- package/packs/gallery-soft/weather/style.css +185 -0
- package/packs/gallery-soft/weather/template.html +3 -0
- package/packs/gallery-soft/weather/writing.md +28 -0
- package/release.json +9 -9
- package/skill/SKILL.md +12 -12
- package/skill/references/building-blocks.md +4 -4
- package/skill/references/pages-and-data.md +13 -9
- package/skill/references/writing-html.md +2 -0
- package/web/assets/index-BM_K-Auu.css +1 -0
- package/web/assets/index-DRslOBiv.js +15 -0
- package/web/index.html +2 -2
- package/dist/chunk-2NRBY6AJ.mjs +0 -2
- package/dist/chunk-35NQ4PLQ.mjs +0 -2
- package/dist/chunk-4AV456RQ.mjs +0 -2
- package/dist/chunk-5XYHDBJ5.mjs +0 -2
- package/dist/chunk-6A53MZYZ.mjs +0 -2
- package/dist/chunk-6EXH3ORZ.mjs +0 -166
- package/dist/chunk-BVEFGE4B.mjs +0 -2
- package/dist/chunk-D4EURAX4.mjs +0 -4
- package/dist/chunk-DQCE7TJY.mjs +0 -5
- package/dist/chunk-FWNRPMCJ.mjs +0 -12
- package/dist/chunk-FWW4CSAZ.mjs +0 -2
- package/dist/chunk-JVHHHGEA.mjs +0 -3
- package/dist/chunk-PZDLJJTJ.mjs +0 -3
- package/dist/chunk-SXHBYZST.mjs +0 -16
- package/dist/chunk-UFNYFFKO.mjs +0 -20
- package/dist/chunk-UKSHDZZ6.mjs +0 -2
- package/dist/chunk-VJPFVNNW.mjs +0 -15
- package/dist/chunk-VS3ZMVGX.mjs +0 -5
- package/web/assets/index-BK2e_07w.js +0 -13
- package/web/assets/index-CWFI83mF.css +0 -1
|
@@ -1,267 +1,214 @@
|
|
|
1
1
|
/* Every selector starts at the instance and goes down a step at a time (>), so that nothing here
|
|
2
|
-
reaches the rest of the page. The
|
|
3
|
-
the
|
|
4
|
-
clear of the card's grip
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Light and dark. */
|
|
2
|
+
reaches the rest of the page. The pack's design B, in the kit's card tokens, a grid laid out by the
|
|
3
|
+
card's cells (the face's data-layout): the head (the chip, a checked list, 我的待办 and its quiet meta),
|
|
4
|
+
its end clear of the card's grip; how many are done (on a 4 × 4 card a line, 已完成 19 / 27 and the
|
|
5
|
+
percent at its end, over a row of ticks, one an item, done in the accent; on a 4 × 6 a ring of 64px, its
|
|
6
|
+
percent in the middle, beside the open count large and 已完成 under it; on an 8 × 4 a ring of 96px at the
|
|
7
|
+
left over a key of three rows); and the list, scrolling, faded at its foot while there is more: the
|
|
8
|
+
groups small and gray (the document's icon, its title, its open count fainter), each item a box of 15px
|
|
9
|
+
(the accent's, ticked, once done), its words (struck through and faint once done) and, under them (at
|
|
10
|
+
their right on a wide card), the headings it stands under, faint. A card with no item to show is the
|
|
11
|
+
cards' empty face in the middle: a soft square with the list's picture (or, all of them done, a full
|
|
12
|
+
green ring with a tick), a line and what to do. Light and dark. */
|
|
13
13
|
[data-doc-component="gallery/todos"] {
|
|
14
|
-
|
|
15
|
-
--gallery-
|
|
16
|
-
|
|
14
|
+
--gallery-todos-box: light-dark(rgb(55 53 47 / 30%), rgb(255 255 255 / 30%));
|
|
15
|
+
font-family: var(--gallery-font);
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
color: var(--gallery-text);
|
|
17
19
|
> .gallery-todos-face {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
position: relative;
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: minmax(0, 1fr);
|
|
23
|
+
grid-template-rows: 20px auto minmax(0, 1fr);
|
|
24
|
+
grid-template-areas: "head" "summary" "list";
|
|
21
25
|
box-sizing: border-box;
|
|
22
|
-
height: 100%;
|
|
23
26
|
min-height: 0;
|
|
24
|
-
color: var(--gallery-text);
|
|
25
|
-
font-size: 14px;
|
|
26
|
-
line-height: 1.45;
|
|
27
27
|
}
|
|
28
28
|
> .gallery-todos-face > .gallery-todos-head {
|
|
29
|
+
grid-area: head;
|
|
29
30
|
display: flex;
|
|
30
31
|
align-items: center;
|
|
31
32
|
gap: 8px;
|
|
32
|
-
flex: none;
|
|
33
33
|
min-width: 0;
|
|
34
34
|
padding-inline-end: var(--gallery-grip-room, 0px);
|
|
35
35
|
}
|
|
36
36
|
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-chip {
|
|
37
37
|
flex: none;
|
|
38
|
-
display:
|
|
39
|
-
|
|
40
|
-
justify-content: center;
|
|
38
|
+
display: grid;
|
|
39
|
+
place-items: center;
|
|
41
40
|
width: var(--gallery-chip-size);
|
|
42
41
|
height: var(--gallery-chip-size);
|
|
43
42
|
border-radius: var(--gallery-chip-radius);
|
|
44
|
-
background: var(--gallery-
|
|
45
|
-
color: var(--gallery-
|
|
46
|
-
}
|
|
47
|
-
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-chip > svg { width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
|
|
48
|
-
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-title {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
text-overflow: ellipsis;
|
|
55
|
-
font-size: var(--gallery-title-size);
|
|
56
|
-
line-height: var(--gallery-title-line);
|
|
57
|
-
font-weight: 600;
|
|
58
|
-
}
|
|
59
|
-
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-count {
|
|
60
|
-
flex: none;
|
|
61
|
-
margin-inline-end: calc(-1 * var(--gallery-grip-room, 0px)); opacity: calc(1 - var(--gallery-grip-shown, 0)); transition: opacity .12s ease-out;
|
|
62
|
-
font-size: var(--gallery-meta-size);
|
|
63
|
-
color: var(--doc-muted);
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
font-variant-numeric: tabular-nums;
|
|
66
|
-
}
|
|
67
|
-
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-count:empty { display: none; }
|
|
68
|
-
/* How many are done of all, under the head: a ring of the share done in the accent (the good green
|
|
69
|
-
once all are), the share in its middle, and a key of the two counts beside it, each a dot of its
|
|
70
|
-
color, its name muted and its count at the end; a hairline under it where the list follows. */
|
|
71
|
-
> .gallery-todos-face > .gallery-todos-summary {
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
gap: 14px;
|
|
75
|
-
flex: none;
|
|
76
|
-
min-width: 0;
|
|
77
|
-
padding-bottom: 12px;
|
|
78
|
-
border-bottom: 1px solid var(--doc-grid);
|
|
79
|
-
}
|
|
43
|
+
background: var(--gallery-fill);
|
|
44
|
+
color: var(--gallery-muted);
|
|
45
|
+
}
|
|
46
|
+
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-chip > svg { display: block; width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
|
|
47
|
+
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--gallery-title-size); line-height: var(--gallery-title-line); font-weight: 600; color: var(--gallery-text); }
|
|
48
|
+
> .gallery-todos-face > .gallery-todos-head > .gallery-todos-count { flex: none; font-size: var(--gallery-meta-size); color: var(--gallery-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
49
|
+
|
|
50
|
+
/* How many are done: the parts each layout shows. */
|
|
51
|
+
> .gallery-todos-face > .gallery-todos-summary { grid-area: summary; margin-top: 12px; min-width: 0; }
|
|
80
52
|
> .gallery-todos-face > .gallery-todos-summary[hidden] { display: none; }
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
> .gallery-todos-face
|
|
84
|
-
> .gallery-todos-face
|
|
85
|
-
> .gallery-todos-face
|
|
86
|
-
> .gallery-todos-face
|
|
87
|
-
> .gallery-todos-face
|
|
88
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring {
|
|
89
|
-
|
|
90
|
-
|
|
53
|
+
> .gallery-todos-face > .gallery-todos-summary > :is(.gallery-todos-ring, .gallery-todos-big, .gallery-todos-key) { display: none; }
|
|
54
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-progress { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; font-size: 12px; line-height: 16px; color: var(--gallery-muted); }
|
|
55
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-progress b { font-weight: 600; color: var(--gallery-text); }
|
|
56
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-progress > .gallery-todos-share { font-size: 11.5px; color: var(--gallery-faint); font-variant-numeric: tabular-nums; }
|
|
57
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ticks { display: flex; gap: 2px; height: 6px; }
|
|
58
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ticks > .gallery-todos-tick { flex: 1; border-radius: 2px; background: var(--gallery-track); }
|
|
59
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ticks > .gallery-todos-on { background: var(--gallery-accent); }
|
|
60
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring { position: relative; flex: none; }
|
|
61
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > svg { display: block; transform: rotate(-90deg); }
|
|
62
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > svg > circle { fill: none; }
|
|
63
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > svg > .gallery-todos-track { stroke: var(--gallery-track); }
|
|
64
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > svg > .gallery-todos-arc { stroke: var(--gallery-accent); stroke-linecap: round; }
|
|
65
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > .gallery-todos-percent {
|
|
66
|
+
position: absolute;
|
|
67
|
+
inset: 0;
|
|
91
68
|
display: flex;
|
|
92
69
|
align-items: center;
|
|
93
70
|
justify-content: center;
|
|
94
|
-
|
|
95
|
-
height:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > svg > .gallery-todos-arc {
|
|
101
|
-
stroke: var(--gallery-accent);
|
|
102
|
-
stroke-linecap: round;
|
|
103
|
-
stroke-dasharray: calc(var(--gallery-todos-share, 0) * 100) 100;
|
|
71
|
+
font-size: 17px;
|
|
72
|
+
line-height: 1;
|
|
73
|
+
font-weight: var(--gallery-numeral-weight);
|
|
74
|
+
letter-spacing: var(--gallery-numeral-tracking);
|
|
75
|
+
font-variant-numeric: lining-nums;
|
|
76
|
+
color: var(--gallery-text-strong);
|
|
104
77
|
}
|
|
105
|
-
> .gallery-todos-face > .gallery-todos-summary
|
|
106
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-
|
|
107
|
-
|
|
108
|
-
|
|
78
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-ring > .gallery-todos-percent > .gallery-todos-percent-value > .gallery-todos-percent-sign { margin-left: 1px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--gallery-muted); }
|
|
79
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-big > p { margin: 0; }
|
|
80
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-big > .gallery-todos-big-line { display: flex; align-items: baseline; }
|
|
81
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-big > .gallery-todos-big-line > .gallery-todos-open {
|
|
82
|
+
font-size: 30px;
|
|
109
83
|
line-height: 1;
|
|
110
84
|
font-weight: var(--gallery-numeral-weight);
|
|
111
85
|
letter-spacing: var(--gallery-numeral-tracking);
|
|
86
|
+
font-variant-numeric: lining-nums;
|
|
112
87
|
color: var(--gallery-text-strong);
|
|
113
|
-
font-variant-numeric: tabular-nums;
|
|
114
88
|
}
|
|
115
|
-
|
|
116
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-
|
|
117
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key {
|
|
118
|
-
|
|
119
|
-
|
|
89
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-big > .gallery-todos-big-line > .gallery-todos-open-unit { margin-left: 3px; font-size: var(--gallery-unit); font-weight: 500; color: var(--gallery-muted); }
|
|
90
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-big > .gallery-todos-big-done { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--gallery-muted); }
|
|
91
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key { flex-direction: column; gap: 6px; margin: 16px 0 0; }
|
|
92
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--gallery-muted); }
|
|
93
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gallery-accent); }
|
|
94
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row[data-kind="left"]::before { background: var(--gallery-track); }
|
|
95
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row[data-kind="from"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gallery-faintest); }
|
|
96
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row > dt { margin: 0; }
|
|
97
|
+
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row > dd { margin: 0 0 0 auto; font-weight: 600; color: var(--gallery-text); font-variant-numeric: tabular-nums; }
|
|
98
|
+
|
|
99
|
+
/* The list: groups and items, scrolling, faded at its foot while there is more. */
|
|
100
|
+
> .gallery-todos-face > .gallery-todos-list { grid-area: list; min-height: 0; margin-top: 8px; overflow: auto; scrollbar-width: none; }
|
|
101
|
+
> .gallery-todos-face > .gallery-todos-list[hidden] { display: none; }
|
|
102
|
+
> .gallery-todos-face > .gallery-todos-list[data-more] {
|
|
103
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
|
|
104
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
|
|
105
|
+
}
|
|
106
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 10px 0 2px; font-size: 11.5px; line-height: 18px; font-weight: 600; color: var(--gallery-muted); }
|
|
107
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
120
110
|
gap: 4px;
|
|
121
|
-
flex: 1 1 auto;
|
|
122
111
|
min-width: 0;
|
|
123
|
-
|
|
124
|
-
margin: 0;
|
|
125
|
-
}
|
|
126
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
|
|
127
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gallery-accent); }
|
|
128
|
-
> .gallery-todos-face > .gallery-todos-summary[data-all] > .gallery-todos-key > .gallery-todos-key-row[data-kind="done"]::before { background: var(--gallery-good); }
|
|
129
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row[data-kind="left"]::before { background: var(--gallery-track); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--doc-muted) 35%, transparent); }
|
|
130
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row > .gallery-todos-key-name { flex: 1 1 auto; min-width: 0; color: var(--doc-muted); }
|
|
131
|
-
> .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row > .gallery-todos-key-count { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
132
|
-
> .gallery-todos-face > .gallery-todos-list {
|
|
133
|
-
flex: 1 1 auto;
|
|
134
|
-
min-height: 0;
|
|
135
|
-
margin: -2px -6px 0;
|
|
136
|
-
overflow-y: auto;
|
|
137
|
-
overscroll-behavior: contain;
|
|
138
|
-
scrollbar-width: thin;
|
|
139
|
-
}
|
|
140
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group + .gallery-todos-group { margin-top: 10px; }
|
|
141
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > button,
|
|
142
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > button {
|
|
143
|
-
display: flex;
|
|
144
|
-
box-sizing: border-box;
|
|
145
|
-
width: 100%;
|
|
146
|
-
margin: 0;
|
|
112
|
+
padding: 0;
|
|
147
113
|
border: 0;
|
|
148
|
-
border-radius:
|
|
149
|
-
background:
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
background: none;
|
|
150
116
|
font: inherit;
|
|
151
117
|
color: inherit;
|
|
152
|
-
text-align: start;
|
|
153
|
-
cursor: pointer;
|
|
154
|
-
}
|
|
155
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > button:hover,
|
|
156
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > button:hover { background: var(--doc-hover); }
|
|
157
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-doc {
|
|
158
|
-
padding: 2px 6px;
|
|
159
|
-
font-size: var(--gallery-meta-size);
|
|
160
|
-
font-weight: 500;
|
|
161
|
-
color: var(--doc-muted);
|
|
162
|
-
overflow: hidden;
|
|
163
118
|
white-space: nowrap;
|
|
119
|
+
overflow: hidden;
|
|
164
120
|
text-overflow: ellipsis;
|
|
121
|
+
cursor: pointer;
|
|
165
122
|
}
|
|
166
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-
|
|
167
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
123
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc:hover { color: var(--gallery-text); }
|
|
124
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-group-count { flex: none; margin-left: 2px; font-weight: 400; color: var(--gallery-faint); }
|
|
125
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc > .gallery-todos-icon { flex: none; display: grid; place-items: center; width: 13px; height: 13px; margin-right: 2px; }
|
|
126
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc > .gallery-todos-icon > img { display: block; width: 12px; height: 12px; }
|
|
127
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc > .gallery-todos-glyph::before { content: ""; width: 12px; height: 12px; background: var(--gallery-faint); -webkit-mask: var(--gallery-todos-icon) center / contain no-repeat; mask: var(--gallery-todos-icon) center / contain no-repeat; }
|
|
128
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-group-head > .gallery-todos-doc > .gallery-todos-icon:empty::before {
|
|
129
|
+
content: "";
|
|
130
|
+
width: 12px;
|
|
131
|
+
height: 12px;
|
|
132
|
+
background: var(--gallery-faint);
|
|
133
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 19V5A1.5 1.5 0 0 1 7 3.5z'/%3E%3Cpath d='M13.5 3.5V8H18'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
134
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 19V5A1.5 1.5 0 0 1 7 3.5z'/%3E%3Cpath d='M13.5 3.5V8H18'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
173
135
|
}
|
|
174
|
-
|
|
175
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item
|
|
176
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-check
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
136
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items { margin: 0; padding: 0; list-style: none; }
|
|
137
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; }
|
|
138
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-check { flex: none; margin: 2px 0 0; padding: 0; border: 0; background: none; cursor: pointer; }
|
|
139
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item .gallery-todos-box {
|
|
140
|
+
display: grid;
|
|
141
|
+
place-items: center;
|
|
142
|
+
flex: none;
|
|
180
143
|
box-sizing: border-box;
|
|
181
|
-
width:
|
|
182
|
-
height:
|
|
183
|
-
border:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-
|
|
144
|
+
width: 15px;
|
|
145
|
+
height: 15px;
|
|
146
|
+
border-radius: 4px;
|
|
147
|
+
box-shadow: inset 0 0 0 1.5px var(--gallery-todos-box);
|
|
148
|
+
color: #fff;
|
|
149
|
+
}
|
|
150
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-box { margin-top: 2px; }
|
|
151
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-check:hover > .gallery-todos-box { box-shadow: inset 0 0 0 1.5px var(--gallery-accent); }
|
|
152
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item .gallery-todos-box > svg { display: block; width: 11px; height: 11px; }
|
|
153
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-done .gallery-todos-box { background: var(--gallery-accent); box-shadow: none; }
|
|
154
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
flex: 1;
|
|
188
158
|
min-width: 0;
|
|
189
|
-
font-size: var(--gallery-meta-size);
|
|
190
|
-
color: var(--doc-muted);
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
white-space: nowrap;
|
|
193
|
-
text-overflow: ellipsis;
|
|
194
|
-
}
|
|
195
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo.gallery-todos-done > .gallery-todos-text { color: var(--doc-muted); text-decoration: line-through; }
|
|
196
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo.gallery-todos-done > .gallery-todos-box,
|
|
197
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-check[aria-checked="true"] > .gallery-todos-box {
|
|
198
|
-
border-color: transparent;
|
|
199
|
-
background: var(--gallery-accent) var(--gallery-todos-tick) center / 12px no-repeat;
|
|
200
|
-
}
|
|
201
|
-
/* The box as a button of its own (where the workspace takes checks: setTodo), over the item's start: a
|
|
202
|
-
press checks it in its document, the words beside it still open the document. */
|
|
203
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item { position: relative; }
|
|
204
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-check {
|
|
205
|
-
position: absolute;
|
|
206
|
-
z-index: 1;
|
|
207
|
-
top: 0;
|
|
208
|
-
left: 0;
|
|
209
|
-
width: 30px;
|
|
210
|
-
height: calc(8px + 1.45em);
|
|
211
159
|
padding: 0;
|
|
212
|
-
border
|
|
160
|
+
border: 0;
|
|
161
|
+
border-radius: 4px;
|
|
162
|
+
background: none;
|
|
163
|
+
font: inherit;
|
|
164
|
+
color: inherit;
|
|
165
|
+
text-align: start;
|
|
166
|
+
cursor: pointer;
|
|
213
167
|
}
|
|
214
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-
|
|
215
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-
|
|
216
|
-
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-
|
|
217
|
-
|
|
218
|
-
|
|
168
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo:hover { background: var(--gallery-hover); box-shadow: 0 0 0 3px var(--gallery-hover); }
|
|
169
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo > .gallery-todos-text { font-size: 13px; line-height: 19px; color: var(--gallery-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
170
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo > .gallery-todos-path { font-size: 11.5px; line-height: 15px; color: var(--gallery-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
171
|
+
> .gallery-todos-face > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-done > .gallery-todos-todo > .gallery-todos-text { color: var(--gallery-faint); text-decoration: line-through; text-decoration-color: var(--gallery-faintest); }
|
|
172
|
+
|
|
173
|
+
/* Nothing to list: the cards' empty face in the middle. */
|
|
174
|
+
> .gallery-todos-face > .gallery-todos-empty { grid-area: list; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; text-align: center; }
|
|
175
|
+
> .gallery-todos-face > .gallery-todos-empty[hidden] { display: none; }
|
|
176
|
+
> .gallery-todos-face > .gallery-todos-empty > p { margin: 0; }
|
|
177
|
+
> .gallery-todos-face > .gallery-todos-empty > .gallery-todos-line { font-size: 13.5px; line-height: 20px; font-weight: 600; color: var(--gallery-text); }
|
|
178
|
+
> .gallery-todos-face > .gallery-todos-empty > .gallery-todos-hint { font-size: 12px; line-height: 18px; color: var(--gallery-faint); }
|
|
179
|
+
> .gallery-todos-face > .gallery-todos-empty > .gallery-todos-empty-picture { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 8px; background: var(--gallery-fill); color: var(--gallery-faint); }
|
|
180
|
+
> .gallery-todos-face > .gallery-todos-empty > .gallery-todos-empty-picture > svg { width: 16px; height: 16px; }
|
|
181
|
+
> .gallery-todos-face > .gallery-todos-empty[data-picture="done"] > .gallery-todos-empty-picture { position: relative; width: 72px; height: 72px; margin-bottom: 10px; border-radius: 0; background: none; color: var(--gallery-good); }
|
|
182
|
+
> .gallery-todos-face > .gallery-todos-empty[data-picture="done"] > .gallery-todos-empty-picture > svg:first-child { position: absolute; inset: 0; width: 72px; height: 72px; }
|
|
183
|
+
> .gallery-todos-face > .gallery-todos-empty[data-picture="done"] > .gallery-todos-empty-picture > svg:first-child > circle { fill: none; stroke: var(--gallery-good); stroke-width: 7; }
|
|
184
|
+
> .gallery-todos-face > .gallery-todos-empty[data-picture="done"] > .gallery-todos-empty-picture > svg:last-child { width: 26px; height: 26px; stroke-width: 2.4; }
|
|
185
|
+
> .gallery-todos-face[data-state="done"],
|
|
186
|
+
> .gallery-todos-face[data-state="none"],
|
|
187
|
+
> .gallery-todos-face[data-state="unread"] { grid-template-rows: 20px 0 minmax(0, 1fr); }
|
|
188
|
+
/* A refused check: a line at the foot, over the list, for a few seconds. */
|
|
189
|
+
> .gallery-todos-face > .gallery-todos-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--gallery-card-fill); box-shadow: 0 0 0 1px var(--gallery-hair), 0 4px 12px -6px rgb(0 0 0 / 20%); font-size: 12px; line-height: 16px; color: var(--gallery-muted); }
|
|
219
190
|
> .gallery-todos-face > .gallery-todos-note[hidden] { display: none; }
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
> .gallery-todos-face > .gallery-todos-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
> .gallery-todos-face > .gallery-todos-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
margin-bottom: 2px;
|
|
241
|
-
background: currentColor;
|
|
242
|
-
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5L5 7l2.5-2.5M3.5 11.5L5 13l2.5-2.5M3.5 17.5L5 19l2.5-2.5M11 6h9M11 12h9M11 18h9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
|
|
243
|
-
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5L5 7l2.5-2.5M3.5 11.5L5 13l2.5-2.5M3.5 17.5L5 19l2.5-2.5M11 6h9M11 12h9M11 18h9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
|
|
244
|
-
}
|
|
245
|
-
> .gallery-todos-face[data-state="done"] > .gallery-todos-line::before {
|
|
246
|
-
background: var(--gallery-good);
|
|
247
|
-
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/g%3E%3C/svg%3E");
|
|
248
|
-
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='22' fill-opacity='.14'/%3E%3Cg transform='translate(11 11) scale(.9167)' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/g%3E%3C/svg%3E");
|
|
249
|
-
}
|
|
250
|
-
> .gallery-todos-face > .gallery-todos-line[hidden] { display: none; }
|
|
251
|
-
}
|
|
252
|
-
/* A tall card (280px high and more: 4 high from a window 1440px wide): the ring larger, the key beside it. */
|
|
253
|
-
@container (min-height: 280px) {
|
|
254
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face { --gallery-todos-ring: 88px; }
|
|
255
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face > .gallery-todos-summary { gap: 20px; }
|
|
256
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key { max-width: 200px; gap: 6px; }
|
|
257
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face > .gallery-todos-summary > .gallery-todos-key > .gallery-todos-key-row { font-size: 14px; }
|
|
258
|
-
}
|
|
259
|
-
/* A wide card (8 cells): the documents side by side, two to a row, the list still scrolling down. */
|
|
260
|
-
@container (min-width: 560px) {
|
|
261
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face > .gallery-todos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px 24px; }
|
|
262
|
-
[data-doc-component="gallery/todos"] > .gallery-todos-face > .gallery-todos-list > .gallery-todos-group + .gallery-todos-group { margin-top: 0; }
|
|
191
|
+
|
|
192
|
+
/* A tall card: the ring beside the open count. */
|
|
193
|
+
> .gallery-todos-face[data-layout="tall"] > .gallery-todos-summary { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
|
|
194
|
+
> .gallery-todos-face[data-layout="tall"] > .gallery-todos-summary[hidden] { display: none; }
|
|
195
|
+
> .gallery-todos-face[data-layout="tall"] > .gallery-todos-summary > :is(.gallery-todos-progress, .gallery-todos-ticks) { display: none; }
|
|
196
|
+
> .gallery-todos-face[data-layout="tall"] > .gallery-todos-summary > :is(.gallery-todos-ring, .gallery-todos-big) { display: block; }
|
|
197
|
+
> .gallery-todos-face[data-layout="tall"] > .gallery-todos-list { margin-top: 10px; }
|
|
198
|
+
/* A wide card: the ring and the key at the left, the list at the right, each item's headings at its right. */
|
|
199
|
+
> .gallery-todos-face[data-layout="wide"] { grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: 20px minmax(0, 1fr); grid-template-areas: "head head" "summary list"; column-gap: 28px; }
|
|
200
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary { display: flex; flex-direction: column; margin-top: 4px; padding-top: 4px; }
|
|
201
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary[hidden] { display: none; }
|
|
202
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary > :is(.gallery-todos-progress, .gallery-todos-ticks) { display: none; }
|
|
203
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary > .gallery-todos-ring { display: block; align-self: flex-start; }
|
|
204
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary > .gallery-todos-ring > .gallery-todos-percent { font-size: 22px; }
|
|
205
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-summary > .gallery-todos-key { display: flex; }
|
|
206
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-list { margin-top: 4px; }
|
|
207
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
|
|
208
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-list > .gallery-todos-group > .gallery-todos-items > .gallery-todos-item > .gallery-todos-todo > .gallery-todos-path { flex: none; max-width: 45%; }
|
|
209
|
+
> .gallery-todos-face[data-layout="wide"] > .gallery-todos-empty { grid-column: 1 / -1; }
|
|
210
|
+
> .gallery-todos-face[data-layout="wide"]:is([data-state="done"], [data-state="none"], [data-state="unread"]) { grid-template-areas: "head head" "list list"; }
|
|
263
211
|
}
|
|
264
|
-
/* On a custom page the face
|
|
265
|
-
card is around it (a document, as gallery block check shows it) it is a few items high. */
|
|
266
|
-
[data-doc-component="gallery/todos"] { height: 16em; }
|
|
212
|
+
/* On a custom page the face fills the card the board frames. */
|
|
267
213
|
.gallery-card > [data-doc-component="gallery/todos"] { height: 100%; }
|
|
214
|
+
.gallery-card > [data-doc-component="gallery/todos"] > .gallery-todos-face { height: 100%; }
|
|
@@ -27,4 +27,4 @@ The card follows by itself: a to-do added, checked or taken out in any document
|
|
|
27
27
|
|
|
28
28
|
## How it looks
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
In Gallery 风格's look (the kit's card tokens, light and dark): a head of a small gray chip and a title, its end clear of the card's grip; one hero; the rest small and gray; the accent on the data and on today alone. Its head is a checked list's chip, 我的待办 and how many are open. A 4 × 4 card shows how many are done as a line (已完成 19 / 27 and the percent) over a row of ticks, one an item, done in the accent (a bar past 48); a 4 × 6 card a ring of the share beside the open count large (8 项没完成), its head saying how many documents they come from; an 8 × 4 card a ring at the left over a key (已完成, 未完成, 来自文档), each item's headings at its right. The list is grouped by document, small and gray (its icon, its title, its open count), each item a box, its words and the headings it stands under; it fades at its foot while there is more under it. An item checked on the card stays, struck through, until the page is opened again. With none, or all done (a full green ring with a tick), it says so in the middle.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "gallery/weather",
|
|
3
3
|
"apiVersion": 1,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"name": { "zh": "天气", "en": "Weather" },
|
|
6
6
|
"description": { "zh": "一个城市现在的天气和接下来几天的预报,数据来自 Open-Meteo,要先允许联网", "en": "A city's weather now and for the days ahead, from Open-Meteo, once the reader lets it online" },
|
|
7
7
|
"words": "tianqi qiwen yubao weather forecast temperature 天气 气温 预报 温度 下雨",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"runtime": { "generated": [":scope > .gallery-weather-face"] },
|
|
12
12
|
"places": ["page"],
|
|
13
|
-
"card": { "sizes": [[4, 2], [2, 2], [4, 4]], "resize": true },
|
|
13
|
+
"card": { "sizes": [[4, 2], [2, 2], [4, 4]], "resize": true, "consent": { "zh": "允许联网之后显示天气", "en": "Allow internet access to show the weather" } },
|
|
14
14
|
"settings": [
|
|
15
15
|
{ "key": "city", "label": { "zh": "城市", "en": "City" }, "type": "text", "default": "", "required": true },
|
|
16
16
|
{ "key": "unit", "label": { "zh": "单位", "en": "Unit" }, "type": "select", "options": ["℃", "℉"], "default": "℃" }
|