mirror of
https://github.com/zadam/trilium.git
synced 2024-11-12 18:54:49 +08:00
249 lines
No EOL
4.6 KiB
CSS
249 lines
No EOL
4.6 KiB
CSS
#container {
|
|
margin: 0 auto; /* center */
|
|
height: 100vh;
|
|
|
|
display: grid;
|
|
grid-template-areas: "header header"
|
|
"tree-actions title"
|
|
"tree note-content"
|
|
"parent-list note-content";
|
|
grid-template-columns: 2fr 5fr;
|
|
grid-template-rows: auto
|
|
auto
|
|
1fr;
|
|
justify-content: center;
|
|
grid-gap: 10px;
|
|
}
|
|
|
|
#header {
|
|
grid-area: header;
|
|
background-color: #f1f1f1;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#note-detail {
|
|
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: 400px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#note-detail-wrapper.protected {
|
|
background-color: #eee;
|
|
}
|
|
|
|
#note-detail p {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
ul.fancytree-container {
|
|
overflow: auto;
|
|
position: relative;
|
|
outline: none !important;
|
|
}
|
|
|
|
/* icons from https://feathericons.com */
|
|
span.fancytree-node > span.fancytree-icon {
|
|
background-position: 0 0;
|
|
background-image: url("../images/icons/file.png");
|
|
}
|
|
|
|
span.fancytree-node.fancytree-folder > span.fancytree-icon {
|
|
background-position: 0 0;
|
|
background-image: url("../images/icons/folder.png");
|
|
}
|
|
|
|
span.fancytree-node.protected > span.fancytree-icon {
|
|
background-position: 0 0;
|
|
background-image: url("../images/icons/file-shaded.png");
|
|
}
|
|
|
|
span.fancytree-node.protected.fancytree-folder > span.fancytree-icon {
|
|
background-position: 0 0;
|
|
background-image: url("../images/icons/folder-shaded.png");
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
#protect-button, #unprotect-button {
|
|
display: none;
|
|
}
|
|
|
|
.ui-widget-content a:not(.ui-tabs-anchor) {
|
|
color: #337ab7 !important;
|
|
}
|
|
|
|
#header-title {
|
|
padding: 5px 50px 5px 10px;
|
|
font-size: large;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#header .btn-xs {
|
|
margin-bottom: 2px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
div.ui-tooltip {
|
|
max-width: 600px;
|
|
max-height: 600px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.alert {
|
|
padding: 5px;
|
|
width: auto;
|
|
}
|
|
|
|
#parent-list {
|
|
display: none;
|
|
margin-left: 20px;
|
|
border-top: 2px solid #eee;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
#parent-list ul {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
/*
|
|
* .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-id-display {
|
|
color: lightgrey;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#note-source {
|
|
height: 98%;
|
|
width: 100%;
|
|
overflow: scroll;
|
|
}
|
|
|
|
.suppressed {
|
|
filter: opacity(7%);
|
|
}
|
|
|
|
.dropdown-menu li:not(.divider) {
|
|
padding: 5px;
|
|
width: 200px;
|
|
}
|
|
|
|
.dropdown-menu li:not(.divider):hover, .dropdown-menu li:not(.divider) a:hover {
|
|
background-color: #eee !important;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-menu li:not(.selected) .check {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.dropdown-menu kbd
|
|
{
|
|
color: black;
|
|
border: none;
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.dropdown-menu kbd {
|
|
float: right;
|
|
}
|
|
|
|
#note-detail-code {
|
|
height: 100%;
|
|
}
|
|
|
|
.CodeMirror {
|
|
height: 100%;
|
|
}
|
|
|
|
#note-id-display {
|
|
position: absolute;
|
|
right: 10px;
|
|
bottom: 5px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
#note-type-dropdown {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
} |