2021-12-18 17:38:29 -05:00
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Stellar Dark by Octavia N . ( https : / / github . com / Lolabird / stellar-dark-theme-trilium )
Inspired by https : / / github . com / Engr-AllanG / trilium-theme-Neon_Dark
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*****ROOT (COLOR AND FONT KEY)*****/
: root {
2024-08-28 22:14:06 -06:00
/***main body (including CKEditor), modal(options menu), and some code colors (see last section for more code colors)***/
2021-12-18 17:38:29 -05:00
--text-gray : lightgray ;
--devils-gray-lol : # 666 ;
--background-gray : # 111 ;
--supa-dark : black ;
--midish-gray : # 444 ;
--bold-sun : # fcfbb3 ;
--bright-sun : # cccb99 ;
--dim-sun : # 969573 ;
--darkened-sun : # ccca6c ;
--earth-sun : # 333225 ;
--light-turquoise : # 6df9f7 ;
--sea-foam : # 6df9b1 ;
2024-09-18 03:18:22 -06:00
--italic-orange : # f4db92 /*#f4ba92*/ ;
--border-orange : # cc862c /*#cc6c2c*/ ;
2021-12-18 17:38:29 -05:00
--sea-green : # 04c963 ;
--shallow-sea-blue : # 54bcba ;
2023-11-04 13:57:35 -06:00
--header-font-family : Lucida Console , Monaco , sans-serif ;
2022-10-23 15:32:20 -04:00
--code-select-gray : # 333 ;
2023-11-03 17:09:07 -06:00
--table-header-gray : # 222 ;
2024-08-29 21:47:54 -06:00
--soft-red : # ed363c ;
2024-09-09 19:23:09 -06:00
--code-comment : # a57489 ;
--code-tag : # 06dd87 ;
--code-string : # f7b2b2 ;
2024-09-09 23:27:10 -06:00
--code-number : # ea5474 ;
--code-pseudo : # 01ad6e ;
--code-class : # 269b4d ;
--code-keyword : var ( --soft-red ) ;
--code-meta : # 777 ;
--code-def : # 5df7e8 ;
--code-var : # 08a ;
--code-builtin : # 9368f7 ;
--code-attribute : # CBEAD9 ;
2021-12-18 17:38:29 -05:00
}
/*****HTML (GENERAL STYLES)*****/
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2024-08-22 12:18:58 -06:00
These are variables that already exist in the native stylesheet , just redefined here . This could have been put in ':root' or 'body{}' but for the sake of organization , I kept them in 'html' where they have been similarly placed in the Light Theme .
2021-12-18 17:38:29 -05:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
html {
--theme-style : dark ;
/***fonts***/
/*general fonts*/
2022-09-22 22:58:48 -04:00
--main-font-family : sans-serif ;
2024-08-22 11:44:22 -06:00
--main-font-size : 1 . 2rem ;
2021-12-18 17:38:29 -05:00
2022-09-22 22:58:48 -04:00
--tree-font-family : serif ;
2023-07-27 19:29:22 -06:00
--tree-font-size : 1 . 3rem ;
2021-12-18 17:38:29 -05:00
2022-09-22 22:58:48 -04:00
--detail-font-family : sans-serif ;
2024-08-22 13:24:20 -06:00
--detail-font-size : 1 . 3rem ;
2021-12-18 17:38:29 -05:00
2024-08-28 20:16:15 -06:00
/*code fonts*/
2021-12-18 17:38:29 -05:00
--monospace-font-family : monospace ;
2024-08-22 12:38:54 -06:00
--monospace-font-size : 1 . 2rem ;
2021-12-18 17:38:29 -05:00
/***colors***/
/*main notes window*/
--main-background-color : var ( --background-gray ) ;
--main-text-color : var ( --text-gray ) ;
--main-border-color : var ( --devils-gray-lol ) ;
/*changes the window icons(x, [], -) and some text fields*/
--accented-background-color : var ( --supa-dark ) ;
2024-08-22 12:18:58 -06:00
2021-12-18 17:38:29 -05:00
/*changes the edit icons on text notes and the alert messages*/
--more-accented-background-color : var ( --midish-gray ) ;
2024-08-28 20:16:15 -06:00
/*left, bottom left, and lower upper right icons*/
2021-12-18 17:38:29 -05:00
--button-background-color : transparent ;
--button-disabled-background-color : var ( --midish-gray ) ;
--button-border-color : var ( --text-gray ) ;
--button-text-color : var ( --text-gray ) ;
--button-border-radius : 5px ;
/*changes button in label detail*/
--primary-button-background-color : var ( --midish-gray ) ;
--primary-button-text-color : var ( --text-gray ) ;
--primary-button-border-color : var ( --text-gray ) ;
/* "muted-text-color" affects several components, but most are individually styled in this doc, so this should only affect the drop shadow of protected notes titles. */
2024-08-22 12:18:58 -06:00
--muted-text-color : var ( --devils-gray-lol ) ;
2021-12-18 17:38:29 -05:00
/*notes title and text fields in options menu and find (ctrl+f) search*/
--input-text-color : var ( --bright-sun ) ;
/*affects find (ctrl+f) search input when inactive*/
2024-08-22 12:18:58 -06:00
--input-background-color : var ( --dim-sun ) ;
2021-12-18 17:38:29 -05:00
/*changes the 'x' on the note tabs and the right+click and trilium (icon) menus*/
--hover-item-text-color : var ( --text-gray ) ;
/*changes side and right+click menus and note tabs*/
--hover-item-background-color : var ( --supa-dark ) ;
/*tree*/
--active-item-text-color : var ( --supa-dark ) ;
--active-item-background-color : var ( --bright-sun ) ;
--left-pane-background-color : var ( --supa-dark ) ;
--left-pane-text-color : var ( --text-gray ) ;
2024-08-22 12:18:58 -06:00
2021-12-18 17:38:29 -05:00
/*right+click menus*/
--menu-text-color : var ( --text-gray ) ;
--menu-background-color : var ( --background-gray ) ;
/*the options menu*/
--modal-background-color : var ( --background-gray ) ;
--modal-backdrop-color : var ( --text-gray ) ;
/*left and bottom left menus*/
--launcher-pane-background-color : var ( --background-gray ) ;
2023-07-27 15:58:13 -06:00
--launcher-pane-text-color : var ( --dim-sun ) ;
2021-12-18 17:38:29 -05:00
/*tabs*/
--active-tab-background-color : var ( --bold-sun ) ;
--active-tab-text-color : var ( --background-gray ) ;
--inactive-tab-background-color : var ( --midish-gray ) ;
--inactive-tab-text-color : var ( --text-gray ) ;
2022-02-19 19:48:26 -05:00
--active-tab-hover-background-color : var ( --text-gray ) ;
--inactive-tab-hover-background-color : var ( --earth-sun ) ;
2024-08-22 12:18:58 -06:00
2021-12-18 17:38:29 -05:00
/*general*/
--scrollbar-border-color : var ( --dim-sun ) ;
--tooltip-background-color : var ( --background-gray ) ;
--link-color : var ( --light-turquoise ) ;
2024-09-21 10:05:33 -06:00
--mermaid-theme : dark ;
2021-12-18 17:38:29 -05:00
}
2024-08-28 20:16:15 -06:00
2023-07-27 19:29:22 -06:00
/*****Image Caption*****/
. ck-content . image > figcaption {
2024-09-18 01:56:11 -06:00
font-size : 1rem ;
2023-07-27 19:29:22 -06:00
}
2024-08-28 20:16:15 -06:00
2023-07-27 14:59:24 -06:00
/*****Scrollbar*****/
:: -webkit-scrollbar-thumb {
background-color : transparent ! important ;
}
2023-07-27 16:22:45 -06:00
:: -webkit-scrollbar-thumb : hover {
border-color : var ( --bright-sun ) ! important ;
}
2021-12-18 17:38:29 -05:00
2024-08-28 20:16:15 -06:00
2022-09-22 22:58:48 -04:00
/*****TABS*****/
. tab-row-widget . note-tab . note-tab-wrapper {
height : 46px ! important ;
font-size : var ( --detail-font-size ) ;
2022-09-23 11:17:48 -04:00
font-family : var ( --header-font-family ) ;
2022-09-22 22:58:48 -04:00
}
2024-08-22 12:38:54 -06:00
. tab-row-widget . note-tab . note-tab-title {
font-size : 1 . 5rem ;
}
. tab-row-widget . note-tab . note-tab-close {
font-size : 1 . 5rem ;
margin-bottom : 10px ;
}
2024-08-29 21:47:54 -06:00
. note-tab div . note-tab-close . bx . bx-x : hover {
background : transparent ;
color : var ( --soft-red ) ;
}
2022-09-22 22:58:48 -04:00
2023-06-06 10:57:38 -06:00
/*fixes the issue of not being able to access widgets in the top bar*/
. tab-row-filler {
-webkit-app-region : none ! important ;
}
2024-08-28 20:16:15 -06:00
2022-09-23 02:24:27 -04:00
/*****TOC*****/
. toc-widget {
overflow : visible ! important ;
2022-09-23 11:17:48 -04:00
font-size : var ( --tree-font-size ) ;
2022-09-23 02:24:27 -04:00
}
2024-09-09 17:25:55 -06:00
/***Only applies if 'Show Position in TOC' widget is in use***/
. toc-widget span . toc li [ style ] {
color : var ( --bold-sun ) ! important ;
}
. toc-widget span . toc li : not ( [ style * = "color:" ] ) {
color : inherit ! important ;
}
2024-09-01 17:22:48 -06:00
. toc-widget . toc li , . highlights-list > ol > li {
2024-08-27 03:22:41 -06:00
text-align : left ;
}
2022-09-23 02:24:27 -04:00
2024-08-28 20:16:15 -06:00
2023-11-03 19:26:30 -06:00
/*****Included Notes*****/
. include-note {
margin-bottom : 1 . 1rem ! important ;
}
2024-08-28 20:16:15 -06:00
2021-12-18 17:38:29 -05:00
/*****HEADERS*****/
/*h1 is not defined, because it's not currently an option for headers in the main body*/
2024-10-06 09:40:00 -06:00
. ck-content h2 {
2021-12-18 17:38:29 -05:00
color : var ( --darkened-sun ) ;
font-weight : 850 ;
font-family : var ( --header-font-family ) ;
2024-10-06 09:40:00 -06:00
font-size : 2rem ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 09:40:00 -06:00
. ck-content h2 code , . ck-content h2 code b , . ck-content h2 code strong , . ck-content h2 code i , . ck-content h2 code em {
font-size : 1 . 9rem ;
background : transparent ;
2023-08-20 15:52:24 -06:00
}
2024-10-06 09:40:00 -06:00
. ck-content h3 {
2021-12-18 17:38:29 -05:00
color : var ( --bright-sun ) ;
font-weight : 700 ;
font-family : var ( --header-font-family ) ;
2024-10-06 09:40:00 -06:00
font-size : 1 . 9rem ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 09:40:00 -06:00
. ck-content h3 code , . ck-content h3 code b , . ck-content h3 code strong , . ck-content h3 code i , . ck-content h3 code em {
font-size : 1 . 78rem ;
background : transparent ;
2023-08-20 15:52:24 -06:00
}
2024-10-06 09:40:00 -06:00
. ck-content h4 {
2023-11-03 17:09:07 -06:00
color : # 6cccca ;
2021-12-18 17:38:29 -05:00
font-weight : 600 ;
font-family : var ( --header-font-family ) ;
2024-10-06 09:40:00 -06:00
font-size : 1 . 78rem ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 09:40:00 -06:00
. ck-content h4 code , . ck-content h4 code b , . ck-content h4 code strong , . ck-content h4 code i , . ck-content h4 code em {
font-size : 1 . 65rem ;
background : transparent ;
2023-08-20 15:52:24 -06:00
}
2024-10-06 09:40:00 -06:00
. ck-content h5 {
2023-11-03 17:09:07 -06:00
color : # 99cccb ;
2021-12-18 17:38:29 -05:00
font-weight : 600 ;
font-family : var ( --header-font-family ) ;
2024-10-06 09:40:00 -06:00
font-size : 1 . 65rem ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 09:40:00 -06:00
. ck-content h5 code , . ck-content h5 code b , . ck-content h5 code strong , . ck-content h5 code i , . ck-content h5 code em {
font-size : 1 . 53rem ;
background : transparent ;
2023-08-20 15:52:24 -06:00
}
2024-10-06 09:40:00 -06:00
. ck-content h6 {
2023-11-03 17:09:07 -06:00
color : # 99ccb1 ;
2021-12-18 17:38:29 -05:00
font-weight : 600 ;
font-family : var ( --header-font-family ) ;
2024-10-06 09:40:00 -06:00
font-size : 1 . 53rem ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 09:40:00 -06:00
. ck-content h6 code , . ck-content h6 code b , . ck-content h6 code strong , . ck-content h6 code i , . ck-content h6 code em {
font-size : 1 . 4rem ;
background : transparent ;
2023-08-20 15:52:24 -06:00
}
2021-12-18 17:38:29 -05:00
2023-11-03 17:09:07 -06:00
2023-11-03 14:15:43 -06:00
/*****TEXT*****/
2023-11-03 17:09:07 -06:00
* {
2023-11-03 14:15:43 -06:00
letter-spacing : 1 . 2px ;
}
2021-12-18 17:38:29 -05:00
2023-11-03 17:09:07 -06:00
2023-11-03 12:58:28 -06:00
/*****TABLE*****/
. ck-content . table > figcaption {
2023-11-03 17:09:07 -06:00
background-color : var ( --table-header-gray ) ;
2023-11-03 12:58:28 -06:00
color : var ( --darkened-sun ) ;
font-size : 1 . 3rem ;
font-weight : 600 ;
font-family : var ( --header-font-family ) ;
}
2023-11-03 17:09:07 -06:00
. ck-content . table table , . ck-content . table table td , . ck-content . table table th {
border : none ;
}
. ck-content . table table th {
2023-11-03 12:58:28 -06:00
font-weight : 600 ! important ;
font-size : 1 . 15rem ;
}
2023-11-03 17:09:07 -06:00
tr : nth-child ( odd ) {
2023-11-03 12:58:28 -06:00
background-color : var ( --code-select-gray ) ;
}
2023-11-03 17:09:07 -06:00
. ck-content . table table tbody tr : nth-child ( odd ) th {
background-color : var ( --table-header-gray ) ! important ;
}
2024-10-05 20:42:09 -06:00
. ck-content . table table {
width : 100 % ;
max-height : 90vh ;
overflow : auto ;
}
. ck-content . table table thead th {
position : sticky ;
position : -webkit-sticky ;
top : 0 ;
z-index : 1 ;
}
. ck-content . table table tbody th {
position : relative ;
}
. ck-content . table table thead th : first-child {
position : sticky ;
position : -webkit-sticky ;
left : 0 ;
z-index : 2 ;
}
. ck-content . table table tbody th {
position : sticky ;
left : 0 ;
z-index : 1 ;
}
2023-11-03 17:09:07 -06:00
2022-09-22 22:58:48 -04:00
2021-12-18 17:38:29 -05:00
/*****TEXT DECORATION*****/
/*bold*/
body strong {
2024-08-22 12:18:58 -06:00
color : var ( --bold-sun ) ;
2021-12-18 17:38:29 -05:00
font-weight : 800 ;
}
/***lists***/
2023-11-03 19:45:23 -06:00
li label {
display : inline ;
line-height : 2rem ;
}
2024-10-06 17:07:20 -06:00
. ck-content . todo-list . todo-list__label > input [ checked ] : before , . ck-editor__editable . ck-content . todo-list . todo-list__label > span [ contenteditable = false ] > input [ checked ] : before {
2021-12-18 17:38:29 -05:00
background : var ( --sea-green ) ;
2024-10-06 11:14:41 -06:00
border-color : var ( --sea-foam ) ! important ;
2021-12-18 17:38:29 -05:00
}
2024-10-06 11:14:41 -06:00
. ck-content . todo-list . todo-list__label > input [ checked ] : after , . ck-editor__editable . ck-content . todo-list . todo-list__label > span [ contenteditable = false ] > input [ checked ] : after {
border-color : var ( --background-gray ) ;
}
. ck-content . todo-list . todo-list__label > input : not ( [ checked ] ) : before , . ck-editor__editable . ck-content . todo-list . todo-list__label > span [ contenteditable = false ] > input : not ( [ checked ] ) : before {
border : 1px solid var ( --soft-red ) ! important ;
2021-12-18 17:38:29 -05:00
}
/***italics and quotes***/
body i {
2024-10-05 20:42:09 -06:00
color : var ( --italic-orange ) ;
2021-12-18 17:38:29 -05:00
}
body blockquote {
2024-09-18 03:18:22 -06:00
color : var ( --italic-orange ) ;
2021-12-18 17:38:29 -05:00
}
. ck-content blockquote {
overflow : hidden ;
padding-right : 1 . 5em ;
padding-left : . 5em ;
2023-11-03 14:25:56 -06:00
margin-left : 0 ;
2021-12-18 17:38:29 -05:00
margin-right : 0 ;
font-style : italic ;
2024-09-18 03:18:22 -06:00
border-left : 5px solid var ( --border-orange ) ;
2021-12-18 17:38:29 -05:00
}
2023-11-03 17:09:07 -06:00
. ck-content blockquote p {
margin-bottom : 0 ;
padding-bottom : . 3em ;
2024-08-22 12:18:58 -06:00
}
2024-09-18 02:24:43 -06:00
. ck-content blockquote i {
font-style : normal ;
2024-09-18 03:18:22 -06:00
color : var ( --bold-sun ) ;
2024-09-18 02:24:43 -06:00
}
2023-11-03 17:09:07 -06:00
2024-09-20 09:50:33 -06:00
/***decorated links***/
a > i , a > em , a > b , a > strong {
color : var ( --link-color ) ;
}
2021-12-18 17:38:29 -05:00
/*****ICONS*****/
/*main note icon*/
. note-icon :: before {
color : var ( --devils-gray-lol ) ;
}
. note-icon : hover :: before {
color : var ( --bold-sun ) ;
border-color : var ( --bold-sun ) ! important ; /*not working*/
}
. note-icon : focus :: before , . bx-calendar : focus :: before {
color : var ( --bold-sun ) ;
2024-08-22 12:18:58 -06:00
}
2021-12-18 17:38:29 -05:00
. icon-list {
color : var ( --shallow-sea-blue ) ;
}
/***note properties menu***/
. ribbon-tab-title-icon {
color : var ( --devils-gray-lol ) ;
}
. ribbon-tab-title-icon : hover {
color : var ( --bold-sun ) ;
}
2024-09-18 13:30:48 -06:00
/***launcher, floating tree, icon action and title bar buttons***/
2024-10-10 20:39:57 -06:00
div . title-bar-buttons . component button , button . icon-action , . icon-action {
color : var ( --dim-sun ) ! important ;
2023-07-27 15:58:13 -06:00
}
2024-10-10 20:39:57 -06:00
# launcher-pane . launcher-button : hover , button . tree-floating-button : hover , . title-bar-buttons div : hover button , button . icon-action : hover , . icon-action : hover {
color : var ( --bold-sun ) ! important ;
2024-08-22 12:18:58 -06:00
border : none ! important ;
2023-07-27 15:58:13 -06:00
}
2021-12-18 17:38:29 -05:00
2024-09-18 14:12:47 -06:00
/***Calendar***/
div . dropdown-menu . dropdown-menu-right > div . calendar-dropdown-widget > div . calendar-body > a . calendar-date : hover , . calendar-dropdown-widget . calendar-btn : hover {
color : var ( --bold-sun ) ! important ;
background : var ( --earth-sun ) ! important ;
}
a . calendar-date . calendar-date-exists {
color : var ( --dim-sun ) ;
}
a . calendar-date . calendar-date-today {
background : var ( --midish-gray ) ;
}
2021-12-18 17:38:29 -05:00
/***tree***/
/*note icon*/
. fancytree-custom-icon {
color : var ( --dim-sun ) ;
}
2023-07-27 20:03:12 -06:00
. note-icon-widget button . note-icon {
border : none ! important ;
}
2021-12-18 17:38:29 -05:00
span . fancytree-node . protected > span . fancytree-custom-icon {
filter : drop-shadow ( 2px 2px 2px var ( --shallow-sea-blue ) ) ;
}
/*drop down icon*/
. fancytree-expander :: before {
color : var ( --devils-gray-lol ) ;
}
2024-08-27 18:54:01 -06:00
/*tree action buttons*/
button . tree-floating-button {
font-size : 1 . 5rem ! important ;
}
2021-12-18 17:38:29 -05:00
/***Trilium icon***/
body . global-menu-button {
2023-06-05 12:53:21 -06:00
background-image : url ( "/assets/vX/images/icon-grey.png" ) ;
2021-12-18 17:38:29 -05:00
}
/*****INPUT FIELDS*****/
/***password and options menu fields***/
. form-control {
color : var ( --text-gray ) ! important ;
}
. form-control : focus {
color : var ( --bright-sun ) ! important ;
2024-08-22 12:18:58 -06:00
background-color : var ( --supa-dark ) ;
2021-12-18 17:38:29 -05:00
border-color : var ( --text-gray ) ! important ;
outline : 0 ;
box-shadow : 0 0 0 0 . 2rem rgb ( 252 251 179 / 50 % ) ! important ;
}
2024-08-27 18:25:27 -06:00
. component . title-row {
margin-top : 10px ;
margin-bottom : 10px ;
}
2022-09-23 11:17:48 -04:00
. note-title-widget input . note-title {
font-family : var ( --header-font-family ) ;
2024-08-27 18:25:27 -06:00
font-size : 180 % ! important ;
2022-09-23 11:17:48 -04:00
}
2021-12-18 17:38:29 -05:00
. note-title : focus {
color : var ( --text-gray ) ! important ;
2024-08-22 12:18:58 -06:00
background-color : var ( --supa-dark ) ! important ;
2021-12-18 17:38:29 -05:00
border-color : var ( --text-gray ) ! important ;
outline : 0 ;
box-shadow : 0 0 0 0 . 2rem rgb ( 252 251 179 / 50 % ) ! important ;
}
2024-08-27 18:25:27 -06:00
2021-12-18 17:38:29 -05:00
/***selection and find/replace (button)***/
2023-11-29 15:11:18 -07:00
:: selection {
color : black ! important /*var(--supa-dark)*/ ;
background : # fcfbb3 ! important /*var(--bold-sun)*/ ;
}
2024-08-28 19:26:51 -06:00
span . ck-find-result {
2024-09-18 16:44:58 -06:00
color : var ( text-gray ) ! important ;
2024-08-28 19:26:51 -06:00
background : var ( --code-select-gray ) ;
}
span . ck-find-result_selected {
color : var ( --supa-dark ) ! important ;
background : var ( --bright-sun ) ;
2021-12-18 17:38:29 -05:00
}
/*****BUTTONS*****/
. help-button {
color : hsl ( 15 , 100 % , 56 % ) ;
}
. help-button : hover {
color : var ( --dim-sun ) ;
}
2024-09-19 13:09:24 -06:00
/*edit button*/
. bx-edit-alt {
height : 40px ;
}
2021-12-18 17:38:29 -05:00
/***primary and secondary buttons***/
button : focus : not ( . close ) : not ( . help-button ) : not ( . ck-button-save ) : not ( . ck-button-cancel ) , . btn : focus {
color : var ( --text-gray ) ! important ;
2024-08-22 12:18:58 -06:00
background-color : var ( --devils-gray-lol ) ! important ;
2021-12-18 17:38:29 -05:00
border-color : var ( --text-gray ) ! important ;
outline : 0 ;
box-shadow : 0 0 0 0 . 2rem rgb ( 252 251 179 / 50 % ) ! important ;
}
button : hover : not ( . close ) : not ( . help-button ) : not ( . ck-button-save ) : not ( . ck-button-cancel ) , . btn : hover {
2024-08-22 12:18:58 -06:00
background-color : var ( --supa-dark ) ! important ;
2021-12-18 17:38:29 -05:00
color : var ( --bold-sun ) ;
border-color : var ( --bold-sun ) ;
}
/***table sub-menu***/
/*table field input label*/
. ck . ck-labeled-field-view > . ck . ck-labeled-field-view__input-wrapper > . ck . ck-label {
background : var ( --supa-dark ) ;
color : var ( --text-gray ) ;
}
/*table field and button inputs*/
. ck . ck-button : active , . ck . ck-button : focus , a . ck . ck-button : active , a . ck . ck-button : focus , . ck . ck-input-text : focus {
border : 1px solid var ( --text-gray ) ! important ;
2024-08-22 12:18:58 -06:00
box-shadow : 0 0 0 0 . 2rem rgb ( 252 251 179 / 50 % ) ! important ;
2021-12-18 17:38:29 -05:00
}
. ck . ck-input-text [ readonly ] : focus {
border : 1px solid var ( --ck-color-input-disabled-border ) ! important ;
background : var ( --ck-color-input-disabled-background ) ! important ;
color : var ( --ck-color-input-disabled-text ) ! important ;
}
/*color button*/
. ck . ck-input-color > . ck . ck-dropdown > . ck . ck-button . ck-input-color__button . ck-disabled , . ck . ck-input-color > . ck . ck-dropdown > . ck . ck-button . ck-input-color__button . ck-disabled > . ck . ck-input-color__button__preview , . ck . ck-input-color > . ck . ck-dropdown > . ck . ck-button . ck-input-color__button . ck-disabled > . ck . ck-input-color__button__preview > . ck . ck-input-color__button__preview__no-color-indicator {
border : 1px solid var ( --ck-color-input-disabled-border ) ! important ;
}
2024-08-29 13:47:58 -06:00
/*image caption field*/
. ck . ck-editor__nested-editable . ck-editor__nested-editable_focused , . ck . ck-editor__nested-editable : focus {
background-color : var ( --ck-color-widget-editable-focus-background ) ;
border : none /*var(--ck-focus-ring)*/ ;
box-shadow : var ( --ck-inner-shadow ) , 0 0 ;
outline : none ;
}
2024-09-18 12:23:59 -06:00
/*backend logs*/
textarea . backend-log-textarea {
2024-09-18 12:26:14 -06:00
color : var ( --shallow-sea-blue ) ! important ;
2024-09-18 12:23:59 -06:00
}
2021-12-18 17:38:29 -05:00
2024-08-28 20:16:15 -06:00
2021-12-18 17:38:29 -05:00
/*****NOTE MAP*****/
. note-detail-relation-map path , . note-detail-relation-map . jtk-endpoint {
fill : var ( --shallow-sea-blue ) ! important ;
}
svg . jtk-connector path {
stroke : var ( --shallow-sea-blue ) ;
fill : none ! important ;
}
2024-09-17 19:17:07 -06:00
. note-detail-relation-map . note-box {
padding : 12px 30px 12px 12px ;
position : absolute ! important ;
background-color : var ( --accented-background-color ) ;
color : var ( --main-text-color ) ;
z-index : 4 ;
border : 1px solid # 666 ;
box-shadow : 2px 2px 19px # 999 ;
border-radius : 8px ;
opacity : 0 . 8 ;
font-size : 1rem ;
width : auto ;
height : auto ;
max-width : 240px ;
min-width : 150px ;
max-height : 200px ;
overflow : hidden ;
}
2022-02-19 19:48:26 -05:00
2024-08-28 20:16:15 -06:00
2024-10-06 17:07:20 -06:00
/*****FLOATING BUTTONS*****/
/***Backlinks Popup***/
2024-09-18 15:03:50 -06:00
. floating-buttons-children {
flex-direction : column-reverse ! important ;
}
. backlinks-ticker {
2024-10-06 17:07:20 -06:00
padding : 6px 3px ! important ;
2024-09-18 15:03:50 -06:00
writing-mode : vertical-lr ;
}
2022-02-19 19:48:26 -05:00
div . backlinks-items {
z-index : 10 ;
position : absolute ;
top : 50px ;
right : 10px ;
width : 400px ;
border-radius : 10px ;
background-color : var ( --supa-dark ) ;
color : var ( --text-gray ) ;
padding : 20px ;
overflow-y : auto ;
box-shadow : 2px 2px 5px var ( --text-gray ) ;
}
2022-02-20 10:19:31 -05:00
div . backlinks-items div : hover {
background-color : var ( --earth-sun ) ;
}
2022-02-19 19:48:26 -05:00
. backlink-excerpt . backlink-link {
background-color : var ( --midish-gray ) ! important ;
}
. backlinks-ticker : hover {
background-color : var ( --earth-sun ) ;
}
2024-10-06 17:07:20 -06:00
/***Relation Map Buttons***/
. relation-map-buttons {
display : flex ;
gap : 10px ;
flex-direction : column ;
}
. relation-map-buttons > . btn-group {
position : relative ;
display : -ms-inline-flexbox ;
display : inline-flex ;
flex-direction : column ;
vertical-align : middle ;
}
. relation-map-buttons > button , . relation-map-buttons > . btn-group button {
border : none ! important ;
}
. relation-map-buttons > . btn-group > . btn-group : not ( : first-child ) , . btn-group > . btn : not ( : first-child ) {
margin-left : 0 ;
}
. relation-map-buttons > button : hover , . relation-map-buttons > . btn-group button : hover {
border : none ;
background : transparent ! important ;
color : var ( --bold-sun ) ;
}
2024-08-28 20:16:15 -06:00
2022-02-23 23:35:13 -05:00
/*****Attributes Popup*****/
. attr-help td {
color : var ( --text-gray ) ! important ;
}
2021-12-18 17:38:29 -05:00
2024-08-28 20:16:15 -06:00
2024-09-20 13:32:00 -06:00
/*****Deletion Alert*****/
. alert-danger {
color : # f5c6cb ;
background-color : # 930210 ;
border-color : # f5c6cb ;
}
2021-12-18 17:38:29 -05:00
/*****CODE IN TEXT NOTES)*****/
/***code blocks***/
2023-08-20 15:01:22 -06:00
. ck-content pre {
2024-08-22 12:18:58 -06:00
background : var ( --supa-dark ) ;
2021-12-18 17:38:29 -05:00
font-size : 0 . 9rem ;
2024-08-22 12:18:58 -06:00
border-color : var ( --shallow-sea-blue ) ;
2021-12-18 17:38:29 -05:00
}
. ck-content pre code {
font-size : 0 . 9rem ;
2024-08-22 12:18:58 -06:00
background : transparent ! important ;
2023-11-03 12:58:28 -06:00
color : var ( --shallow-sea-blue ) ! important ;
2021-12-18 17:38:29 -05:00
}
/*code block label*/
pre :: after {
2024-08-22 12:18:58 -06:00
background : var ( --earth-sun ) ! important ;
2021-12-18 17:38:29 -05:00
color : var ( --bright-sun ) ! important ;
border-color : var ( --bright-sun ) ! important ;
2023-11-03 17:09:07 -06:00
letter-spacing : 1px ;
2021-12-18 17:38:29 -05:00
}
/***inline code***/
2023-08-31 12:04:00 -06:00
. ck-content code , . ck-content code i , . ck-content code strong {
2024-08-22 12:18:58 -06:00
font-size : . 95rem ;
background : var ( --supa-dark ) ;
2023-11-03 12:58:28 -06:00
color : var ( --shallow-sea-blue ) ! important ;
2023-11-03 17:09:07 -06:00
letter-spacing : 1px ;
2021-12-18 17:38:29 -05:00
}
2023-08-20 15:01:22 -06:00
. ck-content . ck-code_selected {
2021-12-18 17:38:29 -05:00
background-color : var ( --earth-sun ) ! important ;
2023-11-03 17:09:07 -06:00
letter-spacing : 1px ;
2021-12-18 17:38:29 -05:00
}
/*****CKEDITOR*****/
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2024-08-22 12:18:58 -06:00
NOTE : The following lines of code affect the editor menus . Similar to the General Styles section , the variables below are simply redefined here .
2021-12-18 17:38:29 -05:00
I 've commented out the lines that don' t seem to have an affect on anything , along with adding a question mark ( ? ) in a comment to differentiate those lines from the rest of the code . They are left here in case anyone wants to experiment and figure out where those lines have an effect . If you find anything , please let me know so I can update the code ^ _ ^
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
body {
/***overrides generic colors***/
2022-10-23 15:32:20 -04:00
--ck-color-base-text : var ( --border-orange ) ; /*toggled color (editor sub-menu)*/
2021-12-18 17:38:29 -05:00
--ck-color-base-foreground : var ( --midish-gray ) ; /*tiny attached triangle and selection hover*/
--ck-color-focus-border : var ( --bright-sun ) ; /*table and color (editor menu) focus*/
--ck-color-text : var ( --shallow-sea-blue ) ; /*text color*/
/* --ck-color-shadow-drop: red; /*?*/
/* --ck-color-shadow-inner: red; /*?*/
/***overrides the default '.ck-button' class colors***/
/*general buttons*/
--ck-color-button-default-background : transparent ;
--ck-color-button-default-hover-background : var ( --midish-gray ) ;
--ck-color-button-default-active-background : var ( --devils-gray-lol ) ;
--ck-color-button-default-active-shadow : var ( --devils-gray-lol ) ; /*thin line on top of active buttons*/
--ck-color-button-default-disabled-background : var ( --background-gray ) ; /*disabled buttons*/
2024-08-29 13:29:15 -06:00
--ck-color-button-on-color : var ( --bright-sun ) ; /*selected property/button*/
2024-08-22 12:18:58 -06:00
2021-12-18 17:38:29 -05:00
/*dropdown buttons*/
--ck-color-button-on-background : var ( --earth-sun ) ; /*active*/
--ck-color-button-on-hover-background : var ( --midish-gray ) ; /*hover*/
--ck-color-button-on-active-background : var ( --devils-gray-lol ) ; /*exit click on active*/
--ck-color-button-on-active-shadow : transparent ; /*top line on exit click of active*/
/*--ck-color-button-on-disabled-background: red; /*?*/
/*find button (editor sub-menu)*/
--ck-color-button-action-background : var ( --darkened-sun ) ! important ;
2024-08-22 12:18:58 -06:00
--ck-color-button-action-hover-background : var ( --devils-gray-lol ) ! important ;
2021-12-18 17:38:29 -05:00
--ck-color-button-action-active-background : var ( --darkened-sun ) ! important ; /*find button active and field descritpion*/
--ck-color-button-action-active-shadow : transparent ! important ; /*top line*/
/*--ck-color-button-action-disabled-background: red; /*?*/
--ck-color-button-action-text : var ( --supa-dark ) ! important ; /*find button(editor sub-menu)*/
/*save and cancel*/
--ck-color-button-save : var ( --sea-green ) /*hsl(120, 100%, 46%)*/ ; /*table sub-menu*/
--ck-color-button-cancel : hsl ( 15 , 100 % , 56 % ) ; /*table sub-menu*/
/***overrides the default '.ck-dropdown' class colors (color sub-menus)***/
--ck-color-dropdown-panel-background : var ( --supa-dark ) ;
--ck-color-dropdown-panel-border : var ( --devils-gray-lol ) ;
/***overrides the default '.ck-splitbutton' class colors***/
--ck-color-split-button-hover-background : var ( --devils-gray-lol ) ;
--ck-color-split-button-hover-border : var ( --shallow-sea-blue ) ;
/***overrides the default '.ck-input' class colors***/
/*--ck-color-input-background: red; /*?*/
--ck-color-input-border : var ( --text-gray ) ; /*inactive (enabled AND disabled) editable field(editor sub-menus)*/
/*--ck-color-input-text: red; /*?*/
--ck-color-input-disabled-background : var ( --supa-dark ) ; /*disabled color picker(table sub-menu)*/
--ck-color-input-disabled-border : var ( --background-gray ) ; /*disabled editor border (table sub-menu)*/
--ck-color-input-disabled-text : var ( --text-gray ) ; /*editor input text (enable AND disabled)*/
/***overrides the default '.ck-list' (list menus) class colors***/
--ck-color-list-background : transparent ; /*focus out*/
--ck-color-list-button-hover-background : var ( --midish-gray ) ;
--ck-color-list-button-on-background : var ( --dim-sun ) ; /*toggled/active*/
--ck-color-list-button-on-background-focus : var ( --devils-gray-lol ) ; /*hover on toggled/active*/
--ck-color-list-button-on-text : var ( --supa-dark ) ; /*toggled/active*/
/***overrides the default .ck-balloon-panel class colors (overall look and feel of the editor toolbars and sub-menus)***/
--ck-color-panel-background : var ( --supa-dark ) ;
--ck-color-panel-border : var ( --devils-gray-lol ) ;
/***overrides the default .ck-toolbar class colors***/
--ck-color-toolbar-background : var ( --supa-dark ) ; /*lots of overlap with the above backgound setting*/
--ck-color-toolbar-border : var ( --dim-sun ) ; /*section separators*/
/***overrides the default .ck-tooltip class colors***/
2024-08-22 12:18:58 -06:00
--ck-color-tooltip-background : var ( --bold-sun ) ;
2021-12-18 17:38:29 -05:00
--ck-color-tooltip-text : var ( --background-gray ) ;
/* Overrides the default colors used by the ckeditor5-image package.*/
/*--ck-color-image-caption-background: red; /*?*/
/*--ck-color-image-caption-text: red; /*?*/
/***overrides the default colors used by the ckeditor5-widget (image/table) package***/
--ck-color-widget-blurred-border : var ( --devils-gray-lol ) ; /*shows up briefly after switching tabs*/
--ck-color-widget-hover-border : var ( --dim-sun ) ; /*object in focus*/
--ck-color-widget-editable-focus-background : var ( --midish-gray ) ; /*table caption in focus*/
/***overrides the default colors used by the ckeditor5-link package***/
/*--ck-color-link-default: red; /*this is overridden by a link setting set earlier in the code*/
--ck-color-table-focused-cell-background : var ( --midish-gray ) ;
/*--ck-color-todo-list-checkmark-border: red; /*?*/
--ck-color-engine-placeholder-text : var ( --text-gray ) ; /*caption placeholder text*/
--ck-z-modal : 10000 ;
/*--ck-color-widget-type-around-button: red; /*?*/
--ck-color-widget-type-around-button-hover : var ( --darkened-sun ) ; /*applies when table/image is in focus*/
}
2024-08-22 12:18:58 -06:00
2021-12-18 17:38:29 -05:00
/*****CODEMIRROR****/
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
NOTE : comments for this section are for how they appear in CSS code notes unless otherwise noted . All code notes have the same color theme , but the application may be different . Some elements are affected the same way accross all code notes ( i . e . all strings appear the same across code notes and as do comments , variables , and functions ) .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***general appearance***/
/*'...line' is for regular code notes text, not sure what '...line-like' is for*/
. CodeMirror pre . CodeMirror-line ,
. CodeMirror pre . CodeMirror-line-like {
2024-08-22 12:18:58 -06:00
color : var ( --text-gray ) ;
}
2021-12-18 17:38:29 -05:00
2024-08-22 12:18:58 -06:00
. CodeMirror-linenumber { color : var ( - - devils - gray - lol ) ; }
2021-12-18 17:38:29 -05:00
. CodeMirror-cursor {
border-left : 1px solid var ( --devils-gray-lol ) ;
}
/***highlighted and selected text in code notes***/
. CodeMirror-selected {
2022-10-23 15:32:20 -04:00
background-color : var ( --code-select-gray ) ;
2021-12-18 17:38:29 -05:00
}
. CodeMirror-focused . CodeMirror-selected {
2022-10-23 15:32:20 -04:00
background-color : var ( --code-select-gray ) ;
2021-12-18 17:38:29 -05:00
}
. cm-s-default . cm-matchhighlight {
2024-09-18 16:44:58 -06:00
color : var ( --text-gray ) ! important ;
background-color : var ( --earth-sun ) ;
2021-12-18 17:38:29 -05:00
}
/***general elements***/
2024-09-09 23:27:10 -06:00
. cm-s-default . cm-atom { color : var ( - - code - number ) ; } /*fonts and colors (code not words)*/
. cm-s-default . cm-def { color : var ( - - code - def ) ; } /*@ and class definitions (php)*/
. cm-s-default . cm-qualifier { color : var ( - - code - class ) ; } /*class*/
. cm-s-default . cm-builtin { color : var ( - - code - builtin ) ; } /*id-selectors*/
2024-09-09 19:23:09 -06:00
. cm-s-default . cm-tag { color : var ( - - code - tag ) ; } /*html tags*/
2024-09-09 23:27:10 -06:00
. cm-s-default . cm-meta { color : var ( - - code - meta ) ; } /*meta (browser compatability) tags*/
2024-09-09 19:23:09 -06:00
. cm-s-default . cm-comment { color : var ( - - code - comment ) ; } /*comments*/
2024-09-09 23:27:10 -06:00
. cm-s-default . cm-number { color : var ( - - code - number ) ; } /*numbers including units, not including color codes*/
. cm-s-default . cm-keyword { color : var ( - - code - keyword ) ; } /*color names and keywords*/
. cm-s-default . cm-attribute { color : var ( - - code - attribute ) ; } /*print keyword*/
2021-12-18 17:38:29 -05:00
/***variables***/
2024-09-09 23:27:10 -06:00
. cm-s-default . cm-punctuation , . cm-s-default . cm-operator { }
. cm-s-default . cm-property { color : var ( - - code - attribute ) ; }
. cm-s-default . cm-variable , . cm-s-default . cm-variable-2 { color : var ( - - code - var ) ; } /*custom properties and php variables*/
. cm-s-default . cm-variable-3 , . cm-s-default . cm-type { color : var ( - - code - pseudo ) ; } /*pseudo elements and classes*/
2021-12-18 17:38:29 -05:00
/***strings***/
2024-09-09 19:23:09 -06:00
. cm-s-default . cm-string { color : var ( - - code - string ) ; }
2024-09-09 23:27:10 -06:00
. cm-s-default . cm-string-2 { color : var ( - - code - string ) ; } /*Regex and strings that can contain other strings*/
2021-12-18 17:38:29 -05:00
/***brackets and parentheses***/
div . CodeMirror span . CodeMirror-matchingbracket { color : #01ba3f ; }
div . CodeMirror span . CodeMirror-nonmatchingbracket { color : #c60101 ; }
/***code errors***/
. cm-s-default . cm-error { color : #f00 ; }
2024-08-22 11:44:22 -06:00
. cm-invalidchar { color : #f00 ; }
2024-09-09 19:23:09 -06:00
2024-10-06 17:07:20 -06:00
/*****ADDONS*****/
/***Highlight.js***/
2024-09-09 19:23:09 -06:00
pre code . hljs {
display : block ;
overflow-x : auto ;
2024-09-09 23:27:10 -06:00
padding : 1em ;
2024-09-09 19:23:09 -06:00
}
code . hljs {
2024-09-09 23:27:10 -06:00
padding : 3px 5px ;
2024-09-09 19:23:09 -06:00
}
. hljs {
background : # fff ;
2024-09-09 23:27:10 -06:00
color : yellow ! important ;
2024-09-09 19:23:09 -06:00
}
2024-09-09 23:27:10 -06:00
. hljs-number {
color : var ( --code-number ) ! important ;
}
. hljs-selector-class {
color : var ( --code-class ) ! important ;
}
. hljs-selector-pseudo {
color : var ( --code-pseudo ) ! important ;
}
. hljs-keyword {
color : var ( --code-keyword ) ! important ;
}
. hljs-meta {
color : var ( --code-meta ) ! important ;
}
. hljs-title , . hljs-property {
color : var ( --code-def ) ! important ;
}
. hljs-variable , . hljs-params , . hljs-subst {
color : var ( --code-var ) ! important ;
}
. hljs-comment , . hljs-quote {
2024-09-09 19:23:09 -06:00
color : var ( --code-comment ) ! important ;
}
2024-09-09 23:27:10 -06:00
. hljs-name , . hljs-selector-tag , . hljs-tag , . hljs-deletion , . hljs-selector-attr {
2024-09-09 19:23:09 -06:00
color : var ( --code-tag ) ! important ;
}
2024-09-09 23:27:10 -06:00
. hljs-attribute {
color : var ( --code-attribute ) ! important ;
}
. hljs-addition , . hljs-literal , . hljs-section , . hljs-string , . hljs-template-tag , . hljs-template-variable , . hljs-type {
2024-09-09 19:23:09 -06:00
color : var ( --code-string ) ! important ;
}
2024-09-09 23:27:10 -06:00
. hljs-built_in {
color : var ( --code-builtin ) ! important ;
2024-09-09 19:23:09 -06:00
}
. hljs-doctag , . hljs-attr , . hljs-bullet , . hljs-link , . hljs-symbol {
2024-09-09 23:27:10 -06:00
color : var ( --soft-sea-green ) ! important ;
2024-09-09 19:23:09 -06:00
}
. hljs-emphasis {
font-style : italic ;
}
. hljs-strong {
font-weight : 700 ;
}
2024-10-05 20:42:09 -06:00
2024-10-06 17:07:20 -06:00
/***Zen Mode***/
2024-10-05 20:42:09 -06:00
/*Use the button or alt+z to toggle it on and off*/
2024-10-05 23:19:10 -06:00
/* hide launcher buttons*/
2024-10-10 18:20:30 -06:00
. zen-mode button . bx-chevrons-left , . zen-mode # launcher-pane > . component > : not ( button . component . button-widget . bx-spa ) {
2024-10-05 20:42:09 -06:00
display : none ! important ;
}
2024-10-10 18:20:30 -06:00
/*hide note tree*/
2024-10-05 20:42:09 -06:00
. zen-mode # left-pane {
display : none ! important ;
}
2024-10-10 18:20:30 -06:00
/*hide ribbon buttons*/
2024-10-05 20:42:09 -06:00
. zen-mode . ribbon-container {
display : none ! important ;
}
2024-10-10 18:20:30 -06:00
/*hide note title*/
2024-10-05 20:42:09 -06:00
. zen-mode . title-row {
display : none ! important ;
}
2024-10-05 23:19:10 -06:00
/*hide note tabs*/
. zen-mode . tab-row-widget . tab-row-widget-container {
2024-10-05 20:42:09 -06:00
display : none ! important ;
}
2024-10-05 23:19:10 -06:00
/*hide none-essential title-bar buttons*/
. zen-mode . title-bar-buttons > : not ( . top-btn , . minimize-btn , . maximize-btn , . close-btn ) {
display : none ;
2024-10-05 20:42:09 -06:00
}
2024-10-10 18:20:30 -06:00
/*hide preview of child notes*/
2024-10-05 20:42:09 -06:00
. zen-mode . note-list-widget {
display : none ! important ;
}
2024-10-10 18:20:30 -06:00
/*hide backlink, code buttons, etc.*/
. zen-mode . floating-buttons-children {
2024-10-05 20:42:09 -06:00
display : none ! important ;
}
2024-10-10 18:20:30 -06:00
/*hide nonessential center pane widgets*/
. zen-mode # center-pane > : not ( . split-note-container-widget ) {
display : none ! important ;
}
/*hide right pane*/
/ * . zen-mode # right-pane {
display : none ! important ;
} * /
2024-10-06 17:07:20 -06:00
/***Theme Switcher***/
. theme-selection . component . switch {
top : 5 . 75px ! important ;
}
2024-10-10 19:36:58 -06:00
. theme-selection . component {
--icon-dark : var ( --bright-sun ) ! important ;
}
. theme-selection . component : hover {
--icon-dark : var ( --supa-dark ) ! important ;
}
2024-10-10 20:12:59 -06:00
/***Trilium Chat***/
. chat-wrapper {
2024-10-10 20:14:20 -06:00
--trilium-green : var ( --soft-foam ) ;
2024-10-10 20:12:59 -06:00
}
2024-10-10 21:02:02 -06:00
. chat-wrapper . header_face : hover {
color : var ( --bright-sun ) ! important ;
}