Add CSS variables for marker colours

This commit is contained in:
James Lyne 2021-12-07 21:48:54 +00:00
parent 0359d3fe8c
commit 6b05ef8f8f
2 changed files with 6 additions and 4 deletions

View File

@ -153,9 +153,10 @@
/* Theme colours */
:root {
--background-base: #222222; /* Foreground UI elements */
--background-dark: #121212; /* Body/map labels */
--background-dark: #121212; /* Body/Splash screen/Shadows */
--background-light: #363636; /* Scrollbars/inputs */
--background-error: #771616; /* Errors */
--background-marker: var(--background-dark); /* Map markers */
--background-disabled: #555555; /* Disabled controls */
--background-hover: #363636; /* :hovered buttons/menu items */
@ -173,6 +174,7 @@
--text-emphasis: rgba(255, 255, 255, 0.87); /* Chat messages/:focus inputs */
--text-subtle: rgba(255, 255, 255, 0.5); /* Skeletons/secondary text */
--text-disabled: var(--text-subtle); /* Disabled controls */
--text-marker: var(--text-base); /* Map markers */
--text-hover: var(--text-base); /* Text in :hover buttons */
--text-active: var(--text-base); /* Text in :active buttons */

View File

@ -36,7 +36,7 @@
position: absolute;
left: 0;
background-color: var(--text-emphasis);
border: 0.2rem solid var(--background-dark);
border: 0.2rem solid var(--background-marker);
border-radius: 50%;
}
@ -116,8 +116,8 @@
font-size: 1.5rem;
line-height: 1;
white-space: pre-line;
color: var(--text-base);
background: var(--background-dark);
color: var(--text-marker);
background: var(--background-marker);
padding: 0.2rem;
display: none;
margin-left: 0.2rem;