-
Notifications
You must be signed in to change notification settings - Fork 10
/
Pretty Highlights.css
88 lines (76 loc) · 2.75 KB
/
Pretty Highlights.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
.theme-dark{
/*----------------------------------------------------------------
HIGHLIGHTERS
----------------------------------------------------------------*/
--yellow-highlighter: #FFF3A3A6;
--pink-highlighter: #FFB8EBA6;
--red-highlighter: #FF5582A6;
--blue-highlighter: #ADCCFFA6;
--green-highlighter: #BBFABBA6;
--purple-highlighter: #D2B3FFA6;
--orange-highlighter: #FFB86CA6;
--grey-highlighter: #CACFD9A6;
--text-highlight-rgb: var(--pink-highlighter);
}
.theme-light{
/*----------------------------------------------------------------
HIGHLIGHTERS
----------------------------------------------------------------*/
--yellow-highlighter: #FFF3A3A6;
--pink-highlighter: #FFB8EBA6;
--red-highlighter: #FF5582A6;
--blue-highlighter: #ADCCFFA6;
--green-highlighter: #BBFABBA6;
--purple-highlighter: #D2B3FFA6;
--orange-highlighter: #FFB86CA6;
--grey-highlighter: #CACFD9A6;
--text-highlight-rgb: var(--yellow-highlighter);
}
/*----------------------------------------------------------------
HIGHLIGHTING (MARK)
----------------------------------------------------------------*/
.markdown-preview-view mark {
font-weight: 500;
background-color: var(--text-highlight-rgb);
}
.cm-s-obsidian span.cm-highlight {
font-weight: 500;
background-color: var(--text-highlight-rgb);
}
/*----------------------------------------------------------------
REALISTIC HIGHLIGHT
----------------------------------------------------------------*/
mark.yellow{ --text-highlight-rgb: var(--yellow-highlighter); }
mark.pink{ --text-highlight-rgb: var(--pink-highlighter); }
mark.blue{ --text-highlight-rgb: var(--blue-highlighter); }
mark.green{ --text-highlight-rgb: var(--green-highlighter); }
mark.red{ --text-highlight-rgb: var(--red-highlighter); }
mark.grey{ --text-highlight-rgb: var(--grey-highlighter); }
mark.orange{ --text-highlight-rgb: var(--orange-highlighter); }
mark.red{ --text-highlight-rgb: var(--red-highlighter); }
mark.purple{ --text-highlight-rgb: var(--purple-highlighter); }
.markdown-preview-view mark {
margin: 0 -0.05em;
padding: 0.125em 0.15em;
border-radius: .25em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
span.cm-highlight {
padding: .1em 0.15em;
border-radius: .2em;
background: var(--text-highlight-rgb);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
span.cm-formatting-highlight{
/*margin: 0 0 0 -0.4em;*/
background: var(--text-highlight-rgb);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cm-highlight+span.cm-formatting-highlight {
background: var(--text-highlight-rgb);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}