1418 lines
30 KiB
CSS
Raw Normal View History

2021-05-23 20:26:54 +02:00
@font-face {
font-family: Montserrat;
2021-05-23 20:26:54 +02:00
src: url(../fonts/Montserrat-Light.ttf);
font-weight: normal;
}
@font-face {
font-family: Montserrat;
src: url(../fonts/Montserrat-SemiBold.ttf);
font-weight: bold;
2021-05-23 20:26:54 +02:00
}
@font-face {
font-family: JetBrainsLight;
src: url(../fonts/JetBrainsMono-Light.woff2) format('woff');
}
.table {
--bs-table-bg: transparent !important;
}
:root {
--submenu-opening-delay: 300ms;
--launcher-pane-size: 53px;
}
html {
/* this fixes FF filter vs. position fixed bug: https://github.com/zadam/trilium/issues/233 */
2024-12-28 12:24:57 +02:00
height: 100vh;
2024-12-28 11:57:13 +02:00
overscroll-behavior: none;
}
2018-10-12 13:40:06 +02:00
body {
/* Fix for CKEditor block gutter icon "stretching" body and causing scrollbar to appear after pressing enter
on the last line of the editor. */
2018-10-12 13:40:06 +02:00
position: fixed;
2024-12-28 12:24:57 +02:00
width: 100vw;
height: 100vh;
background-color: var(--main-background-color);
color: var(--main-text-color);
font-family: var(--main-font-family);
font-size: var(--main-font-size);
--native-titlebar-foreground: var(--main-text-color);
--native-titlebar-darwin-x-offset: 10;
--native-titlebar-darwin-y-offset: 12;
}
body.mobile .desktop-only {
display: none !important;
}
body.mobile.context-menu-shown * {
user-select: none !important;
-webkit-user-select: none !important;
}
2024-12-28 11:57:13 +02:00
#root-widget {
padding-top: env(safe-area-inset-top);
}
a {
text-decoration: none;
}
a, a:visited, a:hover {
color: var(--link-color);
}
2024-09-12 13:55:07 +02:00
.note-list-widget a {
text-decoration: none;
}
.note-list-widget a:hover {
text-decoration: underline;
}
input,
select,
textarea,
.form-control,
.form-select {
2024-09-10 00:36:44 +02:00
color: var(--input-text-color);
background: var(--input-background-color);
}
2024-09-12 13:55:07 +02:00
.form-control:focus {
color: var(--input-text-color);
background: var(--input-background-color);
}
.form-select {
background: var(--input-background-color) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23ffffff' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") right .75rem center/15px 20px no-repeat;
}
/* Restore default apperance */
input[type="number"],
input[type="checkbox"] {
appearance: auto !important;
2024-09-12 13:55:07 +02:00
}
#left-pane input,
#left-pane select,
#left-pane textarea {
2024-09-10 00:36:44 +02:00
color: var(--left-pane-text-color);
background: var(--left-pane-background-color);
}
2024-09-12 13:55:07 +02:00
input::placeholder,
.form-control::placeholder,
#left-pane input::placeholder {
color: var(--muted-text-color);
}
2024-09-12 13:55:07 +02:00
.table thead th,
.table td,
.table th {
/* Fix center vertical alignment of table cells */
vertical-align: middle;
color: var(--main-text-color);
2024-09-12 13:55:07 +02:00
background: transparent;
}
.ck .todo-list__checkmark {
top: 10px !important;
}
.modal-backdrop {
background-color: var(--modal-backdrop-color) !important;
}
2021-06-13 22:55:31 +02:00
.component {
contain: size;
}
2021-05-26 22:41:55 +02:00
code, kbd, pre, samp {
2021-11-20 13:20:06 +01:00
font-family: var(--monospace-font-family) !important;
2021-05-26 22:41:55 +02:00
}
.input-group-text {
background-color: var(--accented-background-color) !important;
color: var(--muted-text-color) !important;
}
button.close {
color: var(--main-text-color);
}
button.close:hover {
color: var(--hover-item-text-color);
}
.modal-content {
background-color: var(--modal-background-color) !important;
}
.nav-link.active {
background-color: inherit !important;
color: var(--main-text-color) !important;
2018-10-12 13:40:06 +02:00
}
2019-05-02 22:24:43 +02:00
.note-title[readonly] {
background: inherit;
}
2018-09-06 09:33:38 +02:00
.tdialog {
display: none;
2018-09-06 09:33:38 +02:00
}
2017-09-03 18:53:28 -04:00
.ui-autocomplete {
max-height: 300px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
2017-09-05 22:01:22 -04:00
}
.icon-action {
border: 1px solid transparent;
padding: 5px;
2023-06-14 00:28:59 +02:00
width: 37px;
2021-06-13 22:55:31 +02:00
height: 35px;
cursor: pointer;
font-size: 1.5em;
2021-06-06 22:15:51 +02:00
color: var(--button-text-color);
2021-05-28 22:47:59 +02:00
background: var(--button-background-color);
border-radius: var(--button-border-radius);
2021-05-28 22:47:59 +02:00
}
2023-03-24 10:57:32 +01:00
.icon-action-always-border {
border-color: var(--button-border-color);
}
2021-05-28 22:47:59 +02:00
.icon-action:hover:not(.disabled) {
text-decoration: none;
border-color: var(--button-border-color);
}
2020-03-08 11:41:42 +01:00
.icon-action.disabled {
color: var(--muted-text-color) !important;
cursor: not-allowed;
pointer-events: none;
2020-03-08 11:41:42 +01:00
}
2017-12-15 22:35:42 -05:00
.ui-widget-content a:not(.ui-tabs-anchor) {
2017-10-05 20:15:45 -04:00
color: #337ab7 !important;
2017-10-06 22:46:30 -04:00
}
2017-10-11 20:37:27 -04:00
div.ui-tooltip {
max-width: 600px;
max-height: 600px;
overflow: auto;
}
/*
* .search-inactive is added to search window <webview> when the window
* is inactive.
*/
.search-inactive {
visibility: hidden;
}
/*
* .search-inactive is added to search window <webview> when the window
* is active.
*/
.search-active {
visibility: visible;
}
.electronSearchText-box {
display: none;
}
.electronSearchText-visible {
display: block;
}
/* Allow to use <kbd> elements inside the title to define shortcut hints. */
2017-12-26 19:54:43 -05:00
.ui-menu kbd, button kbd {
color: var(--muted-text-color);
border: none;
background-color: transparent;
box-shadow: none;
}
2017-12-26 19:54:43 -05:00
.ui-menu kbd {
margin-left: 30px;
float: right;
2017-12-26 19:54:43 -05:00
}
.suppressed {
display: none;
}
2024-09-12 13:55:07 +02:00
.dropdown-divider {
2024-11-19 22:40:52 +02:00
border-color: var(--dropdown-border-color);
2024-09-12 13:55:07 +02:00
}
@keyframes dropdown-menu-opening {
from {
opacity: 0;
} to {
opacity: 1;
}
}
.dropdown-menu {
color: var(--menu-text-color) !important;
font-size: inherit;
background-color: var(--menu-background-color) !important;
}
body.desktop .dropdown-menu {
border: 1px solid var(--dropdown-border-color);
2024-11-19 22:55:44 +02:00
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
animation: dropdown-menu-opening 100ms ease-in;
}
2024-11-20 10:57:34 +02:00
@supports(animation-fill-mode: forwards) {
/* Delay the opening of submenus */
body.desktop .dropdown-submenu .dropdown-menu {
2024-11-20 10:57:34 +02:00
opacity: 0;
animation-fill-mode: forwards;
animation-delay: var(--submenu-opening-delay);
2024-11-20 10:57:34 +02:00
}
}
.dropdown-menu.static {
box-shadow: unset;
}
.dropend .dropdown-toggle::after {
margin-left: .5em;
color: var(--muted-text-color);
}
.dropdown-menu .disabled {
color: #888 !important;
pointer-events: none;
}
.dropdown-menu .disabled .disabled-tooltip {
pointer-events: all;
2024-11-20 19:01:20 +02:00
margin-left: 8px;
font-size: .5em;
color: var(--disabled-tooltip-icon-color);
cursor: help;
2024-11-20 19:01:20 +02:00
opacity: .75;
}
.dropdown-menu .disabled .disabled-tooltip:hover {
opacity: 1;
}
.dropdown-menu a:hover:not(.disabled), .dropdown-item:hover:not(.disabled, .dropdown-item-container) {
color: var(--hover-item-text-color) !important;
background-color: var(--hover-item-background-color) !important;
border-color: var(--hover-item-border-color) !important;
cursor: pointer;
}
.dropdown-item-container, .dropdown-item-container:hover, .dropdown-item-container:active {
background: transparent;
cursor: default;
}
2018-11-05 21:12:03 +01:00
.dropdown-menu a:not(.selected) .check {
2018-01-21 23:06:25 -05:00
visibility: hidden;
}
2021-08-20 21:39:56 +02:00
.dropdown-menu kbd {
float: right;
color: var(--muted-text-color);
border: none;
background-color: transparent;
box-shadow: none;
2021-08-20 21:39:56 +02:00
/* 0 padding needed otherwise this increases the size of dropdown after dynamic positioning (which is then screwed) */
padding-top: 0;
padding-bottom: 0;
}
.dropdown-item, .dropdown-header {
2019-04-01 21:38:21 +02:00
color: var(--menu-text-color) !important;
border: 1px solid transparent !important;
2019-04-01 21:38:21 +02:00
}
.dropdown-item.disabled, .dropdown-item.disabled kbd {
color: #aaa !important;
}
.dropdown-item.active, .dropdown-item:focus {
color: var(--active-item-text-color) !important;
background-color: var(--active-item-background-color) !important;
border-color: var(--active-item-border-color) !important;
outline: none;
}
.dropdown-item .destructive-action-icon {
color: var(--dropdown-item-icon-destructive-color);
}
.CodeMirror {
height: 100%;
background: inherit;
2018-01-21 20:15:42 -05:00
}
body .CodeMirror {
font-size: var(--monospace-font-size);
}
.CodeMirror-gutters {
background-color: inherit !important;
border-right: none;
}
.cm-matchhighlight {
background-color: #eeeeee
}
2022-05-30 17:45:59 +02:00
.CodeMirror pre.CodeMirror-placeholder {
color: #999 !important;
2022-01-07 19:33:59 +01:00
}
2018-05-21 20:12:46 -04:00
#sql-console-query {
height: 150px;
width: 100%;
border: 1px solid #ccc;
margin-bottom: 10px;
}
#sql-console-query .CodeMirror {
height: 150px;
}
2019-12-02 23:04:22 +01:00
#sql-console-query .CodeMirror-scroll {
min-height: inherit !important;
}
.btn {
border-radius: var(--button-border-radius);
2021-05-28 22:47:59 +02:00
border-color: var(--button-border-color);
}
2024-09-12 13:55:07 +02:00
.btn:hover {
border-color: var(--hover-item-border-color);
}
2021-05-28 22:47:59 +02:00
button.btn, button.btn-sm {
font-size: inherit;
}
.btn-micro {
padding: 0 10px 0 10px;
}
2019-11-20 21:35:18 +01:00
.btn.btn-primary {
border-color: var(--primary-button-border-color);
background-color: var(--primary-button-background-color);
color: var(--primary-button-text-color);
}
2019-12-18 20:16:11 +01:00
.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active {
border-color: var(--primary-button-text-color);
background-color: var(--active-item-background-color);
color: var(--active-item-text-color);
}
2019-11-20 21:35:18 +01:00
.btn.btn-primary kbd {
color: var(--primary-button-text-color);
}
.btn:not(.btn-primary) {
background-color: var(--button-background-color);
color: var(--button-text-color);
}
2021-06-06 22:15:51 +02:00
#left-pane .btn:not(.btn-primary) {
background-color: var(--button-background-color);
color: var(--left-pane-text-color);
}
2018-06-05 23:28:10 -04:00
.btn.active:not(.btn-primary) {
background-color: var(--button-disabled-background-color) !important;
opacity: 0.4;
2018-05-31 23:21:47 -04:00
}
.ck.ck-block-toolbar-button {
transform: translateX(7px);
color: var(--muted-text-color);
background-color: var(--main-background-color);
/* Making this narrower because https://github.com/zadam/trilium/issues/502 (problem only in smaller font sizes) */
min-width: 0;
padding: 0;
}
2024-10-27 19:43:48 +02:00
pre:not(.CodeMirror-line):not(.hljs) {
2019-02-02 23:51:00 +01:00
color: var(--main-text-color) !important;
2019-11-12 22:22:49 +01:00
white-space: pre-wrap;
font-size: 100%;
2019-02-02 23:51:00 +01:00
}
2018-08-06 17:53:13 +02:00
.pointer {
cursor: pointer;
}
2019-11-05 23:11:25 +01:00
.show-recent-notes-button, .input-clearer-button, .go-to-selected-note-button {
padding-top: 8px;
}
2024-11-26 15:41:18 +08:00
.show-recent-notes-button, .full-text-search-button {
cursor: pointer;
font-size: 1.3em;
padding-left: 5px;
padding-right: 5px;
}
.input-clearer-button {
cursor: pointer;
font-size: 1.3em;
background: inherit !important;
padding-left: 5px;
padding-right: 5px;
}
.open-external-link-button {
cursor: pointer;
font-size: 1.3em;
padding-left: 5px;
padding-right: 5px;
2020-09-03 22:22:21 +02:00
padding-top: 8px;
}
.go-to-selected-note-button {
cursor: pointer;
font-size: 1.3em;
padding-left: 4px;
padding-right: 3px;
}
.go-to-selected-note-button.disabled, .go-to-selected-note-button.disabled:hover {
cursor: inherit;
2022-06-05 14:35:23 +02:00
color: var(--button-disabled-text-color) !important;
background-color: var(--button-disabled-background-color) !important;
text-decoration: none;
}
.note-autocomplete-input {
/* this is for seamless integration of "input clearer" button */
border-right: 0;
}
table.promoted-attributes-in-tooltip {
margin: auto;
}
table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th {
padding: 10px;
}
2019-03-31 21:19:10 +02:00
.tooltip {
font-size: var(--main-font-size) !important;
2024-12-04 20:51:41 +02:00
/*
TODO: Investigate the purpose of this
z-index: calc(var(--ck-z-panel) - 1) !important;
*/
z-index: 3000;
2019-03-31 21:19:10 +02:00
}
2018-11-20 23:50:19 +01:00
2024-09-02 19:37:02 +02:00
.tooltip-trigger {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
pointer-events: none;
}
2022-12-17 11:58:30 +01:00
2024-09-02 19:37:02 +02:00
.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--main-border-color) !important; }
.bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--main-border-color) !important; }
.bs-tooltip-left .tooltip-arrow::before { border-left-color: var(--main-border-color) !important; }
.bs-tooltip-right .tooltip-arrow::before { border-right-color: var(--main-border-color) !important; }
2023-05-18 16:41:07 +08:00
2024-09-02 19:37:02 +02:00
.bs-tooltip-bottom .tooltip-arrow::after { border-bottom-color: var(--tooltip-background-color) !important; }
.bs-tooltip-top .tooltip-arrow::after { border-top-color: var(--tooltip-background-color) !important; }
.bs-tooltip-left .tooltip-arrow::after { border-left-color: var(--tooltip-background-color) !important; }
.bs-tooltip-right .tooltip-arrow::after { border-right-color: var(--tooltip-background-color) !important; }
.bs-tooltip-auto[data-popper-placement^='left'] .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
left: -1px;
border-width: 0.4rem 0 0.4rem 0.4rem;
2024-09-03 11:28:50 +02:00
border-left-color: var(--main-border-color) !important;
2024-09-02 19:37:02 +02:00
}
.bs-tooltip-auto[data-popper-placement^='bottom'] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
bottom: -1px;
border-width: 0 0.4rem 0.4rem;
2024-09-03 11:28:50 +02:00
border-bottom-color: var(--main-border-color) !important;
2024-09-02 19:37:02 +02:00
}
.bs-tooltip-auto[data-popper-placement^='right'] .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before {
right: -1px;
border-width: 0.4rem 0.4rem 0.4rem 0;
border-right-color: var(--main-border-color) !important;
}
.bs-tooltip-auto[data-popper-placement^='top'] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
top: -1px;
border-width: 0.4rem 0.4rem 0;
2024-09-03 11:28:50 +02:00
border-top-color: var(--main-border-color) !important;
2023-05-18 16:41:07 +08:00
}
2024-09-02 19:37:02 +02:00
.bs-tooltip-auto[data-popper-placement^='left'] .tooltip-arrow::after,
.bs-tooltip-left .tooltip-arrow::after {
2023-05-18 16:41:07 +08:00
left: -1px;
border-width: 0.4rem 0 0.4rem 0.4rem;
2024-09-03 11:28:50 +02:00
border-left-color: var(--tooltip-background-color) !important;
2023-05-18 16:41:07 +08:00
}
2024-09-02 19:37:02 +02:00
.bs-tooltip-auto[data-popper-placement^='bottom'] .tooltip-arrow::after,
.bs-tooltip-bottom .tooltip-arrow::after {
2023-05-18 16:41:07 +08:00
bottom: -1px;
border-width: 0 0.4rem 0.4rem;
2024-09-03 11:28:50 +02:00
border-bottom-color: var(--tooltip-background-color) !important;
2023-05-18 16:41:07 +08:00
}
2024-09-02 19:37:02 +02:00
.bs-tooltip-auto[data-popper-placement^='right'] .tooltip-arrow::after,
.bs-tooltip-right .tooltip-arrow::after {
2023-05-18 16:41:07 +08:00
right: -1px;
border-width: 0.4rem 0.4rem 0.4rem 0;
2024-09-02 19:37:02 +02:00
border-right-color: var(--tooltip-background-color) !important;
2023-05-18 16:41:07 +08:00
}
2024-09-02 19:37:02 +02:00
.bs-tooltip-auto[data-popper-placement^='top'] .tooltip-arrow::after,
.bs-tooltip-top .tooltip-arrow::after {
2023-05-18 16:41:07 +08:00
top: -1px;
border-width: 0.4rem 0.4rem 0;
2024-09-03 11:28:50 +02:00
border-top-color: var(--tooltip-background-color) !important;
2023-05-18 16:41:07 +08:00
}
.note-tooltip.tooltip .tooltip-arrow {
display: none;
}
2018-11-06 19:35:42 +01:00
.tooltip-inner {
padding: 15px;
2019-03-31 21:19:10 +02:00
background-color: var(--tooltip-background-color) !important;
2019-02-03 10:09:59 +01:00
border: 1px solid var(--main-border-color);
2019-01-05 11:49:17 +01:00
border-radius: 5px;
2018-11-06 19:35:42 +01:00
text-align: left;
2019-03-31 21:19:10 +02:00
color: var(--main-text-color) !important;
2020-08-06 00:06:42 +02:00
max-width: 500px;
box-shadow: 10px 10px 93px -25px #aaaaaa;
}
.tooltip-inner p:last-of-type {
margin-bottom: 0;
}
.rendered-note-attributes {
color: var(--muted-text-color);
margin-bottom: 7px;
2020-08-06 00:06:42 +02:00
}
.note-tooltip-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
2020-08-06 00:06:42 +02:00
.note-tooltip-content {
/* height needs to stay small because tooltip has problem when it can't fit to either top or bottom of the cursor */
max-height: 300px;
overflow: auto;
2018-11-06 19:35:42 +01:00
}
.note-tooltip-content .note-title-with-path .note-path {
font-size: small;
}
.note-tooltip-attributes {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
overflow: hidden;
}
.tooltip-inner img {
max-width: 250px;
max-height: 250px;
}
2018-11-19 11:47:40 +01:00
.tooltip-inner figure.image-style-side {
float: right;
}
2018-11-06 19:35:42 +01:00
.tooltip.show {
opacity: 1;
}
.algolia-autocomplete {
width: calc(100% - 30px);
z-index: 2000 !important;
}
.algolia-autocomplete-container .aa-dropdown-menu {
position: inherit !important;
overflow: auto;
}
.algolia-autocomplete .aa-input, .algolia-autocomplete .aa-hint {
width: 100%;
}
.algolia-autocomplete .aa-dropdown-menu {
width: 100%;
background-color: var(--main-background-color);
2019-02-03 10:09:59 +01:00
border: 1px solid var(--main-border-color);
border-top: none;
z-index: 2000 !important;
max-height: 500px;
overflow: auto;
padding: 0;
margin: 0;
}
2023-08-26 17:24:29 +03:00
.aa-dropdown-menu .aa-suggestion {
cursor: pointer;
padding: 5px;
margin: 0;
}
2023-08-26 17:24:29 +03:00
.aa-dropdown-menu .aa-suggestion p {
2018-11-12 23:34:22 +01:00
padding: 0;
margin: 0;
}
2023-08-26 17:24:29 +03:00
.aa-dropdown-menu .aa-suggestion.aa-cursor {
color: var(--active-item-text-color);
background-color: var(--active-item-background-color);
}
.help-button {
float: right;
background: none;
font-weight: 900;
color: orange;
border: 0;
cursor: pointer;
}
2018-11-12 23:34:22 +01:00
.multiplicity {
font-size: 1.3em;
}
/* this is because bootstrap (?) sets code color to red for some reason */
code {
color: inherit !important;
}
.animated {
animation-duration: 1s;
animation-fill-mode: both;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translate3d(0, -100%, 0);
}
to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
.fadeInDown {
animation-name: fadeInDown;
}
@keyframes fadeOutUp {
from {
opacity: 1;
}
to {
opacity: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
}
.fadeOutUp {
animation-name: fadeOutUp;
}
div[data-notify="container"] {
text-align: center;
}
2019-05-03 21:50:14 +02:00
.saved-indicator {
font-size: 150%;
2018-11-24 14:44:56 +01:00
}
2018-12-30 19:02:42 +01:00
.ck-editor__is-empty.ck-content.ck-editor__editable::before {
content: 'You can start writing note here ...';
position: absolute;
display: block;
margin: var(--ck-spacing-large) 0;
2019-02-02 23:51:00 +01:00
color: var(--muted-text-color);
}
.ck-content .table table th {
background-color: var(--accented-background-color);
}
.ck-content .image > figcaption {
2019-02-26 22:59:38 +01:00
color: var(--main-text-color) !important;
background-color: var(--accented-background-color) !important;
}
.ck-content li p {
margin: 0 !important;
}
.ck-content a:hover {
text-decoration: underline;
}
#options-dialog input[type=number] {
text-align: right;
2019-02-13 23:06:11 +01:00
}
.help-cards ul {
padding-left: 20px;
}
.help-cards kbd {
color: var(--main-text-color);
background-color: var(--accented-background-color);
border: 1px solid var(--main-border-color);
padding: 2px;
2019-02-13 23:27:00 +01:00
}
2019-02-16 18:49:57 +01:00
a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href^="https://"]:not(.no-arrow):after {
2019-02-16 18:49:57 +01:00
font-size: smaller;
content: "\2197";
vertical-align: top;
}
.card {
2024-09-12 13:55:07 +02:00
color: inherit !important;
background-color: inherit !important;
border-color: var(--main-border-color) !important;
}
.bx-empty {
width: 1em;
display: inline-block;
}
2020-01-22 21:38:00 +01:00
2019-05-12 17:28:20 +02:00
.note-detail-empty {
margin: 50px;
2019-06-22 19:49:48 +02:00
}
.modal-header {
2024-09-02 19:37:02 +02:00
padding: 0.5rem 1rem 0.5rem 1rem !important; /* make modal header padding slightly smaller */
}
#toast-container {
position: absolute;
width: 100%;
top: 20px;
2019-10-20 12:29:34 +02:00
pointer-events: none;
2019-10-19 00:11:07 +02:00
}
.toast {
background-color: var(--accented-background-color) !important;
color: var(--main-text-color) !important;
2019-10-20 12:29:34 +02:00
z-index: 9999999999 !important;
pointer-events: all;
2019-10-19 00:11:07 +02:00
}
.toast-header {
background-color: var(--more-accented-background-color) !important;
color: var(--main-text-color) !important;
}
.toast-body {
white-space: preserve-breaks;
}
2020-08-12 23:39:05 +02:00
.ck-mentions .ck-button {
2020-09-21 00:07:46 +02:00
font-size: var(--detail-font-size) !important;
2020-08-12 23:39:05 +02:00
padding: 5px;
}
2020-09-21 00:07:46 +02:00
.ck-mentions .ck-button b {
font-size: var(--detail-font-size) !important;
}
2020-08-12 23:39:05 +02:00
.ck-mentions .ck-button.ck-on {
background-color: var(--active-item-background-color) !important;
color: var(--active-item-text-color) !important;
}
2020-08-12 23:39:05 +02:00
.ck-mentions .ck-button b {
font-weight: bold !important;
color: inherit !important;
vertical-align: baseline !important;
}
.side-checkbox {
display: flex;
align-items: end;
padding-top: .375rem;
padding-bottom: .375rem;
line-height: 1.5;
}
.ck-content .todo-list .todo-list__label > input:before {
border: 1px solid var(--muted-text-color) !important;
}
.ck-link-actions .ck-tooltip {
/* force hide the tooltip since it shows misleading "open link in new tab */
display: none !important;
2019-12-30 19:32:45 +01:00
}
.include-note {
2020-04-11 15:09:38 +02:00
margin-bottom: 10px;
2020-04-13 10:13:03 +02:00
padding: 10px;
2019-12-30 19:32:45 +01:00
border-radius: 10px;
background-color: var(--accented-background-color);
display: flex; /* see https://github.com/zadam/trilium/issues/1590 */
}
.include-note.ck-placeholder::before { /* remove placeholder in otherwise empty note */
content: '' !important;
}
/* Using data- attribute to support both CKEditor and readonly view */
.include-note[data-box-size=small] .include-note-content {
2020-04-13 10:13:03 +02:00
max-height: 10em;
overflow: auto;
}
.include-note[data-box-size=small] .include-note-content.type-pdf {
height: 10em; /* PDF is rendered in iframe and must be sized absolutely */
}
.include-note[data-box-size=medium] .include-note-content {
2020-04-13 10:13:03 +02:00
max-height: 20em;
overflow: auto;
}
.include-note[data-box-size=medium] .include-note-content.type-pdf .rendered-content {
height: 20em; /* PDF is rendered in iframe and must be sized absolutely */
}
.include-note[data-box-size=full] .include-note-content.type-pdf .rendered-content {
height: 50em; /* PDF is rendered in iframe and it's not possible to put full height so at least a large height */
}
.include-note-wrapper {
width: 100%;
}
2021-04-24 20:27:42 +02:00
.alert {
padding: 8px 14px;
width: auto;
}
2021-01-30 15:59:59 +01:00
.alert-warning, .alert-info {
color: var(--main-text-color) !important;
2021-04-24 20:27:42 +02:00
background-color: transparent !important;
border-color: var(--main-border-color) !important;
}
.gutter {
background: linear-gradient(to bottom, transparent, var(--accented-background-color), transparent);
}
.gutter:hover {
background: linear-gradient(to bottom, transparent, var(--main-border-color), transparent);
}
.gutter.gutter-horizontal {
cursor: col-resize;
}
.gutter.gutter-vertical {
cursor: row-resize;
}
#context-menu-cover.show {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.1);
}
#context-menu-container {
max-height: 100vh;
/* !!! Cannot set overflow: auto, submenus will break !!! */
}
body.mobile #context-menu-container {
position: fixed !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
top: unset !important;
max-height: 70vh;
overflow: auto !important;
user-select: none;
-webkit-user-select: none;
padding-bottom: env(safe-area-inset-bottom) !important;
}
body.mobile .dropdown-menu {
position: static !important;
}
body.mobile .dropdown-submenu > .dropdown-menu {
border: 0 !important;
padding: 0 !important;
overflow: hidden !important;
top: unset !important;
margin-top: 0 !important;
}
#context-menu-container, #context-menu-container .dropdown-menu {
padding: 3px 0 0;
z-index: 2000;
}
#context-menu-container .dropdown-item {
padding: 0 7px 0 10px;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
2024-12-28 09:50:19 +02:00
body.desktop li.dropdown-submenu:hover > ul.dropdown-menu {
display: block;
}
.dropdown-submenu {
position: relative;
}
.dropdown-submenu > .dropdown-menu {
top: 0;
left: calc(100% - 2px); /* -2px, otherwise there's a small gap between menu and submenu where the hover can disappear */
margin-top: -10px;
min-width: 15rem;
/* to make submenu scrollable https://github.com/zadam/trilium/issues/3136 */
max-height: 600px;
overflow: auto;
}
body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
left: calc(-100% + 10px);
}
#launcher-pane.horizontal .right-dropdown-widget {
width: 53px;
}
#launcher-pane.vertical .right-dropdown-widget {
height: 53px;
}
/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
text-decoration: underline;
transform: rotate(-90deg);
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
border: 1px solid var(--scrollbar-border-color);
background-color: var(--scrollbar-background-color);
}
::-webkit-scrollbar-corner {
background-color: inherit;
}
[data-bs-toggle="tooltip"]:not(.button-widget) span {
padding-bottom: 0;
border-bottom: 1px dotted;
2020-03-06 22:17:07 +01:00
}
.hidden-int, .hidden-ext {
display: none !important;
2020-06-03 11:06:45 +02:00
}
.ck.ck-mentions > .ck-list__item {
max-width: 700px;
}
.ck.ck-mentions > .ck-list__item .ck-button {
/* wrap text for very long note path title */
white-space: normal !important;
}
2020-09-25 23:52:24 +02:00
.area-expander {
display: flex;
flex-direction: row;
color: var(--muted-text-color);
font-size: 90%;
}
.area-expander hr {
height: 1px;
border-color: var(--main-border-color);
position: relative;
top: 4px;
margin-top: 5px;
}
.area-expander-text {
padding-left: 20px;
padding-right: 20px;
white-space: nowrap;
}
.area-expander:hover {
cursor: pointer;
}
.area-expander:hover hr {
border-color: var(--main-text-color);
}
.area-expander:hover .area-expander-text {
color: var(--main-text-color);
}
2021-02-13 23:38:31 +01:00
.help-dropdown {
display: inline-block;
}
.help-dropdown .dropdown-menu {
border-radius: 10px;
border-width: 2px;
box-shadow: 10px 10px 93px -25px black;
padding: 10px 15px 10px 15px !important;
2021-01-26 22:22:17 +01:00
width: 600px;
2022-06-12 23:29:11 +02:00
white-space: normal;
2021-01-26 15:54:41 +01:00
}
.help-dropdown .dropdown-menu pre {
background-color: var(--accented-background-color);
padding: 10px;
margin: 10px;
}
2021-05-18 22:14:35 +02:00
.help-dropdown code {
font-variant-ligatures: none;
}
2022-12-11 13:20:37 +01:00
#launcher-pane .launcher-button {
2021-05-22 22:55:24 +02:00
font-size: 150%;
2021-05-27 23:17:13 +02:00
display: inline-block;
2023-01-31 22:25:46 +01:00
padding: 13px 13px;
2021-05-27 23:17:13 +02:00
cursor: pointer;
2021-05-28 22:47:59 +02:00
border: none;
2021-06-06 22:15:51 +02:00
color: var(--launcher-pane-text-color);
background-color: var(--launcher-pane-background-color);
}
#launcher-pane.vertical .launcher-button {
2023-08-15 16:11:13 +08:00
width: 100%;
height: 53px;
2021-05-22 22:55:24 +02:00
}
#launcher-pane.horizontal .launcher-button {
width: 53px;
height: 100%;
}
#launcher-pane.horizontal .quick-search {
width: 350px;
}
#launcher-pane .icon-action:hover {
2021-05-18 22:14:35 +02:00
background-color: var(--hover-item-background-color);
}
2021-05-22 23:25:44 +02:00
#left-pane {
color: var(--left-pane-text-color);
background-color: var(--left-pane-background-color);
2021-05-22 23:25:44 +02:00
}
@media (max-width: 991px) {
#mobile-sidebar-container {
position: fixed;
top: 0;
left: 0;
right: 0;
2025-01-02 00:46:03 +02:00
bottom: 0;
2025-01-04 00:50:11 +02:00
z-index: 1000;
transition: background-color 250ms ease-in-out;
visibility: hidden;
background: rgba(0, 0, 0, 0.4);
}
#mobile-sidebar-container.show {
2025-01-04 00:50:11 +02:00
visibility: visible;
}
#mobile-sidebar-wrapper {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 85vw;
padding-top: env(safe-area-inset-top);
transform: translateX(-100%);
transition: transform 250ms ease-in-out;
background: var(--main-background-color);
2025-01-04 00:50:11 +02:00
z-index: 2000;
}
#mobile-sidebar-container.show #mobile-sidebar-wrapper {
transform: translateX(0);
}
}
2025-01-04 14:14:45 +02:00
@media (min-width: 992px) {
#mobile-sidebar-wrapper {
transform: none !important;
}
}
#launcher-pane {
color: var(--launcher-pane-text-color);
background-color: var(--launcher-pane-background-color);
2021-05-22 23:25:44 +02:00
}
body.mobile #launcher-pane .dropdown-menu.show {
position: fixed !important;
bottom: var(--launcher-pane-size) !important;
top: unset !important;
left: 0 !important;
right: 0 !important;
transform: unset !important;
}
#right-pane {
overflow: auto;
}
#right-pane .card {
border: 0;
display: flex;
flex-shrink: 0;
flex-direction: column;
2023-06-30 23:01:57 +02:00
margin-left: 10px;
margin-right: 5px;
}
#right-pane .card-header {
background: inherit;
padding: 6px 0 3px 0;
width: 99%; /* to give minimal right margin */
background-color: var(--button-background-color);
border-color: var(--button-border-color);
border-width: 0 0 1px 0;
border-radius: 4px;
border-style: solid;
display: flex;
justify-content: space-between;
align-items: baseline;
font-weight: bold;
text-transform: uppercase;
color: var(--muted-text-color) !important;
}
#right-pane .card-header-buttons {
display: flex;
transform: scale(0.9);
position: relative;
top: 2px;
}
#right-pane .body-wrapper {
overflow: auto;
}
#right-pane .card-body {
width: 100%;
padding: 8px;
border: 0;
height: 100%;
overflow: auto;
}
#right-pane .card-body ul {
padding-left: 25px;
margin-bottom: 5px;
}
2021-10-10 14:34:54 +02:00
.text-with-ellipsis {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.note-split {
flex-basis: 0; /* so that each split has same width */
margin-left: auto;
margin-right: auto;
}
.note-split.full-content-width {
max-width: 999999px;
}
2022-06-07 20:11:43 +02:00
button.close:hover {
text-shadow: none;
color: currentColor;
}
.hidden-no-content {
display: none;
}
2022-09-24 22:38:20 +02:00
.reference-link .bx {
position: relative;
top: 1px;
margin-right: 3px;
}
.options-section:first-of-type h4 {
margin-top: 0;
}
.options-section h4 {
2023-04-24 21:22:34 +02:00
margin-top: 25px;
margin-bottom: 15px;
}
.options-section h5 {
margin-top: 10px;
margin-bottom: 10px;
}
2023-07-14 18:05:19 +02:00
.options-number-input {
/* overriding settings from .form-control */
width: 10em !important;
flex-grow: 0 !important;
}
.options-mime-types {
column-width: 250px;
}
textarea {
cursor: auto;
}
.ck-powered-by-balloon {
display: none !important;
2023-06-30 23:01:57 +02:00
}
.attachment-help-button {
font-size: xx-large;
border: 0;
background: none;
cursor: pointer;
color: var(--main-text-color);
margin-left: 20px;
position: relative;
top: 8px;
}
2023-08-28 22:12:14 +03:00
.jump-to-note-dialog .modal-header {
align-items: center;
}
2023-08-28 22:12:14 +03:00
.jump-to-note-dialog .modal-body {
padding: 0;
2023-08-28 22:12:14 +03:00
}
.jump-to-note-results .aa-dropdown-menu {
max-height: 40vh;
}
.jump-to-note-results .aa-suggestions {
padding: 1rem;
}
2024-11-19 20:28:47 +02:00
.empty-table-placeholder {
text-align: center;
color: var(--muted-text-color);
}
body.electron.platform-darwin:not(.native-titlebar) .tab-row-container {
padding-left: 1em;
}
#tab-row-left-spacer {
width: env(titlebar-area-x);
-webkit-app-region: drag;
}
.tab-row-widget {
padding-right: calc(100vw - env(titlebar-area-width, 100vw));
2024-12-01 18:31:21 +02:00
}
.tab-row-container .toggle-button {
background: transparent;
appearance: none;
border: 0;
width: 24px;
height: 24px;
color: var(--launcher-pane-text-color);
margin: 8px 10px;
font-size: 18px;
}
.recent-changes-content li > span:first-child::after {
content: " - ";
}
.recent-changes-content li {
border: 1px solid transparent;
}
.recent-changes-content li:not(.deleted-note):hover {
border-color: var(--hover-item-border-color);
background: var(--hover-item-background-color);
color: var(--hover-item-text-color);
}