generated from chrisgrieser/pseudometa-obsidian-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
94 lines (75 loc) · 2.69 KB
/
styles.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.variable-safety-for-obsidian-css {
--text-faint: "";
}
/* ────────────────────────────────────────────────────────────────────────── */
/* NOTE
Overwriting of (some) core styling is done on purpose. As noted in the README,
Quadro is intended to be used in specialized vaults, solely dedicated to QDA.
I assume that running multiple document.querySelector on every file-open and
adding classes to quite a few elements would have somewhat of a performance
impact, which I wanted to avoid if Quadro is to be run in dedicated vaults only
anyway.
*/
/* ────────────────────────────────────────────────────────────────────────── */
/* BLOCK IDS */
/* Make them less visible */
.cm-line .cm-blockid {
opacity: 0.3;
}
/* Hide Block Id on non-active line */
.cm-line:not(.cm-active) .cm-blockid {
display: none;
}
/* ────────────────────────────────────────────────────────────────────────── */
/* EMBEDDED LINKS */
.markdown-embed.internal-embed.inline-embed {
--between-embeds-spacing: 2rem;
border: none;
padding: 0;
padding-bottom: var(--between-embeds-spacing);
}
/* show location of embedded block links */
.markdown-embed.internal-embed.inline-embed::after {
/* destination is saved in `alt` attribute */
content: attr(alt);
color: var(--text-faint);
padding-left: 1.75rem;
padding-top: 4px;
font-size: 90%;
}
/* move link down to destination text */
.markdown-embed.internal-embed.inline-embed .markdown-embed-link {
top: unset;
left: 0;
}
/* remove wasted space */
.markdown-embed.internal-embed.inline-embed .markdown-embed-title {
display: none;
}
.markdown-embed.internal-embed.inline-embed p {
margin-bottom: 0;
}
/* spacing added by some themes (e.g. Prism) */
body .internal-embed .markdown-embed-content {
padding: 0;
}
/* ────────────────────────────────────────────────────────────────────────── */
/* QUADRO UI ELEMENTS */
.quadro-settings-textarea {
min-height: 5rem;
min-width: 15rem;
}
.quadro-settings-input {
min-width: 15rem;
}
.quadro-ribbon-button {
border: 1px solid var(--text-faint);
}
.quadro-wide-input {
width: 100%;
min-width: 20rem;
}
.quadro-large-textarea {
width: 100%;
min-height: 10rem;
}