8000 code block selection working again · bcdavasconcelos/Themes@6d878b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d878b3

Browse files
author
bernardo
committed
code block selection working again
1 parent e691775 commit 6d878b3

File tree

10 files changed

+1932
-4135
lines changed

10 files changed

+1932
-4135
lines changed

Obsidian/Ayu Light/obsidian.css

+14-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
--text-faint: #b1b4b9;
4747
--text-error: #800000;
4848
--text-error-hover: #990000;
49-
--text-highlight-bg: var(--text-selection);
49+
--text-highlight-bg: rgba(227, 238, 242, 0.50);
50+
--text-search-highlight-bg: rgba(150, 150, 242, 0.8);
5051
--text-selection: rgba(227, 238, 242, 0.50);
5152
--text-on-accent: var(--text-normal);
5253
--interactive-normal: var(--background-primary);
@@ -127,9 +128,12 @@
127128
--vim-cursor: #474949;
128129
--header-before-color: #b1b4b8;
129130
--blockquote-bg: var(--background-primary);
131+
--bracket-color: var(--header-before-color);
132+
--checkbox-color: var(--tag-bg);
133+
--checkbox-enabled: var(--file-name-color);
134+
--active-title-border: var(--interactive-accent);
130135
}
131136

132-
133137
/*-------------------------------------*/
134138
/* Search the following lines */
135139
/* to jump to specific section */
@@ -170,7 +174,6 @@ a,
170174
.internal-link,
171175
.cm-hmd-internal-link,
172176
.cm-link,
173-
.cm-formatting-link,
174177
.cm-url {
175178
text-decoration: none !important;
176179
background-color: var(--link-bg)!important;
@@ -181,14 +184,15 @@ a:hover,
181184
.internal-link:hover,
182185
.cm-hmd-internal-link:hover,
183186
.cm-link:hover,
184-
.cm-formatting-link:hover,
185187
.cm-url:hover {
186188
background-color: var(--link-bg-hover)!important;
187189
color: var(--link-text-hover)!important;
188190
}
189191

190192

191193

194+
195+
192196
/* the url string in editor */
193197
.cm-s-obsidian span.cm-string{
194198
color: var(--text-muted)!important;
@@ -741,12 +745,11 @@ bottom: 0px !important;
741745

742746
/* Editor CodeBlock TEXT Appearance */
743747
.cm-s-obsidian pre.HyperMD-codeblock {
744-
font-family: monaco !important;
748+
font-family: var(--font-family-code) !important;
745749
font-size: var(--font-size-code) !important;
746750
padding: 1px !important;
747751
display: block;
748752
color: var(--code-block) !important;
749-
background-color: var(--pre-code-bg)!important;
750753
font-weight: 500;
751754
}
752755

@@ -1875,3 +1878,8 @@ color: var(--text-accent) !important;
18751878
/* .markdown-embed-content > hr:first-child + hr { display: none; } */
18761879
/* Remove embed yaml second separator */
18771880
/* .markdown-embed-content > hr:first-child + p + hr { display: none; } */
1881+
1882+
span.obsidian-search-match-highlight{
1883+
color: var(--text-normal) !important;
1884+
background-color: var(--text-search-highlight-bg)!important;
1885+
}

Obsidian/Ayu Mirage/obsidian.css

+3-4
10000
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ a,
175175
.internal-link,
176176
.cm-hmd-internal-link,
177177
.cm-link,
178-
.cm-formatting-link,
179178
.cm-url {
180179
text-decoration: none !important;
181180
background-color: var(--link-bg)!important;
@@ -186,14 +185,15 @@ a:hover,
186185
.internal-link:hover,
187186
.cm-hmd-internal-link:hover,
188187
.cm-link:hover,
189-
.cm-formatting-link:hover,
190188
.cm-url:hover {
191189
background-color: var(--link-bg-hover)!important;
192190
color: var(--link-text-hover)!important;
193191
}
194192

195193

196194

195+
196+
197197
/* the url string in editor */
198198
.cm-s-obsidian span.cm-string{
199199
color: var(--text-muted)!important;
@@ -746,12 +746,11 @@ bottom: 0px !important;
746746

747747
/* Editor CodeBlock TEXT Appearance */
748748
.cm-s-obsidian pre.HyperMD-codeblock {
749-
font-family: monaco !important;
749+
font-family: var(--font-family-code) !important;
750750
font-size: var(--font-size-code) !important;
751751
padding: 1px !important;
752752
display: block;
753753
color: var(--code-block) !important;
754-
background-color: var(--pre-code-bg)!important;
755754
font-weight: 500;
756755
}
757756

Obsidian/Charcoal/obsidian.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ a,
172172
.internal-link,
173173
.cm-hmd-internal-link,
174174
.cm-link,
175-
.cm-formatting-link,
176175
.cm-url {
177176
text-decoration: none !important;
178177
background-color: var(--link-bg)!important;
@@ -183,14 +182,15 @@ a:hover,
183182
.internal-link:hover,
184183
.cm-hmd-internal-link:hover,
185184
.cm-link:hover,
186-
.cm-formatting-link:hover,
187185
.cm-url:hover {
188186
background-color: var(--link-bg-hover)!important;
189187
color: var(--link-text-hover)!important;
190188
}
191189

192190

193191

192+
193+
194194
/* the url string in editor */
195195
.cm-s-obsidian span.cm-string{
196196
color: var(--text-muted)!important;
@@ -743,12 +743,11 @@ bottom: 0px !important;
743743

744744
/* Editor CodeBlock TEXT Appearance */
745745
.cm-s-obsidian pre.HyperMD-codeblock {
746-
font-family: monaco !important;
746+
font-family: var(--font-family-code) !important;
747747
font-size: var(--font-size-code) !important;
748748
padding: 1px !important;
749749
display: block;
750750
color: var(--code-block) !important;
751-
background-color: var(--pre-code-bg)!important;
752751
font-weight: 500;
753752
}
754753

Obsidian/Even Less/obsidian.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ code{
716716

717717
/* Editor CodeBlock TEXT Appearance */
718718
.cm-s-obsidian pre.HyperMD-codeblock {
719-
font-family: monaco !important;
719+
font-family: var(--font-family-code) !important;
720720
font-size: var(--font-size-code) !important;
721721
padding: 1px !important;
722722
display: block;

Obsidian/GDCT Light/obsidian.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
--text-error: #800000;
4848
--text-error-hover: #990000;
4949
--text-highlight-bg: var(--text-selection);
50+
--text-search-highlight-bg: rgba(280, 137, 135, 0.9);
5051
--text-selection: rgba(232, 167, 165, 0.50);
5152
--text-on-accent: var(--text-normal);
5253
--interactive-normal: var(--background-primary);
@@ -171,7 +172,6 @@ a,
171172
.internal-link,
172173
.cm-hmd-internal-link,
173174
.cm-link,
174-
.cm-formatting-link,
175175
.cm-url {
176176
text-decoration: none !important;
177177
background-color: var(--link-bg)!important;
@@ -182,14 +182,15 @@ a:hover,
182182
.internal-link:hover,
183183
.cm-hmd-internal-link:hover,
184184
.cm-link:hover,
185-
.cm-formatting-link:hover,
186185
.cm-url:hover {
187186
background-color: var(--link-bg-hover)!important;
188187
color: var(--link-text-hover)!important;
189188
}
190189

191190

192191

192+
193+
193194
/* the url string in editor */
194195
.cm-s-obsidian span.cm-string{
195196
color: var(--text-muted)!important;
@@ -742,12 +743,11 @@ bottom: 0px !important;
742743

743744
/* Editor CodeBlock TEXT Appearance */
744745
.cm-s-obsidian pre.HyperMD-codeblock {
745-
font-family: monaco !important;
746+
font-family: var(--font-family-code) !important;
746747
font-size: var(--font-size-code) !important;
747748
padding: 1px !important;
748749
display: block;
749750
color: var(--code-block) !important;
750-
background-color: var(--pre-code-bg)!important;
751751
font-weight: 500;
752752
}
753753

@@ -1876,3 +1876,7 @@ color: var(--text-accent) !important;
18761876
/* .markdown-embed-content > hr:first-child + hr { display: none; } */
1877 F438 1877
/* Remove embed yaml second separator */
18781878
/* .markdown-embed-content > hr:first-child + p + hr { display: none; } */
1879+
1880+
span.obsidian-search-match-highlight{
1881+
background-color: var(--text-search-highlight-bg)!important;
1882+
}

Obsidian/GDCT/obsidian.css

+9-4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
--text-error: #800000;
4848
--text-error-hover: #990000;
4949
--text-highlight-bg: var(--text-selection);
50+
--text-search-highlight-bg: rgba(262, 127, 125, 0.9);
5051
--text-selection: rgba(250,250,250,0.045);
5152
--text-on-accent: var(--text-normal);
5253
--interactive-normal: var(--background-primary);
@@ -173,7 +174,6 @@ a,
173174
.internal-link,
174175
.cm-hmd-internal-link,
175176
.cm-link,
176-
.cm-formatting-link,
177177
.cm-url {
178178
text-decoration: none !important;
179179
background-color: var(--link-bg)!important;
@@ -184,14 +184,15 @@ a:hover,
184184
.internal-link:hover,
185185
.cm-hmd-internal-link:hover,
186186
.cm-link:hover,
187-
.cm-formatting-link:hover,
188187
.cm-url:hover {
189188
background-color: var(--link-bg-hover)!important;
190189
color: var(--link-text-hover)!important;
191190
}
192191

193192

194193

194+
195+
195196
/* the url string in editor */
196197
.cm-s-obsidian span.cm-string{
197198
color: var(--text-muted)!important;
@@ -744,12 +745,11 @@ bottom: 0px !important;
744745

745746
/* Editor CodeBlock TEXT Appearance */
746747
.cm-s-obsidian pre.HyperMD-codeblock {
747-
font-family: monaco !important;
748+
font-family: var(--font-family-code) !important;
748749
font-size: var(--font-size-code) !important;
749750
padding: 1px !important;
750751
display: block;
751752
color: var(--code-block) !important;
752-
background-color: var(--pre-code-bg)!important;
753753
font-weight: 500;
754754
}
755755

@@ -1888,3 +1888,8 @@ color: var(--text-accent) !important;
18881888
/* .markdown-embed-content > hr:first-child + hr { display: none; } */
18891889
/* Remove embed yaml second separator */
18901890
/* .markdown-embed-content > hr:first-child + p + hr { display: none; } */
1891+
1892+
span.obsidian-search-match-highlight{
1893+
color: var(--text-normal)!important;
1894+
background-color: var(--text-search-highlight-bg)!important;
1895+
}

Obsidian/Graphite/obsidian.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ a,
174174
.internal-link,
175175
.cm-hmd-internal-link,
176176
.cm-link,
177-
.cm-formatting-link,
178177
.cm-url {
179178
text-decoration: none !important;
180179
background-color: var(--link-bg)!important;
@@ -185,14 +184,15 @@ a:hover,
185184
.internal-link:hover,
186185
.cm-hmd-internal-link:hover,
187186
.cm-link:hover,
188-
.cm-formatting-link:hover,
189187
.cm-url:hover {
190188
background-color: var(--link-bg-hover)!important;
191189
color: var(--link-text-hover)!important;
192190
}
193191

194192

195193

194+
195+
196196
/* the url string in editor */
197197
.cm-s-obsidian span.cm-string{
198198
color: var(--text-muted)!important;
@@ -745,12 +745,11 @@ bottom: 0px !important;
745745

746746
/* Editor CodeBlock TEXT Appearance */
747747
.cm-s-obsidian pre.HyperMD-codeblock {
748-
font-family: monaco !important;
748+
font-family: var(--font-family-code) !important;
749749
font-size: var(--font-size-code) !important;
750750
padding: 1px !important;
751751
display: block;
752752
color: var(--code-block) !important;
753-
background-color: var(--pre-code-bg)!important;
754753
font-weight: 500;
755754
}
756755

0 commit comments

Comments
 (0)
0