mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
556 lines
No EOL
9.8 KiB
CSS
556 lines
No EOL
9.8 KiB
CSS
body {
|
|
/* Fix for CKEditor block gutter icon "stretching" body and causing scrollbar to appear after pressing enter
|
|
on the last line of the editor. */
|
|
position: fixed;
|
|
}
|
|
|
|
#container {
|
|
margin: 0 auto; /* center */
|
|
height: 100vh;
|
|
|
|
display: grid;
|
|
grid-template-areas: "header header"
|
|
"left-pane title"
|
|
"left-pane note-detail";
|
|
grid-template-rows: auto
|
|
auto
|
|
1fr;
|
|
|
|
justify-content: center;
|
|
grid-gap: 10px;
|
|
}
|
|
|
|
#header {
|
|
grid-area: header;
|
|
background-color: #f8f8f8;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
#header button {
|
|
padding: 1px 5px 1px 5px;
|
|
font-size: small;
|
|
}
|
|
|
|
#left-pane {
|
|
grid-area: left-pane;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#global-buttons {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 10px 0 10px 0;
|
|
margin: 0 10px 0 16px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
#search-box {
|
|
display: none;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#title-container {
|
|
grid-area: title;
|
|
}
|
|
|
|
.tdialog {
|
|
display: none;
|
|
}
|
|
|
|
#note-detail-wrapper {
|
|
position: relative;
|
|
overflow: hidden;
|
|
grid-area: note-detail;
|
|
padding-left: 10px;
|
|
padding-top: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#note-detail-component-wrapper {
|
|
flex-grow: 100;
|
|
position: relative;
|
|
overflow: auto;
|
|
flex-basis: content;
|
|
}
|
|
|
|
.note-detail-component {
|
|
display: none;
|
|
}
|
|
|
|
#note-detail-text { font-size: 1.1em; }
|
|
|
|
#note-detail-text h1 { font-size: 2.0em; }
|
|
#note-detail-text h2 { font-size: 1.8em; }
|
|
#note-detail-text h3 { font-size: 1.6em; }
|
|
#note-detail-text h4 { font-size: 1.4em; }
|
|
#note-detail-text h5 { font-size: 1.2em; }
|
|
#note-detail-text h6 { font-size: 1.1em; }
|
|
|
|
#note-detail-text {
|
|
border: 0 !important;
|
|
box-shadow: none !important;
|
|
/* This is because with empty content height of editor is 0 and it's impossible to click into it */
|
|
min-height: 200px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#note-detail-wrapper.protected {
|
|
/* DON'T COLLAPSE THE RULES INTO SINGLE ONE, BACKGROUND WON'T DISPLAY */
|
|
background: url('/images/shield.svg') no-repeat;
|
|
background-size: contain;
|
|
background-position: center;
|
|
}
|
|
|
|
ul.fancytree-container {
|
|
outline: none !important;
|
|
}
|
|
|
|
span.fancytree-node.protected > span.fancytree-icon {
|
|
filter: drop-shadow(2px 2px 2px black);
|
|
}
|
|
|
|
span.fancytree-node.multiple-parents .fancytree-title {
|
|
text-decoration: underline dotted;
|
|
}
|
|
|
|
span.fancytree-node.fancytree-active-clone:not(.fancytree-active) .fancytree-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* first nesting level has lower left padding to avoid extra left padding. Other levels are not affected */
|
|
.ui-fancytree > li > ul {
|
|
padding-left: 5px;
|
|
}
|
|
|
|
/* By default not focused active tree item is not easily visible, this makes it more visible */
|
|
span.fancytree-active:not(.fancytree-focused) .fancytree-title {
|
|
background-color: #ddd !important;
|
|
border-color: #555 !important;
|
|
}
|
|
|
|
.ui-autocomplete {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
/* prevent horizontal scrollbar */
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.icon-action:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.icon-action {
|
|
cursor: pointer;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.ui-widget-content a:not(.ui-tabs-anchor) {
|
|
color: #337ab7 !important;
|
|
}
|
|
|
|
#header-title {
|
|
padding: 5px 20px 5px 10px;
|
|
font-size: large;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#header .btn-sm {
|
|
margin-bottom: 2px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
div.ui-tooltip {
|
|
max-width: 600px;
|
|
max-height: 600px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.alert {
|
|
padding: 5px;
|
|
width: auto;
|
|
}
|
|
|
|
#tree {
|
|
overflow: auto;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
flex-basis: 60%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#search-results {
|
|
padding: 0 5px 5px 15px;
|
|
flex-basis: 40%;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
margin-top: 10px;
|
|
display: none;
|
|
overflow: auto;
|
|
border-bottom: 2px solid #ddd;
|
|
}
|
|
|
|
#search-results ul {
|
|
padding: 5px 5px 5px 15px;
|
|
}
|
|
|
|
/*
|
|
* .electron-in-page-search-window is a class specified to default
|
|
* <webview> element for search window.
|
|
*/
|
|
.electron-in-page-search-window {
|
|
position: fixed;
|
|
top: 50px;
|
|
right: 0;
|
|
border: solid grey 1px;
|
|
background-color: white;
|
|
width: 300px;
|
|
height: 36px;
|
|
}
|
|
|
|
/*
|
|
* .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. */
|
|
.ui-menu kbd, button kbd {
|
|
color: black;
|
|
border: none;
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ui-menu kbd {
|
|
margin-left: 30px;
|
|
float: right;
|
|
}
|
|
|
|
#note-source {
|
|
height: 98%;
|
|
width: 100%;
|
|
overflow: scroll;
|
|
}
|
|
|
|
.suppressed {
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-menu a:hover:not(.disabled) {
|
|
background-color: #eee !important;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-menu a:not(.selected) .check {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.dropdown-menu kbd
|
|
{
|
|
color: black;
|
|
border: none;
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.dropdown-menu kbd {
|
|
float: right;
|
|
}
|
|
|
|
.dropdown-item.disabled, .dropdown-item.disabled kbd {
|
|
color: #aaa !important;
|
|
}
|
|
|
|
#note-detail-code {
|
|
min-height: 200px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#note-detail-render {
|
|
min-height: 200px;
|
|
}
|
|
|
|
.CodeMirror {
|
|
font-family: "Liberation Mono", "Lucida Console", monospace;
|
|
height: auto;
|
|
background: inherit;
|
|
}
|
|
|
|
.CodeMirror-scroll {
|
|
min-height: 200px;
|
|
}
|
|
|
|
#note-id-display {
|
|
position: absolute;
|
|
right: 10px;
|
|
bottom: 8px;
|
|
z-index: 1000;
|
|
color: lightgrey;
|
|
}
|
|
|
|
#note-type-dropdown {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.cm-matchhighlight {background-color: #eeeeee}
|
|
|
|
#label-list, #relation-list, #attribute-list {
|
|
color: #777777;
|
|
padding: 5px;
|
|
display: none;
|
|
}
|
|
|
|
#label-list button, #relation-list button, #attribute-list button {
|
|
padding: 2px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
#file-table th, #file-table td {
|
|
padding: 10px;
|
|
font-size: large;
|
|
}
|
|
|
|
#children-overview {
|
|
flex-grow: 1000;
|
|
flex-shrink: 1000;
|
|
flex-basis: 0px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-content: flex-start;
|
|
height: 100px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.child-overview {
|
|
font-weight: bold;
|
|
font-size: large;
|
|
padding: 10px;
|
|
background: #f4f4f4;
|
|
width: 150px;
|
|
height: 90px;
|
|
line-height: 2em;
|
|
margin-right: 20px;
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
margin-top: 15px;
|
|
text-overflow: ellipsis;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.child-overview a {
|
|
color: #444;
|
|
}
|
|
|
|
#sql-console-query {
|
|
height: 150px;
|
|
width: 100%;
|
|
border: 1px solid #ccc;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#sql-console-query .CodeMirror {
|
|
height: 150px;
|
|
}
|
|
|
|
#history-navigation {
|
|
margin: 0 20px 0 5px;
|
|
display: flex;
|
|
}
|
|
|
|
.btn:not(.btn-primary):not(.btn-danger) {
|
|
border-color: #bbb;
|
|
background-color: #eee;
|
|
}
|
|
|
|
.btn.active:not(.btn-primary) {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
#note-path-list .current a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
button.icon-button {
|
|
font-size: 1.5em;
|
|
padding: 2px;
|
|
}
|
|
|
|
#note-actions {
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#note-actions .dropdown-menu {
|
|
width: 15em;
|
|
}
|
|
|
|
/* Themes */
|
|
|
|
html.theme-black, html.theme-black img, html.theme-black video {
|
|
filter: invert(100%) hue-rotate(180deg);
|
|
}
|
|
|
|
html.theme-black body {
|
|
background: black;
|
|
}
|
|
|
|
html.theme-dark {
|
|
filter: invert(90%) hue-rotate(180deg);
|
|
}
|
|
|
|
html.theme-dark img, html.theme-dark video {
|
|
filter: invert(100%) hue-rotate(180deg);
|
|
}
|
|
|
|
html.theme-dark body {
|
|
background: #191819;
|
|
}
|
|
|
|
.ck.ck-block-toolbar-button {
|
|
transform: translateX(10px);
|
|
}
|
|
|
|
#note-detail-promoted-attributes {
|
|
max-width: 70%;
|
|
margin: auto;
|
|
}
|
|
|
|
#note-detail-promoted-attributes td, #note-detail-promoted-attributes th {
|
|
padding: 5px;
|
|
}
|
|
|
|
.pointer {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.show-recent-notes-button {
|
|
cursor: pointer;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
table.promoted-attributes-in-tooltip {
|
|
margin: auto;
|
|
}
|
|
|
|
table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th {
|
|
padding: 10px;
|
|
}
|
|
|
|
#note-detail-render-help {
|
|
margin: 50px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.context-menu {
|
|
font-size: small;
|
|
}
|
|
|
|
.context-menu .dropdown-item {
|
|
padding: 2px 10px 2px 10px;
|
|
}
|
|
|
|
/* if modal height overflows, then only modal body scrolls */
|
|
.modal-body {
|
|
max-height: calc(100vh - 200px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tooltip-inner {
|
|
background-color: white !important;
|
|
max-width: 600px;
|
|
max-height: 500px;
|
|
overflow: hidden;
|
|
color: black;
|
|
border: 1px solid #777;
|
|
text-align: left;
|
|
}
|
|
|
|
.tooltip.show {
|
|
opacity: 1;
|
|
}
|
|
|
|
.algolia-autocomplete {
|
|
width: calc(100% - 30px);
|
|
z-index: 2000 !important;
|
|
}
|
|
|
|
.algolia-autocomplete .aa-input, .algolia-autocomplete .aa-hint {
|
|
width: 100%;
|
|
}
|
|
|
|
.algolia-autocomplete .aa-dropdown-menu {
|
|
width: 100%;
|
|
background-color: #fff;
|
|
border: 1px solid #999;
|
|
border-top: none;
|
|
z-index: 2000 !important;
|
|
max-height: 500px;
|
|
overflow: auto;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion {
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin: 0;
|
|
}
|
|
|
|
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion p {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion.aa-cursor {
|
|
background-color: #B2D7FF;
|
|
}
|
|
|
|
.help-button {
|
|
float: right;
|
|
background: none;
|
|
font-weight: 900;
|
|
color: orange;
|
|
border: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modalless {
|
|
top:10%;
|
|
left:50%;
|
|
bottom:auto;
|
|
right:auto;
|
|
margin-left:-300px;
|
|
}
|
|
|
|
.fancytree-custom-icon {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.multiplicity {
|
|
font-size: larger;
|
|
} |