Skip to content

Commit ce27918

Browse files
committed
fix: selected text too hard to read
fixes #39
1 parent 2de9390 commit ce27918

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

scss/_ctp-vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
--ctp-block-highlight-color: var(--color-base-30);
4646

4747
--ctp-selection-background-color: rgba(var(--ctp-yellow, 0.9));
48-
--ctp-selection-text-color: rgb(var(--color-base-00));
48+
--ctp-selection-text-color: var(--color-base-00);
4949

5050
--ctp-page-checkbox-color: rgb(var(--ctp-accent, var(--ctp-blue)));
5151
--ctp-page-checkbox-border-color: var(--ctp-primary-background-color);

scss/_custom.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ html[data-color='none'] {
186186
opacity: 1;
187187
}
188188

189-
// selection
190-
::selection {
191-
color: var(--ls-text-on-accent);
192-
}
193-
194189
.inline.with-bg-color {
195190
color: var(--ctp-primary-background-color);
196191

@@ -545,4 +540,9 @@ html[data-color='none'] {
545540
min-height: 70dvh;
546541
max-height: 70dvh;
547542
}
543+
544+
::selection {
545+
background-color: var(--ls-selection-background-color);
546+
color: var(--ls-selection-text-color);
547+
}
548548
}

scss/_ls-vars.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@
9999
}
100100

101101
// Source: https://github.com/logseq/logseq/blob/master/resources/css/common.css
102-
.light-theme,
103-
.dark-theme,
104102
html:not(html[data-color]),
105103
html[data-theme='dark'][data-color='logseq'],
106104
html[data-theme='light'][data-color='logseq'],
@@ -114,7 +112,6 @@ html[data-color='none'] {
114112
--ls-error-color: var(--ctp-error-color);
115113
--ls-warning-color: var(--ctp-warning-color);
116114
--ls-success-color: var(--ctp-success-color);
117-
--ls-text-on-accent: rgb(var(--ctp-text));
118115

119116
}
120117

0 commit comments

Comments
 (0)