Skip to content

Commit 8e5ab60

Browse files
Stephan AngoStephan Ango
authored andcommitted
Add True Black mode
1 parent 539d54a commit 8e5ab60

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

obsidian.css

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ experience. Remove each line if you want to re-activate the feature */
169169
170170
These values are mostly driven by the options above */
171171

172+
.theme-light.minimal-light-contrast .workspace-fake-target-overlay.is-in-sidebar,
172173
.theme-light.minimal-light-contrast .titlebar,
173174
.theme-light.minimal-light-contrast .status-bar,
174175
.theme-light.minimal-light-contrast .workspace-ribbon.mod-left,
@@ -230,7 +231,6 @@ experience. Remove each line if you want to re-activate the feature */
230231
--text-highlight-bg-active:rgba(255, 224, 0, 0.5);
231232
--background-modifier-cover:hsla(var(--base-h),var(--base-s),calc(var(--base-l) - 5%),0.7);
232233
}
233-
234234
.theme-light.minimal-light-tonal {
235235
--background-primary:hsl(var(--base-h),var(--base-s),var(--base-l));
236236
--background-primary-alt:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 4%));
@@ -239,6 +239,15 @@ experience. Remove each line if you want to re-activate the feature */
239239
--background-secondary:hsl(var(--base-h),var(--base-s),var(--base-d));
240240
--background-tertiary:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 4%));
241241
}
242+
.theme-dark.minimal-dark-black {
243+
--base-d:0%;
244+
--background-primary-alt:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 6%));
245+
--background-tertiary:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 8%));
246+
--background-modifier-border:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 8%));
247+
--background-modifier-border-hover:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 14%));
248+
--background-modifier-cover:hsla(var(--base-h),var(--base-s),calc(var(--base-d) + 6%),0.9);
249+
}
250+
242251

243252
/*----------------------------------------------------------------
244253
@@ -469,6 +478,7 @@ body.plugin-sliding-panes .mod-root .graph-controls {
469478
padding:0 10px;
470479
--color-background-day-empty:var(--background-secondary-alt);
471480
--color-background-day-active:var(--background-tertiary);
481+
--color-background-day-hover:var(--background-tertiary);
472482
--color-dot:var(--text-faint);
473483
--color-text-title:var(--text-normal);
474484
--color-text-heading:var(--text-muted);
@@ -765,6 +775,9 @@ input.prompt-input, input.prompt-input:hover {
765775
opacity:0.8;
766776
border-radius:0 !important;}
767777

778+
.mod-drag {
779+
opacity:1;
780+
background-color:var(--text-selection);}
768781

769782
/* --------------- */
770783
/* Workspace */
@@ -792,14 +805,14 @@ input.prompt-input, input.prompt-input:hover {
792805
.workspace-split.mod-root .workspace-leaf-content {
793806
}
794807
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle {
795-
height:2px;
808+
height:3px;
796809
background:transparent;
797810
border-bottom:1px solid var(--background-modifier-border);
798811
}
799812
.workspace-split.mod-right-split > .workspace-leaf-resize-handle {
800813
background:transparent;
801814
border-left:1px solid var(--background-modifier-border);
802-
width:2px !important;
815+
width:3px !important;
803816
}
804817
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
805818
.workspace-split.mod-left-split > .workspace-leaf-resize-handle {
@@ -812,6 +825,7 @@ input.prompt-input, input.prompt-input:hover {
812825
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle:active,
813826
.workspace-split.mod-left-split > .workspace-leaf-resize-handle:active {
814827
border-color:var(--background-modifier-border-hover);
828+
border-width:2px;
815829
}
816830
.workspace-tab-container-before,
817831
.workspace-tab-container-after{
@@ -921,6 +935,7 @@ border-bottom:1px solid #999;
921935
/* Title Bar */
922936

923937
.view-actions {
938+
margin-right:1px;
924939
z-index:15;
925940
background:var(--background-primary);
926941
}
@@ -938,7 +953,7 @@ border-bottom:1px solid #999;
938953
display:inline-block;
939954
vertical-align:bottom;
940955
position:absolute;
941-
right:0;
956+
right:40px;
942957
pointer-events:none;
943958
}
944959
.workspace-leaf-header,

0 commit comments

Comments
 (0)