Skip to content

Commit 76be8c1

Browse files
committed
Aesthetic adjustments
1 parent ec93925 commit 76be8c1

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

Article.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
.markdown-reading-view .article {
11-
font-family: "Libre Baskerville", serif;
11+
font-family: serif;
1212
}
1313

1414
.article h1,

Hide clutter.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
transition: none !important;
44
}
55

6+
/* Turn off cursor blink */
7+
.cm-cursor, .cm-cursorLayer {
8+
animation: none !important;
9+
}
10+
611
/* https://github.com/kepano/obsidian-hider */
712
/* Scrollbars only show on hover */
813
::-webkit-scrollbar {

Layout.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Always center tables */
2-
.markdown-preview-view table {
2+
.markdown-preview-view table,
3+
.table-wrapper {
34
margin: 0 auto !important;
45
}
56

@@ -10,11 +11,23 @@
1011
justify-content: center;
1112
}
1213

14+
/* ![[img.png|right|100]] */
15+
.image-embed[alt*="left"] {
16+
float: left;
17+
clear: left;
18+
}
19+
20+
.image-embed[alt*="right"] {
21+
float: right;
22+
clear: right;
23+
}
24+
1325
/* Remove the top margin of the first element in a note
1426
* First child is .markdown-preview-pushser
1527
* Second child is .mod-header
1628
* Third child is a div parent of .frontmatter
1729
* From the fourth onward there seem to be the actual document */
18-
.markdown-preview-sizer div:nth-of-type(4) * {
30+
.markdown-preview-sizer div:nth-of-type(4):has(h1) *,
31+
.markdown-preview-sizer div:nth-of-type(3):has(h1) * {
1932
margin-top: 0 !important;
2033
}

0 commit comments

Comments
 (0)