summaryrefslogtreecommitdiff
path: root/_sass
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-08 23:54:54 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-08 23:54:54 +0800
commitf3d2a6fc15e2889c563459ef86137df275714d2c (patch)
treef5e6a5fe30ae2e2b0d140e7e3e224f23dced2370 /_sass
parent1ce9fbe44d4bd8c22556321ef8c206baabbec5c7 (diff)
feat: custom selection style support (#119)
Diffstat (limited to '_sass')
-rw-r--r--_sass/yat/_base.scss23
1 files changed, 23 insertions, 0 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss
index 997574d..cb83d82 100644
--- a/_sass/yat/_base.scss
+++ b/_sass/yat/_base.scss
@@ -291,3 +291,26 @@ table {
overflow: hidden;
}
+/**
+ * Text Selection
+ */
+::selection {
+ color: $selection-color;
+ background-color: $selection-background-color;
+}
+::-moz-selection { /* Code for Firefox */
+ color: $selection-color;
+ background-color: $selection-background-color;
+}
+::-ms-selection {
+ color: $selection-color;
+ background-color: $selection-background-color;
+}
+::-o-selection {
+ color: $selection-color;
+ background-color: $selection-background-color;
+}
+::-webkit-selection {
+ color: $selection-color;
+ background-color: $selection-background-color;
+}