Skip to content

Commit 4d4918a

Browse files
committed
Version:0.11 For trilium-NEXT:>=0.92.6
1 parent fa0965a commit 4d4918a

File tree

3 files changed

+185
-94
lines changed

3 files changed

+185
-94
lines changed

blue-theme-dark-mode.css

Lines changed: 113 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/*
22
Blue theme dark-mode
33
https://github.com/SiriusXT/trilium-theme-blue
4-
dark-mode version:0.10 for trilium-NEXT:>=0.92.4
4+
dark-mode version:0.11 for trilium-NEXT:>=0.92.4
55
*/
66
:root {
77
--theme-style: dark;
8-
--main-background-color: #1E1E1E;
9-
--main-text-color:#E6E6E6; /*#d4d4d4;*/
10-
--main-border-color: #333333;
11-
--second-border-color: #595959;
12-
--bs-border-color: #333333;
8+
--main-background-color: #1E1E1E !important;
9+
--main-text-color:#E6E6E6 !important; /*#d4d4d4;*/
10+
--main-border-color: #333333 !important;
11+
--second-border-color: #595959 !important;
12+
--bs-border-color: #333333 !important;
1313

1414
--accented-background-color: rgb(40,40,40);
1515
/*rgb(51, 51, 51);*/
@@ -45,11 +45,11 @@ dark-mode version:0.10 for trilium-NEXT:>=0.92.4
4545
--modal-background-color: #333;
4646
--modal-backdrop-color: #444;
4747

48-
--left-pane-background-color: #252526;
49-
--left-pane-text-color: #AAAAAA;
48+
--left-pane-background-color: #151515 !important;
49+
--left-pane-text-color: #AAAAAA !important;
5050

51-
--launcher-pane-background-color: #333333;
52-
--launcher-pane-text-color: rgba(255, 255, 255, 0.4);
51+
--launcher-pane-background-color: #111 !important;
52+
--launcher-pane-text-color: rgba(255, 255, 255, 0.4) !important;
5353

5454
--link-color: #4682B4;
5555

@@ -62,21 +62,40 @@ dark-mode version:0.10 for trilium-NEXT:>=0.92.4
6262
--h4-background-color: rgb(215 187 162 / 40%);
6363
--h5-background-color: rgb(190 186 206 / 40%);
6464
--h6-background-color: rgb(197 197 197 / 40%);
65-
--ck-color-table-focused-cell-background: #1E1E1E;
66-
--ck-color-selector-focused-cell-background: #1E1E1E;
65+
/*--ck-color-table-focused-cell-background: #1E1E1E20;*/
66+
--ck-color-selector-focused-cell-background: rgba(158,201,250,0.05);
6767
--ck-color-focus-border: #bfbfbf !important;
6868
--dropdown-border-color: var(--second-border-color);
69+
70+
/*from next for mobile*/
71+
--new-tab-button-background: #fff0;
72+
--new-tab-button-color: #ffffff96;
73+
--new-tab-button-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
74+
--new-tab-button-hover-background: #fff3;
75+
--new-tab-button-hover-color: white;
76+
--tab-close-button-hover-background: #a45353;
77+
--tab-close-button-hover-color: white;
78+
--active-tab-background-color: #ffffff1c;
79+
--active-tab-hover-background-color: var(--active-tab-background-color);
80+
--active-tab-text-color: #ffffffcd;
81+
--active-tab-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -1px -1px 3px rgba(0, 0, 0, 0.4);
82+
--active-tab-dragging-shadow: var(--active-tab-shadow), 0 0 20px rgba(0, 0, 0, 0.4);
83+
--inactive-tab-background-color: transparent;
84+
--inactive-tab-hover-background-color: #ffffff0f;
85+
--inactive-tab-text-color: #7c7c7c;
86+
6987
}
7088

7189
body ::-webkit-calendar-picker-indicator {
7290
filter: invert(1);
7391
}
7492

93+
7594
body .CodeMirror {
7695
filter: invert(88%) hue-rotate(180deg);
7796
}
7897

79-
div.note-book-content.type-canvas>div.rendered-note-content>svg {
98+
div.note-book-content.Itype-canvas>div.rendered-note-content>svg {
8099
filter: invert(88%) hue-rotate(180deg);
81100
}
82101

@@ -88,111 +107,111 @@ div#launcher-pane .global-menu-button {
88107
filter: invert(0.5);
89108
}
90109

91-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n) {
110+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n) {
92111
border-left: 3px solid #f4a6a670;
93112
border-top-left-radius: 10px !important;
94113
border-bottom-left-radius: 10px !important;
95114
}
96115

97-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1) {
116+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1) {
98117
border-left: 3px solid #99d0df70;
99118
border-top-left-radius: 10px !important;
100119
border-bottom-left-radius: 10px !important;
101120
}
102121

103-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2) {
122+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2) {
104123
border-left: 3px solid #b4afdf70;
105124
border-top-left-radius: 10px !important;
106125
border-bottom-left-radius: 10px !important;
107126
}
108127

109-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3) {
128+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3) {
110129
border-left: 3px solid #abd58b70;
111130
border-top-left-radius: 10px !important;
112131
border-bottom-left-radius: 10px !important;
113132
}
114133

115-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4) {
134+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4) {
116135
border-left: 3px solid #f3d27570;
117136
border-top-left-radius: 10px !important;
118137
border-bottom-left-radius: 10px !important;
119138
}
120139

121-
div.tree:not(.fancytree-ext-filter.fancytree-ext-filter-hide) li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5) {
140+
div.tree li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5) {
122141
border-left: 3px solid #bccdf170;
123142
border-top-left-radius: 10px !important;
124143
border-bottom-left-radius: 10px !important;
125144
}
126145

127146
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n):hover {
128-
background-color: #f4a6a607 !important;
147+
background-color: #f4a6a602 !important;
129148
}
130149

131150
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1):hover {
132-
background-color: #99d0df07 !important;
151+
background-color: #99d0df02 !important;
133152
}
134153

135154
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2):hover {
136-
background-color: #b4afdf07 !important;
155+
background-color: #b4afdf02 !important;
137156
}
138157

139158
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3):hover {
140-
background-color: #abd58b07 !important;
159+
background-color: #abd58b02 !important;
141160
}
142161

143162
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4):hover {
144-
background-color: #f3d27507 !important;
163+
background-color: #f3d27502 !important;
145164
}
146165

147166
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5):hover {
148-
background-color: #bccdf107 !important;
167+
background-color: #bccdf102 !important;
149168
}
150169

151170
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n)>span.fancytree-node:hover {
152-
background-color: #f4a6a607 !important;
171+
background-color: #f4a6a610 !important;
153172
}
154173

155174
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1)>span.fancytree-node:hover {
156-
background-color: #99d0df07 !important;
175+
background-color: #99d0df10 !important;
157176
}
158177

159178
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2)>span.fancytree-node:hover {
160-
background-color: #b4afdf07 !important;
179+
background-color: #b4afdf10 !important;
161180
}
162181

163182
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3)>span.fancytree-node:hover {
164-
background-color: #abd58b07 !important;
183+
background-color: #abd58b10 !important;
165184
}
166185

167186
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4)>span.fancytree-node:hover {
168-
background-color: #f3d27507 !important;
187+
background-color: #f3d27510 !important;
169188
}
170189

171190
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5)>span.fancytree-node:hover {
172-
background-color: #bccdf107 !important;
191+
background-color: #bccdf110 !important;
173192
}
174193

175-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n)>span.fancytree-node.fancytree-active {
194+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n)>span.fancytree-node.fancytree-active {
176195
background-color: #f4a6a610 !important;
177196
}
178197

179-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1)>span.fancytree-node.fancytree-active {
198+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+1)>span.fancytree-node.fancytree-active {
180199
background-color: #99d0df10 !important;
181200
}
182201

183-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2)>span.fancytree-node.fancytree-active {
202+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+2)>span.fancytree-node.fancytree-active {
184203
background-color: #b4afdf10 !important;
185204
}
186205

187-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3)>span.fancytree-node.fancytree-active {
206+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+3)>span.fancytree-node.fancytree-active {
188207
background-color: #abd58b10 !important;
189208
}
190209

191-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4)>span.fancytree-node.fancytree-active {
210+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+4)>span.fancytree-node.fancytree-active {
192211
background-color: #f3d27510 !important;
193212
}
194213

195-
li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5)>span.fancytree-node.fancytree-active {
214+
#left-pane li.fancytree-lastsib ul li[role='treeitem']:nth-of-type(6n+5)>span.fancytree-node.fancytree-active {
196215
background-color: #bccdf110 !important;
197216
}
198217

@@ -209,7 +228,6 @@ div.note-split.type-text h1 {
209228
border-bottom: 1px solid rgba(0, 0, 0, 1);
210229
}
211230

212-
213231
div.note-split.type-text h2:not(div.note-list-widget h2) {
214232
background: var(--h2-background-color);
215233
border-radius: 6px 6px 6px 6px;
@@ -282,6 +300,7 @@ div.toc-widget .toc ol {
282300

283301
::-webkit-scrollbar-thumb {
284302
background-color: #222 !important;
303+
border-color: #333 !important;
285304
}
286305

287306

@@ -298,33 +317,67 @@ div#toast-container {
298317
}
299318

300319
/* Launcher-pane vertical centered */
301-
#launcher-pane{
320+
#launcher-pane.vertical{
302321
align-items: center;
303-
border-right: none !important;
304322
}
305323

306-
.global-menu-button{
324+
#launcher-pane.vertical .launcher-button, #launcher-pane.vertical .dropdown{
325+
width:37px !important;
326+
height:37px !important;
327+
}
328+
329+
#launcher-pane.vertical{
330+
border-right: 2px solid var(--left-pane-collapsed-border-color);
331+
}
332+
#launcher-container {
333+
width: 100%;
334+
}
335+
336+
.icon-action.global-menu-button{
307337
padding-top: 0px !important;
338+
margin-top: 3px !important;
339+
font-size: 1em !important;
340+
}
341+
.icon-action.global-menu-button .global-menu-button-update-available {
342+
top: 17px;
343+
left: 21px;
308344
}
309345

310-
div#launcher-pane.component {
346+
div#launcher-pane.vertical {
311347
width: 40px !important;
312348
}
313349

350+
/* Let the tree of options not display the left border */
351+
div.tree .fancytree-submatch:not(.fancytree-match) + ul > li {
352+
border-left: 0px !important;
353+
}
354+
314355
/*Left fold arrow*/
315356
span.fancytree-node:not(.fancytree-folder) .fancytree-expander::before {
316357
content: "\ec21" !important;
317358
visibility: visible !important;
318359
color: var(--left-pane-text-color) !important;
319-
opacity: 0.1;
360+
opacity: 0.2;
320361
}
321362

322-
.note-split.type-text p {
363+
.note-split.type-text .note-detail > div > div > p {
323364
margin-top: 0.5rem !important;
324365
margin-bottom: 0.5rem !important;
325366
text-indent: 2em; /* first-line indent */
326367
text-align: justify; /* Align both ends */
327368
}
369+
/*Apply only to p and not to any sub elements within p*/
370+
.note-split.type-text p > * {
371+
text-indent: 0;
372+
}
373+
374+
.note-split.type-text blockquote{
375+
font-size:90%;
376+
}
377+
378+
.note-split.type-text a {
379+
color: var(--link-color);
380+
}
328381

329382
/*Make the notes title box not displaying focus animation*/
330383
input.note-title:focus{
@@ -339,7 +392,23 @@ div.note-detail pre.hljs{
339392
background-color: hsla(0,0%,78%,.3) !important;
340393
}
341394

395+
/*Spacing between the top and bottom of the text block*/
396+
div.note-detail .attachment-content-wrapper pre code, div.note-detail .ck-content pre code, div.note-detail .ck-mermaid__editing-view {
397+
padding-top: 0.5em !important;
398+
padding-bottom: 0.5em !important;
399+
}
400+
342401
.attribute-list > div, .inherited-attributes-widget > div{
343402
padding-top: 0px !important;
344403
padding-bottom: 0px !important;
404+
}
405+
406+
::selection {
407+
background-color: #385579;
408+
color: #FFFFFF;
409+
}
410+
411+
/*ckeditor*/
412+
.ck-content hr {
413+
height: 2px !important;
345414
}

0 commit comments

Comments
 (0)