Skip to content

Commit ea8e65e

Browse files
Stephan AngoStephan Ango
authored andcommitted
Improvements for dataview and front matter
1 parent d001dc2 commit ea8e65e

File tree

1 file changed

+42
-10
lines changed

1 file changed

+42
-10
lines changed

obsidian.css

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
3-
Minimal Obsidian 2.5.7 by @kepano
3+
Minimal Obsidian 2.5.8 by @kepano
44
55
This theme is designed to be used with the Minimal Theme Settings
66
plugin and the Hider plugin.
@@ -9,7 +9,7 @@ plugin and the Hider plugin.
99
Sponsor my work on Patreon:
1010
https://www.patreon.com/kepano
1111
12-
Readme:;
12+
Readme:
1313
https://github.com/kepano/obsidian-minimal
1414
1515
----------------------------------------------------------------
@@ -42,6 +42,7 @@ Minimal Styling
4242
Icons
4343
Tags
4444
Modals
45+
Front matter
4546
Drag ghost
4647
Workspace
4748
Window frame
@@ -683,9 +684,12 @@ body.plugin-sliding-panes .mod-root .graph-controls {
683684
/* --------------- */
684685
/* Dataview Plugin */
685686

687+
.markdown-preview-view .table-view-table {
688+
font-size:calc(var(--font-normal) - 1px);
689+
}
686690
.markdown-preview-view .table-view-table > thead > tr > th {
687691
font-weight:600;
688-
font-size:var(--font-normal);
692+
font-size:vcalc(var(--font-normal) - 1px);
689693
color:var(--text-normal);
690694
border-bottom:1px solid var(--text-faint);
691695
}
@@ -701,7 +705,7 @@ body.plugin-sliding-panes .mod-root .graph-controls {
701705
cursor:var(--cursor);
702706
}
703707
.workspace .view-content .checklist-plugin-main {
704-
padding:5px 10px 15px 15px;
708+
padding:10px 10px 15px 15px;
705709
--todoList-togglePadding--compact:2px;
706710
--todoList-listItemMargin--compact:2px;
707711
}
@@ -723,7 +727,7 @@ body.plugin-sliding-panes .mod-root .graph-controls {
723727
border-bottom:1px solid var(--background-modifier-border);
724728
}
725729
.checklist-plugin-main .group {
726-
padding:8px 0 0 0;
730+
padding:0 0 4px 0;
727731
}
728732
.checklist-plugin-main .group .classic:last-child,
729733
.checklist-plugin-main .group .compact:last-child {
@@ -737,7 +741,7 @@ body.plugin-sliding-panes .mod-root .graph-controls {
737741
.checklist-plugin-main .group .compact {
738742
background:transparent;
739743
border-radius:0;
740-
margin:0 auto;
744+
margin:1px auto;
741745
padding:0;
742746
}
743747
.checklist-plugin-main .group .classic .content {
@@ -1072,6 +1076,32 @@ input.prompt-input:hover {
10721076
height:12px;
10731077
}
10741078

1079+
/* --------------- */
1080+
/* Front matter */
1081+
1082+
.theme-dark pre.frontmatter,
1083+
.theme-light pre.frontmatter {
1084+
padding:0 0 0px 0;
1085+
background:transparent;
1086+
font-family:var(--text);
1087+
line-height:1.2;
1088+
border-radius:0;
1089+
border-bottom:0px solid var(--background-modifier-border);
1090+
}
1091+
.markdown-preview-view .table-view-table > thead > tr > th {
1092+
border-color:var(--background-modifier-border);
1093+
}
1094+
.theme-dark .frontmatter .token,
1095+
.theme-light .frontmatter .token,
1096+
.markdown-preview-section .frontmatter code {
1097+
font-family:var(--text);
1098+
color:var(--text-faint) !important;
1099+
}
1100+
.cm-s-obsidian .cm-hmd-frontmatter {
1101+
font-family:var(--text);
1102+
color:var(--text-muted);
1103+
}
1104+
10751105
/* --------------- */
10761106
/* Minimal settings */
10771107

@@ -1853,12 +1883,14 @@ input[type=checkbox]:checked {
18531883
padding: 0 10px 0 16px;
18541884
cursor:var(--cursor);
18551885
}
1886+
.nav-folder.mod-root > .nav-folder-title.is-being-dragged-over {
1887+
background-color:var(--text-selection);
1888+
}
18561889
.nav-folder-title.is-being-dragged-over {
1857-
background-color:var(--background-modifier-accent);
1858-
border-color:var(--background-modifier-accent);
1890+
background-color:var(--text-selection);
1891+
border-color:var(--text-selection);
18591892
border-radius:6px;
1860-
border-left:1px solid transparent;
1861-
border-right:1px solid transparent;
1893+
border:1px solid transparent;
18621894
}
18631895
.nav-folder-title-content {
18641896
padding:0px 4px 1px 0;

0 commit comments

Comments
 (0)