generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
38 lines (34 loc) · 805 Bytes
/
styles.css
File metadata and controls
38 lines (34 loc) · 805 Bytes
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
.css-color-inlay {
height: 1em;
width: 1em;
border: 1px solid var(--code-normal);
display: inline-block;
border-radius: 0.2em;
vertical-align: middle;
margin-right: 0.3em;
margin-top: -0.1em;
background: currentColor;
&.css-color-name-hidden {
margin-right: 0;
}
input {
height: 0;
width: 0;
opacity: 0;
}
}
/* Make inlay colors in the live editor appear part of the code block */
.css-color-wrapper:not(:has(.css-color-name-hidden)).cm-inline-code:not(
.cm-formatting
) {
padding-inline-end: 0;
border-start-end-radius: 0;
border-end-end-radius: 0;
border-inline-end: 0;
& + .cm-inline-code:not(.cm-formatting) {
padding-inline-start: 0;
border-start-start-radius: 0;
border-end-start-radius: 0;
border-inline-start: 0;
}
}