mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
506 lines
9.4 KiB
CSS
506 lines
9.4 KiB
CSS
body {
|
|
font-size: var(--main-font-size);
|
|
}
|
|
|
|
#container {
|
|
margin: 0 auto; /* center */
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#topbar {
|
|
display: flex;
|
|
}
|
|
|
|
.hidden-by-zen-mode {
|
|
display: none !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;
|
|
}
|
|
|
|
#center-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#note-tab-container {
|
|
min-height: 0;
|
|
padding-left: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
#search-box {
|
|
display: none;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#tree {
|
|
overflow: auto;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
flex-basis: 60%;
|
|
font-family: var(--tree-font-family);
|
|
font-size: var(--tree-font-size);
|
|
}
|
|
|
|
#left-pane {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#toolbar {
|
|
background-color: var(--header-background-color);
|
|
display: flex;
|
|
align-items: center;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
#toolbar button {
|
|
padding: 1px 5px 1px 5px;
|
|
font-size: smaller;
|
|
margin-bottom: 2px;
|
|
margin-top: 2px;
|
|
margin-right: 8px;
|
|
border-color: transparent !important;
|
|
}
|
|
|
|
#toolbar button.btn-sm .bx {
|
|
position: relative;
|
|
top: 1px;
|
|
}
|
|
|
|
#toolbar button:hover {
|
|
border-color: var(--button-border-color) !important;
|
|
}
|
|
|
|
#history-navigation {
|
|
margin: 0 15px 0 5px;
|
|
}
|
|
|
|
#global-buttons {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 3px 0 3px 0;
|
|
border: 1px solid var(--main-border-color);
|
|
border-radius: 7px;
|
|
margin: 3px 5px 5px 5px;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
font-size: inherit;
|
|
}
|
|
|
|
#context-menu-container {
|
|
max-height: 100vh;
|
|
/* !!! Cannot set overflow: auto, submenus will break !!! */
|
|
}
|
|
|
|
#context-menu-container, #context-menu-container .dropdown-menu {
|
|
padding: 3px 0 0;
|
|
z-index: 1111;
|
|
}
|
|
|
|
#context-menu-container .dropdown-item {
|
|
padding: 0 7px 0 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
li.dropdown-submenu:hover > ul.dropdown-menu {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-submenu {
|
|
position:relative;
|
|
}
|
|
|
|
.dropdown-submenu > .dropdown-menu {
|
|
top: 0;
|
|
left: 100%;
|
|
margin-top: -6px;
|
|
min-width: 15rem;
|
|
}
|
|
|
|
/* rotate caret on hover */
|
|
.dropdown-menu > li > a:hover:after {
|
|
text-decoration: underline;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.fancytree-loading span.fancytree-expander {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.fancytree-loading span.fancytree-expander:after {
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-top: 4px;
|
|
margin-left: 1px;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
}
|
|
|
|
body {
|
|
/* FF basic styling */
|
|
scrollbar-color: var(--active-item-background-color) var(--main-background-color);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 3px;
|
|
border: 1px solid var(--scrollbar-border-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background-color: inherit;
|
|
}
|
|
|
|
.widget .note-info-table td, .widget .note-info-table th {
|
|
padding: 5px;
|
|
}
|
|
|
|
[data-toggle="tooltip"] span {
|
|
padding-bottom: 0;
|
|
border-bottom: 1px dotted;
|
|
}
|
|
|
|
.refresh-search-button {
|
|
cursor: pointer;
|
|
position: relative;
|
|
top: -1px;
|
|
border: 1px solid transparent;
|
|
padding: 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.refresh-search-button:hover {
|
|
border-color: var(--button-border-color);
|
|
}
|
|
|
|
.note-title-row {
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.note-title {
|
|
margin-left: 15px;
|
|
margin-right: 10px;
|
|
font-size: 150%;
|
|
border: 0;
|
|
width: 5em;
|
|
flex-grow: 100;
|
|
}
|
|
|
|
.note-tab-row {
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
height: 34px;
|
|
min-height: 34px;
|
|
width: 100%;
|
|
background: var(--main-background-color);
|
|
border-radius: 5px 5px 0 0;
|
|
overflow: hidden;
|
|
margin-top: 2px;
|
|
}
|
|
.note-tab-row * {
|
|
box-sizing: inherit;
|
|
font: inherit;
|
|
}
|
|
.note-tab-row .note-tab-row-content {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.note-tab-row .note-tab {
|
|
position: absolute;
|
|
left: 0;
|
|
height: 33px;
|
|
width: 240px;
|
|
border: 0;
|
|
margin: 0;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.note-new-tab {
|
|
position: absolute;
|
|
left: 0;
|
|
height: 33px;
|
|
width: 32px;
|
|
border: 0;
|
|
margin: 0;
|
|
z-index: 1;
|
|
text-align: center;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.note-new-tab:hover {
|
|
background-color: var(--accented-background-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.tab-row-filler {
|
|
-webkit-app-region: drag;
|
|
position: absolute;
|
|
left: 0;
|
|
height: 33px;
|
|
}
|
|
|
|
.tab-row-filler .tab-row-border {
|
|
position: relative;
|
|
background: linear-gradient(to right, var(--main-border-color), transparent);
|
|
height: 1px;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.note-tab-row .note-tab[active] {
|
|
z-index: 5;
|
|
}
|
|
|
|
.note-tab-row .note-tab,
|
|
.note-tab-row .note-tab * {
|
|
user-select: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.note-tab-row .note-tab.note-tab-was-just-added {
|
|
top: 10px;
|
|
animation: note-tab-was-just-added 120ms forwards ease-in-out;
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-wrapper {
|
|
position: absolute;
|
|
display: flex;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 5px 8px;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
overflow: hidden;
|
|
pointer-events: all;
|
|
background-color: var(--accented-background-color);
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.note-tab-row .note-tab[active] .note-tab-wrapper {
|
|
background-color: var(--main-background-color);
|
|
border: 1px solid var(--main-border-color);
|
|
border-bottom: 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.note-tab-row .note-tab[is-mini] .note-tab-wrapper {
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-title {
|
|
flex: 1;
|
|
vertical-align: top;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
color: var(--muted-text-color);
|
|
}
|
|
|
|
.note-tab-row .note-tab[is-small] .note-tab-title {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.note-tab-row .note-tab[active] .note-tab-title {
|
|
color: var(--main-text-color);
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-drag-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: 0;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-close {
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
border-radius: 50%;
|
|
z-index: 100;
|
|
width: 24px;
|
|
height: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-close span {
|
|
font-size: 24px;
|
|
position: relative;
|
|
top: -6px;
|
|
}
|
|
|
|
.note-tab-row .note-tab .note-tab-close:hover {
|
|
background-color: var(--hover-item-background-color);
|
|
color: var(--hover-item-text-color);
|
|
}
|
|
|
|
.note-tab-row .note-tab[is-smaller] .note-tab-close {
|
|
margin-left: auto;
|
|
}
|
|
.note-tab-row .note-tab[is-mini]:not([active]) .note-tab-close {
|
|
display: none;
|
|
}
|
|
.note-tab-row .note-tab[is-mini][active] .note-tab-close {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
@-moz-keyframes note-tab-was-just-added {
|
|
to {
|
|
top: 0;
|
|
}
|
|
}
|
|
@-webkit-keyframes note-tab-was-just-added {
|
|
to {
|
|
top: 0;
|
|
}
|
|
}
|
|
@-o-keyframes note-tab-was-just-added {
|
|
to {
|
|
top: 0;
|
|
}
|
|
}
|
|
@keyframes note-tab-was-just-added {
|
|
to {
|
|
top: 0;
|
|
}
|
|
}
|
|
.note-tab-row.note-tab-row-is-sorting .note-tab:not(.note-tab-is-dragging),
|
|
.note-tab-row:not(.note-tab-row-is-sorting) .note-tab.note-tab-was-just-dragged {
|
|
transition: transform 120ms ease-in-out;
|
|
}
|
|
|
|
#hide-sidebar-button, #show-sidebar-button {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
right: 10px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
#right-pane {
|
|
overflow: auto;
|
|
padding-top: 4px;
|
|
padding-left: 7px;
|
|
font-size: 90%;
|
|
height: 100%;
|
|
}
|
|
|
|
#right-pane .card {
|
|
border: 0;
|
|
}
|
|
|
|
#right-pane .card-header {
|
|
background: inherit;
|
|
padding: 5px 10px 5px 10px;
|
|
width: 99%; /* to give minimal right margin */
|
|
background-color: var(--button-background-color);
|
|
border-color: var(--button-border-color);
|
|
border-width: 1px;
|
|
border-radius: 4px;
|
|
border-style: solid;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#right-pane .widget-title {
|
|
border-radius: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: inherit;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
color: var(--muted-text-color) !important;
|
|
}
|
|
|
|
#right-pane .widget-header-action {
|
|
color: var(--link-color) !important;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#right-pane .widget-help {
|
|
color: var(--muted-text-color);
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
|
|
#right-pane .widget-help.no-link:hover {
|
|
cursor: default;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#right-pane .card-body {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 0;
|
|
}
|
|
|
|
#right-pane .card-body ul {
|
|
padding-left: 25px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
#widgets-configuration {
|
|
margin: 0;
|
|
}
|
|
|
|
#widgets-configuration h5 {
|
|
text-align: center;
|
|
}
|
|
|
|
#widgets-configuration .list-group-item {
|
|
background: var(--accented-background-color);
|
|
font-size: larger;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-bottom: 2px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#widgets-configuration .handle {
|
|
margin-right: 20px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.note-info-mime {
|
|
max-width: 13em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#title-bar-buttons {
|
|
min-width: 100px;
|
|
} |