trilium/src/public/stylesheets/style.css

369 lines
No EOL
6.8 KiB
CSS

#container {
margin: 0 auto; /* center */
height: 100vh;
display: grid;
grid-template-areas: "header header"
"left-pane title"
"left-pane note-detail";
grid-template-columns: 29% 70%;
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-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 {
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-component-wrapper.protected, #note-detail-component-wrapper.protected .CodeMirror {
background-color: #eee;
}
#note-detail-text p {
padding: 0;
margin: 0;
}
ul.fancytree-container {
outline: none !important;
}
/* icons from https://feathericons.com */
span.fancytree-node > span.fancytree-icon {
background: url("../images/icons/file.png") 0 0;
}
span.fancytree-node.fancytree-folder > span.fancytree-icon {
background: url("../images/icons/folder.png") 0 0;
}
span.fancytree-node.code > span.fancytree-icon {
background: url("../images/icons/code.png") 0 0;
}
span.fancytree-node.fancytree-folder.code > span.fancytree-icon {
background: url("../images/icons/code-folder.png") 0 0;
}
span.fancytree-node.file > span.fancytree-icon {
background: url("../images/icons/paperclip.png") 0 0;
}
span.fancytree-node.render > span.fancytree-icon {
background: url("../images/icons/play.png") 0 0;
}
span.fancytree-node.search > span.fancytree-icon {
background: url("../images/icons/search-small.png") 0 0;
}
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;
}
span.fancytree-node.tree-root > span.fancytree-icon {
background: url("../images/icons/tree-root.png") 0 0;
}
/* 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;
display: block;
height: 24px;
width: 24px;
}
.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-xs {
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: 100;
flex-shrink: 100;
margin-top: 10px;
}
/*
* .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 {
filter: opacity(7%);
}
#note-type .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 {
min-height: 200px;
overflow: auto;
}
#note-detail-render {
min-height: 200px;
}
.CodeMirror {
font-family: "Liberation Mono", "Lucida Console", monospace;
height: auto;
}
.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 {
color: #777777;
border-top: 1px solid #eee;
padding: 5px; display: none;
}
#label-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 {
border-color: #ddd;
background-color: #eee;
}
.btn.active {
background-color: #ccc;
}
#note-path-list .current a {
font-weight: bold;
}