User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
test
 
Sur (talk | contribs)
mNo edit summary
 
(128 intermediate revisions by the same user not shown)
Line 1: Line 1:
:root {
.icon {
   --custom-span-color: #3498db; /* Define the custom color */
   filter: invert(0%);
}
}


span {
@media (prefers-color-scheme: dark) {
   color: var(--custom-span-color); /* Apply the custom color to all <span> elements */
   .icon {
    filter: invert(100%);
  }
}
}

Latest revision as of 18:56, 6 October 2024

.icon {
  filter: invert(0%);
}

@media (prefers-color-scheme: dark) {
  .icon {
    filter: invert(100%);
  }
}