generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
48 lines (41 loc) · 1.32 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
/*!
* Inline Spoilers for Obsidian
* https://github.com/logonoff/obsidian-inline-spoilers
* SPDX-License-Identifier: GPL-3.0-or-later
*/
/** Reader **/
.inline_spoilers-spoiler {
background-color: var(--text-normal);
color: var(--text-normal);
}
.inline_spoilers-revealed,
.inline_spoilers-revealed .inline_spoilers-spoiler {
background-color: var(--code-background);
color: var(--code-normal);
}
/** Editor **/
.inline_spoilers-editor-spoiler {
background-color: var(--text-normal);
color: var(--text-normal);
}
.cm-active .inline_spoilers-editor-spoiler,
.inline_spoilers-revealed .inline_spoilers-editor-spoiler {
background-color: var(--code-background);
color: var(--code-normal);
}
/** editor - delimiter **/
.inline_spoilers-editor-spoiler-delimiter {
background-color: var(--code-background);
color: var(--text-normal);
}
.is-live-preview .inline_spoilers-editor-spoiler-delimiter {
display: none;
}
.is-live-preview .cm-active .inline_spoilers-editor-spoiler-delimiter {
display: unset;
}
/** overrides for links **/
.inline_spoilers-spoiler *:not(.inline_spoilers-revealed .inline_spoilers-spoiler *, .inline_spoilers-revealed *),
.inline_spoilers-editor-spoiler *:not(.cm-active .inline_spoilers-editor-spoiler *, .inline_spoilers-revealed .inline_spoilers-editor-spoiler *) {
color: var(--text-normal) !important;
}