diff --git a/apps/edit-docs/demo/!!!meta.json b/apps/edit-docs/demo/!!!meta.json index 166afb625..f5f319d92 100644 --- a/apps/edit-docs/demo/!!!meta.json +++ b/apps/edit-docs/demo/!!!meta.json @@ -1,6 +1,6 @@ { "formatVersion": 2, - "appVersion": "0.94.0", + "appVersion": "0.98.1", "files": [ { "isClone": false, @@ -3164,9 +3164,16 @@ "notePosition": 40, "prefix": null, "isExpanded": false, - "type": "geoMap", - "mime": "application/json", + "type": "book", + "mime": "", "attributes": [ + { + "type": "relation", + "name": "template", + "value": "_template_geo_map", + "isInheritable": false, + "position": 10 + }, { "type": "label", "name": "label:geolocation", @@ -3182,8 +3189,16 @@ "position": 20 } ], - "dataFileName": "Geo Map (The Seven Wonders of .json", - "attachments": [], + "attachments": [ + { + "attachmentId": "jPOilfLdSmbX", + "title": "geoMap.json", + "role": "viewConfig", + "mime": "application/json", + "position": 0, + "dataFileName": "Geo Map (The Seven Wonder.json" + } + ], "dirFileName": "Geo Map (The Seven Wonders of the World)", "children": [ { diff --git a/apps/edit-docs/demo/navigation.html b/apps/edit-docs/demo/navigation.html index ff2586927..62e56a007 100644 --- a/apps/edit-docs/demo/navigation.html +++ b/apps/edit-docs/demo/navigation.html @@ -318,8 +318,7 @@
  • Mind Map
  • -
  • Geo Map (The Seven Wonders of the World) +
  • Geo Map (The Seven Wonders of the World) diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html index 01ad36c16..2a2d08336 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Christmas gift ideas.html @@ -17,7 +17,6 @@
  • XBox
  • Candles
  • Portable speakers -
  • ...?
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html index bae5a1ed0..0a85f8618 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/11 - November/28 - Tuesday/Trusted timestamping.html @@ -14,10 +14,8 @@

    Wiki: https://en.wikipedia.org/wiki/Trusted_timestamping -

    Bozho: https://techblog.bozho.net/using-trusted-timestamping-java/ -

    Trusted timestamping is the process of securely keeping track of the creation and modification time of a document. Security here diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html index 3722a62c0..ae490681e 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/18 - Monday.html @@ -16,7 +16,6 @@

    Miscellaneous notes done on monday ...

     

    Interesting video: https://www.youtube.com/watch?v=_eSAF_qT_FY&feature=youtu.be -

     

     

    diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html index 487b71530..f0309b26d 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/19 - Tuesday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html index ae559b3c1..28245eb1a 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/20 - Wednesday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html index 28b77ec56..2ff2ac742 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/21 - Thursday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html index 3545fd3d7..f8ec2e8e5 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/22 - Friday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html index 912b715c0..6973b8531 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/23 - Saturday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html index c243a035c..29a1e0cd2 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html index e7367a06c..55d9b2909 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/24 - Sunday - Christmas Eve!/DONE - Buy a board game for Al.html @@ -18,7 +18,6 @@ width="209" height="300">

    Maybe CodeNames? https://boardgamegeek.com/boardgame/178900/codenames -

    diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html index 133fae97b..36cbd2ed6 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/2021/12 - December/30 - Thursday.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html b/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html index 44bd101ae..623273a9e 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Journal/Day template.html @@ -18,7 +18,6 @@
  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonder.json b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonder.json new file mode 100644 index 000000000..436065800 --- /dev/null +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonder.json @@ -0,0 +1 @@ +{"view":{"center":{"lat":1.9026831680801948,"lng":14.501953124999993},"zoom":3}} \ No newline at end of file diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of .json b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of .json deleted file mode 100644 index c2bae9b3e..000000000 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of .json +++ /dev/null @@ -1 +0,0 @@ -{"view":{"center":{"lat":5.840169838914697,"lng":14.578571156950112},"zoom":3}} \ No newline at end of file diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chichén Itzá, Mexico.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chichén Itzá, Mexico.html index 3992ceed9..ab44bd638 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chichén Itzá, Mexico.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chichén Itzá, Mexico.html @@ -24,17 +24,14 @@ [1] -

    1. ^ -
    2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html index cbaae70da..3e1f1e905 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html @@ -26,16 +26,13 @@ been brought to its knees.[1] -

      1. ^ -
      2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html index 929103047..5e9817e5b 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html @@ -22,16 +22,13 @@ around 1450 in polished drystone walls.[1] -

        1. ^ -
        2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html index 55e0adafa..1396c2691 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html @@ -23,16 +23,13 @@ by earthquakes.[1] -

          1. ^ -
          2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html index c9abd680d..650a6623c 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html @@ -26,17 +26,14 @@ [1] -

            1. ^ -
            2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html index ccedb8388..1f5d5886f 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html @@ -23,17 +23,14 @@ [1] -

              1. ^ -
              2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html index 755184be0..0d692392a 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html @@ -23,16 +23,13 @@ the complex.[1] -

                1. ^ -
                2. diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager.html index 0194f9364..1b4822074 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager.html @@ -15,7 +15,6 @@

                  This is a simple TODO/Task manager. You can see some description and explanation here: https://github.com/zadam/trilium/wiki/Task-manager -

                  Please note that this is meant as scripting example only and feature/bug support is very limited.

                  diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html index 65b1819f2..9cda89645 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html @@ -18,7 +18,6 @@ width="209" height="300">

                  Maybe CodeNames? https://boardgamegeek.com/boardgame/178900/codenames -

                  diff --git a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html index 51831b17f..ba291c1ae 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager/Locations/mall/Buy some book for Bob/Maybe Black Swan.html @@ -14,7 +14,6 @@

                  https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable -

                  The Black Swan: The Impact of the Highly Improbable is a 2007 book by author and former options trader diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html index 55c1364be..aaa6cd1ad 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting.html @@ -25,7 +25,6 @@ and Apple's macOS (formerly OS X). A version is also available for Windows 10.

                  Bash on Wikipedia -

                  diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html index 2f686d2de..4dad269df 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/Bash startup modes.html @@ -14,7 +14,6 @@

                  Login shell

                  -

                  As a "login shell", Bash reads and sets (executes) the user's profile from /etc/profile and one of ~/.bash_profile, ~/.bash_login, or ~/.profile (in that order, using the first one that's readable!).

                  @@ -24,7 +23,6 @@ that only make sense for the initial user login. That's why all UNIX® shells have (should have) a "login" mode.

                  Methods to start Bash as a login shell: -

                  • the first character of argv[0] is - (a hyphen): traditional UNIX® shells @@ -33,20 +31,17 @@
                  • Bash is started with the --login option

                  Methods to test for login shell mode: -

                  Related switches: -

                  • --noprofile disables reading of all profile files

                  Interactive shell

                  -

                  When Bash starts as an interactive non-login shell, it reads and executes commands from ~/.bashrc. This file should contain, for example, aliases, since they need to be defined in every shell as they're not inherited from @@ -56,13 +51,11 @@ The classic way to have a system-wide rc file is to source /etc/bashrc from every user's ~/.bashrc.

                  Methods to test for interactive-shell mode: -

                  • the special parameter $- contains the letter i (lowercase I)

                  Related switches: -

                  • -i forces the interactive mode
                  • @@ -72,7 +65,6 @@ ~/.bashrc)

                  SH mode

                  -

                  When Bash starts in SH compatiblity mode, it tries to mimic the startup behaviour of historical versions of sh as closely as possible, while conforming to the POSIX® standard as well. The profile files read are /etc/profile @@ -82,7 +74,6 @@ file.

                  After the startup files are read, Bash enters the POSIX(r) compatiblity mode (for running, not for starting!).

                  Bash starts in sh compatiblity mode when: -

                  • diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html index 7b0c06f5d..5edac5b2a 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html @@ -14,25 +14,42 @@

                    Documentation: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html -

                    #!/bin/bash
                     
                    +
                    +
                     # This script opens 4 terminal windows.
                     
                     
                     
                    +
                    +
                    +
                    +
                     i="0"
                     
                    +
                    +
                     while [ $i -lt 4 ]
                     
                    +
                    +
                     do
                     
                    +
                    +
                         xterm &
                     
                     
                     
                    +
                    +
                    +
                    +
                         i=$[$i+1]
                     
                    +
                    +
                     done
                  diff --git a/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html b/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html index 4b51ab5be..1a977bccc 100644 --- a/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html +++ b/apps/edit-docs/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html @@ -20,7 +20,6 @@ href="https://en.wikipedia.org/wiki/Node.js#cite_note-b1-31">[31]Developers can create scalable servers without using threading, by using a simplified model of event-driven programming that uses callbacks to signal the completion of a task.[31] -

                  diff --git a/apps/edit-docs/demo/style.css b/apps/edit-docs/demo/style.css index a848c475a..67b58515c 100644 --- a/apps/edit-docs/demo/style.css +++ b/apps/edit-docs/demo/style.css @@ -1,4 +1,604 @@ /** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options - */:root{--ck-color-mention-background:hsla(341, 100%, 30%, .1);--ck-color-mention-text:hsl(341, 100%, 30%)}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}.ck-content code{background-color:#c7c7c74d;padding:.15em;border-radius:2px}.ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px hsl(0,0%,80%)}.ck-content[dir=rtl] blockquote{border-left:0;border-right:solid 5px hsl(0,0%,80%)}.ck-content pre{padding:1em;color:#353535;background:#c7c7c74d;border:1px solid hsl(0,0%,77%);border-radius:2px;text-align:left;direction:ltr;-moz-tab-size:4;tab-size:4;white-space:pre-wrap;font-style:normal;min-width:200px}.ck-content pre code{background:unset;padding:0;border-radius:0}.ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}:root{--ck-highlight-marker-yellow:hsl(60, 97%, 73%);--ck-highlight-marker-green:hsl(120, 93%, 68%);--ck-highlight-marker-pink:hsl(345, 96%, 73%);--ck-highlight-marker-blue:hsl(201, 97%, 72%);--ck-highlight-pen-red:hsl(0, 85%, 49%);--ck-highlight-pen-green:hsl(112, 100%, 27%)}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content .pen-green{color:var(--ck-highlight-pen-green);background-color:transparent}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}:root{--ck-color-image-caption-background:hsl(0, 0%, 97%);--ck-color-image-caption-text:hsl(0, 0%, 20%)}.ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:var(--ck-color-image-caption-text);background-color:var(--ck-color-image-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}@media (forced-colors: active){.ck-content .image>figcaption{background-color:unset;color:unset}}.ck-content img.image_resized{height:auto}.ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}:root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing) / 2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-right:0;margin-left:auto}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-top:var(--ck-inline-image-style-spacing);margin-bottom:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck-content .image{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%;height:auto}.ck-content .image-inline{display:inline-flex;max-width:100%;align-items:flex-start}.ck-content .image-inline picture{display:flex}.ck-content .image-inline picture,.ck-content .image-inline img{flex-grow:1;flex-shrink:1;max-width:100%}.ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}:root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{position:relative;margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;display:inline-block;position:relative;width:var(--ck-todo-list-checkmark-size);height:var(--ck-todo-list-checkmark-size);vertical-align:middle;border:0;left:-25px;margin-right:-15px;right:0;margin-left:0}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-right:0;right:-25px;margin-left:-15px}.ck-content .todo-list .todo-list__label>input:before{display:block;position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid hsl(0,0%,20%);border-radius:2px;transition:.25s ease-in-out box-shadow}@media (prefers-reduced-motion: reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{display:block;position:absolute;box-sizing:content-box;pointer-events:none;content:"";left:calc(var(--ck-todo-list-checkmark-size) / 3);top:calc(var(--ck-todo-list-checkmark-size) / 5.3);width:calc(var(--ck-todo-list-checkmark-size) / 5.3);height:calc(var(--ck-todo-list-checkmark-size) / 2.6);border-style:solid;border-color:transparent;border-width:0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0;transform:rotate(45deg)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-content .media{clear:both;margin:.9em 0;display:block;min-width:15em}.ck-content .page-break{position:relative;clear:both;padding:5px 0;display:flex;align-items:center;justify-content:center}.ck-content .page-break:after{content:"";position:absolute;border-bottom:2px dashed hsl(0,0%,77%);width:100%}.ck-content .page-break__label{position:relative;z-index:1;padding:.3em .6em;display:block;text-transform:uppercase;border:1px solid hsl(0,0%,77%);border-radius:2px;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;color:#333;background:#fff;box-shadow:2px 2px 1px #00000026;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}.ck-content *:has(+.page-break){margin-bottom:0}}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-content figure.table:not(.layout-table){display:table}.ck-content figure.table:not(.layout-table)>table{width:100%;height:100%}.ck-content .table:not(.layout-table){margin:.9em auto}.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table{border-collapse:collapse;border-spacing:0;border:1px double hsl(0,0%,70%)}.ck-content table.table:not(.layout-table)>thead>tr>th,.ck-content figure.table:not(.layout-table)>table>thead>tr>th,.ck-content table.table:not(.layout-table)>tbody>tr>th,.ck-content figure.table:not(.layout-table)>table>tbody>tr>th{font-weight:700;background:#0000000d}.ck-content table.table:not(.layout-table)>thead>tr>td,.ck-content figure.table:not(.layout-table)>table>thead>tr>td,.ck-content table.table:not(.layout-table)>tbody>tr>td,.ck-content figure.table:not(.layout-table)>table>tbody>tr>td,.ck-content table.table:not(.layout-table)>thead>tr>th,.ck-content figure.table:not(.layout-table)>table>thead>tr>th,.ck-content table.table:not(.layout-table)>tbody>tr>th,.ck-content figure.table:not(.layout-table)>table>tbody>tr>th{min-width:2em;padding:.4em;border:1px solid hsl(0,0%,75%)}@media print{.ck-content figure.table>table{height:initial}}.ck-content table.table.layout-table,.ck-content figure.table.layout-table{margin-top:0;margin-bottom:0}.ck-content table.table.layout-table,.ck-content figure.table.layout-table>table{border-spacing:0}:root{--ck-color-selector-caption-background:hsl(0, 0%, 97%);--ck-color-selector-caption-text:hsl(0, 0%, 20%)}.ck-content .table>figcaption{display:table-caption;caption-side:top;word-break:break-word;text-align:center;color:var(--ck-color-selector-caption-text);background-color:var(--ck-color-selector-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}@media (forced-colors: active){.ck-content .table>figcaption{background-color:unset;color:unset}}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word}.printed-content .ck-widget__selection-handle,.printed-content .ck-widget__type-around{display:none}.page-break{page-break-after:always}.printed-content .page-break:after,.printed-content .page-break>*{display:none!important}.ck-content li p{margin:0!important}.admonition{--accent-color: var(--card-border-color);border:1px solid var(--accent-color);box-shadow:var(--card-box-shadow);background:var(--card-background-color);border-radius:.5em;padding:1em;margin:1.25em 0;position:relative;overflow:hidden}.admonition p:last-child{margin-bottom:0}.admonition p,h2{margin-top:0}.admonition.note{--accent-color: #69c7ff}.admonition.tip{--accent-color: #40c025}.admonition.important{--accent-color: #9839f7}.admonition.caution{--accent-color: #ff2e2e}.admonition.warning{--accent-color: #e2aa03} + */ +:root{ + --ck-content-color-mention-background:hsla(341, 100%, 30%, 0.1); + --ck-content-color-mention-text:hsl(341, 100%, 30%); +} +.ck-content .mention{ + background:var(--ck-content-color-mention-background); + color:var(--ck-content-color-mention-text); +} + +.ck-content code{ + background-color:hsla(0, 0%, 78%, 0.3); + padding:.15em; + border-radius:2px; +} + +.ck-content blockquote{ + overflow:hidden; + padding-right:1.5em; + padding-left:1.5em; + + margin-left:0; + margin-right:0; + font-style:italic; + border-left:solid 5px hsl(0, 0%, 80%); +} + +.ck-content[dir="rtl"] blockquote{ + border-left:0; + border-right:solid 5px hsl(0, 0%, 80%); +} + +.ck-content pre{ + padding:1em; + color:hsl(0, 0%, 20.8%); + background:hsla(0, 0%, 78%, 0.3); + border:1px solid hsl(0, 0%, 77%); + border-radius:2px; + text-align:left; + direction:ltr; + + tab-size:4; + white-space:pre-wrap; + font-style:normal; + min-width:200px; +} + +.ck-content pre code{ + background:unset; + padding:0; + border-radius:0; + } + +:root{ + --ck-content-font-family:Helvetica, Arial, Tahoma, Verdana, Sans-Serif; + --ck-content-font-size:medium; + --ck-content-font-color:#000; + --ck-content-line-height:1.5; + --ck-content-word-break:break-word; +} + +.ck-content{ + font-family:var(--ck-content-font-family); + font-size:var(--ck-content-font-size); + color:var(--ck-content-font-color); + line-height:var(--ck-content-line-height); + word-break:var(--ck-content-word-break); +} + +:root{ + --ck-content-font-size-tiny:0.7em; + --ck-content-font-size-small:0.85em; + --ck-content-font-size-big:1.4em; + --ck-content-font-size-huge:1.8em; +} +.ck-content .text-tiny{ + font-size:var(--ck-content-font-size-tiny); + } +.ck-content .text-small{ + font-size:var(--ck-content-font-size-small); + } +.ck-content .text-big{ + font-size:var(--ck-content-font-size-big); + } +.ck-content .text-huge{ + font-size:var(--ck-content-font-size-huge); + } + +:root{ + --ck-content-highlight-marker-yellow:hsl(60, 97%, 73%); + --ck-content-highlight-marker-green:hsl(120, 93%, 68%); + --ck-content-highlight-marker-pink:hsl(345, 96%, 73%); + --ck-content-highlight-marker-blue:hsl(201, 97%, 72%); + --ck-content-highlight-pen-red:hsl(0, 85%, 49%); + --ck-content-highlight-pen-green:hsl(112, 100%, 27%); +} + +.ck-content .marker-yellow{ + background-color:var(--ck-content-highlight-marker-yellow); + } +.ck-content .marker-green{ + background-color:var(--ck-content-highlight-marker-green); + } +.ck-content .marker-pink{ + background-color:var(--ck-content-highlight-marker-pink); + } +.ck-content .marker-blue{ + background-color:var(--ck-content-highlight-marker-blue); + } + +.ck-content .pen-red{ + color:var(--ck-content-highlight-pen-red); + background-color:transparent; + } +.ck-content .pen-green{ + color:var(--ck-content-highlight-pen-green); + background-color:transparent; + } + +.ck-content hr{ + margin:15px 0; + height:4px; + background:hsl(0, 0%, 87%); + border:0; +} + +:root{ + --ck-content-color-image-caption-background:hsl(0, 0%, 97%); + --ck-content-color-image-caption-text:hsl(0, 0%, 20%); +} +.ck-content .image > figcaption{ + display:table-caption; + caption-side:bottom; + word-break:normal; + overflow-wrap:anywhere; + break-before:avoid; + color:var(--ck-content-color-image-caption-text); + background-color:var(--ck-content-color-image-caption-background); + padding:.6em; + font-size:.75em; + outline-offset:-1px; +} +@media (forced-colors: active){ +.ck-content .image > figcaption{ + background-color:unset; + color:unset; +} + } +.ck-content img.image_resized{ + height:auto; +} + +.ck-content .image.image_resized{ + max-width:100%; + display:block; + box-sizing:border-box; +} + +.ck-content .image.image_resized img{ + width:100%; + } + +.ck-content .image.image_resized > figcaption{ + display:block; + } + +:root{ + --ck-content-image-style-spacing:1.5em; + --ck-content-inline-image-style-spacing:calc(var(--ck-content-image-style-spacing) / 2); +} + +.ck-content .image.image-style-block-align-left, + .ck-content .image.image-style-block-align-right{ + max-width:calc(100% - var(--ck-content-image-style-spacing)); + } + +.ck-content .image.image-style-align-left, + .ck-content .image.image-style-align-right{ + clear:none; + } + +.ck-content .image.image-style-side{ + float:right; + margin-left:var(--ck-content-image-style-spacing); + max-width:50%; + } + +.ck-content .image.image-style-align-left{ + float:left; + margin-right:var(--ck-content-image-style-spacing); + } + +.ck-content .image.image-style-align-right{ + float:right; + margin-left:var(--ck-content-image-style-spacing); + } + +.ck-content .image.image-style-block-align-right{ + margin-right:0; + margin-left:auto; + } + +.ck-content .image.image-style-block-align-left{ + margin-left:0; + margin-right:auto; + } + +.ck-content .image-style-align-center{ + margin-left:auto; + margin-right:auto; + } + +.ck-content .image-style-align-left{ + float:left; + margin-right:var(--ck-content-image-style-spacing); + } + +.ck-content .image-style-align-right{ + float:right; + margin-left:var(--ck-content-image-style-spacing); + } + +.ck-content p + .image.image-style-align-left, + .ck-content p + .image.image-style-align-right, + .ck-content p + .image.image-style-side{ + margin-top:0; + } + +.ck-content .image-inline.image-style-align-left, + .ck-content .image-inline.image-style-align-right{ + margin-top:var(--ck-content-inline-image-style-spacing); + margin-bottom:var(--ck-content-inline-image-style-spacing); + } + +.ck-content .image-inline.image-style-align-left{ + margin-right:var(--ck-content-inline-image-style-spacing); + } + +.ck-content .image-inline.image-style-align-right{ + margin-left:var(--ck-content-inline-image-style-spacing); + } + +.ck-content .image{ + display:table; + clear:both; + text-align:center; + margin:0.9em auto; + min-width:50px; + } + +.ck-content .image img{ + display:block; + margin:0 auto; + max-width:100%; + min-width:100%; + height:auto; + } + +.ck-content .image-inline{ + display:inline-flex; + max-width:100%; + align-items:flex-start; + } + +.ck-content .image-inline picture{ + display:flex; + } + +.ck-content .image-inline picture, + .ck-content .image-inline img{ + flex-grow:1; + flex-shrink:1; + max-width:100%; + } + +:root{ + --ck-content-list-marker-color:var(--ck-content-font-color); + --ck-content-list-marker-font-family:var(--ck-content-font-family); + --ck-content-list-marker-font-size:var(--ck-content-font-size); +} + +.ck-content li > p:first-of-type{ + margin-top:0; + } + +.ck-content li > p:only-of-type{ + margin-top:0; + margin-bottom:0; + } + +.ck-content li.ck-list-marker-bold::marker{ + font-weight:bold; + } + +.ck-content li.ck-list-marker-italic::marker{ + font-style:italic; + } + +.ck-content li.ck-list-marker-color::marker{ + color:var(--ck-content-list-marker-color); + } + +.ck-content li.ck-list-marker-font-family::marker{ + font-family:var(--ck-content-list-marker-font-family); + } + +.ck-content li.ck-list-marker-font-size::marker{ + font-size:var(--ck-content-list-marker-font-size); + } + +.ck-content li.ck-list-marker-font-size-tiny::marker{ + font-size:var(--ck-content-font-size-tiny); + } + +.ck-content li.ck-list-marker-font-size-small::marker{ + font-size:var(--ck-content-font-size-small); + } + +.ck-content li.ck-list-marker-font-size-big::marker{ + font-size:var(--ck-content-font-size-big); + } + +.ck-content li.ck-list-marker-font-size-huge::marker{ + font-size:var(--ck-content-font-size-huge); + } + +.ck-content ol{ + list-style-type:decimal; +} + +.ck-content ol ol{ + list-style-type:lower-latin; + } + +.ck-content ol ol ol{ + list-style-type:lower-roman; + } + +.ck-content ol ol ol ol{ + list-style-type:upper-latin; + } + +.ck-content ol ol ol ol ol{ + list-style-type:upper-roman; + } + +.ck-content ul{ + list-style-type:disc; +} + +.ck-content ul ul{ + list-style-type:circle; + } + +.ck-content ul ul ul{ + list-style-type:square; + } + +.ck-content ul ul ul ul{ + list-style-type:square; + } + +:root{ + --ck-content-todo-list-checkmark-size:16px; +} +.ck-content .todo-list{ + list-style:none; +} +.ck-content .todo-list li{ + position:relative; + margin-bottom:5px; + } +.ck-content .todo-list li .todo-list{ + margin-top:5px; + } +.ck-content .todo-list .todo-list__label > input{ + -webkit-appearance:none; + display:inline-block; + position:relative; + width:var(--ck-content-todo-list-checkmark-size); + height:var(--ck-content-todo-list-checkmark-size); + vertical-align:middle; + border:0; + left:-25px; + margin-right:-15px; + right:0; + margin-left:0; + } +.ck-content[dir=rtl] .todo-list .todo-list__label > input{ + left:0; + margin-right:0; + right:-25px; + margin-left:-15px; + } +.ck-content .todo-list .todo-list__label > input::before{ + display:block; + position:absolute; + box-sizing:border-box; + content:''; + width:100%; + height:100%; + border:1px solid hsl(0, 0%, 20%); + border-radius:2px; + transition:250ms ease-in-out box-shadow; + } +@media (prefers-reduced-motion: reduce){ +.ck-content .todo-list .todo-list__label > input::before{ + transition:none; + } + } +.ck-content .todo-list .todo-list__label > input::after{ + display:block; + position:absolute; + box-sizing:content-box; + pointer-events:none; + content:''; + left:calc( var(--ck-content-todo-list-checkmark-size) / 3); + top:calc( var(--ck-content-todo-list-checkmark-size) / 5.3); + width:calc( var(--ck-content-todo-list-checkmark-size) / 5.3); + height:calc( var(--ck-content-todo-list-checkmark-size) / 2.6); + border-style:solid; + border-color:transparent; + border-width:0 calc( var(--ck-content-todo-list-checkmark-size) / 8) calc( var(--ck-content-todo-list-checkmark-size) / 8) 0; + transform:rotate(45deg); + } +.ck-content .todo-list .todo-list__label > input[checked]::before{ + background:hsl(126, 64%, 41%); + border-color:hsl(126, 64%, 41%); + } +.ck-content .todo-list .todo-list__label > input[checked]::after{ + border-color:hsl(0, 0%, 100%); + } +.ck-content .todo-list .todo-list__label .todo-list__label__description{ + vertical-align:middle; + } +.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{ + position:absolute; + } + +.ck-content .media{ + clear:both; + margin:0.9em 0; + display:block; + min-width:15em; +} + +.ck-content .page-break{ + position:relative; + clear:both; + padding:5px 0; + display:flex; + align-items:center; + justify-content:center; +} + +.ck-content .page-break::after{ + content:''; + position:absolute; + border-bottom:2px dashed hsl(0, 0%, 77%); + width:100%; + } + +.ck-content .page-break__label{ + position:relative; + z-index:1; + padding:.3em .6em; + display:block; + text-transform:uppercase; + border:1px solid hsl(0, 0%, 77%); + border-radius:2px; + font-size:0.75em; + font-weight:bold; + color:hsl(0, 0%, 20%); + background:hsl(0, 0%, 100%); + box-shadow:2px 2px 1px hsla(0, 0%, 0%, 0.15); + -webkit-user-select:none; + -moz-user-select:none; + -ms-user-select:none; + user-select:none; +} +@media print{ + .ck-content .page-break{ + padding:0; + } + + .ck-content .page-break::after{ + display:none; + } + .ck-content *:has(+ .page-break){ + margin-bottom:0; + } +} + +.ck-content[dir="rtl"] .table th{ + text-align:right; + } + +.ck-content[dir="ltr"] .table th{ + text-align:left; + } + +.ck-content figure.table:not(.layout-table){ + display:table; + } + +.ck-content figure.table:not(.layout-table) > table{ + width:100%; + height:100%; + } + +.ck-content .table:not(.layout-table){ + margin:0.9em auto; + } + +.ck-content table.table:not(.layout-table), + .ck-content figure.table:not(.layout-table) > table{ + border-collapse:collapse; + border-spacing:0; + border:1px double hsl(0, 0%, 70%); + } + +.ck-content table.table:not(.layout-table) > thead > tr > th, .ck-content figure.table:not(.layout-table) > table > thead > tr > th, .ck-content table.table:not(.layout-table) > tbody > tr > th, .ck-content figure.table:not(.layout-table) > table > tbody > tr > th{ + font-weight:bold; + background:hsla(0, 0%, 0%, 5%); + } + +.ck-content table.table:not(.layout-table) > thead > tr > td, + .ck-content figure.table:not(.layout-table) > table > thead > tr > td, + .ck-content table.table:not(.layout-table) > tbody > tr > td, + .ck-content figure.table:not(.layout-table) > table > tbody > tr > td, + .ck-content table.table:not(.layout-table) > thead > tr > th, + .ck-content figure.table:not(.layout-table) > table > thead > tr > th, + .ck-content table.table:not(.layout-table) > tbody > tr > th, + .ck-content figure.table:not(.layout-table) > table > tbody > tr > th{ + + min-width:2em; + padding:0.4em; + border:1px solid hsl(0, 0%, 75%); + } + +.ck-content table.table:not(.layout-table) > thead > tr > td > p:first-of-type, .ck-content figure.table:not(.layout-table) > table > thead > tr > td > p:first-of-type, .ck-content table.table:not(.layout-table) > tbody > tr > td > p:first-of-type, .ck-content figure.table:not(.layout-table) > table > tbody > tr > td > p:first-of-type, .ck-content table.table:not(.layout-table) > thead > tr > th > p:first-of-type, .ck-content figure.table:not(.layout-table) > table > thead > tr > th > p:first-of-type, .ck-content table.table:not(.layout-table) > tbody > tr > th > p:first-of-type, .ck-content figure.table:not(.layout-table) > table > tbody > tr > th > p:first-of-type{ + margin-top:0; + } + +.ck-content table.table:not(.layout-table) > thead > tr > td > p:last-of-type, .ck-content figure.table:not(.layout-table) > table > thead > tr > td > p:last-of-type, .ck-content table.table:not(.layout-table) > tbody > tr > td > p:last-of-type, .ck-content figure.table:not(.layout-table) > table > tbody > tr > td > p:last-of-type, .ck-content table.table:not(.layout-table) > thead > tr > th > p:last-of-type, .ck-content figure.table:not(.layout-table) > table > thead > tr > th > p:last-of-type, .ck-content table.table:not(.layout-table) > tbody > tr > th > p:last-of-type, .ck-content figure.table:not(.layout-table) > table > tbody > tr > th > p:last-of-type{ + margin-bottom:0; + } + +@media print{ + .ck-content figure.table:not(.layout-table):not(:has(> figcaption)){ + display:block; + width:fit-content; + } + .ck-content figure.table:not(.layout-table) > table{ + height:initial; + } +} + +.ck-content table.table.layout-table, + .ck-content figure.table.layout-table{ + margin-top:0; + margin-bottom:0; + } + +.ck-content table.table.layout-table, + .ck-content figure.table.layout-table > table{ + border-spacing:0; + } + +:root{ + --ck-content-color-table-caption-background:hsl(0, 0%, 97%); + --ck-content-color-table-caption-text:hsl(0, 0%, 20%); +} +.ck-content .table > figcaption, +.ck-content figure.table > table > caption{ + display:table-caption; + caption-side:top; + word-break:normal; + overflow-wrap:anywhere; + text-align:center; + color:var(--ck-content-color-table-caption-text); + background-color:var(--ck-content-color-table-caption-background); + padding:.6em; + font-size:.75em; + outline-offset:-1px; +} +@media (forced-colors: active){ + .ck-content .table > figcaption, .ck-content figure.table > table > caption{ + background-color:unset; + color:unset; + } + } + +.ck-content .table .ck-table-resized{ + table-layout:fixed; +} + +.ck-content .table td, +.ck-content .table th{ + overflow-wrap:break-word; +} \ No newline at end of file diff --git a/apps/server/src/assets/db/demo.zip b/apps/server/src/assets/db/demo.zip index 322fbe7de..d042dd83e 100644 Binary files a/apps/server/src/assets/db/demo.zip and b/apps/server/src/assets/db/demo.zip differ diff --git a/apps/server/src/services/scheduler.ts b/apps/server/src/services/scheduler.ts index 2c0151887..803507442 100644 --- a/apps/server/src/services/scheduler.ts +++ b/apps/server/src/services/scheduler.ts @@ -33,11 +33,15 @@ function runNotesWithLabel(runAttrValue: string) { } } -sqlInit.dbReady.then(() => { - cls.init(() => { - hiddenSubtreeService.checkHiddenSubtree(); - }); +// If the database is already initialized, we need to check the hidden subtree. Otherwise, hidden subtree +// is also checked before importing the demo.zip, so no need to do it again. +if (sqlInit.isDbInitialized()) { + console.log("Checking hidden subtree."); + sqlInit.dbReady.then(() => cls.init(() => hiddenSubtreeService.checkHiddenSubtree())); +} +// Periodic checks. +sqlInit.dbReady.then(() => { if (!process.env.TRILIUM_SAFE_MODE) { setTimeout( cls.wrap(() => runNotesWithLabel("backendStartup")), diff --git a/apps/server/src/services/sql_init.ts b/apps/server/src/services/sql_init.ts index 926d61bba..cdd6230bf 100644 --- a/apps/server/src/services/sql_init.ts +++ b/apps/server/src/services/sql_init.ts @@ -18,6 +18,7 @@ import password from "./encryption/password.js"; import backup from "./backup.js"; import eventService from "./events.js"; import { t } from "i18next"; +import hidden_subtree from "./hidden_subtree.js"; export const dbReady = deferred(); @@ -120,7 +121,13 @@ async function createInitialDatabase(skipDemoDb?: boolean) { password.resetPassword(); }); - log.info("Importing demo content ..."); + // Check hidden subtree. + // This ensures the existence of system templates, for the demo content. + console.log("Checking hidden subtree at first start."); + cls.init(() => hidden_subtree.checkHiddenSubtree()); + + // Import demo content. + log.info("Importing demo content..."); const dummyTaskContext = new TaskContext("no-progress-reporting", "importNotes", null); @@ -128,6 +135,7 @@ async function createInitialDatabase(skipDemoDb?: boolean) { await zipImportService.importZip(dummyTaskContext, demoFile, rootNote); } + // Post-demo. sql.transactional(() => { // this needs to happen after ZIP import, // the previous solution was to move option initialization here, but then the important parts of initialization