@novaprose/core 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/dist/a11y.cjs +314 -0
- package/dist/a11y.cjs.map +1 -0
- package/dist/a11y.d.cts +51 -0
- package/dist/a11y.d.ts +51 -0
- package/dist/a11y.js +11 -0
- package/dist/a11y.js.map +1 -0
- package/dist/a11ychecker-6ES3UMU3.js +449 -0
- package/dist/a11ychecker-6ES3UMU3.js.map +1 -0
- package/dist/accordion-ui-B4I2FJXE.js +201 -0
- package/dist/accordion-ui-B4I2FJXE.js.map +1 -0
- package/dist/advcode-7S6N64C7.js +51 -0
- package/dist/advcode-7S6N64C7.js.map +1 -0
- package/dist/advcode-editor-ENCPFVLO.js +257 -0
- package/dist/advcode-editor-ENCPFVLO.js.map +1 -0
- package/dist/{advlist-5FNKPLUX.js → advlist-FEDGNLMQ.js} +10 -7
- package/dist/advlist-FEDGNLMQ.js.map +1 -0
- package/dist/advtable-ui-JAVJY4L4.js +364 -0
- package/dist/advtable-ui-JAVJY4L4.js.map +1 -0
- package/dist/ai-5KM776QW.js +1485 -0
- package/dist/ai-5KM776QW.js.map +1 -0
- package/dist/anchor-ui-VPKNKZ7J.js +81 -0
- package/dist/anchor-ui-VPKNKZ7J.js.map +1 -0
- package/dist/autocorrect-5QLICCRN.js +851 -0
- package/dist/autocorrect-5QLICCRN.js.map +1 -0
- package/dist/{autolink-45LTODWB.js → autolink-ZYIPRXBA.js} +11 -8
- package/dist/autolink-ZYIPRXBA.js.map +1 -0
- package/dist/{autoresize-UB3GOA6D.js → autoresize-YRZAVCNO.js} +2 -2
- package/dist/autoresize-YRZAVCNO.js.map +1 -0
- package/dist/{autosave-GMWJ5BPE.js → autosave-IC7YYG44.js} +7 -7
- package/dist/autosave-IC7YYG44.js.map +1 -0
- package/dist/casechange-R7IO2APS.js +201 -0
- package/dist/casechange-R7IO2APS.js.map +1 -0
- package/dist/{charmap-2GC7LF7G.js → charmap-CARYZFKD.js} +7 -7
- package/dist/charmap-CARYZFKD.js.map +1 -0
- package/dist/checklist-7E47QW6L.js +189 -0
- package/dist/checklist-7E47QW6L.js.map +1 -0
- package/dist/chunk-23ZLVT5D.js +163 -0
- package/dist/chunk-23ZLVT5D.js.map +1 -0
- package/dist/{chunk-ND2CWNVG.js → chunk-3BOK3S3T.js} +2 -27
- package/dist/chunk-3BOK3S3T.js.map +1 -0
- package/dist/chunk-3KBQEAX2.js +926 -0
- package/dist/chunk-3KBQEAX2.js.map +1 -0
- package/dist/chunk-3NNILZVB.js +259 -0
- package/dist/chunk-3NNILZVB.js.map +1 -0
- package/dist/{chunk-PVFKXRID.js → chunk-4VPDY3LF.js} +1 -1
- package/dist/chunk-4VPDY3LF.js.map +1 -0
- package/dist/chunk-53AY5NAF.js +214 -0
- package/dist/chunk-53AY5NAF.js.map +1 -0
- package/dist/{chunk-5AW2HHG6.js → chunk-5KERLFDD.js} +50 -3
- package/dist/chunk-5KERLFDD.js.map +1 -0
- package/dist/{chunk-FCMZ7TUQ.js → chunk-6BJEOL5V.js} +296 -43
- package/dist/chunk-6BJEOL5V.js.map +1 -0
- package/dist/chunk-6LQM7G4V.js +159 -0
- package/dist/chunk-6LQM7G4V.js.map +1 -0
- package/dist/chunk-AB67XUSR.js +178 -0
- package/dist/chunk-AB67XUSR.js.map +1 -0
- package/dist/chunk-ANE5ASXG.js +26 -0
- package/dist/chunk-ANE5ASXG.js.map +1 -0
- package/dist/{chunk-Z3ELZ77W.js → chunk-AP2PJFLB.js} +5 -2
- package/dist/chunk-AP2PJFLB.js.map +1 -0
- package/dist/chunk-ARBKIZZU.js +137 -0
- package/dist/chunk-ARBKIZZU.js.map +1 -0
- package/dist/chunk-AUQSATWL.js +322 -0
- package/dist/chunk-AUQSATWL.js.map +1 -0
- package/dist/chunk-BMCH63QN.js +165 -0
- package/dist/chunk-BMCH63QN.js.map +1 -0
- package/dist/chunk-BUABAYZL.js +160 -0
- package/dist/chunk-BUABAYZL.js.map +1 -0
- package/dist/chunk-DCMPJ25E.js +140 -0
- package/dist/chunk-DCMPJ25E.js.map +1 -0
- package/dist/chunk-DV7TGRU6.js +47 -0
- package/dist/chunk-DV7TGRU6.js.map +1 -0
- package/dist/chunk-F2WT77ZG.js +163 -0
- package/dist/chunk-F2WT77ZG.js.map +1 -0
- package/dist/chunk-FNJ7AEJK.js +955 -0
- package/dist/chunk-FNJ7AEJK.js.map +1 -0
- package/dist/chunk-G74HNSB6.js +9 -0
- package/dist/chunk-G74HNSB6.js.map +1 -0
- package/dist/chunk-GTLE2HEW.js +108 -0
- package/dist/chunk-GTLE2HEW.js.map +1 -0
- package/dist/chunk-GUZCRDK6.js +143 -0
- package/dist/chunk-GUZCRDK6.js.map +1 -0
- package/dist/chunk-HNEAVVBC.js +98 -0
- package/dist/chunk-HNEAVVBC.js.map +1 -0
- package/dist/chunk-HSVNJGK3.js +1149 -0
- package/dist/chunk-HSVNJGK3.js.map +1 -0
- package/dist/chunk-IFSD6O5M.js +29 -0
- package/dist/chunk-IFSD6O5M.js.map +1 -0
- package/dist/{table-SSNABG5W.js → chunk-IO5PU52K.js} +119 -61
- package/dist/chunk-IO5PU52K.js.map +1 -0
- package/dist/chunk-K4LFGNS7.js +137 -0
- package/dist/chunk-K4LFGNS7.js.map +1 -0
- package/dist/chunk-KGEHUWGL.js +79 -0
- package/dist/chunk-KGEHUWGL.js.map +1 -0
- package/dist/chunk-KW6ATQPN.js +151 -0
- package/dist/chunk-KW6ATQPN.js.map +1 -0
- package/dist/chunk-NX3KWIP5.js +207 -0
- package/dist/chunk-NX3KWIP5.js.map +1 -0
- package/dist/chunk-OOVNE6MB.js +28 -0
- package/dist/chunk-OOVNE6MB.js.map +1 -0
- package/dist/chunk-OQMMHWMZ.js +7 -0
- package/dist/chunk-OQMMHWMZ.js.map +1 -0
- package/dist/{chunk-JPJVTB45.js → chunk-QU3KXMYT.js} +8 -2
- package/dist/chunk-QU3KXMYT.js.map +1 -0
- package/dist/chunk-QWT56RVG.js +158 -0
- package/dist/chunk-QWT56RVG.js.map +1 -0
- package/dist/chunk-RJ7T56OH.js +3787 -0
- package/dist/chunk-RJ7T56OH.js.map +1 -0
- package/dist/{chunk-KWXFL4WS.js → chunk-RPHA4HRX.js} +8 -5
- package/dist/chunk-RPHA4HRX.js.map +1 -0
- package/dist/chunk-S4DCQA74.js +66 -0
- package/dist/chunk-S4DCQA74.js.map +1 -0
- package/dist/chunk-SCIRO4XK.js +144 -0
- package/dist/chunk-SCIRO4XK.js.map +1 -0
- package/dist/chunk-SNVYHGGO.js +127 -0
- package/dist/chunk-SNVYHGGO.js.map +1 -0
- package/dist/chunk-T4543CB2.js +67 -0
- package/dist/chunk-T4543CB2.js.map +1 -0
- package/dist/{chunk-T3GY6IVK.js → chunk-UHUOAQA6.js} +71 -9
- package/dist/chunk-UHUOAQA6.js.map +1 -0
- package/dist/chunk-UTMS2P2K.js +288 -0
- package/dist/chunk-UTMS2P2K.js.map +1 -0
- package/dist/{chunk-HPLT3XRZ.js → chunk-V7WUHUHM.js} +13 -1
- package/dist/chunk-V7WUHUHM.js.map +1 -0
- package/dist/chunk-WAOU5NGN.js +430 -0
- package/dist/chunk-WAOU5NGN.js.map +1 -0
- package/dist/{chunk-R2UMUCVI.js → chunk-XCXJD5DO.js} +53 -8
- package/dist/chunk-XCXJD5DO.js.map +1 -0
- package/dist/chunk-XIH4SCO6.js +112 -0
- package/dist/chunk-XIH4SCO6.js.map +1 -0
- package/dist/chunk-XR7CY4NI.js +11 -0
- package/dist/chunk-XR7CY4NI.js.map +1 -0
- package/dist/chunk-Y2OXWCM7.js +263 -0
- package/dist/chunk-Y2OXWCM7.js.map +1 -0
- package/dist/chunk-YDF55N6Z.js +164 -0
- package/dist/chunk-YDF55N6Z.js.map +1 -0
- package/dist/chunk-YOTA26H7.js +373 -0
- package/dist/chunk-YOTA26H7.js.map +1 -0
- package/dist/chunk-YP7N47QR.js +101 -0
- package/dist/chunk-YP7N47QR.js.map +1 -0
- package/dist/{chunk-KPE3QRPB.js → chunk-YYCDRUE2.js} +16 -315
- package/dist/chunk-YYCDRUE2.js.map +1 -0
- package/dist/codesample-FOWXMCTC.js +546 -0
- package/dist/codesample-FOWXMCTC.js.map +1 -0
- package/dist/{comments-panel-HXMWSRAW.js → comments-panel-SOLBZ46Q.js} +9 -5
- package/dist/comments-panel-SOLBZ46Q.js.map +1 -0
- package/dist/{directionality-5JLWQGP2.js → directionality-BXWXNPRZ.js} +13 -10
- package/dist/directionality-BXWXNPRZ.js.map +1 -0
- package/dist/document-B0hLRhuH.d.cts +39 -0
- package/dist/document-Dh-jz1SK.d.ts +39 -0
- package/dist/docx.cjs +23575 -0
- package/dist/docx.cjs.map +1 -0
- package/dist/docx.d.cts +83 -0
- package/dist/docx.d.ts +83 -0
- package/dist/docx.js +1826 -0
- package/dist/docx.js.map +1 -0
- package/dist/draghandle-3IBHVHDE.js +389 -0
- package/dist/draghandle-3IBHVHDE.js.map +1 -0
- package/dist/editimage-GTLFGHYU.js +683 -0
- package/dist/editimage-GTLFGHYU.js.map +1 -0
- package/dist/editor-DnAN9aPd.d.ts +2948 -0
- package/dist/editor-S8w_w5W0.d.cts +2948 -0
- package/dist/email-FDSENENR.js +177 -0
- package/dist/email-FDSENENR.js.map +1 -0
- package/dist/email.cjs +588 -0
- package/dist/email.cjs.map +1 -0
- package/dist/email.d.cts +7 -0
- package/dist/email.d.ts +7 -0
- package/dist/email.js +21 -0
- package/dist/email.js.map +1 -0
- package/dist/{emoticons-ZD6ZRIWG.js → emoticons-SHYSAEID.js} +7 -7
- package/dist/emoticons-SHYSAEID.js.map +1 -0
- package/dist/exportpdf-TEBDQZSN.js +91 -0
- package/dist/exportpdf-TEBDQZSN.js.map +1 -0
- package/dist/exportword-BGH2CZXO.js +16 -0
- package/dist/exportword-BGH2CZXO.js.map +1 -0
- package/dist/footnotes-ui-KPKFDSN7.js +449 -0
- package/dist/footnotes-ui-KPKFDSN7.js.map +1 -0
- package/dist/form-dialog-SNWFPM2K.js +379 -0
- package/dist/form-dialog-SNWFPM2K.js.map +1 -0
- package/dist/formatpainter-CB4ZTKR5.js +209 -0
- package/dist/formatpainter-CB4ZTKR5.js.map +1 -0
- package/dist/fullpagehtml-ui-JPGRMXHD.js +220 -0
- package/dist/fullpagehtml-ui-JPGRMXHD.js.map +1 -0
- package/dist/html-rules-api-BLDDW9MO.d.cts +42 -0
- package/dist/html-rules-api-BLDDW9MO.d.ts +42 -0
- package/dist/html-rules.cjs +21 -19
- package/dist/html-rules.cjs.map +1 -1
- package/dist/html-rules.d.cts +37 -35
- package/dist/html-rules.d.ts +37 -35
- package/dist/html-rules.js +26 -22
- package/dist/html-rules.js.map +1 -1
- package/dist/i18n/de.cjs +349 -0
- package/dist/i18n/de.cjs.map +1 -1
- package/dist/i18n/de.d.cts +1 -1
- package/dist/i18n/de.d.ts +1 -1
- package/dist/i18n/de.js +349 -0
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/es.cjs +349 -0
- package/dist/i18n/es.cjs.map +1 -1
- package/dist/i18n/es.d.cts +1 -1
- package/dist/i18n/es.d.ts +1 -1
- package/dist/i18n/es.js +349 -0
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.cjs +349 -0
- package/dist/i18n/fr.cjs.map +1 -1
- package/dist/i18n/fr.d.cts +1 -1
- package/dist/i18n/fr.d.ts +1 -1
- package/dist/i18n/fr.js +349 -0
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/it.cjs +349 -0
- package/dist/i18n/it.cjs.map +1 -1
- package/dist/i18n/it.d.cts +1 -1
- package/dist/i18n/it.d.ts +1 -1
- package/dist/i18n/it.js +349 -0
- package/dist/i18n/it.js.map +1 -1
- package/dist/i18n/pt-BR.cjs +349 -0
- package/dist/i18n/pt-BR.cjs.map +1 -1
- package/dist/i18n/pt-BR.d.cts +1 -1
- package/dist/i18n/pt-BR.d.ts +1 -1
- package/dist/i18n/pt-BR.js +349 -0
- package/dist/i18n/pt-BR.js.map +1 -1
- package/dist/i18n/ru.cjs +349 -0
- package/dist/i18n/ru.cjs.map +1 -1
- package/dist/i18n/ru.d.cts +3 -3
- package/dist/i18n/ru.d.ts +3 -3
- package/dist/i18n/ru.js +349 -0
- package/dist/i18n/ru.js.map +1 -1
- package/dist/importcss-JLNIRKGH.js +127 -0
- package/dist/importcss-JLNIRKGH.js.map +1 -0
- package/dist/importword-ZOWLUWSN.js +73 -0
- package/dist/importword-ZOWLUWSN.js.map +1 -0
- package/dist/{index-C603bU6r.d.ts → index-Pb2r0V-S.d.cts} +39 -17
- package/dist/{index-C603bU6r.d.cts → index-Pb2r0V-S.d.ts} +39 -17
- package/dist/index.cjs +29422 -10640
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +139 -64
- package/dist/index.d.ts +139 -64
- package/dist/index.js +204 -1412
- package/dist/index.js.map +1 -1
- package/dist/{insertdatetime-CRO7TJAQ.js → insertdatetime-BXQ3XXPH.js} +7 -7
- package/dist/insertdatetime-BXQ3XXPH.js.map +1 -0
- package/dist/linkchecker-JASSETVI.js +287 -0
- package/dist/linkchecker-JASSETVI.js.map +1 -0
- package/dist/markdown-OTLTCK26.js +136 -0
- package/dist/markdown-OTLTCK26.js.map +1 -0
- package/dist/markdown.cjs +94 -11
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +12 -10
- package/dist/markdown.d.ts +12 -10
- package/dist/markdown.js +4 -235
- package/dist/markdown.js.map +1 -1
- package/dist/math-ui-TY4VZF7Q.js +157 -0
- package/dist/math-ui-TY4VZF7Q.js.map +1 -0
- package/dist/media-ui-IXN4ENVF.js +123 -0
- package/dist/media-ui-IXN4ENVF.js.map +1 -0
- package/dist/mediaembed-ui-ODX5ECXC.js +207 -0
- package/dist/mediaembed-ui-ODX5ECXC.js.map +1 -0
- package/dist/mentions-ui-55GCKC6F.js +58 -0
- package/dist/mentions-ui-55GCKC6F.js.map +1 -0
- package/dist/mergetags-ui-6T7Z7MAZ.js +73 -0
- package/dist/mergetags-ui-6T7Z7MAZ.js.map +1 -0
- package/dist/{nonbreaking-66LFZV2W.js → nonbreaking-PONHSOMJ.js} +7 -7
- package/dist/nonbreaking-PONHSOMJ.js.map +1 -0
- package/dist/pagebreak-ui-AKAW7M5I.js +50 -0
- package/dist/pagebreak-ui-AKAW7M5I.js.map +1 -0
- package/dist/pageembed-ui-GUNPKMBR.js +172 -0
- package/dist/pageembed-ui-GUNPKMBR.js.map +1 -0
- package/dist/pagelayout-ui-JSFVEMHS.js +236 -0
- package/dist/pagelayout-ui-JSFVEMHS.js.map +1 -0
- package/dist/{paste-office-F3QW4WWO.js → paste-office-TORLAZ5L.js} +94 -4
- package/dist/paste-office-TORLAZ5L.js.map +1 -0
- package/dist/permanentpen-EACURV5U.js +206 -0
- package/dist/permanentpen-EACURV5U.js.map +1 -0
- package/dist/print-4XJCOANX.js +178 -0
- package/dist/print-4XJCOANX.js.map +1 -0
- package/dist/{quickbars-7E2QRS7J.js → quickbars-BT5PETRX.js} +20 -12
- package/dist/quickbars-BT5PETRX.js.map +1 -0
- package/dist/{revisionhistory-DXE7KU4R.js → revisionhistory-3FKLMJHJ.js} +42 -153
- package/dist/revisionhistory-3FKLMJHJ.js.map +1 -0
- package/dist/save-ZHFXH222.js +120 -0
- package/dist/save-ZHFXH222.js.map +1 -0
- package/dist/search-bar-6MVRMTK6.js +212 -0
- package/dist/search-bar-6MVRMTK6.js.map +1 -0
- package/dist/spellchecker-JJKA6B4R.js +474 -0
- package/dist/spellchecker-JJKA6B4R.js.map +1 -0
- package/dist/suggestions-panel-X37NFLXE.js +596 -0
- package/dist/suggestions-panel-X37NFLXE.js.map +1 -0
- package/dist/suggestions-ui-WN7QNYHB.js +395 -0
- package/dist/suggestions-ui-WN7QNYHB.js.map +1 -0
- package/dist/table-PEF56QG5.js +54 -0
- package/dist/table-PEF56QG5.js.map +1 -0
- package/dist/table-dialogs-QS3VFZD2.js +119 -0
- package/dist/table-dialogs-QS3VFZD2.js.map +1 -0
- package/dist/tableofcontents-ui-U7EV3UU7.js +167 -0
- package/dist/tableofcontents-ui-U7EV3UU7.js.map +1 -0
- package/dist/template-ZRTKIP2J.js +278 -0
- package/dist/template-ZRTKIP2J.js.map +1 -0
- package/dist/typography-S7RO54DB.js +399 -0
- package/dist/typography-S7RO54DB.js.map +1 -0
- package/dist/upload.cjs +160 -0
- package/dist/upload.cjs.map +1 -0
- package/dist/upload.d.cts +72 -0
- package/dist/upload.d.ts +72 -0
- package/dist/upload.js +132 -0
- package/dist/upload.js.map +1 -0
- package/dist/{visualblocks-6DLBXYOA.js → visualblocks-KJYRHF2L.js} +7 -7
- package/dist/visualblocks-KJYRHF2L.js.map +1 -0
- package/dist/visualchars-TDLZKFXD.js +134 -0
- package/dist/visualchars-TDLZKFXD.js.map +1 -0
- package/package.json +53 -3
- package/src/style.css +376 -550
- package/dist/advlist-5FNKPLUX.js.map +0 -1
- package/dist/autolink-45LTODWB.js.map +0 -1
- package/dist/autoresize-UB3GOA6D.js.map +0 -1
- package/dist/autosave-GMWJ5BPE.js.map +0 -1
- package/dist/charmap-2GC7LF7G.js.map +0 -1
- package/dist/chunk-5AW2HHG6.js.map +0 -1
- package/dist/chunk-DWZLSZDG.js +0 -5664
- package/dist/chunk-DWZLSZDG.js.map +0 -1
- package/dist/chunk-FCMZ7TUQ.js.map +0 -1
- package/dist/chunk-HPLT3XRZ.js.map +0 -1
- package/dist/chunk-JPJVTB45.js.map +0 -1
- package/dist/chunk-KPE3QRPB.js.map +0 -1
- package/dist/chunk-KWXFL4WS.js.map +0 -1
- package/dist/chunk-ND2CWNVG.js.map +0 -1
- package/dist/chunk-PVFKXRID.js.map +0 -1
- package/dist/chunk-R2UMUCVI.js.map +0 -1
- package/dist/chunk-T3GY6IVK.js.map +0 -1
- package/dist/chunk-Z3ELZ77W.js.map +0 -1
- package/dist/comments-panel-HXMWSRAW.js.map +0 -1
- package/dist/directionality-5JLWQGP2.js.map +0 -1
- package/dist/editor-CXkltf1R.d.ts +0 -1886
- package/dist/editor-CgSBFTke.d.cts +0 -1886
- package/dist/emoticons-ZD6ZRIWG.js.map +0 -1
- package/dist/form-dialog-QH6KAERD.js +0 -180
- package/dist/form-dialog-QH6KAERD.js.map +0 -1
- package/dist/html-rules-api-D3fKQi-R.d.cts +0 -40
- package/dist/html-rules-api-D3fKQi-R.d.ts +0 -40
- package/dist/insertdatetime-CRO7TJAQ.js.map +0 -1
- package/dist/nonbreaking-66LFZV2W.js.map +0 -1
- package/dist/paste-office-F3QW4WWO.js.map +0 -1
- package/dist/quickbars-7E2QRS7J.js.map +0 -1
- package/dist/revisionhistory-DXE7KU4R.js.map +0 -1
- package/dist/table-SSNABG5W.js.map +0 -1
- package/dist/visualblocks-6DLBXYOA.js.map +0 -1
package/src/style.css
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* NovaProse
|
|
3
|
-
*
|
|
4
|
-
* prefers-color-scheme
|
|
2
|
+
* NovaProse: the base skin.
|
|
3
|
+
* Every color and size is a CSS variable (design tokens). The dark theme comes from
|
|
4
|
+
* prefers-color-scheme or data-theme="dark" on any ancestor; data-theme="light" pins the light one.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/* =======================
|
|
7
|
+
/* ======================= tokens ======================= */
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
/* The sheet of the page mode (pagelayout) is paper: light tokens in the dark theme too. */
|
|
10
|
+
.nova-editor,
|
|
11
|
+
.nova-pages .nova-prosemirror {
|
|
10
12
|
--nova-bg: #ffffff;
|
|
11
13
|
--nova-fg: #1f2328;
|
|
12
|
-
--nova-muted: #59636e; /* ≥4.5:1
|
|
14
|
+
--nova-muted: #59636e; /* ≥4.5:1 on every surface, hover/pressed included */
|
|
13
15
|
--nova-subtle: #8c959f;
|
|
14
16
|
--nova-border: #d0d7de;
|
|
15
17
|
--nova-border-strong: #afb8c1;
|
|
18
|
+
/* The edge of fields and of the editor: 3:1 on every surface (WCAG 1.4.11). */
|
|
19
|
+
--nova-control-border: #7d8590;
|
|
16
20
|
--nova-toolbar-bg: #f6f8fa;
|
|
17
21
|
--nova-surface: #ffffff;
|
|
18
22
|
--nova-hover: #eaeef2;
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
--nova-accent: #0969da;
|
|
23
27
|
--nova-accent-hover: #0858b9;
|
|
24
28
|
--nova-accent-fg: #ffffff;
|
|
25
|
-
/*
|
|
29
|
+
/* Button fills with white text: contrast of at least 4.5:1 (WCAG AA). */
|
|
26
30
|
--nova-accent-strong: #0969da;
|
|
27
31
|
--nova-accent-strong-hover: #0858b9;
|
|
28
32
|
--nova-focus: #0969da;
|
|
@@ -61,10 +65,11 @@
|
|
|
61
65
|
[data-theme='dark'] .nova-editor {
|
|
62
66
|
--nova-bg: #0d1117;
|
|
63
67
|
--nova-fg: #e6edf3;
|
|
64
|
-
--nova-muted: #9198a1; /* ≥4.5:1
|
|
68
|
+
--nova-muted: #9198a1; /* ≥4.5:1 on every surface, hover/pressed included */
|
|
65
69
|
--nova-subtle: #6e7681;
|
|
66
70
|
--nova-border: #30363d;
|
|
67
71
|
--nova-border-strong: #484f58;
|
|
72
|
+
--nova-control-border: #6e7681;
|
|
68
73
|
--nova-toolbar-bg: #161b22;
|
|
69
74
|
--nova-surface: #161b22;
|
|
70
75
|
--nova-hover: #21262d;
|
|
@@ -74,7 +79,7 @@
|
|
|
74
79
|
--nova-accent: #2f81f7;
|
|
75
80
|
--nova-accent-hover: #4493f8;
|
|
76
81
|
--nova-accent-fg: #ffffff;
|
|
77
|
-
/* #2f81f7
|
|
82
|
+
/* #2f81f7 with white is 3.7:1, below AA; fills use a darker shade (4.6:1). */
|
|
78
83
|
--nova-accent-strong: #1f6feb;
|
|
79
84
|
--nova-accent-strong-hover: #1a63d6;
|
|
80
85
|
--nova-focus: #58a6ff;
|
|
@@ -103,10 +108,11 @@
|
|
|
103
108
|
.nova-editor:not([data-theme='light'] *) {
|
|
104
109
|
--nova-bg: #0d1117;
|
|
105
110
|
--nova-fg: #e6edf3;
|
|
106
|
-
--nova-muted: #9198a1; /* ≥4.5:1
|
|
111
|
+
--nova-muted: #9198a1; /* ≥4.5:1 on every surface, hover/pressed included */
|
|
107
112
|
--nova-subtle: #6e7681;
|
|
108
113
|
--nova-border: #30363d;
|
|
109
114
|
--nova-border-strong: #484f58;
|
|
115
|
+
--nova-control-border: #6e7681;
|
|
110
116
|
--nova-toolbar-bg: #161b22;
|
|
111
117
|
--nova-surface: #161b22;
|
|
112
118
|
--nova-hover: #21262d;
|
|
@@ -116,7 +122,7 @@
|
|
|
116
122
|
--nova-accent: #2f81f7;
|
|
117
123
|
--nova-accent-hover: #4493f8;
|
|
118
124
|
--nova-accent-fg: #ffffff;
|
|
119
|
-
/* #2f81f7
|
|
125
|
+
/* #2f81f7 with white is 3.7:1, below AA; fills use a darker shade (4.6:1). */
|
|
120
126
|
--nova-accent-strong: #1f6feb;
|
|
121
127
|
--nova-accent-strong-hover: #1a63d6;
|
|
122
128
|
--nova-focus: #58a6ff;
|
|
@@ -142,7 +148,7 @@
|
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
150
|
|
|
145
|
-
/* =======================
|
|
151
|
+
/* ======================= frame ======================= */
|
|
146
152
|
|
|
147
153
|
.nova-editor {
|
|
148
154
|
position: relative;
|
|
@@ -150,7 +156,7 @@
|
|
|
150
156
|
flex-direction: column;
|
|
151
157
|
min-width: 0;
|
|
152
158
|
max-width: 100%;
|
|
153
|
-
border: 1px solid var(--nova-border);
|
|
159
|
+
border: 1px solid var(--nova-control-border);
|
|
154
160
|
border-radius: var(--nova-radius);
|
|
155
161
|
background: var(--nova-bg);
|
|
156
162
|
color: var(--nova-fg);
|
|
@@ -166,7 +172,7 @@
|
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
.nova-editor:focus-within {
|
|
169
|
-
border-color: var(--nova-
|
|
175
|
+
border-color: var(--nova-focus);
|
|
170
176
|
}
|
|
171
177
|
|
|
172
178
|
.nova-icon {
|
|
@@ -192,12 +198,13 @@
|
|
|
192
198
|
outline-offset: 1px;
|
|
193
199
|
}
|
|
194
200
|
|
|
195
|
-
/* =======================
|
|
201
|
+
/* ======================= toolbar ======================= */
|
|
196
202
|
|
|
197
|
-
/*
|
|
203
|
+
/* The header (menubar + toolbar) is sticky as a whole: a toolbar inside it couldn't stick. */
|
|
198
204
|
.nova-header {
|
|
199
205
|
position: sticky;
|
|
200
|
-
|
|
206
|
+
/* toolbarStickyOffset: below the page's own fixed header. */
|
|
207
|
+
top: var(--nova-sticky-offset, 0px);
|
|
201
208
|
z-index: 2;
|
|
202
209
|
border-bottom: 1px solid var(--nova-border);
|
|
203
210
|
border-radius: var(--nova-radius) var(--nova-radius) 0 0;
|
|
@@ -217,7 +224,7 @@
|
|
|
217
224
|
border-radius: inherit;
|
|
218
225
|
}
|
|
219
226
|
|
|
220
|
-
/* ----------
|
|
227
|
+
/* ---------- menubar ---------- */
|
|
221
228
|
|
|
222
229
|
.nova-menubar {
|
|
223
230
|
display: flex;
|
|
@@ -246,9 +253,9 @@
|
|
|
246
253
|
background: var(--nova-hover);
|
|
247
254
|
}
|
|
248
255
|
|
|
249
|
-
/* ----------
|
|
256
|
+
/* ---------- inline and distraction-free modes ---------- */
|
|
250
257
|
|
|
251
|
-
/*
|
|
258
|
+
/* The editor is part of the page: no frame or background, the font and color of the page. */
|
|
252
259
|
.nova-editor.nova-mode-inline,
|
|
253
260
|
.nova-editor.nova-mode-distraction-free {
|
|
254
261
|
border: 0;
|
|
@@ -263,17 +270,17 @@
|
|
|
263
270
|
font-size: inherit;
|
|
264
271
|
}
|
|
265
272
|
|
|
266
|
-
/*
|
|
273
|
+
/* A visible border of the editable area on focus, otherwise it isn't clear the text can be edited. */
|
|
267
274
|
.nova-mode-inline.is-focused .nova-content,
|
|
268
275
|
.nova-mode-distraction-free.is-focused .nova-content {
|
|
269
276
|
border-radius: var(--nova-radius-sm);
|
|
270
277
|
box-shadow: 0 0 0 2px var(--nova-focus);
|
|
271
278
|
}
|
|
272
279
|
|
|
273
|
-
/* inline:
|
|
280
|
+
/* inline: the header floats above the text on focus. */
|
|
274
281
|
.nova-mode-inline .nova-header {
|
|
275
282
|
position: absolute;
|
|
276
|
-
/* top: 0
|
|
283
|
+
/* Reset top: 0 from the sticky rule: with both top and bottom the height collapses. */
|
|
277
284
|
top: auto;
|
|
278
285
|
left: 0;
|
|
279
286
|
right: 0;
|
|
@@ -296,14 +303,32 @@
|
|
|
296
303
|
flex: 1;
|
|
297
304
|
}
|
|
298
305
|
|
|
299
|
-
.nova-toolbar-
|
|
306
|
+
.nova-toolbar-floating,
|
|
307
|
+
.nova-toolbar-sliding,
|
|
308
|
+
.nova-toolbar-scrolling {
|
|
300
309
|
flex-wrap: nowrap;
|
|
301
310
|
overflow: hidden;
|
|
302
|
-
/*
|
|
303
|
-
|
|
311
|
+
/* The toolbar width must not stretch the customer's container (grid/flex): otherwise when groups
|
|
312
|
+
move into "⋯" the container shrinks, ResizeObserver restarts the layout, and it loops. */
|
|
304
313
|
contain: inline-size;
|
|
305
314
|
}
|
|
306
315
|
|
|
316
|
+
/* One row that scrolls sideways (a swipe, Shift+wheel); the focused button scrolls into view. */
|
|
317
|
+
.nova-toolbar-scrolling {
|
|
318
|
+
overflow-x: auto;
|
|
319
|
+
overscroll-behavior-x: contain;
|
|
320
|
+
scrollbar-width: thin;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* "Sliding": the groups that don't fit, in a strip under the toolbar. */
|
|
324
|
+
.nova-tb-strip {
|
|
325
|
+
flex-wrap: wrap;
|
|
326
|
+
border-top: 1px solid var(--nova-border);
|
|
327
|
+
}
|
|
328
|
+
.nova-tb-strip[hidden] {
|
|
329
|
+
display: none;
|
|
330
|
+
}
|
|
331
|
+
|
|
307
332
|
.nova-tb-group {
|
|
308
333
|
display: flex;
|
|
309
334
|
flex: none;
|
|
@@ -359,6 +384,8 @@
|
|
|
359
384
|
.nova-btn.is-active {
|
|
360
385
|
background: var(--nova-active);
|
|
361
386
|
color: var(--nova-active-fg);
|
|
387
|
+
/* The tint alone is too faint to tell a pressed button (WCAG 1.4.11): a ring in its color. */
|
|
388
|
+
box-shadow: inset 0 0 0 1px var(--nova-active-fg);
|
|
362
389
|
}
|
|
363
390
|
|
|
364
391
|
.nova-btn:disabled {
|
|
@@ -393,10 +420,11 @@
|
|
|
393
420
|
padding: 0 2px 0 5px;
|
|
394
421
|
}
|
|
395
422
|
|
|
423
|
+
/* The color under the letter: the letter stays on the line of the other icons, the bar just below it. */
|
|
396
424
|
.nova-color-bar {
|
|
397
425
|
position: absolute;
|
|
398
426
|
inset-inline-start: 8px;
|
|
399
|
-
bottom:
|
|
427
|
+
bottom: 5px;
|
|
400
428
|
width: 18px;
|
|
401
429
|
height: 3px;
|
|
402
430
|
border-radius: 2px;
|
|
@@ -407,24 +435,20 @@
|
|
|
407
435
|
background: var(--nova-fg);
|
|
408
436
|
}
|
|
409
437
|
|
|
410
|
-
|
|
411
|
-
transform: translateY(-2px);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/* ======================= область редактирования ======================= */
|
|
438
|
+
/* ======================= editing area ======================= */
|
|
415
439
|
|
|
416
440
|
.nova-content {
|
|
417
441
|
flex: 1;
|
|
418
442
|
overflow: auto;
|
|
419
|
-
/*
|
|
420
|
-
|
|
443
|
+
/* The width comes from the page, not the content: otherwise a wide table or a long line of code
|
|
444
|
+
inflates the whole editor on a narrow screen instead of scrolling inside. */
|
|
421
445
|
contain: inline-size;
|
|
422
446
|
min-width: 0;
|
|
423
447
|
}
|
|
424
448
|
|
|
425
449
|
.nova-prosemirror {
|
|
426
450
|
position: relative;
|
|
427
|
-
/*
|
|
451
|
+
/* Contains floating images inside the text area. */
|
|
428
452
|
display: flow-root;
|
|
429
453
|
min-height: var(--nova-min-height);
|
|
430
454
|
padding: 16px 20px;
|
|
@@ -447,8 +471,10 @@
|
|
|
447
471
|
|
|
448
472
|
.nova-prosemirror.nova-empty::before {
|
|
449
473
|
content: attr(data-placeholder);
|
|
474
|
+
/* Empty alternative text: screen readers get aria-placeholder instead (older browsers skip this line). */
|
|
475
|
+
content: attr(data-placeholder) / '';
|
|
450
476
|
position: absolute;
|
|
451
|
-
/*
|
|
477
|
+
/* Text needs AA contrast (4.5:1), so muted, not subtle. */
|
|
452
478
|
color: var(--nova-muted);
|
|
453
479
|
pointer-events: none;
|
|
454
480
|
}
|
|
@@ -486,6 +512,9 @@
|
|
|
486
512
|
font-family: var(--nova-mono);
|
|
487
513
|
font-size: 14px;
|
|
488
514
|
white-space: pre-wrap;
|
|
515
|
+
/* Code is written left to right even in an Arabic or Hebrew document. */
|
|
516
|
+
direction: ltr;
|
|
517
|
+
text-align: left;
|
|
489
518
|
}
|
|
490
519
|
|
|
491
520
|
.nova-prosemirror code {
|
|
@@ -522,7 +551,7 @@
|
|
|
522
551
|
border-radius: 2px;
|
|
523
552
|
}
|
|
524
553
|
|
|
525
|
-
/*
|
|
554
|
+
/* An image with a caption: a table, so the caption is as wide as the image with any alignment. */
|
|
526
555
|
.nova-prosemirror figure {
|
|
527
556
|
display: table !important;
|
|
528
557
|
margin: 0.75em 0;
|
|
@@ -547,7 +576,7 @@
|
|
|
547
576
|
text-align: center;
|
|
548
577
|
}
|
|
549
578
|
|
|
550
|
-
/*
|
|
579
|
+
/* An empty caption shows a prompt in the interface language (the text is in --nova-caption-placeholder). */
|
|
551
580
|
.nova-prosemirror figcaption:has(> br.ProseMirror-trailingBreak:only-child)::before {
|
|
552
581
|
content: var(--nova-caption-placeholder, '');
|
|
553
582
|
color: var(--nova-muted);
|
|
@@ -564,9 +593,9 @@
|
|
|
564
593
|
animation: nova-pulse 1.2s ease-in-out infinite;
|
|
565
594
|
}
|
|
566
595
|
|
|
567
|
-
/* ----------
|
|
596
|
+
/* ---------- tables ---------- */
|
|
568
597
|
|
|
569
|
-
/*
|
|
598
|
+
/* The wrapper from prosemirror-tables: a wide table scrolls instead of breaking the layout (mobile). */
|
|
570
599
|
.nova-prosemirror .tableWrapper {
|
|
571
600
|
margin: 0 0 1em;
|
|
572
601
|
overflow-x: auto;
|
|
@@ -600,7 +629,7 @@
|
|
|
600
629
|
margin-bottom: 0;
|
|
601
630
|
}
|
|
602
631
|
|
|
603
|
-
/*
|
|
632
|
+
/* A selection of several cells (CellSelection). */
|
|
604
633
|
.nova-prosemirror .selectedCell::after {
|
|
605
634
|
content: '';
|
|
606
635
|
position: absolute;
|
|
@@ -610,7 +639,7 @@
|
|
|
610
639
|
pointer-events: none;
|
|
611
640
|
}
|
|
612
641
|
|
|
613
|
-
/*
|
|
642
|
+
/* Column resize handle. */
|
|
614
643
|
.nova-prosemirror .column-resize-handle {
|
|
615
644
|
position: absolute;
|
|
616
645
|
top: 0;
|
|
@@ -626,7 +655,7 @@
|
|
|
626
655
|
cursor: col-resize;
|
|
627
656
|
}
|
|
628
657
|
|
|
629
|
-
/*
|
|
658
|
+
/* The table size picker grid. */
|
|
630
659
|
.nova-grid-panel {
|
|
631
660
|
display: flex;
|
|
632
661
|
flex-direction: column;
|
|
@@ -661,7 +690,7 @@
|
|
|
661
690
|
text-align: center;
|
|
662
691
|
}
|
|
663
692
|
|
|
664
|
-
/* ----------
|
|
693
|
+
/* ---------- image: NodeView wrapper, resize handles, alignment ---------- */
|
|
665
694
|
|
|
666
695
|
.nova-image {
|
|
667
696
|
position: relative;
|
|
@@ -712,7 +741,7 @@
|
|
|
712
741
|
touch-action: none;
|
|
713
742
|
}
|
|
714
743
|
|
|
715
|
-
/*
|
|
744
|
+
/* A larger invisible touch area for a finger. */
|
|
716
745
|
.nova-image-handle::after {
|
|
717
746
|
content: '';
|
|
718
747
|
position: absolute;
|
|
@@ -751,7 +780,7 @@
|
|
|
751
780
|
cursor: nwse-resize;
|
|
752
781
|
}
|
|
753
782
|
|
|
754
|
-
/*
|
|
783
|
+
/* The size while resizing. */
|
|
755
784
|
.nova-image[data-size]::after {
|
|
756
785
|
content: attr(data-size);
|
|
757
786
|
position: absolute;
|
|
@@ -784,14 +813,15 @@
|
|
|
784
813
|
cursor: default;
|
|
785
814
|
}
|
|
786
815
|
|
|
787
|
-
/* =======================
|
|
816
|
+
/* ======================= search and replace ======================= */
|
|
788
817
|
|
|
789
818
|
.nova-search {
|
|
790
819
|
display: flex;
|
|
791
820
|
flex-direction: column;
|
|
792
821
|
gap: 6px;
|
|
793
822
|
padding: 8px;
|
|
794
|
-
|
|
823
|
+
/* Under the toolbar, inside the header (whose own edge is at the bottom). */
|
|
824
|
+
border-top: 1px solid var(--nova-border);
|
|
795
825
|
background: var(--nova-toolbar-bg);
|
|
796
826
|
}
|
|
797
827
|
|
|
@@ -836,6 +866,7 @@
|
|
|
836
866
|
.nova-search-toggle[aria-pressed='true'] {
|
|
837
867
|
background: var(--nova-active);
|
|
838
868
|
color: var(--nova-active-fg);
|
|
869
|
+
box-shadow: inset 0 0 0 1px var(--nova-active-fg);
|
|
839
870
|
}
|
|
840
871
|
|
|
841
872
|
.nova-prosemirror .nova-search-match {
|
|
@@ -848,7 +879,7 @@
|
|
|
848
879
|
box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.9);
|
|
849
880
|
}
|
|
850
881
|
|
|
851
|
-
/* =======================
|
|
882
|
+
/* ======================= fullscreen ======================= */
|
|
852
883
|
|
|
853
884
|
.nova-editor.nova-fullscreen {
|
|
854
885
|
position: fixed;
|
|
@@ -868,7 +899,7 @@
|
|
|
868
899
|
overflow: auto;
|
|
869
900
|
}
|
|
870
901
|
|
|
871
|
-
/*
|
|
902
|
+
/* In fullscreen the text gets a comfortable reading width, centered. */
|
|
872
903
|
.nova-fullscreen .nova-prosemirror {
|
|
873
904
|
max-width: 860px;
|
|
874
905
|
min-height: 100%;
|
|
@@ -881,7 +912,7 @@ html.nova-fullscreen-lock body {
|
|
|
881
912
|
overflow: hidden;
|
|
882
913
|
}
|
|
883
914
|
|
|
884
|
-
/* =======================
|
|
915
|
+
/* ======================= preview, source code, help ======================= */
|
|
885
916
|
|
|
886
917
|
.nova-dialog.nova-dialog-large {
|
|
887
918
|
width: min(900px, 100%);
|
|
@@ -921,20 +952,21 @@ html.nova-fullscreen-lock body {
|
|
|
921
952
|
letter-spacing: 0.03em;
|
|
922
953
|
}
|
|
923
954
|
|
|
924
|
-
.nova-help-
|
|
925
|
-
|
|
926
|
-
|
|
955
|
+
.nova-help-list {
|
|
956
|
+
margin: 0;
|
|
957
|
+
padding: 0;
|
|
958
|
+
list-style: none;
|
|
927
959
|
}
|
|
928
960
|
|
|
929
|
-
.nova-help-
|
|
961
|
+
.nova-help-list li {
|
|
962
|
+
display: flex;
|
|
963
|
+
justify-content: space-between;
|
|
964
|
+
align-items: baseline;
|
|
965
|
+
gap: 12px;
|
|
930
966
|
padding: 5px 0;
|
|
931
967
|
border-bottom: 1px solid var(--nova-border);
|
|
932
968
|
}
|
|
933
969
|
|
|
934
|
-
.nova-help-table td:last-child {
|
|
935
|
-
text-align: end;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
970
|
.nova-help kbd {
|
|
939
971
|
padding: 2px 6px;
|
|
940
972
|
border: 1px solid var(--nova-border);
|
|
@@ -946,7 +978,7 @@ html.nova-fullscreen-lock body {
|
|
|
946
978
|
white-space: nowrap;
|
|
947
979
|
}
|
|
948
980
|
|
|
949
|
-
/* =======================
|
|
981
|
+
/* ======================= statusbar ======================= */
|
|
950
982
|
|
|
951
983
|
.nova-statusbar {
|
|
952
984
|
display: flex;
|
|
@@ -959,7 +991,7 @@ html.nova-fullscreen-lock body {
|
|
|
959
991
|
border-radius: 0 0 var(--nova-radius) var(--nova-radius);
|
|
960
992
|
color: var(--nova-muted);
|
|
961
993
|
font-size: 12px;
|
|
962
|
-
/*
|
|
994
|
+
/* A service line: not selected while dragging the resize handle. */
|
|
963
995
|
user-select: none;
|
|
964
996
|
}
|
|
965
997
|
|
|
@@ -996,9 +1028,9 @@ html.nova-fullscreen-lock body {
|
|
|
996
1028
|
cursor: nwse-resize;
|
|
997
1029
|
}
|
|
998
1030
|
|
|
999
|
-
/* ----------
|
|
1031
|
+
/* ---------- right to left ---------- */
|
|
1000
1032
|
|
|
1001
|
-
/*
|
|
1033
|
+
/* The resize handle sits in the bottom left corner: the icon and the cursor are mirrored. */
|
|
1002
1034
|
[dir='rtl'] .nova-editor[data-resize='both'] .nova-resize-handle,
|
|
1003
1035
|
.nova-editor[dir='rtl'][data-resize='both'] .nova-resize-handle {
|
|
1004
1036
|
cursor: nesw-resize;
|
|
@@ -1008,8 +1040,8 @@ html.nova-fullscreen-lock body {
|
|
|
1008
1040
|
transform: scaleX(-1);
|
|
1009
1041
|
}
|
|
1010
1042
|
|
|
1011
|
-
/*
|
|
1012
|
-
|
|
1043
|
+
/* Icons with a sense of direction (undo arrows, indents, lists) are mirrored,
|
|
1044
|
+
as right-to-left interfaces do. The others (bold, link, image) stay as they are. */
|
|
1013
1045
|
:is([dir='rtl'] .nova-editor, .nova-editor[dir='rtl'])
|
|
1014
1046
|
:is(
|
|
1015
1047
|
[data-control='undo'],
|
|
@@ -1033,7 +1065,7 @@ html.nova-fullscreen-lock body {
|
|
|
1033
1065
|
outline-offset: 1px;
|
|
1034
1066
|
}
|
|
1035
1067
|
|
|
1036
|
-
/* =======================
|
|
1068
|
+
/* ======================= disabled editor ======================= */
|
|
1037
1069
|
|
|
1038
1070
|
.nova-disabled .nova-content,
|
|
1039
1071
|
.nova-disabled .nova-header,
|
|
@@ -1045,7 +1077,7 @@ html.nova-fullscreen-lock body {
|
|
|
1045
1077
|
cursor: not-allowed;
|
|
1046
1078
|
}
|
|
1047
1079
|
|
|
1048
|
-
/* =======================
|
|
1080
|
+
/* ======================= overlays ======================= */
|
|
1049
1081
|
|
|
1050
1082
|
.nova-popover,
|
|
1051
1083
|
.nova-tooltip,
|
|
@@ -1073,7 +1105,7 @@ html.nova-fullscreen-lock body {
|
|
|
1073
1105
|
padding: 2px;
|
|
1074
1106
|
}
|
|
1075
1107
|
|
|
1076
|
-
/* ----------
|
|
1108
|
+
/* ---------- menu ---------- */
|
|
1077
1109
|
|
|
1078
1110
|
.nova-menu {
|
|
1079
1111
|
display: flex;
|
|
@@ -1102,6 +1134,12 @@ html.nova-fullscreen-lock body {
|
|
|
1102
1134
|
outline: none;
|
|
1103
1135
|
}
|
|
1104
1136
|
|
|
1137
|
+
/* The hover tint is too faint for focus (WCAG 1.4.11): the focus ring, inside the item. */
|
|
1138
|
+
.nova-menu-item:focus-visible {
|
|
1139
|
+
outline: 2px solid var(--nova-focus);
|
|
1140
|
+
outline-offset: -2px;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1105
1143
|
.nova-menu-item:disabled {
|
|
1106
1144
|
opacity: 0.4;
|
|
1107
1145
|
cursor: default;
|
|
@@ -1125,7 +1163,7 @@ html.nova-fullscreen-lock body {
|
|
|
1125
1163
|
|
|
1126
1164
|
.nova-menu-shortcut {
|
|
1127
1165
|
margin-inline-start: 16px;
|
|
1128
|
-
/*
|
|
1166
|
+
/* Text needs AA contrast (4.5:1), so muted, not subtle. */
|
|
1129
1167
|
color: var(--nova-muted);
|
|
1130
1168
|
font-family: var(--nova-font);
|
|
1131
1169
|
font-size: 12px;
|
|
@@ -1146,7 +1184,7 @@ html.nova-fullscreen-lock body {
|
|
|
1146
1184
|
text-transform: uppercase;
|
|
1147
1185
|
}
|
|
1148
1186
|
|
|
1149
|
-
/* ----------
|
|
1187
|
+
/* ---------- autocompleter / slash commands ---------- */
|
|
1150
1188
|
|
|
1151
1189
|
.nova-ac {
|
|
1152
1190
|
min-width: 240px;
|
|
@@ -1175,7 +1213,7 @@ html.nova-fullscreen-lock body {
|
|
|
1175
1213
|
color: var(--nova-muted);
|
|
1176
1214
|
}
|
|
1177
1215
|
|
|
1178
|
-
/* ----------
|
|
1216
|
+
/* ---------- color palette ---------- */
|
|
1179
1217
|
|
|
1180
1218
|
.nova-color-panel {
|
|
1181
1219
|
display: flex;
|
|
@@ -1190,7 +1228,7 @@ html.nova-fullscreen-lock body {
|
|
|
1190
1228
|
gap: 4px;
|
|
1191
1229
|
}
|
|
1192
1230
|
|
|
1193
|
-
/*
|
|
1231
|
+
/* The palette row exists only for ARIA (role=row): it takes no part in the layout. */
|
|
1194
1232
|
.nova-swatch-row {
|
|
1195
1233
|
display: contents;
|
|
1196
1234
|
}
|
|
@@ -1202,7 +1240,7 @@ html.nova-fullscreen-lock body {
|
|
|
1202
1240
|
width: 24px;
|
|
1203
1241
|
height: 24px;
|
|
1204
1242
|
padding: 0;
|
|
1205
|
-
border: 1px solid
|
|
1243
|
+
border: 1px solid var(--nova-control-border);
|
|
1206
1244
|
border-radius: 4px;
|
|
1207
1245
|
background: var(--swatch);
|
|
1208
1246
|
color: #fff;
|
|
@@ -1262,7 +1300,7 @@ html.nova-fullscreen-lock body {
|
|
|
1262
1300
|
cursor: pointer;
|
|
1263
1301
|
}
|
|
1264
1302
|
|
|
1265
|
-
/* ----------
|
|
1303
|
+
/* ---------- tooltip ---------- */
|
|
1266
1304
|
|
|
1267
1305
|
.nova-tooltip {
|
|
1268
1306
|
display: flex;
|
|
@@ -1274,7 +1312,8 @@ html.nova-fullscreen-lock body {
|
|
|
1274
1312
|
color: var(--nova-tooltip-fg);
|
|
1275
1313
|
font-size: 12px;
|
|
1276
1314
|
line-height: 1.4;
|
|
1277
|
-
pointer
|
|
1315
|
+
/* The pointer can rest on it (WCAG 1.4.13). */
|
|
1316
|
+
pointer-events: auto;
|
|
1278
1317
|
white-space: nowrap;
|
|
1279
1318
|
}
|
|
1280
1319
|
|
|
@@ -1287,7 +1326,7 @@ html.nova-fullscreen-lock body {
|
|
|
1287
1326
|
font-family: var(--nova-font);
|
|
1288
1327
|
}
|
|
1289
1328
|
|
|
1290
|
-
/* ----------
|
|
1329
|
+
/* ---------- link bubble ---------- */
|
|
1291
1330
|
|
|
1292
1331
|
.nova-bubble {
|
|
1293
1332
|
display: flex;
|
|
@@ -1306,11 +1345,11 @@ html.nova-fullscreen-lock body {
|
|
|
1306
1345
|
display: none;
|
|
1307
1346
|
}
|
|
1308
1347
|
|
|
1309
|
-
.nova-bubble > .nova-icon {
|
|
1348
|
+
.nova-bubble-row > .nova-icon {
|
|
1310
1349
|
color: var(--nova-muted);
|
|
1311
1350
|
}
|
|
1312
1351
|
|
|
1313
|
-
.nova-bubble > .nova-icon svg {
|
|
1352
|
+
.nova-bubble-row > .nova-icon svg {
|
|
1314
1353
|
width: 14px;
|
|
1315
1354
|
height: 14px;
|
|
1316
1355
|
}
|
|
@@ -1326,6 +1365,32 @@ html.nova-fullscreen-lock body {
|
|
|
1326
1365
|
font-size: 13px;
|
|
1327
1366
|
}
|
|
1328
1367
|
|
|
1368
|
+
/* The link bubble: the address with its buttons, and under it a plugin's note (the link checker). */
|
|
1369
|
+
.nova-link-bubble {
|
|
1370
|
+
flex-direction: column;
|
|
1371
|
+
align-items: stretch;
|
|
1372
|
+
}
|
|
1373
|
+
.nova-bubble-row {
|
|
1374
|
+
display: flex;
|
|
1375
|
+
align-items: center;
|
|
1376
|
+
gap: 2px;
|
|
1377
|
+
min-width: 0;
|
|
1378
|
+
}
|
|
1379
|
+
.nova-bubble-note {
|
|
1380
|
+
display: flex;
|
|
1381
|
+
align-items: center;
|
|
1382
|
+
justify-content: space-between;
|
|
1383
|
+
gap: 8px;
|
|
1384
|
+
margin-top: 4px;
|
|
1385
|
+
padding-top: 4px;
|
|
1386
|
+
border-top: 1px solid var(--nova-border);
|
|
1387
|
+
font-size: 13px;
|
|
1388
|
+
}
|
|
1389
|
+
.nova-bubble-note[hidden],
|
|
1390
|
+
.nova-bubble-note-action[hidden] {
|
|
1391
|
+
display: none;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1329
1394
|
.nova-context-toolbar {
|
|
1330
1395
|
padding: 4px;
|
|
1331
1396
|
}
|
|
@@ -1337,11 +1402,25 @@ html.nova-fullscreen-lock body {
|
|
|
1337
1402
|
gap: 2px;
|
|
1338
1403
|
}
|
|
1339
1404
|
|
|
1340
|
-
/*
|
|
1405
|
+
/* On a narrow screen a toolbar (a table's, for example) wraps onto several lines instead of running off the edge. */
|
|
1341
1406
|
.nova-context-toolbar {
|
|
1342
1407
|
max-width: calc(100vw - 16px);
|
|
1343
1408
|
}
|
|
1344
1409
|
|
|
1410
|
+
/* Touch screens: the selection toolbar sits above the keyboard, full width (context-toolbar.ts). */
|
|
1411
|
+
.nova-context-toolbar-docked {
|
|
1412
|
+
justify-content: center;
|
|
1413
|
+
max-width: none;
|
|
1414
|
+
border-width: 1px 0 0;
|
|
1415
|
+
border-radius: 0;
|
|
1416
|
+
animation: nova-fade-in 0.12s ease-out;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.nova-context-toolbar-docked .nova-context-items {
|
|
1420
|
+
flex-wrap: nowrap;
|
|
1421
|
+
overflow-x: auto;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1345
1424
|
.nova-bubble-sep {
|
|
1346
1425
|
width: 1px;
|
|
1347
1426
|
height: 20px;
|
|
@@ -1349,7 +1428,7 @@ html.nova-fullscreen-lock body {
|
|
|
1349
1428
|
background: var(--nova-border);
|
|
1350
1429
|
}
|
|
1351
1430
|
|
|
1352
|
-
/* ----------
|
|
1431
|
+
/* ---------- notifications ---------- */
|
|
1353
1432
|
|
|
1354
1433
|
.nova-notifications {
|
|
1355
1434
|
position: absolute;
|
|
@@ -1410,7 +1489,7 @@ html.nova-fullscreen-lock body {
|
|
|
1410
1489
|
height: 14px;
|
|
1411
1490
|
}
|
|
1412
1491
|
|
|
1413
|
-
/* ----------
|
|
1492
|
+
/* ---------- dialog ---------- */
|
|
1414
1493
|
|
|
1415
1494
|
.nova-dialog-backdrop {
|
|
1416
1495
|
position: fixed;
|
|
@@ -1439,6 +1518,11 @@ html.nova-fullscreen-lock body {
|
|
|
1439
1518
|
animation: nova-pop-in 0.15s ease-out;
|
|
1440
1519
|
}
|
|
1441
1520
|
|
|
1521
|
+
/* The dialog itself takes focus only to keep it after a click in Safari: no ring for that. */
|
|
1522
|
+
.nova-dialog:focus {
|
|
1523
|
+
outline: none;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1442
1526
|
.nova-dialog-header {
|
|
1443
1527
|
display: flex;
|
|
1444
1528
|
align-items: center;
|
|
@@ -1505,30 +1589,6 @@ html.nova-fullscreen-lock body {
|
|
|
1505
1589
|
font-size: 12px;
|
|
1506
1590
|
}
|
|
1507
1591
|
|
|
1508
|
-
/* Диалоги по описанию полей (editor.ui.dialog) */
|
|
1509
|
-
.nova-required {
|
|
1510
|
-
color: var(--nova-danger);
|
|
1511
|
-
}
|
|
1512
|
-
.nova-field-error {
|
|
1513
|
-
margin: 0;
|
|
1514
|
-
color: var(--nova-danger);
|
|
1515
|
-
font-size: 12px;
|
|
1516
|
-
}
|
|
1517
|
-
.nova-input[aria-invalid='true'] {
|
|
1518
|
-
border-color: var(--nova-danger);
|
|
1519
|
-
}
|
|
1520
|
-
.nova-form-message {
|
|
1521
|
-
margin: 0;
|
|
1522
|
-
padding: 8px 10px;
|
|
1523
|
-
border-radius: var(--nova-radius-sm);
|
|
1524
|
-
background: var(--nova-hover);
|
|
1525
|
-
}
|
|
1526
|
-
.nova-form-message.is-warning,
|
|
1527
|
-
.nova-form-message.is-error {
|
|
1528
|
-
background: var(--nova-danger-bg);
|
|
1529
|
-
color: var(--nova-danger);
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
1592
|
.nova-input-group {
|
|
1533
1593
|
display: flex;
|
|
1534
1594
|
gap: 6px;
|
|
@@ -1551,7 +1611,7 @@ html.nova-fullscreen-lock body {
|
|
|
1551
1611
|
width: 100%;
|
|
1552
1612
|
height: 36px;
|
|
1553
1613
|
padding: 0 10px;
|
|
1554
|
-
border: 1px solid var(--nova-border);
|
|
1614
|
+
border: 1px solid var(--nova-control-border);
|
|
1555
1615
|
border-radius: var(--nova-radius-sm);
|
|
1556
1616
|
background: var(--nova-bg);
|
|
1557
1617
|
color: inherit;
|
|
@@ -1638,7 +1698,7 @@ html.nova-fullscreen-lock body {
|
|
|
1638
1698
|
display: flex;
|
|
1639
1699
|
align-items: center;
|
|
1640
1700
|
gap: 10px;
|
|
1641
|
-
/*
|
|
1701
|
+
/* Text ("or"), not decoration: it needs AA contrast, so muted, not subtle. */
|
|
1642
1702
|
color: var(--nova-muted);
|
|
1643
1703
|
font-size: 12px;
|
|
1644
1704
|
text-transform: uppercase;
|
|
@@ -1652,7 +1712,7 @@ html.nova-fullscreen-lock body {
|
|
|
1652
1712
|
background: var(--nova-border);
|
|
1653
1713
|
}
|
|
1654
1714
|
|
|
1655
|
-
/*
|
|
1715
|
+
/* Narrow screens: the dialog is a bottom sheet with larger touch areas. */
|
|
1656
1716
|
@media (max-width: 600px) {
|
|
1657
1717
|
.nova-dialog-backdrop {
|
|
1658
1718
|
align-items: flex-end;
|
|
@@ -1686,7 +1746,7 @@ html.nova-fullscreen-lock body {
|
|
|
1686
1746
|
}
|
|
1687
1747
|
}
|
|
1688
1748
|
|
|
1689
|
-
/* =======================
|
|
1749
|
+
/* ======================= animations ======================= */
|
|
1690
1750
|
|
|
1691
1751
|
@keyframes nova-pop-in {
|
|
1692
1752
|
from {
|
|
@@ -1722,11 +1782,11 @@ html.nova-fullscreen-lock body {
|
|
|
1722
1782
|
}
|
|
1723
1783
|
}
|
|
1724
1784
|
|
|
1725
|
-
/* =======================
|
|
1785
|
+
/* ======================= styles ProseMirror requires ======================= */
|
|
1726
1786
|
|
|
1727
|
-
/*
|
|
1728
|
-
|
|
1729
|
-
img { display: block }
|
|
1787
|
+
/* ProseMirror's helper image after a non-editable element at the end of a paragraph (a variable,
|
|
1788
|
+
a mention, an image). A style ProseMirror requires: otherwise a site-wide reset such as
|
|
1789
|
+
img { display: block } turns it into an extra empty line. */
|
|
1730
1790
|
.nova-prosemirror img.ProseMirror-separator {
|
|
1731
1791
|
display: inline !important;
|
|
1732
1792
|
width: auto !important;
|
|
@@ -1769,9 +1829,9 @@ html.nova-fullscreen-lock body {
|
|
|
1769
1829
|
}
|
|
1770
1830
|
}
|
|
1771
1831
|
|
|
1772
|
-
/* =======================
|
|
1832
|
+
/* ======================= built-in plugins ======================= */
|
|
1773
1833
|
|
|
1774
|
-
/* charmap, emoticons:
|
|
1834
|
+
/* charmap, emoticons: the symbol panel */
|
|
1775
1835
|
.nova-symbols {
|
|
1776
1836
|
display: flex;
|
|
1777
1837
|
flex-direction: column;
|
|
@@ -1816,12 +1876,12 @@ html.nova-fullscreen-lock body {
|
|
|
1816
1876
|
text-align: center;
|
|
1817
1877
|
}
|
|
1818
1878
|
|
|
1819
|
-
/* visualblocks:
|
|
1879
|
+
/* visualblocks: block borders with the tag label */
|
|
1820
1880
|
.nova-visualblocks
|
|
1821
1881
|
.nova-prosemirror
|
|
1822
1882
|
:is(p, h1, h2, h3, h4, h5, h6, blockquote, ul, ol, pre, table) {
|
|
1823
1883
|
position: relative;
|
|
1824
|
-
/*
|
|
1884
|
+
/* Room for the tag label so it doesn't run into the text. */
|
|
1825
1885
|
padding-top: 12px;
|
|
1826
1886
|
outline: 1px dashed var(--nova-border-strong);
|
|
1827
1887
|
outline-offset: 2px;
|
|
@@ -1874,12 +1934,12 @@ html.nova-fullscreen-lock body {
|
|
|
1874
1934
|
content: 'pre';
|
|
1875
1935
|
}
|
|
1876
1936
|
|
|
1877
|
-
/* autoresize:
|
|
1937
|
+
/* autoresize: scrolling inside the text area once maxHeight is reached */
|
|
1878
1938
|
.nova-autoresize .nova-content {
|
|
1879
1939
|
overflow-y: auto;
|
|
1880
1940
|
}
|
|
1881
1941
|
|
|
1882
|
-
/* anchor:
|
|
1942
|
+
/* anchor: an anchor in the text is a small marker (in HTML it is an empty <a id>) */
|
|
1883
1943
|
.nova-prosemirror a[id]:not([href]) {
|
|
1884
1944
|
display: inline-block;
|
|
1885
1945
|
width: 0.7em;
|
|
@@ -1892,7 +1952,7 @@ html.nova-fullscreen-lock body {
|
|
|
1892
1952
|
cursor: pointer;
|
|
1893
1953
|
}
|
|
1894
1954
|
|
|
1895
|
-
/* pagebreak:
|
|
1955
|
+
/* pagebreak: the page break line */
|
|
1896
1956
|
.nova-prosemirror .nova-pagebreak {
|
|
1897
1957
|
height: 0;
|
|
1898
1958
|
margin: 1.5em 0;
|
|
@@ -1900,7 +1960,7 @@ html.nova-fullscreen-lock body {
|
|
|
1900
1960
|
cursor: pointer;
|
|
1901
1961
|
}
|
|
1902
1962
|
|
|
1903
|
-
/* media:
|
|
1963
|
+
/* media: a video with a transparent layer on top, so a click selects the block */
|
|
1904
1964
|
.nova-media {
|
|
1905
1965
|
position: relative;
|
|
1906
1966
|
display: inline-block;
|
|
@@ -1920,6 +1980,60 @@ html.nova-fullscreen-lock body {
|
|
|
1920
1980
|
inset: 0;
|
|
1921
1981
|
cursor: pointer;
|
|
1922
1982
|
}
|
|
1983
|
+
/* An embedded page: at full width with its ratio, or at its own size; a border on request. */
|
|
1984
|
+
.nova-pageembed-view.is-responsive {
|
|
1985
|
+
display: block;
|
|
1986
|
+
}
|
|
1987
|
+
.nova-pageembed-view.is-responsive iframe {
|
|
1988
|
+
display: block;
|
|
1989
|
+
width: 100%;
|
|
1990
|
+
height: auto;
|
|
1991
|
+
}
|
|
1992
|
+
.nova-pageembed-view.has-border iframe {
|
|
1993
|
+
border: 1px solid var(--nova-border);
|
|
1994
|
+
}
|
|
1995
|
+
.nova-pageembed-missing {
|
|
1996
|
+
padding: 1em;
|
|
1997
|
+
border: 1px dashed var(--nova-border);
|
|
1998
|
+
border-radius: 6px;
|
|
1999
|
+
color: var(--nova-muted);
|
|
2000
|
+
line-height: 1.4;
|
|
2001
|
+
overflow-wrap: anywhere;
|
|
2002
|
+
}
|
|
2003
|
+
/* A page's card (mediaembed) in the editor: the picture, the title, the description, the site. */
|
|
2004
|
+
.nova-card-view {
|
|
2005
|
+
display: flex;
|
|
2006
|
+
flex-wrap: wrap;
|
|
2007
|
+
gap: 12px;
|
|
2008
|
+
margin: 0.5em 0;
|
|
2009
|
+
padding: 12px;
|
|
2010
|
+
border: 1px solid var(--nova-border);
|
|
2011
|
+
border-radius: 8px;
|
|
2012
|
+
overflow: hidden;
|
|
2013
|
+
cursor: pointer;
|
|
2014
|
+
}
|
|
2015
|
+
/* Stronger than ".nova-prosemirror img" (height: auto), which stretched it to the text. */
|
|
2016
|
+
.nova-card-view > .nova-card-view-image {
|
|
2017
|
+
flex: none;
|
|
2018
|
+
width: 120px;
|
|
2019
|
+
height: 90px;
|
|
2020
|
+
object-fit: cover;
|
|
2021
|
+
border-radius: 4px;
|
|
2022
|
+
}
|
|
2023
|
+
/* Narrower than 180px beside the picture (a phone), the text goes under it, as on the page. */
|
|
2024
|
+
.nova-card-view-text {
|
|
2025
|
+
flex: 1 1 180px;
|
|
2026
|
+
min-width: 0;
|
|
2027
|
+
}
|
|
2028
|
+
.nova-card-view-title {
|
|
2029
|
+
font-weight: 600;
|
|
2030
|
+
}
|
|
2031
|
+
.nova-card-view-description,
|
|
2032
|
+
.nova-card-view-site {
|
|
2033
|
+
color: var(--nova-muted);
|
|
2034
|
+
font-size: 0.875em;
|
|
2035
|
+
}
|
|
2036
|
+
.nova-prosemirror .ProseMirror-selectednode.nova-card-view,
|
|
1923
2037
|
.nova-prosemirror .ProseMirror-selectednode.nova-media,
|
|
1924
2038
|
.nova-prosemirror .ProseMirror-selectednode.nova-pagebreak,
|
|
1925
2039
|
.nova-prosemirror a[id]:not([href]).ProseMirror-selectednode {
|
|
@@ -1933,7 +2047,7 @@ html.nova-fullscreen-lock body {
|
|
|
1933
2047
|
}
|
|
1934
2048
|
}
|
|
1935
2049
|
|
|
1936
|
-
/*
|
|
2050
|
+
/* A split button (bullist/numlist with advlist): the action + a narrow arrow with variants */
|
|
1937
2051
|
.nova-tb-split {
|
|
1938
2052
|
display: inline-flex;
|
|
1939
2053
|
align-items: center;
|
|
@@ -1945,7 +2059,7 @@ html.nova-fullscreen-lock body {
|
|
|
1945
2059
|
margin-left: -2px;
|
|
1946
2060
|
}
|
|
1947
2061
|
|
|
1948
|
-
/* ----------
|
|
2062
|
+
/* ---------- Comments (the comments plugin) ---------- */
|
|
1949
2063
|
|
|
1950
2064
|
.nova-comment {
|
|
1951
2065
|
background: var(--nova-comment-bg);
|
|
@@ -1956,7 +2070,7 @@ html.nova-fullscreen-lock body {
|
|
|
1956
2070
|
background: var(--nova-comment-active-bg);
|
|
1957
2071
|
}
|
|
1958
2072
|
|
|
1959
|
-
/*
|
|
2073
|
+
/* The text and the panel side by side; with little room (a narrow screen) the panel goes under the text at full width. */
|
|
1960
2074
|
.nova-body {
|
|
1961
2075
|
display: flex;
|
|
1962
2076
|
flex-wrap: wrap;
|
|
@@ -1968,7 +2082,7 @@ html.nova-fullscreen-lock body {
|
|
|
1968
2082
|
flex: 999 1 360px;
|
|
1969
2083
|
}
|
|
1970
2084
|
|
|
1971
|
-
/* ----------
|
|
2085
|
+
/* ---------- sidebars (editor.ui.sidebar) ---------- */
|
|
1972
2086
|
.nova-body > .nova-sidebar {
|
|
1973
2087
|
display: flex;
|
|
1974
2088
|
flex: 1 1 280px;
|
|
@@ -2001,7 +2115,7 @@ html.nova-fullscreen-lock body {
|
|
|
2001
2115
|
padding: 10px;
|
|
2002
2116
|
overflow: auto;
|
|
2003
2117
|
}
|
|
2004
|
-
/*
|
|
2118
|
+
/* A panel with its own header (comments) sets its own padding and scrolling. */
|
|
2005
2119
|
.nova-sidebar-bare > .nova-sidebar-body {
|
|
2006
2120
|
display: flex;
|
|
2007
2121
|
flex-direction: column;
|
|
@@ -2009,187 +2123,7 @@ html.nova-fullscreen-lock body {
|
|
|
2009
2123
|
overflow: hidden;
|
|
2010
2124
|
}
|
|
2011
2125
|
|
|
2012
|
-
|
|
2013
|
-
display: flex;
|
|
2014
|
-
flex: 1;
|
|
2015
|
-
flex-direction: column;
|
|
2016
|
-
gap: 8px;
|
|
2017
|
-
min-height: 0;
|
|
2018
|
-
padding: 10px;
|
|
2019
|
-
overflow: auto;
|
|
2020
|
-
font-size: 13px;
|
|
2021
|
-
}
|
|
2022
|
-
.nova-comments[hidden] {
|
|
2023
|
-
display: none;
|
|
2024
|
-
}
|
|
2025
|
-
.nova-comments-head {
|
|
2026
|
-
display: flex;
|
|
2027
|
-
align-items: center;
|
|
2028
|
-
gap: 6px;
|
|
2029
|
-
}
|
|
2030
|
-
.nova-comments-title {
|
|
2031
|
-
margin: 0;
|
|
2032
|
-
font-size: 14px;
|
|
2033
|
-
font-weight: 600;
|
|
2034
|
-
}
|
|
2035
|
-
.nova-comments-count:not(:empty) {
|
|
2036
|
-
padding: 0 6px;
|
|
2037
|
-
border-radius: 999px;
|
|
2038
|
-
background: var(--nova-hover);
|
|
2039
|
-
color: var(--nova-muted);
|
|
2040
|
-
font-size: 12px;
|
|
2041
|
-
}
|
|
2042
|
-
.nova-comments-close {
|
|
2043
|
-
margin-inline-start: auto;
|
|
2044
|
-
font-size: 18px;
|
|
2045
|
-
line-height: 1;
|
|
2046
|
-
}
|
|
2047
|
-
.nova-comments-filter {
|
|
2048
|
-
display: inline-flex;
|
|
2049
|
-
align-items: center;
|
|
2050
|
-
gap: 6px;
|
|
2051
|
-
color: var(--nova-muted);
|
|
2052
|
-
}
|
|
2053
|
-
.nova-comments-filter input {
|
|
2054
|
-
accent-color: var(--nova-accent);
|
|
2055
|
-
}
|
|
2056
|
-
.nova-comments-list {
|
|
2057
|
-
display: flex;
|
|
2058
|
-
flex-direction: column;
|
|
2059
|
-
gap: 8px;
|
|
2060
|
-
}
|
|
2061
|
-
.nova-comments-empty {
|
|
2062
|
-
margin: 8px 2px;
|
|
2063
|
-
color: var(--nova-muted);
|
|
2064
|
-
line-height: 1.5;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
.nova-thread {
|
|
2068
|
-
display: flex;
|
|
2069
|
-
flex-direction: column;
|
|
2070
|
-
gap: 8px;
|
|
2071
|
-
padding: 10px;
|
|
2072
|
-
border: 1px solid var(--nova-border);
|
|
2073
|
-
border-radius: var(--nova-radius);
|
|
2074
|
-
background: var(--nova-surface);
|
|
2075
|
-
cursor: pointer;
|
|
2076
|
-
}
|
|
2077
|
-
.nova-thread.is-active {
|
|
2078
|
-
border-color: var(--nova-comment-line);
|
|
2079
|
-
box-shadow: var(--nova-shadow);
|
|
2080
|
-
cursor: default;
|
|
2081
|
-
}
|
|
2082
|
-
.nova-thread.is-resolved {
|
|
2083
|
-
opacity: 0.75;
|
|
2084
|
-
}
|
|
2085
|
-
.nova-thread:focus-visible {
|
|
2086
|
-
outline: 2px solid var(--nova-focus);
|
|
2087
|
-
outline-offset: 1px;
|
|
2088
|
-
}
|
|
2089
|
-
.nova-thread-quote {
|
|
2090
|
-
margin: 0;
|
|
2091
|
-
padding-inline-start: 8px;
|
|
2092
|
-
border-inline-start: 3px solid var(--nova-comment-line);
|
|
2093
|
-
color: var(--nova-muted);
|
|
2094
|
-
overflow-wrap: anywhere;
|
|
2095
|
-
}
|
|
2096
|
-
.nova-thread-orphan,
|
|
2097
|
-
.nova-thread-resolved {
|
|
2098
|
-
margin: 0;
|
|
2099
|
-
color: var(--nova-muted);
|
|
2100
|
-
font-style: italic;
|
|
2101
|
-
}
|
|
2102
|
-
.nova-thread-tools,
|
|
2103
|
-
.nova-comment-actions {
|
|
2104
|
-
display: flex;
|
|
2105
|
-
flex-wrap: wrap;
|
|
2106
|
-
justify-content: flex-end;
|
|
2107
|
-
gap: 6px;
|
|
2108
|
-
}
|
|
2109
|
-
.nova-thread .nova-button {
|
|
2110
|
-
height: 28px;
|
|
2111
|
-
padding: 0 10px;
|
|
2112
|
-
font-size: 12px;
|
|
2113
|
-
}
|
|
2114
|
-
.nova-thread:not(.is-active):not(:hover):not(:focus-within) .nova-thread-tools {
|
|
2115
|
-
display: none;
|
|
2116
|
-
}
|
|
2117
|
-
.nova-button-danger {
|
|
2118
|
-
color: var(--nova-danger);
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
.nova-comment-item + .nova-comment-item {
|
|
2122
|
-
padding-top: 8px;
|
|
2123
|
-
border-top: 1px solid var(--nova-border);
|
|
2124
|
-
}
|
|
2125
|
-
.nova-comment-head {
|
|
2126
|
-
display: flex;
|
|
2127
|
-
flex-wrap: wrap;
|
|
2128
|
-
align-items: center;
|
|
2129
|
-
gap: 6px;
|
|
2130
|
-
color: var(--nova-muted);
|
|
2131
|
-
font-size: 12px;
|
|
2132
|
-
}
|
|
2133
|
-
.nova-comment-avatar {
|
|
2134
|
-
display: grid;
|
|
2135
|
-
place-items: center;
|
|
2136
|
-
min-width: 22px;
|
|
2137
|
-
height: 22px;
|
|
2138
|
-
padding: 0 4px;
|
|
2139
|
-
border-radius: 999px;
|
|
2140
|
-
color: #fff;
|
|
2141
|
-
font-size: 10px;
|
|
2142
|
-
font-weight: 600;
|
|
2143
|
-
}
|
|
2144
|
-
.nova-comment-author {
|
|
2145
|
-
color: var(--nova-fg);
|
|
2146
|
-
font-weight: 600;
|
|
2147
|
-
}
|
|
2148
|
-
.nova-comment-you {
|
|
2149
|
-
color: var(--nova-muted);
|
|
2150
|
-
font-weight: 400;
|
|
2151
|
-
}
|
|
2152
|
-
.nova-comment-text {
|
|
2153
|
-
margin: 4px 0 0;
|
|
2154
|
-
white-space: pre-wrap;
|
|
2155
|
-
overflow-wrap: anywhere;
|
|
2156
|
-
line-height: 1.45;
|
|
2157
|
-
}
|
|
2158
|
-
.nova-comment-tools {
|
|
2159
|
-
display: flex;
|
|
2160
|
-
gap: 10px;
|
|
2161
|
-
margin-top: 2px;
|
|
2162
|
-
}
|
|
2163
|
-
.nova-link-btn {
|
|
2164
|
-
padding: 0;
|
|
2165
|
-
border: 0;
|
|
2166
|
-
background: none;
|
|
2167
|
-
color: var(--nova-accent);
|
|
2168
|
-
font: inherit;
|
|
2169
|
-
font-size: 12px;
|
|
2170
|
-
cursor: pointer;
|
|
2171
|
-
}
|
|
2172
|
-
.nova-link-btn:hover {
|
|
2173
|
-
text-decoration: underline;
|
|
2174
|
-
}
|
|
2175
|
-
.nova-link-btn:focus-visible {
|
|
2176
|
-
outline: 2px solid var(--nova-focus);
|
|
2177
|
-
outline-offset: 2px;
|
|
2178
|
-
border-radius: 2px;
|
|
2179
|
-
}
|
|
2180
|
-
.nova-comment-composer {
|
|
2181
|
-
display: flex;
|
|
2182
|
-
flex-direction: column;
|
|
2183
|
-
gap: 6px;
|
|
2184
|
-
}
|
|
2185
|
-
.nova-comment-input {
|
|
2186
|
-
width: 100%;
|
|
2187
|
-
min-height: 52px;
|
|
2188
|
-
resize: vertical;
|
|
2189
|
-
font: inherit;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
/* Узкий редактор: панель под текстом, отделена сверху (порог = 360 + 280 из flex-basis выше). */
|
|
2126
|
+
/* A narrow editor: the panel goes under the text, separated at the top (threshold = 360 + 280 from the flex-basis above). */
|
|
2193
2127
|
.nova-body {
|
|
2194
2128
|
container-type: inline-size;
|
|
2195
2129
|
}
|
|
@@ -2202,7 +2136,7 @@ html.nova-fullscreen-lock body {
|
|
|
2202
2136
|
}
|
|
2203
2137
|
}
|
|
2204
2138
|
|
|
2205
|
-
/* ----------
|
|
2139
|
+
/* ---------- Mentions (the mentions plugin and "@" in comments) ---------- */
|
|
2206
2140
|
|
|
2207
2141
|
.nova-prosemirror [data-mention],
|
|
2208
2142
|
.nova-comment-mention {
|
|
@@ -2262,180 +2196,9 @@ html.nova-fullscreen-lock body {
|
|
|
2262
2196
|
color: var(--nova-muted);
|
|
2263
2197
|
}
|
|
2264
2198
|
|
|
2265
|
-
/* ----------
|
|
2199
|
+
/* ---------- Suggesting mode (the suggestions plugin) ---------- */
|
|
2266
2200
|
|
|
2267
|
-
|
|
2268
|
-
min-height: 460px;
|
|
2269
|
-
}
|
|
2270
|
-
.nova-history {
|
|
2271
|
-
position: absolute;
|
|
2272
|
-
inset: 0;
|
|
2273
|
-
z-index: 5;
|
|
2274
|
-
display: flex;
|
|
2275
|
-
flex-direction: column;
|
|
2276
|
-
border-radius: inherit;
|
|
2277
|
-
background: var(--nova-bg);
|
|
2278
|
-
container-type: inline-size;
|
|
2279
|
-
}
|
|
2280
|
-
.nova-history-head {
|
|
2281
|
-
display: flex;
|
|
2282
|
-
flex-wrap: wrap;
|
|
2283
|
-
align-items: center;
|
|
2284
|
-
gap: 8px 10px;
|
|
2285
|
-
padding: 8px 10px;
|
|
2286
|
-
border-bottom: 1px solid var(--nova-border);
|
|
2287
|
-
background: var(--nova-toolbar-bg);
|
|
2288
|
-
}
|
|
2289
|
-
.nova-history-title {
|
|
2290
|
-
margin: 0;
|
|
2291
|
-
font-size: 15px;
|
|
2292
|
-
font-weight: 600;
|
|
2293
|
-
}
|
|
2294
|
-
.nova-history-spacer {
|
|
2295
|
-
flex: 1;
|
|
2296
|
-
}
|
|
2297
|
-
.nova-history-legend {
|
|
2298
|
-
display: flex;
|
|
2299
|
-
flex-wrap: wrap;
|
|
2300
|
-
align-items: center;
|
|
2301
|
-
gap: 4px 12px;
|
|
2302
|
-
color: var(--nova-muted);
|
|
2303
|
-
font-size: 12px;
|
|
2304
|
-
}
|
|
2305
|
-
.nova-history-toggle {
|
|
2306
|
-
display: inline-flex;
|
|
2307
|
-
align-items: center;
|
|
2308
|
-
gap: 5px;
|
|
2309
|
-
}
|
|
2310
|
-
.nova-history-toggle input {
|
|
2311
|
-
accent-color: var(--nova-accent);
|
|
2312
|
-
}
|
|
2313
|
-
.nova-history-swatch::before {
|
|
2314
|
-
content: '';
|
|
2315
|
-
display: inline-block;
|
|
2316
|
-
width: 10px;
|
|
2317
|
-
height: 10px;
|
|
2318
|
-
margin-inline-end: 5px;
|
|
2319
|
-
border-radius: 2px;
|
|
2320
|
-
vertical-align: -1px;
|
|
2321
|
-
}
|
|
2322
|
-
.nova-history-swatch.is-added::before {
|
|
2323
|
-
background: var(--nova-diff-added-bg);
|
|
2324
|
-
}
|
|
2325
|
-
.nova-history-swatch.is-removed::before {
|
|
2326
|
-
background: var(--nova-diff-removed-bg);
|
|
2327
|
-
}
|
|
2328
|
-
.nova-history-body {
|
|
2329
|
-
display: flex;
|
|
2330
|
-
flex: 1;
|
|
2331
|
-
min-height: 0;
|
|
2332
|
-
}
|
|
2333
|
-
.nova-history-preview {
|
|
2334
|
-
flex: 1;
|
|
2335
|
-
min-width: 0;
|
|
2336
|
-
overflow: auto;
|
|
2337
|
-
}
|
|
2338
|
-
.nova-history-side {
|
|
2339
|
-
width: 260px;
|
|
2340
|
-
flex: none;
|
|
2341
|
-
overflow: auto;
|
|
2342
|
-
padding: 8px;
|
|
2343
|
-
border-inline-start: 1px solid var(--nova-border);
|
|
2344
|
-
background: var(--nova-toolbar-bg);
|
|
2345
|
-
}
|
|
2346
|
-
.nova-history-status:empty {
|
|
2347
|
-
display: none;
|
|
2348
|
-
}
|
|
2349
|
-
.nova-history-status {
|
|
2350
|
-
margin: 4px 4px 8px;
|
|
2351
|
-
color: var(--nova-muted);
|
|
2352
|
-
font-size: 13px;
|
|
2353
|
-
}
|
|
2354
|
-
.nova-history-list {
|
|
2355
|
-
display: flex;
|
|
2356
|
-
flex-direction: column;
|
|
2357
|
-
gap: 2px;
|
|
2358
|
-
margin: 0;
|
|
2359
|
-
padding: 0;
|
|
2360
|
-
list-style: none;
|
|
2361
|
-
}
|
|
2362
|
-
.nova-history-item {
|
|
2363
|
-
display: flex;
|
|
2364
|
-
flex-direction: column;
|
|
2365
|
-
align-items: flex-start;
|
|
2366
|
-
gap: 2px;
|
|
2367
|
-
width: 100%;
|
|
2368
|
-
padding: 7px 9px;
|
|
2369
|
-
border: 1px solid transparent;
|
|
2370
|
-
border-radius: var(--nova-radius-sm);
|
|
2371
|
-
background: none;
|
|
2372
|
-
color: inherit;
|
|
2373
|
-
font: inherit;
|
|
2374
|
-
font-size: 13px;
|
|
2375
|
-
text-align: start;
|
|
2376
|
-
cursor: pointer;
|
|
2377
|
-
}
|
|
2378
|
-
.nova-history-item:hover {
|
|
2379
|
-
background: var(--nova-hover);
|
|
2380
|
-
}
|
|
2381
|
-
.nova-history-item[aria-current='true'] {
|
|
2382
|
-
border-color: var(--nova-accent);
|
|
2383
|
-
background: var(--nova-active);
|
|
2384
|
-
}
|
|
2385
|
-
.nova-history-item:focus-visible {
|
|
2386
|
-
outline: 2px solid var(--nova-focus);
|
|
2387
|
-
outline-offset: 1px;
|
|
2388
|
-
}
|
|
2389
|
-
.nova-history-time {
|
|
2390
|
-
font-weight: 600;
|
|
2391
|
-
}
|
|
2392
|
-
.nova-history-label {
|
|
2393
|
-
padding: 0 6px;
|
|
2394
|
-
border-radius: 999px;
|
|
2395
|
-
background: var(--nova-hover);
|
|
2396
|
-
font-size: 12px;
|
|
2397
|
-
}
|
|
2398
|
-
.nova-history-authors {
|
|
2399
|
-
color: var(--nova-muted);
|
|
2400
|
-
font-size: 12px;
|
|
2401
|
-
}
|
|
2402
|
-
.nova-diff-added {
|
|
2403
|
-
background: var(--nova-diff-added-bg);
|
|
2404
|
-
text-decoration: underline 2px var(--nova-success);
|
|
2405
|
-
text-underline-offset: 3px;
|
|
2406
|
-
}
|
|
2407
|
-
.nova-diff-removed {
|
|
2408
|
-
background: var(--nova-diff-removed-bg);
|
|
2409
|
-
color: var(--nova-danger);
|
|
2410
|
-
text-decoration: line-through;
|
|
2411
|
-
}
|
|
2412
|
-
div.nova-diff-removed {
|
|
2413
|
-
margin: 0.5em 0;
|
|
2414
|
-
padding: 2px 6px;
|
|
2415
|
-
border-radius: var(--nova-radius-sm);
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
/* Узко: список версий над текстом, полосой. */
|
|
2419
|
-
@container (max-width: 600px) {
|
|
2420
|
-
.nova-history-body {
|
|
2421
|
-
flex-direction: column-reverse;
|
|
2422
|
-
}
|
|
2423
|
-
.nova-history-side {
|
|
2424
|
-
width: auto;
|
|
2425
|
-
max-height: 150px;
|
|
2426
|
-
border-inline-start: 0;
|
|
2427
|
-
border-bottom: 1px solid var(--nova-border);
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
/* Кнопки истории — одной группой в первой строке, легенда — второй строкой. */
|
|
2431
|
-
.nova-history-legend {
|
|
2432
|
-
order: 1;
|
|
2433
|
-
flex-basis: 100%;
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
/* ---------- Режим правок (плагин suggestions) ---------- */
|
|
2437
|
-
|
|
2438
|
-
/* Цвет автора приходит в --nova-suggestion (декорация), без неё — зелёный/красный по умолчанию. */
|
|
2201
|
+
/* The author's color comes in --nova-suggestion (a decoration); without it, green/red by default. */
|
|
2439
2202
|
.nova-prosemirror ins[data-suggestion] {
|
|
2440
2203
|
text-decoration: none;
|
|
2441
2204
|
}
|
|
@@ -2443,7 +2206,7 @@ div.nova-diff-removed {
|
|
|
2443
2206
|
text-decoration: none;
|
|
2444
2207
|
}
|
|
2445
2208
|
.nova-sugg-insert {
|
|
2446
|
-
/*
|
|
2209
|
+
/* In the dark theme the author's color is lightened (--nova-suggestion-lift) to read on a dark background. */
|
|
2447
2210
|
color: color-mix(
|
|
2448
2211
|
in srgb,
|
|
2449
2212
|
var(--nova-suggestion, var(--nova-success)),
|
|
@@ -2459,89 +2222,117 @@ div.nova-diff-removed {
|
|
|
2459
2222
|
var(--nova-suggestion, var(--nova-danger)),
|
|
2460
2223
|
white var(--nova-suggestion-lift)
|
|
2461
2224
|
);
|
|
2225
|
+
/* No transparency: the strike-through is enough, and semi-transparent text fails the contrast check. */
|
|
2462
2226
|
text-decoration: line-through 2px;
|
|
2463
|
-
opacity: 0.85;
|
|
2464
|
-
}
|
|
2465
|
-
/* В режиме правок курсор цвета правок — заметно, что ввод станет предложением. */
|
|
2466
|
-
.nova-prosemirror.nova-suggesting {
|
|
2467
|
-
caret-color: var(--nova-success);
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
/* ---------- Диалоги по описанию (windowManager.open в @novaprose/tinymce-compat) ---------- */
|
|
2471
|
-
|
|
2472
|
-
.nova-compat-dialog {
|
|
2473
|
-
display: flex;
|
|
2474
|
-
flex-direction: column;
|
|
2475
|
-
gap: 12px;
|
|
2476
|
-
}
|
|
2477
|
-
.nova-compat-tabs {
|
|
2478
|
-
display: flex;
|
|
2479
|
-
gap: 2px;
|
|
2480
|
-
border-bottom: 1px solid var(--nova-border);
|
|
2481
2227
|
}
|
|
2482
|
-
.
|
|
2483
|
-
|
|
2484
|
-
border:
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2228
|
+
/* A suggested format: the new look shows; a dotted line under it in the author's color marks it. */
|
|
2229
|
+
.nova-sugg-format {
|
|
2230
|
+
border-bottom: 2px dotted
|
|
2231
|
+
color-mix(
|
|
2232
|
+
in srgb,
|
|
2233
|
+
var(--nova-suggestion, var(--nova-accent)),
|
|
2234
|
+
white var(--nova-suggestion-lift)
|
|
2235
|
+
);
|
|
2236
|
+
}
|
|
2237
|
+
/* A block whose type or style is a suggestion, a list item or quote put into a list or quote or taken
|
|
2238
|
+
out of one: a bar in the author's color at its start (dashed: taken out), the text unmoved. */
|
|
2239
|
+
.nova-sugg-block:not(table, tr, td, th, img, .tableWrapper),
|
|
2240
|
+
.nova-sugg-wrap,
|
|
2241
|
+
.nova-sugg-unwrap {
|
|
2242
|
+
margin-inline-start: -13px;
|
|
2243
|
+
padding-inline-start: 10px;
|
|
2244
|
+
border-inline-start: 3px solid
|
|
2245
|
+
color-mix(
|
|
2246
|
+
in srgb,
|
|
2247
|
+
var(--nova-suggestion, var(--nova-accent)),
|
|
2248
|
+
white var(--nova-suggestion-lift)
|
|
2249
|
+
);
|
|
2250
|
+
}
|
|
2251
|
+
.nova-sugg-unwrap {
|
|
2252
|
+
border-inline-start-style: dashed;
|
|
2253
|
+
}
|
|
2254
|
+
/* A quote has a bar of its own: it takes the author's color. */
|
|
2255
|
+
blockquote:is(.nova-sugg-wrap, .nova-sugg-unwrap) {
|
|
2256
|
+
margin-inline-start: 0;
|
|
2257
|
+
padding-inline-start: 1em;
|
|
2258
|
+
border-inline-start-color: color-mix(
|
|
2259
|
+
in srgb,
|
|
2260
|
+
var(--nova-suggestion, var(--nova-accent)),
|
|
2261
|
+
white var(--nova-suggestion-lift)
|
|
2262
|
+
);
|
|
2495
2263
|
}
|
|
2496
|
-
|
|
2497
|
-
|
|
2264
|
+
/* Tables, cells and images keep their box: a dotted outline instead of the bar. */
|
|
2265
|
+
:is(table, tr, td, th, img, .tableWrapper).nova-sugg-block {
|
|
2266
|
+
outline: 2px dotted
|
|
2267
|
+
color-mix(
|
|
2268
|
+
in srgb,
|
|
2269
|
+
var(--nova-suggestion, var(--nova-accent)),
|
|
2270
|
+
white var(--nova-suggestion-lift)
|
|
2271
|
+
);
|
|
2498
2272
|
outline-offset: -2px;
|
|
2499
2273
|
}
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2274
|
+
/* A whole node inserted or deleted (a table, an image, a line): its text looks inserted or deleted,
|
|
2275
|
+
and the node is outlined in the author's color (dashed: deleted). Rows and cells are tinted
|
|
2276
|
+
instead (an outline doesn't draw well in a table) and text blocks get a pilcrow (below). */
|
|
2277
|
+
.nova-sugg-node:not(tr, td, th, p, h1, h2, h3, h4, h5, h6, pre, figcaption) {
|
|
2278
|
+
outline: 2px solid
|
|
2279
|
+
color-mix(
|
|
2280
|
+
in srgb,
|
|
2281
|
+
var(--nova-suggestion, var(--nova-success)),
|
|
2282
|
+
white var(--nova-suggestion-lift)
|
|
2283
|
+
);
|
|
2284
|
+
outline-offset: 2px;
|
|
2504
2285
|
}
|
|
2505
|
-
.nova-
|
|
2506
|
-
|
|
2286
|
+
.nova-sugg-node.nova-sugg-delete:not(tr, td, th, p, h1, h2, h3, h4, h5, h6, pre, figcaption) {
|
|
2287
|
+
outline-style: dashed;
|
|
2507
2288
|
}
|
|
2508
|
-
.
|
|
2509
|
-
|
|
2510
|
-
|
|
2289
|
+
/* An image or a line can't be struck through: a deleted one is faded. */
|
|
2290
|
+
:is(img, hr).nova-sugg-node.nova-sugg-delete,
|
|
2291
|
+
.nova-sugg-node.nova-sugg-delete img {
|
|
2292
|
+
opacity: 0.45;
|
|
2511
2293
|
}
|
|
2512
|
-
.nova-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
gap: 8px;
|
|
2294
|
+
:is(td, th).nova-sugg-node.nova-sugg-delete,
|
|
2295
|
+
tr.nova-sugg-node.nova-sugg-delete > * {
|
|
2296
|
+
background: color-mix(in srgb, var(--nova-suggestion, var(--nova-danger)) 10%, transparent);
|
|
2516
2297
|
}
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
margin: 0;
|
|
2524
|
-
padding: 8px 10px;
|
|
2525
|
-
border-radius: var(--nova-radius-sm);
|
|
2526
|
-
background: var(--nova-active);
|
|
2527
|
-
color: var(--nova-fg);
|
|
2298
|
+
/* A suggested paragraph break before a block, or a whole text block inserted or deleted: a pilcrow
|
|
2299
|
+
in the margin, underlined if new, struck if deleted. */
|
|
2300
|
+
.nova-sugg-split,
|
|
2301
|
+
.nova-sugg-join,
|
|
2302
|
+
:is(p, h1, h2, h3, h4, h5, h6, pre, figcaption).nova-sugg-node {
|
|
2303
|
+
position: relative;
|
|
2528
2304
|
}
|
|
2529
|
-
.nova-
|
|
2530
|
-
|
|
2305
|
+
.nova-sugg-split::before,
|
|
2306
|
+
.nova-sugg-join::before,
|
|
2307
|
+
:is(p, h1, h2, h3, h4, h5, h6, pre, figcaption).nova-sugg-node::before {
|
|
2308
|
+
content: '¶';
|
|
2309
|
+
position: absolute;
|
|
2310
|
+
inset-inline-start: -16px;
|
|
2311
|
+
color: color-mix(
|
|
2312
|
+
in srgb,
|
|
2313
|
+
var(--nova-suggestion, var(--nova-success)),
|
|
2314
|
+
white var(--nova-suggestion-lift)
|
|
2315
|
+
);
|
|
2316
|
+
text-decoration: underline 2px;
|
|
2317
|
+
user-select: none;
|
|
2318
|
+
pointer-events: none;
|
|
2531
2319
|
}
|
|
2532
|
-
.nova-
|
|
2533
|
-
|
|
2534
|
-
|
|
2320
|
+
.nova-sugg-join::before,
|
|
2321
|
+
.nova-sugg-node.nova-sugg-delete::before {
|
|
2322
|
+
text-decoration: line-through 2px;
|
|
2535
2323
|
}
|
|
2536
|
-
.
|
|
2537
|
-
|
|
2324
|
+
/* In a list item, past the bullet. */
|
|
2325
|
+
li > .nova-sugg-split::before,
|
|
2326
|
+
li > .nova-sugg-join::before,
|
|
2327
|
+
li > .nova-sugg-node::before {
|
|
2328
|
+
inset-inline-start: -34px;
|
|
2538
2329
|
}
|
|
2539
|
-
.
|
|
2540
|
-
|
|
2541
|
-
|
|
2330
|
+
/* In suggesting mode the cursor takes the suggestion color: a visible sign that typing becomes a suggestion. */
|
|
2331
|
+
.nova-prosemirror.nova-suggesting {
|
|
2332
|
+
caret-color: var(--nova-success);
|
|
2542
2333
|
}
|
|
2543
2334
|
|
|
2544
|
-
/* =======================
|
|
2335
|
+
/* ======================= variables (mergetags) ======================= */
|
|
2545
2336
|
|
|
2546
2337
|
.nova-mergetag {
|
|
2547
2338
|
display: inline-block;
|
|
@@ -2567,3 +2358,38 @@ div.nova-diff-removed {
|
|
|
2567
2358
|
outline: 2px solid var(--nova-accent);
|
|
2568
2359
|
outline-offset: 1px;
|
|
2569
2360
|
}
|
|
2361
|
+
|
|
2362
|
+
/* ======================= Windows high contrast (forced colors) ======================= */
|
|
2363
|
+
|
|
2364
|
+
/* The system draws every background and drops shadows: states show in its own colors instead. */
|
|
2365
|
+
@media (forced-colors: active) {
|
|
2366
|
+
.nova-btn.is-active,
|
|
2367
|
+
.nova-search-toggle[aria-pressed='true'],
|
|
2368
|
+
.nova-grid-cell.is-on {
|
|
2369
|
+
forced-color-adjust: none;
|
|
2370
|
+
background: Highlight;
|
|
2371
|
+
color: HighlightText;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/* A color swatch is its color. */
|
|
2375
|
+
.nova-swatch {
|
|
2376
|
+
forced-color-adjust: none;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
.nova-prosemirror .nova-search-match {
|
|
2380
|
+
forced-color-adjust: none;
|
|
2381
|
+
background: Mark;
|
|
2382
|
+
color: MarkText;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
.nova-prosemirror .nova-search-current,
|
|
2386
|
+
.nova-prosemirror .selectedCell::after {
|
|
2387
|
+
forced-color-adjust: none;
|
|
2388
|
+
background: Highlight;
|
|
2389
|
+
color: HighlightText;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
.nova-prosemirror .selectedCell::after {
|
|
2393
|
+
opacity: 0.4;
|
|
2394
|
+
}
|
|
2395
|
+
}
|