-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayout.css
62 lines (53 loc) · 1.27 KB
/
Layout.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* Always center tables */
.markdown-preview-view table,
.table-wrapper {
margin: 0 auto !important;
}
.excalidraw-embedded-img {
margin: auto !important;
}
/* Always center mermaid diagrams and images */
p:has(.image-embed),
p:has(img),
.mermaid {
display: flex;
justify-content: center;
}
/* ![[img.png|right|100]] */
.image-embed[alt*="left"] {
float: left;
clear: left;
}
.image-embed[alt*="right"] {
float: right;
clear: right;
}
/* Remove the top margin of the first element in a note
* First child is .markdown-preview-pushser
* Second child is .mod-header
* Third child is a div parent of .frontmatter
* From the fourth onward there seem to be the actual document */
.markdown-preview-sizer div:nth-of-type(4):has(h1) *,
.markdown-preview-sizer div:nth-of-type(3):has(h1) * {
margin-top: 0 !important;
}
/* Note level class: the width of the note is the screen width */
/* Use like this:
---
cssclass: fullwidth
tags: ...
aliases: ...
...
---
*/
.fullwidth {
--file-line-width: 100% !important;
}
/* Callouts: Apply uniform margins left and right. Center the icon vertically. */
div.callout-icon {
margin: auto 1em auto 0;
}
/* remove redundant padding at the bottom */
.callout:not(.is-collapsible):has(.callout-content) {
padding-bottom: 0 !important;
}