set selection color

This commit is contained in:
2025-07-31 20:23:54 +02:00
parent df7dbfbfdc
commit d2c0f76f5e
+6
View File
@@ -32,6 +32,11 @@ html {
} }
::selection {
background-color: var(--primary-color);
color: #fff;
}
/* evil hack. this will run for all browsers but safari and similar */ /* evil hack. this will run for all browsers but safari and similar */
@media (min-resolution: .001dpcm) and (pointer: coarse) { @media (min-resolution: .001dpcm) and (pointer: coarse) {
[popover] { [popover] {
@@ -317,6 +322,7 @@ button {
min-width: 10rem; min-width: 10rem;
background-color: #232222; background-color: #232222;
color: #f3f3f3; color: #f3f3f3;
container-type: normal;
&::before { &::before {
content: attr(data-title); content: attr(data-title);
position: absolute; position: absolute;