@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,85 +1,82 @@
|
|
|
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 face
|
|
3
|
-
the
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
card's head is the date alone, its weekday left out, on one line. Light and dark. */
|
|
2
|
+
reaches the rest of the page. The face (the pack's design B) in the kit's card tokens, a grid laid out by
|
|
3
|
+
the card's cells (the face's data-layout, which the script sets from context.size): "full" (4 × 2, the
|
|
4
|
+
default) a head of the chip, the date (600) and the number of the week after it (the head's quiet meta),
|
|
5
|
+
the greeting large under it and the week at the bottom, seven days of 38px, the days gone fainter,
|
|
6
|
+
today the one solid square of the accent; "narrow" (2 wide) a page of a desk calendar, the greeting
|
|
7
|
+
the head's title, today's day of the month large at the bottom, its weekday and month under it;
|
|
8
|
+
"line" (one cell high) the chip, the greeting and the date on one line. The chip is the sun's warm
|
|
9
|
+
color by day and the accent's pale blue in the evening, and so is the soft glow at the card's top left
|
|
10
|
+
(the face's data-sky), drawn from the card's edges: the face taken out over the card's padding and
|
|
11
|
+
given it back. Its head keeps clear of the card's grip. Light and dark. */
|
|
13
12
|
[data-doc-component="gallery/today"] {
|
|
14
|
-
|
|
15
|
-
--gallery-today-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--gallery-
|
|
13
|
+
--gallery-today-glow: light-dark(rgb(255 183 77 / 20%), rgb(255 170 60 / 8.5%));
|
|
14
|
+
--gallery-today-glow-evening: light-dark(rgb(64 132 207 / 13%), rgb(80 143 214 / 15%));
|
|
15
|
+
font-family: var(--gallery-font);
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
color: var(--gallery-text);
|
|
20
19
|
> .gallery-today-face {
|
|
21
20
|
display: grid;
|
|
22
|
-
grid-template-columns: auto minmax(0,
|
|
23
|
-
grid-template-rows: auto 1fr
|
|
24
|
-
grid-template-areas: "chip date meta" "greeting greeting greeting" "week week week";
|
|
25
|
-
|
|
26
|
-
gap: 8px 10px;
|
|
21
|
+
grid-template-columns: auto minmax(0, max-content) auto minmax(var(--gallery-grip-room, 0px), 1fr);
|
|
22
|
+
grid-template-rows: 20px auto 1fr;
|
|
23
|
+
grid-template-areas: "chip date meta ." "greeting greeting greeting greeting" "week week week week";
|
|
24
|
+
column-gap: 8px;
|
|
27
25
|
box-sizing: border-box;
|
|
28
|
-
height: 100%;
|
|
29
26
|
min-height: 0;
|
|
30
|
-
color: var(--gallery-text);
|
|
31
27
|
}
|
|
32
28
|
> .gallery-today-face > .gallery-today-chip {
|
|
33
29
|
grid-area: chip;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
align-self: center;
|
|
31
|
+
display: grid;
|
|
32
|
+
place-items: center;
|
|
37
33
|
width: var(--gallery-chip-size);
|
|
38
34
|
height: var(--gallery-chip-size);
|
|
39
35
|
border-radius: var(--gallery-chip-radius);
|
|
40
|
-
background: var(--gallery-
|
|
41
|
-
color: var(--gallery-
|
|
36
|
+
background: var(--gallery-warm-soft);
|
|
37
|
+
color: var(--gallery-warm);
|
|
42
38
|
}
|
|
43
|
-
> .gallery-today-face > .gallery-today-chip[data-sky="
|
|
44
|
-
> .gallery-today-face > .gallery-today-chip > svg { width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
|
|
39
|
+
> .gallery-today-face > .gallery-today-chip[data-sky="moon"] { background: var(--gallery-accent-soft); color: var(--gallery-accent-ink); }
|
|
40
|
+
> .gallery-today-face > .gallery-today-chip > svg { display: block; width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
|
|
45
41
|
> .gallery-today-face > .gallery-today-date {
|
|
46
42
|
grid-area: date;
|
|
47
|
-
|
|
43
|
+
align-self: center;
|
|
48
44
|
min-width: 0;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
text-overflow: ellipsis;
|
|
49
48
|
font-size: var(--gallery-title-size);
|
|
50
|
-
line-height:
|
|
51
|
-
|
|
49
|
+
line-height: var(--gallery-title-line);
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
color: var(--gallery-text);
|
|
52
52
|
}
|
|
53
|
-
/* The number of the week, the head's quiet meta at its end, at the content's edge, faded while the card's grip shows. */
|
|
54
53
|
> .gallery-today-face > .gallery-today-meta {
|
|
55
54
|
grid-area: meta;
|
|
56
|
-
|
|
57
|
-
transition: opacity .12s ease-out;
|
|
55
|
+
align-self: center;
|
|
58
56
|
font-size: var(--gallery-meta-size);
|
|
59
|
-
line-height:
|
|
60
|
-
color: var(--
|
|
57
|
+
line-height: var(--gallery-title-line);
|
|
58
|
+
color: var(--gallery-faint);
|
|
61
59
|
white-space: nowrap;
|
|
62
60
|
}
|
|
63
|
-
/* The date in the text's color, its weekday muted; they break between them, never inside either. */
|
|
64
|
-
> .gallery-today-face > .gallery-today-date > span { display: inline-block; }
|
|
65
|
-
> .gallery-today-face > .gallery-today-date > span:not(.gallery-today-weekday) { color: var(--gallery-text-strong); font-weight: 600; }
|
|
66
61
|
> .gallery-today-face > .gallery-today-greeting {
|
|
67
62
|
grid-area: greeting;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
line-height: 1.15;
|
|
63
|
+
margin: 8px 0 0;
|
|
64
|
+
font-size: 28px;
|
|
65
|
+
line-height: 34px;
|
|
72
66
|
font-weight: 600;
|
|
73
|
-
letter-spacing:
|
|
67
|
+
letter-spacing: .02em;
|
|
74
68
|
color: var(--gallery-text-strong);
|
|
75
|
-
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
76
72
|
}
|
|
77
73
|
> .gallery-today-face > .gallery-today-week {
|
|
78
74
|
grid-area: week;
|
|
75
|
+
align-self: end;
|
|
79
76
|
display: grid;
|
|
80
77
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
81
|
-
gap:
|
|
82
|
-
margin:
|
|
78
|
+
gap: 4px;
|
|
79
|
+
margin: 0;
|
|
83
80
|
padding: 0;
|
|
84
81
|
list-style: none;
|
|
85
82
|
}
|
|
@@ -87,34 +84,66 @@
|
|
|
87
84
|
display: flex;
|
|
88
85
|
flex-direction: column;
|
|
89
86
|
align-items: center;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
border-radius:
|
|
87
|
+
justify-content: center;
|
|
88
|
+
height: 38px;
|
|
89
|
+
border-radius: 9px;
|
|
90
|
+
}
|
|
91
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-initial { font-size: 10.5px; line-height: 14px; color: var(--gallery-faint); }
|
|
92
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-number { font-size: 13px; line-height: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gallery-text); }
|
|
93
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-past > .gallery-today-number { font-weight: 500; color: var(--gallery-faint); }
|
|
94
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-now { background: var(--gallery-accent); }
|
|
95
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-initial { color: rgb(255 255 255 / 82%); }
|
|
96
|
+
> .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-number { color: #fff; }
|
|
97
|
+
> .gallery-today-face > :is(.gallery-today-big, .gallery-today-foot) { display: none; }
|
|
98
|
+
> .gallery-today-face > .gallery-today-big {
|
|
99
|
+
grid-area: big;
|
|
100
|
+
align-self: end;
|
|
101
|
+
font-size: 56px;
|
|
93
102
|
line-height: 1;
|
|
103
|
+
font-weight: var(--gallery-numeral-weight);
|
|
104
|
+
letter-spacing: -.04em;
|
|
105
|
+
font-variant-numeric: lining-nums;
|
|
106
|
+
color: var(--gallery-text-strong);
|
|
94
107
|
}
|
|
95
|
-
> .gallery-today-face > .gallery-today-
|
|
96
|
-
> .gallery-today-face > .gallery-today-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
> .gallery-today-face
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
[data-
|
|
105
|
-
[data-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
> .gallery-today-face > .gallery-today-foot { grid-area: foot; margin-top: 8px; font-size: 12.5px; line-height: 16px; color: var(--gallery-muted); white-space: nowrap; }
|
|
109
|
+
> .gallery-today-face > .gallery-today-foot > .gallery-today-dot { margin: 0 5px; color: var(--gallery-faintest); }
|
|
110
|
+
|
|
111
|
+
/* A narrow card: a page of a desk calendar. */
|
|
112
|
+
> .gallery-today-face[data-layout="narrow"] {
|
|
113
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
114
|
+
grid-template-rows: 20px 1fr auto;
|
|
115
|
+
grid-template-areas: "chip greeting" "big big" "foot foot";
|
|
116
|
+
}
|
|
117
|
+
> .gallery-today-face[data-layout="narrow"] > :is(.gallery-today-date, .gallery-today-meta, .gallery-today-week) { display: none; }
|
|
118
|
+
> .gallery-today-face[data-layout="narrow"] > :is(.gallery-today-big, .gallery-today-foot) { display: block; }
|
|
119
|
+
> .gallery-today-face[data-layout="narrow"] > .gallery-today-greeting {
|
|
120
|
+
align-self: center;
|
|
121
|
+
margin: 0;
|
|
122
|
+
padding-inline-end: var(--gallery-grip-room, 0px);
|
|
123
|
+
font-size: var(--gallery-title-size);
|
|
124
|
+
line-height: var(--gallery-title-line);
|
|
125
|
+
letter-spacing: 0;
|
|
126
|
+
color: var(--gallery-text);
|
|
127
|
+
}
|
|
128
|
+
/* A card one cell high: a line. */
|
|
129
|
+
> .gallery-today-face[data-layout="line"] {
|
|
130
|
+
grid-template-columns: auto auto minmax(0, 1fr);
|
|
131
|
+
grid-template-rows: 1fr;
|
|
132
|
+
grid-template-areas: "chip greeting date";
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
> .gallery-today-face[data-layout="line"] > :is(.gallery-today-meta, .gallery-today-week) { display: none; }
|
|
136
|
+
> .gallery-today-face[data-layout="line"] > .gallery-today-greeting { margin: 0; font-size: 15px; line-height: 20px; letter-spacing: 0; }
|
|
137
|
+
> .gallery-today-face[data-layout="line"] > .gallery-today-date { margin-inline-start: 4px; padding-inline-end: var(--gallery-grip-room, 0px); font-weight: 400; color: var(--gallery-muted); }
|
|
109
138
|
}
|
|
110
|
-
/* On a custom page the face is the card's: as high as what the card holds inside its padding, and its
|
|
111
|
-
|
|
139
|
+
/* On a custom page the face is the card's: as high as what the card holds inside its padding, and its glow
|
|
140
|
+
the whole card's, from its edges (the face taken out over the card's padding and given it back). */
|
|
112
141
|
.gallery-card > [data-doc-component="gallery/today"] { height: 100%; }
|
|
113
142
|
.gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face {
|
|
114
143
|
height: calc(100% + 2 * var(--gallery-card-pad));
|
|
115
144
|
margin: calc(-1 * var(--gallery-card-pad));
|
|
116
145
|
padding: var(--gallery-card-pad);
|
|
117
|
-
border-radius:
|
|
118
|
-
background:
|
|
146
|
+
border-radius: var(--gallery-card-radius);
|
|
147
|
+
background: radial-gradient(110% 100% at 0% 0%, var(--gallery-today-glow), transparent 62%);
|
|
119
148
|
}
|
|
120
|
-
.gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face[data-sky="moon"] { background:
|
|
149
|
+
.gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face[data-sky="moon"] { background: radial-gradient(110% 100% at 0% 0%, var(--gallery-today-glow-evening), transparent 62%); }
|
|
@@ -6,9 +6,9 @@ A card for a custom page (its places are `page`): a greeting by the time of day
|
|
|
6
6
|
|
|
7
7
|
Put it on a custom page as a card of its board, `<section class="gallery-card" data-card-id="…" data-x data-y data-w data-h>`, holding one instance, after `gallery block add today`: the instance is empty, `<div data-doc-component="gallery/today"></div>`, everything on it drawn by its script. It has no settings and holds no data: there is nothing to fill in and nothing it writes.
|
|
8
8
|
|
|
9
|
-
- Sizes: 4 × 2 (the default: the date at the top, the greeting
|
|
9
|
+
- Sizes: 4 × 2 (the default: the date and the week's number at the top, the greeting large, this week at the bottom), 2 × 2 (a page of a desk calendar: the greeting, today's day of the month large, its weekday and month) and 4 × 1 (one line: the greeting and the date). The user may switch between them.
|
|
10
10
|
- Its places hold no document: no document's menu offers it. In a document it would show the same words, framed by nothing.
|
|
11
11
|
|
|
12
12
|
## How it looks
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
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. The chip is the sun in its warm color by day and the moon in the accent's in the evening, and so is a soft glow at the card's top left, the one mood of a home page. On a 4 × 2 card the greeting is 28px and this week sits at the bottom, seven days, the days gone fainter, today the one solid square of the accent; a 2 × 2 card is a page of a desk calendar, today's day of the month 56px; a 4 × 1 card one line. It changes by itself: the greeting as the hour turns (it hears the kit's clock each minute), the date at midnight. The script runs with the rights of the page's own scripts, as any block's does.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "gallery/todos",
|
|
3
3
|
"apiVersion": 1,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"name": { "zh": "我的待办", "en": "My to-dos" },
|
|
6
6
|
"description": { "zh": "所有文档里没完成的待办:勾选就写回那篇文档,点文字打开它", "en": "The to-dos of every document not done yet: check one in its document, or click it to open it there" },
|
|
7
7
|
"words": "wodedaiban daiban renwu todo todos tasks checklist 待办 任务 清单 我的待办 没完成",
|