Skip to content

Commit f69bed6

Browse files
committedSep 7, 2023
fix: text selection colors
1 parent de2aa31 commit f69bed6

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed
 

‎assets/scss/theme/utilities.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ $siam: #565D50; // siam
196196
}
197197

198198
@mixin selection-dark {
199-
::-moz-selection { background: $alto; color: $codGray; }
200-
::selection { background: $alto; color: $codGray; }
199+
::-moz-selection { background: $sageGreen; color: $codGray; }
200+
::selection { background: $sageGreen; color: $codGray; }
201201
}
202202

203203
@mixin selection-light {
204-
::-moz-selection { background: $alto; color: $codGray; }
205-
::selection { background: $alto; color: $codGray; }
204+
::-moz-selection { background: $sageGreen; color: $codGray; }
205+
::selection { background: $sageGreen; color: $codGray; }
206206
}
207207

208208
@mixin gradientText {

‎components/blocks/text-block.vue

+10
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ export default {
139139
-webkit-text-fill-color: $alto;
140140
-moz-text-fill-color: $alto;
141141
text-fill-color: $alto;
142+
&::-moz-selection {
143+
-webkit-text-fill-color: $codGray;
144+
-moz-text-fill-color: $codGray;
145+
text-fill-color: $codGray;
146+
}
147+
&::selection {
148+
-webkit-text-fill-color: $codGray;
149+
-moz-text-fill-color: $codGray;
150+
text-fill-color: $codGray;
151+
}
142152
}
143153
}
144154
</style>

‎components/button/cta.vue

+10
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,16 @@ const path = computed(() => {
278278
-webkit-text-fill-color: $alto;
279279
-moz-text-fill-color: $alto;
280280
text-fill-color: $alto;
281+
&::-moz-selection {
282+
-webkit-text-fill-color: $codGray;
283+
-moz-text-fill-color: $codGray;
284+
text-fill-color: $codGray;
285+
}
286+
&::selection {
287+
-webkit-text-fill-color: $codGray;
288+
-moz-text-fill-color: $codGray;
289+
text-fill-color: $codGray;
290+
}
281291
}
282292
}
283293
}

0 commit comments

Comments
 (0)
Please sign in to comment.