Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(share): share the content styles with the app
Elian Doranc6657beb8ea8
diff --git a/apps/client/src/index.ts b/apps/client/src/index.tsindex 10c1e561e3..559099e5cb 100644--- a/apps/client/src/index.ts+++ b/apps/client/src/index.ts@@ -1,3 +1,10 @@+// Content styles shared with the share theme. `stylesheets/` is served as is, so a bare package+// `@import` there would reach the browser unresolved; Vite bundles these into the entry's CSS,+// which loads ahead of the stylesheets `loadStylesheets()` appends.+import "@triliumnext/ckeditor5/src/theme/adaptive_colors.css";+import "@triliumnext/ckeditor5/src/theme/footnotes.css";+import "@triliumnext/ckeditor5/src/theme/reference_links.css";+import { createFontStylesheetLink } from "./services/font";import {CLIENT_STARTUP_PHASES, hideSplash, initSplashProgress, reportSplashPhase, showSplashErrordiff --git a/apps/client/src/print.css b/apps/client/src/print.cssindex e460113890..c46d0ab798 100644--- a/apps/client/src/print.css+++ b/apps/client/src/print.css@@ -1,6 +1,6 @@@import "./stylesheets/boxicons-compat.css";/* No dark theme class is set when printing, so colors get the light theme's shades. */-@import "./stylesheets/adaptive-colors.css";+@import "@triliumnext/ckeditor5/src/theme/adaptive_colors.css";:root {--print-font-size: 11pt;diff --git a/apps/client/src/stylesheets/adaptive-colors.css b/apps/client/src/stylesheets/adaptive-colors.cssindex bad2e55413..27e2c4f9ac 100644--- a/apps/client/src/stylesheets/adaptive-colors.css+++ b/apps/client/src/stylesheets/adaptive-colors.css@@ -1,52 +1,3 @@-/*- * Theme-adaptive text and table colors. The text editor saves each color again as `--tn-color`,- * `--tn-background` or `--tn-border-color`; these rules keep its hue, move its CIELAB lightness- * into the role's range and cap its chroma. Greys (chroma below 1.5) spread over the range.- * Keep in step with `packages/share-theme/src/styles/adaptive-colors.css`.- */--/* Zero specificity, so that a theme's :root wins although themes load before this file. */-:where(:root) {- /* Adaptive font color limits */- --adaptive-text-light-max-lightness: 40;- --adaptive-text-light-max-chroma: 150;- --adaptive-text-dark-min-lightness: 75;- --adaptive-text-dark-max-chroma: 55;-- /* Adaptive font background color limits */- --adaptive-background-light-min-lightness: 90;- --adaptive-background-light-max-chroma: 20;- --adaptive-background-dark-max-lightness: 30;- --adaptive-background-dark-max-chroma: 30;-- /* Adaptive table border color limits */- --adaptive-table-border-light-max-lightness: 60;- --adaptive-table-border-light-max-chroma: 150;- --adaptive-table-border-dark-min-lightness: 47;- --adaptive-table-border-dark-max-chroma: 150;-- /* Adaptive table background color limits */- --adaptive-table-background-light-min-lightness: 90;- --adaptive-table-background-light-max-chroma: 20;- --adaptive-table-background-dark-max-lightness: 30;- --adaptive-table-background-dark-max-chroma: 30;-}--:root {- --_adaptive-text-min: 0;- --_adaptive-text-max: var(--adaptive-text-light-max-lightness);- --_adaptive-text-chroma: var(--adaptive-text-light-max-chroma);- --_adaptive-background-min: var(--adaptive-background-light-min-lightness);- --_adaptive-background-max: 100;- --_adaptive-background-chroma: var(--adaptive-background-light-max-chroma);- --_adaptive-table-border-min: 0;- --_adaptive-table-border-max: var(--adaptive-table-border-light-max-lightness);- --_adaptive-table-border-chroma: var(--adaptive-table-border-light-max-chroma);- --_adaptive-table-background-min: var(--adaptive-table-background-light-min-lightness);- --_adaptive-table-background-max: 100;- --_adaptive-table-background-chroma: var(--adaptive-table-background-light-max-chroma);-}-body.dark-theme {--_adaptive-text-min: var(--adaptive-text-dark-min-lightness);--_adaptive-text-max: 100;@@ -61,39 +12,3 @@ body.dark-theme {--_adaptive-table-background-max: var(--adaptive-table-background-dark-max-lightness);--_adaptive-table-background-chroma: var(--adaptive-table-background-dark-max-chroma);}--/* `!important` beats the inline color, which browsers without relative colors keep showing. */-[style*="--tn-color"] {- color: lch(from var(--tn-color)- calc(min(1, c / 1.5) * clamp(var(--_adaptive-text-min), l, var(--_adaptive-text-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-text-min)- + l / 100 * (var(--_adaptive-text-max) - var(--_adaptive-text-min))))- min(c, var(--_adaptive-text-chroma)) h) !important;-}--[style*="--tn-background"] {- background-color: lch(from var(--tn-background)- calc(min(1, c / 1.5)- * clamp(var(--_adaptive-background-min), l, var(--_adaptive-background-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-background-min)- + l / 100 * (var(--_adaptive-background-max) - var(--_adaptive-background-min))))- min(c, var(--_adaptive-background-chroma)) h) !important;-}--:is(table, td, th)[style*="--tn-border-color"] {- border-color: lch(from var(--tn-border-color)- calc(min(1, c / 1.5)- * clamp(var(--_adaptive-table-border-min), l, var(--_adaptive-table-border-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-border-min) + l / 100- * (var(--_adaptive-table-border-max) - var(--_adaptive-table-border-min))))- min(c, var(--_adaptive-table-border-chroma)) h) !important;-}--:is(table, td, th)[style*="--tn-background"] {- background-color: lch(from var(--tn-background)- calc(min(1, c / 1.5) * clamp(var(--_adaptive-table-background-min), l,- var(--_adaptive-table-background-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-background-min) + l / 100- * (var(--_adaptive-table-background-max) - var(--_adaptive-table-background-min))))- min(c, var(--_adaptive-table-background-chroma)) h) !important;-}diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 2f153da044..60ef8b95ca 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -1106,48 +1106,6 @@ svg.ck-icon.note-icon {.ck-content .footnote-section {border: 1px solid #c4c4c4;- border-radius: 2px;- counter-reset: footnote-counter;- margin: 1em 0;- padding: 10px;-}--.ck-content .footnote-item {- counter-increment: footnote-counter;- display: flex;- list-style: none;- margin-inline-start: 0.5em;-}--.ck-content .footnote-item > * {- vertical-align: text-top;-}--.ck-content .footnote-back-link {- margin-inline-end: 0.1em;- position: relative;- top: -0.2em;-}--.ck-content .footnotes .footnote-back-link > sup {- margin-inline-end: 0;-}--.ck-content .footnote-item:before {- content: counter(footnote-counter) ". ";- display: inline-block;- min-width: fit-content;- position: relative;- inset-inline-end: 0.2em;- text-align: end;-}--.ck-content .footnote-content {- border-radius: 2px;- display: inline-block;- flex-grow: 1;- padding: 0 0.3em;- width: 95%;}.ck-content .ck-content-widget.footnote-section .ck-content-widget__type-around__button_after {@@ -2261,22 +2219,8 @@ button.close:hover {}.reference-link .tn-icon {- /* A line can wrap after an inline-block. An inline box that does not wrap and ends with a- word joiner keeps the icon on the line of the first title character. */- display: inline;position: relative;top: 1px;- margin-inline-end: 3px;- white-space: nowrap;-}--.reference-link .tn-icon::before {- /* An inline-block glyph does not take the underline of the link. */- display: inline-block;-}--.reference-link .tn-icon::after {- content: "\2060";}.reference-link small {diff --git a/packages/ckeditor5/src/plugins/footnotes/footnotes.ts b/packages/ckeditor5/src/plugins/footnotes/footnotes.tsindex 7c0aebfca8..cc00afcf8a 100644--- a/packages/ckeditor5/src/plugins/footnotes/footnotes.ts+++ b/packages/ckeditor5/src/plugins/footnotes/footnotes.ts@@ -1,6 +1,7 @@import { Plugin } from "ckeditor5";import "../../theme/footnotes.css";+import "../../theme/footnotes_editing.css";import FootnoteEditing from "./footnote_editing.js";import FootnoteUI from "./footnote_ui.js";diff --git a/packages/ckeditor5/src/theme/adaptive_colors.css b/packages/ckeditor5/src/theme/adaptive_colors.cssnew file mode 100644index 0000000000..dab8ed443a--- /dev/null+++ b/packages/ckeditor5/src/theme/adaptive_colors.css@@ -0,0 +1,87 @@+/*+ * Theme-adaptive text and table colors. The text editor saves each color again as `--tn-color`,+ * `--tn-background` or `--tn-border-color`; these rules keep its hue, move its CIELAB lightness+ * into the role's range and cap its chroma. Greys (chroma below 1.5) spread over the range.+ *+ * The rules read the light ranges. A page in dark mode points the `--_adaptive-*` variables at the+ * dark limits under its own dark-mode selector: the app's `stylesheets/adaptive-colors.css` and+ * the share theme's `content/adaptive_colors.css` do.+ */++/* Zero specificity, so that a theme's :root wins although themes load before this file. */+:where(:root) {+ /* Adaptive font color limits */+ --adaptive-text-light-max-lightness: 40;+ --adaptive-text-light-max-chroma: 150;+ --adaptive-text-dark-min-lightness: 75;+ --adaptive-text-dark-max-chroma: 55;++ /* Adaptive font background color limits */+ --adaptive-background-light-min-lightness: 90;+ --adaptive-background-light-max-chroma: 20;+ --adaptive-background-dark-max-lightness: 30;+ --adaptive-background-dark-max-chroma: 30;++ /* Adaptive table border color limits */+ --adaptive-table-border-light-max-lightness: 60;+ --adaptive-table-border-light-max-chroma: 150;+ --adaptive-table-border-dark-min-lightness: 47;+ --adaptive-table-border-dark-max-chroma: 150;++ /* Adaptive table background color limits */+ --adaptive-table-background-light-min-lightness: 90;+ --adaptive-table-background-light-max-chroma: 20;+ --adaptive-table-background-dark-max-lightness: 30;+ --adaptive-table-background-dark-max-chroma: 30;+}++:root {+ --_adaptive-text-min: 0;+ --_adaptive-text-max: var(--adaptive-text-light-max-lightness);+ --_adaptive-text-chroma: var(--adaptive-text-light-max-chroma);+ --_adaptive-background-min: var(--adaptive-background-light-min-lightness);+ --_adaptive-background-max: 100;+ --_adaptive-background-chroma: var(--adaptive-background-light-max-chroma);+ --_adaptive-table-border-min: 0;+ --_adaptive-table-border-max: var(--adaptive-table-border-light-max-lightness);+ --_adaptive-table-border-chroma: var(--adaptive-table-border-light-max-chroma);+ --_adaptive-table-background-min: var(--adaptive-table-background-light-min-lightness);+ --_adaptive-table-background-max: 100;+ --_adaptive-table-background-chroma: var(--adaptive-table-background-light-max-chroma);+}++/* `!important` beats the inline color, which browsers without relative colors keep showing. */+[style*="--tn-color"] {+ color: lch(from var(--tn-color)+ calc(min(1, c / 1.5) * clamp(var(--_adaptive-text-min), l, var(--_adaptive-text-max))+ + (1 - min(1, c / 1.5)) * (var(--_adaptive-text-min)+ + l / 100 * (var(--_adaptive-text-max) - var(--_adaptive-text-min))))+ min(c, var(--_adaptive-text-chroma)) h) !important;+}++[style*="--tn-background"] {+ background-color: lch(from var(--tn-background)+ calc(min(1, c / 1.5)+ * clamp(var(--_adaptive-background-min), l, var(--_adaptive-background-max))+ + (1 - min(1, c / 1.5)) * (var(--_adaptive-background-min)+ + l / 100 * (var(--_adaptive-background-max) - var(--_adaptive-background-min))))+ min(c, var(--_adaptive-background-chroma)) h) !important;+}++:is(table, td, th)[style*="--tn-border-color"] {+ border-color: lch(from var(--tn-border-color)+ calc(min(1, c / 1.5)+ * clamp(var(--_adaptive-table-border-min), l, var(--_adaptive-table-border-max))+ + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-border-min) + l / 100+ * (var(--_adaptive-table-border-max) - var(--_adaptive-table-border-min))))+ min(c, var(--_adaptive-table-border-chroma)) h) !important;+}++:is(table, td, th)[style*="--tn-background"] {+ background-color: lch(from var(--tn-background)+ calc(min(1, c / 1.5) * clamp(var(--_adaptive-table-background-min), l,+ var(--_adaptive-table-background-max))+ + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-background-min) + l / 100+ * (var(--_adaptive-table-background-max) - var(--_adaptive-table-background-min))))+ min(c, var(--_adaptive-table-background-chroma)) h) !important;+}diff --git a/packages/ckeditor5/src/theme/footnotes.css b/packages/ckeditor5/src/theme/footnotes.cssindex 29da50baef..2e0a10221d 100644--- a/packages/ckeditor5/src/theme/footnotes.css+++ b/packages/ckeditor5/src/theme/footnotes.css@@ -1,59 +1,49 @@-.ck .footnote-section {- padding: 10px;- margin: 1em 0;- border: solid 1px hsl(0, 0%, 77%);- border-radius: 2px;- counter-reset: footnote-counter;-}+/*+ * The layout of a text note's footnotes, wherever the note is shown: the editor, a read-only note+ * and a shared page. Borders and colors are left to each of them.+ */-.ck .footnote-item {- list-style: none;- counter-increment: footnote-counter;- margin-left: 0.5em;- display: flex;+.ck-content .footnote-section {+ border-radius: 2px;+ counter-reset: footnote-counter;+ margin: 1em 0;+ padding: 10px;}-.ck .footnote-item > * {- vertical-align: text-top;+.ck-content .footnote-item {+ counter-increment: footnote-counter;+ display: flex;+ list-style: none;+ margin-inline-start: 0.5em;}-.ck .footnote-back-link {- position: relative;- margin-right: 0.1em;- top: -0.2em;+.ck-content .footnote-item > * {+ vertical-align: text-top;}-.ck .footnotes .footnote-back-link > sup {- margin-right: 0;+.ck-content .footnote-back-link {+ margin-inline-end: 0.1em;+ position: relative;+ top: -0.2em;}-.ck .footnote-item::before {- content: counter(footnote-counter) ". ";- display: inline-block;- position: relative;- right: 0.2em;- min-width: fit-content;- text-align: right;+.ck-content .footnotes .footnote-back-link > sup {+ margin-inline-end: 0;}-.ck .footnote-content {- display: inline-block;- padding: 0 0.3em;- width: 95%;- border-radius: 2px;- flex-grow: 1;+.ck-content .footnote-item::before {+ content: counter(footnote-counter) ". ";+ display: inline-block;+ min-width: fit-content;+ position: relative;+ inset-inline-end: 0.2em;+ text-align: end;}-.ck .ck-widget.footnote-section > .ck-reset_all.ck-widget__type-around > .ck-widget__type-around__button_after {- display: none; /* hides the 'insert after' button from the ckeditor widget, but displays the button inside the footnote content. */-}-.placeholder {- padding: 2px 2px;- outline-offset: -2px;- line-height: 1em;- margin: 0 1px;+.ck-content .footnote-content {+ border-radius: 2px;+ display: inline-block;+ flex-grow: 1;+ padding: 0 0.3em;+ width: 95%;}--.placeholder::selection {- display: none;-}\ No newline at end of filediff --git a/packages/ckeditor5/src/theme/footnotes_editing.css b/packages/ckeditor5/src/theme/footnotes_editing.cssnew file mode 100644index 0000000000..9d8068c461--- /dev/null+++ b/packages/ckeditor5/src/theme/footnotes_editing.css@@ -0,0 +1,13 @@+.ck .ck-widget.footnote-section > .ck-reset_all.ck-widget__type-around > .ck-widget__type-around__button_after {+ display: none; /* hides the 'insert after' button from the ckeditor widget, but displays the button inside the footnote content. */+}+.placeholder {+ padding: 2px 2px;+ outline-offset: -2px;+ line-height: 1em;+ margin: 0 1px;+}++.placeholder::selection {+ display: none;+}diff --git a/packages/ckeditor5/src/theme/reference_links.css b/packages/ckeditor5/src/theme/reference_links.cssnew file mode 100644index 0000000000..b7995e9a3e--- /dev/null+++ b/packages/ckeditor5/src/theme/reference_links.css@@ -0,0 +1,16 @@+.reference-link .tn-icon {+ /* A line can wrap after an inline-block. An inline box that does not wrap and ends with a+ word joiner keeps the icon on the line of the first title character. */+ display: inline;+ margin-inline-end: 3px;+ white-space: nowrap;+}++.reference-link .tn-icon::before {+ /* An inline-block glyph does not take the underline of the link. */+ display: inline-block;+}++.reference-link .tn-icon::after {+ content: "\2060";+}diff --git a/packages/share-theme/src/content/adaptive_colors.css b/packages/share-theme/src/content/adaptive_colors.cssindex a520902588..24c1581082 100644--- a/packages/share-theme/src/content/adaptive_colors.css+++ b/packages/share-theme/src/content/adaptive_colors.css@@ -1,51 +1,8 @@-/*- * Theme-adaptive text and table colors. The text editor saves each color again as `--tn-color`,- * `--tn-background` or `--tn-border-color`; these rules keep its hue, move its CIELAB lightness- * into the role's range and cap its chroma. Greys (chroma below 1.5) spread over the range.- * Keep in step with `apps/client/src/stylesheets/adaptive-colors.css`.- */+@import "@triliumnext/ckeditor5/src/theme/adaptive_colors.css";-/* Zero specificity, so that a theme's :root wins although themes load before this file. */-:where(:root) {- /* Adaptive font color limits */- --adaptive-text-light-max-lightness: 40;- --adaptive-text-light-max-chroma: 150;- --adaptive-text-dark-min-lightness: 75;- --adaptive-text-dark-max-chroma: 55;-- /* Adaptive font background color limits */- --adaptive-background-light-min-lightness: 90;- --adaptive-background-light-max-chroma: 20;- --adaptive-background-dark-max-lightness: 30;- --adaptive-background-dark-max-chroma: 30;-- /* Adaptive table border color limits */- --adaptive-table-border-light-max-lightness: 60;- --adaptive-table-border-light-max-chroma: 150;+:root {/* Higher than in the app, for the share theme's lighter dark page. */--adaptive-table-border-dark-min-lightness: 52;- --adaptive-table-border-dark-max-chroma: 150;-- /* Adaptive table background color limits */- --adaptive-table-background-light-min-lightness: 90;- --adaptive-table-background-light-max-chroma: 20;- --adaptive-table-background-dark-max-lightness: 30;- --adaptive-table-background-dark-max-chroma: 30;-}--:root {- --_adaptive-text-min: 0;- --_adaptive-text-max: var(--adaptive-text-light-max-lightness);- --_adaptive-text-chroma: var(--adaptive-text-light-max-chroma);- --_adaptive-background-min: var(--adaptive-background-light-min-lightness);- --_adaptive-background-max: 100;- --_adaptive-background-chroma: var(--adaptive-background-light-max-chroma);- --_adaptive-table-border-min: 0;- --_adaptive-table-border-max: var(--adaptive-table-border-light-max-lightness);- --_adaptive-table-border-chroma: var(--adaptive-table-border-light-max-chroma);- --_adaptive-table-background-min: var(--adaptive-table-background-light-min-lightness);- --_adaptive-table-background-max: 100;- --_adaptive-table-background-chroma: var(--adaptive-table-background-light-max-chroma);}html.theme-dark {@@ -62,39 +19,3 @@ html.theme-dark {--_adaptive-table-background-max: var(--adaptive-table-background-dark-max-lightness);--_adaptive-table-background-chroma: var(--adaptive-table-background-dark-max-chroma);}--/* `!important` beats the inline color, which browsers without relative colors keep showing. */-[style*="--tn-color"] {- color: lch(from var(--tn-color)- calc(min(1, c / 1.5) * clamp(var(--_adaptive-text-min), l, var(--_adaptive-text-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-text-min)- + l / 100 * (var(--_adaptive-text-max) - var(--_adaptive-text-min))))- min(c, var(--_adaptive-text-chroma)) h) !important;-}--[style*="--tn-background"] {- background-color: lch(from var(--tn-background)- calc(min(1, c / 1.5)- * clamp(var(--_adaptive-background-min), l, var(--_adaptive-background-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-background-min)- + l / 100 * (var(--_adaptive-background-max) - var(--_adaptive-background-min))))- min(c, var(--_adaptive-background-chroma)) h) !important;-}--:is(table, td, th)[style*="--tn-border-color"] {- border-color: lch(from var(--tn-border-color)- calc(min(1, c / 1.5)- * clamp(var(--_adaptive-table-border-min), l, var(--_adaptive-table-border-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-border-min) + l / 100- * (var(--_adaptive-table-border-max) - var(--_adaptive-table-border-min))))- min(c, var(--_adaptive-table-border-chroma)) h) !important;-}--:is(table, td, th)[style*="--tn-background"] {- background-color: lch(from var(--tn-background)- calc(min(1, c / 1.5) * clamp(var(--_adaptive-table-background-min), l,- var(--_adaptive-table-background-max))- + (1 - min(1, c / 1.5)) * (var(--_adaptive-table-background-min) + l / 100- * (var(--_adaptive-table-background-max) - var(--_adaptive-table-background-min))))- min(c, var(--_adaptive-table-background-chroma)) h) !important;-}diff --git a/packages/share-theme/src/content/content.css b/packages/share-theme/src/content/content.cssindex 468439894a..136012c9e7 100644--- a/packages/share-theme/src/content/content.css+++ b/packages/share-theme/src/content/content.css@@ -1,3 +1,5 @@+@import "@triliumnext/ckeditor5/src/theme/reference_links.css";+:root {--ck-content-font-family: inherit !important;--ck-content-font-size: inherit !important;@@ -66,22 +68,6 @@ iframe.pdf-view {height: auto;}-a.reference-link > span > .tn-icon {- /* These three rules must match `.reference-link .tn-icon` in- apps/client/src/stylesheets/style.css, which explains them. */- display: inline;- margin-inline-end: 3px;- white-space: nowrap;-}--a.reference-link > span > .tn-icon::before {- display: inline-block;-}--a.reference-link > span > .tn-icon::after {- content: "\2060";-}-body:not(.math-loaded) .math-tex {visibility: hidden;}diff --git a/packages/share-theme/src/content/footnotes.css b/packages/share-theme/src/content/footnotes.cssindex 68cf684bd9..6560175d51 100644--- a/packages/share-theme/src/content/footnotes.css+++ b/packages/share-theme/src/content/footnotes.css@@ -1,57 +1,13 @@+@import "@triliumnext/ckeditor5/src/theme/footnotes.css";+.ck-content .footnote-section {border-top: 1px solid #c4c4c4;- border-radius: 2px;- counter-reset: footnote-counter;- margin: 1em 0;- padding: 10px;-}--.ck-content .footnote-item {- counter-increment: footnote-counter;- display: flex;- list-style: none;- margin-left: 0.5em;}.ck-content .footnote-item:target .footnote-content {background: #eee;}-.ck-content .footnote-item > * {- vertical-align: text-top;-}--.ck-content .footnote-back-link {- margin-right: 0.1em;- position: relative;- top: -0.2em;-}--.ck-content .footnotes .footnote-back-link > sup {- margin-right: 0;-}--.ck-content .footnote-item:before {- content: counter(footnote-counter) ". ";- display: inline-block;- min-width: fit-content;- position: relative;- right: 0.2em;- text-align: right;-}--.ck-content .footnote-content {- border-radius: 2px;- display: inline-block;- flex-grow: 1;- padding: 0 0.3em;- width: 95%;-}--.ck-content .ck-content-widget.footnote-section .ck-content-widget__type-around__button_after {- display: none;-}-/* Markdown footnotes (marked-footnote plugin) */.ck-content section.footnotes[data-footnotes] {border-top: 1px solid #c4c4c4;