2025-01-31 23:41:23 +02:00
|
|
|
:root {
|
|
|
|
--main-background-color: white;
|
2025-02-01 01:12:53 +02:00
|
|
|
--root-background: var(--main-background-color);
|
|
|
|
--launcher-pane-background-color: var(--main-background-color);
|
2025-01-31 23:57:50 +02:00
|
|
|
--main-text-color: black;
|
|
|
|
--input-text-color: var(--main-text-color);
|
2025-02-01 16:51:04 +02:00
|
|
|
|
|
|
|
--print-font-size: 11pt;
|
|
|
|
}
|
|
|
|
|
2025-02-01 17:17:49 +02:00
|
|
|
@page {
|
|
|
|
margin: 2cm;
|
|
|
|
}
|
|
|
|
|
2025-02-01 16:51:04 +02:00
|
|
|
.ck-content {
|
|
|
|
font-size: var(--print-font-size);
|
2025-02-01 19:41:33 +02:00
|
|
|
text-align: justify;
|
2025-01-31 23:41:23 +02:00
|
|
|
}
|
|
|
|
|
2025-02-01 16:58:52 +02:00
|
|
|
.note-detail-readonly-text {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
2025-01-31 20:47:18 +02:00
|
|
|
.no-print,
|
|
|
|
.no-print *,
|
|
|
|
.tab-row-container,
|
2025-01-31 23:43:00 +02:00
|
|
|
.tab-row-widget,
|
2025-01-31 20:47:18 +02:00
|
|
|
#launcher-pane,
|
|
|
|
#left-pane,
|
|
|
|
#right-pane,
|
|
|
|
.title-row .note-icon-widget,
|
|
|
|
.title-row .button-widget,
|
|
|
|
.ribbon-container,
|
2025-01-31 23:45:25 +02:00
|
|
|
.promoted-attributes-widget,
|
2025-01-31 20:47:18 +02:00
|
|
|
.scroll-padding-widget,
|
2025-01-31 23:45:25 +02:00
|
|
|
.note-list-widget,
|
2025-01-31 20:47:18 +02:00
|
|
|
.spacer {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2025-02-01 01:12:53 +02:00
|
|
|
body.mobile #mobile-sidebar-wrapper,
|
|
|
|
body.mobile .classic-toolbar-widget,
|
|
|
|
body.mobile .action-button {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.mobile #detail-container {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.mobile .note-title-widget {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
2025-01-31 20:47:18 +02:00
|
|
|
body,
|
|
|
|
#root-widget,
|
|
|
|
#rest-pane > div.component:first-child,
|
|
|
|
.note-detail-printable,
|
|
|
|
.note-detail-editable-text-editor {
|
|
|
|
height: unset !important;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-title-widget input,
|
|
|
|
.note-detail-editable-text,
|
|
|
|
.note-detail-editable-text-editor {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
2025-01-31 23:50:46 +02:00
|
|
|
width: unset !important;
|
2025-01-31 20:47:18 +02:00
|
|
|
height: unset !important;
|
|
|
|
overflow: visible;
|
|
|
|
position: unset;
|
|
|
|
/* https://github.com/zadam/trilium/issues/3202 */
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
#root-widget,
|
|
|
|
#horizontal-main-container,
|
|
|
|
#rest-pane,
|
|
|
|
#vertical-main-container,
|
|
|
|
#center-pane,
|
|
|
|
.split-note-container-widget,
|
2025-02-01 01:12:53 +02:00
|
|
|
.note-split:not(.hidden-ext),
|
|
|
|
body.mobile #mobile-rest-container {
|
2025-01-31 20:47:18 +02:00
|
|
|
display: block !important;
|
|
|
|
overflow: auto;
|
2025-01-31 23:44:21 +02:00
|
|
|
border-radius: 0 !important;
|
2025-01-31 20:47:18 +02:00
|
|
|
}
|
|
|
|
|
2025-01-31 23:49:51 +02:00
|
|
|
#center-pane,
|
2025-01-31 20:47:18 +02:00
|
|
|
#rest-pane,
|
2025-02-01 01:12:53 +02:00
|
|
|
.note-split,
|
|
|
|
body.mobile #detail-container {
|
2025-01-31 23:49:51 +02:00
|
|
|
width: unset !important;
|
2025-01-31 20:47:18 +02:00
|
|
|
max-width: unset !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.component {
|
|
|
|
contain: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Respect page breaks */
|
|
|
|
.page-break {
|
|
|
|
page-break-after: always;
|
|
|
|
break-after: always;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-break > * {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.relation-map-wrapper {
|
|
|
|
height: 100vh !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.table thead th,
|
|
|
|
.table td,
|
|
|
|
.table th {
|
|
|
|
/* Fix center vertical alignment of table cells */
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
box-shadow: unset !important;
|
|
|
|
border: 0.75pt solid gray !important;
|
|
|
|
border-radius: 2pt !important;
|
|
|
|
}
|
|
|
|
|
2025-02-01 00:08:38 +02:00
|
|
|
th,
|
2025-01-31 20:47:18 +02:00
|
|
|
span[style] {
|
|
|
|
print-color-adjust: exact;
|
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
|
}
|
|
|
|
|
2025-01-31 23:57:50 +02:00
|
|
|
/*
|
|
|
|
* Text note specific fixes
|
|
|
|
*/
|
|
|
|
.ck-widget {
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
|
2025-02-01 00:55:00 +02:00
|
|
|
.ck-placeholder,
|
2025-01-31 23:57:50 +02:00
|
|
|
.ck-widget__type-around,
|
|
|
|
.ck-widget__selection-handle {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,
|
|
|
|
.ck-widget.table td.ck-editor__nested-editable:focus,
|
|
|
|
.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,
|
|
|
|
.ck-widget.table th.ck-editor__nested-editable:focus {
|
|
|
|
background: unset !important;
|
|
|
|
outline: unset !important;
|
|
|
|
}
|
|
|
|
|
2025-02-01 00:43:51 +02:00
|
|
|
.include-note .include-note-content {
|
|
|
|
max-height: unset !important;
|
|
|
|
overflow: unset !important;
|
2025-02-01 01:16:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Code note specific fixes.
|
|
|
|
*/
|
|
|
|
.note-detail-code pre {
|
|
|
|
border: unset !important;
|
|
|
|
border-radius: unset !important;
|
2025-02-01 18:41:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Links
|
|
|
|
*/
|
|
|
|
|
|
|
|
.note-detail-printable a {
|
|
|
|
color: #374a75;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-detail-printable a::after {
|
|
|
|
/* Hide the external link trailing arrow */
|
|
|
|
display: none !important;
|
2025-02-01 18:58:50 +02:00
|
|
|
}
|
|
|
|
|
2025-02-01 22:52:45 +02:00
|
|
|
/*
|
|
|
|
* TODO list check boxes
|
|
|
|
*/
|
|
|
|
|
|
|
|
.note-detail-printable .todo-list__label {
|
|
|
|
--box-size: 1.3em;
|
|
|
|
--box-vert-offset: 0.17em;
|
|
|
|
--box-text-gap: 0.25em;
|
|
|
|
|
|
|
|
padding-left: calc(var(--box-size) + var(--box-text-gap));
|
|
|
|
/* Source: https://pictogrammers.com/library/mdi/icon/checkbox-blank-outline/ */
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3e%3cpath d='M19%2c3H5C3.89%2c3 3%2c3.89 3%2c5V19A2%2c2 0 0%2c0 5%2c21H19A2%2c2 0 0%2c0 21%2c19V5C21%2c3.89 20.1%2c3 19%2c3M19%2c5V19H5V5H19Z' /%3e%3c/svg%3e");
|
|
|
|
background-position: 0 var(--box-vert-offset);
|
|
|
|
background-size: var(--box-size);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-detail-printable .todo-list__label:has(>input[type="checkbox"]:checked) {
|
|
|
|
/* Source: https://pictogrammers.com/library/mdi/icon/checkbox-outline/ */
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3e%3cpath d='M19%2c3H5A2%2c2 0 0%2c0 3%2c5V19A2%2c2 0 0%2c0 5%2c21H19A2%2c2 0 0%2c0 21%2c19V5A2%2c2 0 0%2c0 19%2c3M19%2c5V19H5V5H19M10%2c17L6%2c13L7.41%2c11.58L10%2c14.17L16.59%2c7.58L18%2c9' /%3e%3c/svg%3e");
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-detail-printable .todo-list__label > input[type="checkbox"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2025-02-01 19:02:53 +02:00
|
|
|
/*
|
|
|
|
* Blockquotes
|
|
|
|
*/
|
|
|
|
|
|
|
|
.note-detail-printable blockquote {
|
|
|
|
box-shadow: unset;
|
|
|
|
}
|
|
|
|
|
2025-02-01 19:07:51 +02:00
|
|
|
/*
|
|
|
|
* Figures
|
|
|
|
*/
|
|
|
|
|
|
|
|
.note-detail-printable figcaption {
|
|
|
|
--accented-background-color: transparent;
|
2025-02-01 19:41:33 +02:00
|
|
|
|
2025-02-01 19:07:51 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2025-02-01 18:58:50 +02:00
|
|
|
/*
|
|
|
|
* Footnotes
|
|
|
|
*/
|
|
|
|
|
|
|
|
.note-detail-printable .footnote-reference a,
|
|
|
|
.footnote-back-link a {
|
|
|
|
text-decoration: none;
|
2025-02-01 19:11:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Widows and orphans
|
|
|
|
*/
|
|
|
|
p,
|
|
|
|
blockquote {
|
|
|
|
widows: 4;
|
|
|
|
orphans: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre > code {
|
|
|
|
widows: 6;
|
|
|
|
orphans: 6;
|
2025-02-01 19:16:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
page-break-after: avoid;
|
|
|
|
break-after: avoid;
|
2025-02-01 19:11:44 +02:00
|
|
|
}
|