chore: Use CSS variables
This commit is contained in:
parent
6300696a22
commit
3fee658938
5 changed files with 28 additions and 24 deletions
|
@ -31,7 +31,7 @@ hr {
|
||||||
-moz-border-left-colors: none;
|
-moz-border-left-colors: none;
|
||||||
-moz-border-right-colors: none;
|
-moz-border-right-colors: none;
|
||||||
-moz-border-top-colors: none;
|
-moz-border-top-colors: none;
|
||||||
border-color: #ddd;
|
border-color: var(--color-lightGray);
|
||||||
border-image: none;
|
border-image: none;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px 0 0;
|
border-width: 1px 0 0;
|
||||||
|
@ -223,7 +223,7 @@ button.flat,
|
||||||
padding: 7px 7px;
|
padding: 7px 7px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
background: #393F3F;
|
background: #393F3F;
|
||||||
color: #ddd;
|
color: var(--color-lightGray);
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
border-radius: 0 2px;
|
border-radius: 0 2px;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ input + .error {
|
||||||
padding: 7px 7px;
|
padding: 7px 7px;
|
||||||
margin-top: -14px;
|
margin-top: -14px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
background: #ddd;
|
background: var(--color-lightGray);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #cc0000;
|
background-color: #cc0000;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
@ -685,7 +685,7 @@ input[type=hidden].blur + [type="button"] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
border-left: 1px solid #ddd;
|
border-left: 1px solid var(--color-lightGray);
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
z-index: 1010;
|
z-index: 1010;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -698,7 +698,7 @@ input[type=hidden].blur + [type="button"] {
|
||||||
}
|
}
|
||||||
#umap-ui-container.dark {
|
#umap-ui-container.dark {
|
||||||
border-left: 1px solid #222;
|
border-left: 1px solid #222;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
color: #efefef;
|
color: #efefef;
|
||||||
}
|
}
|
||||||
#umap-ui-container.fullwidth {
|
#umap-ui-container.fullwidth {
|
||||||
|
@ -913,7 +913,7 @@ input:invalid {
|
||||||
color: #eeeeec;
|
color: #eeeeec;
|
||||||
padding: 0 7px;
|
padding: 0 7px;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
}
|
}
|
||||||
.dark .umap-close-link:hover {
|
.dark .umap-close-link:hover {
|
||||||
background-color: #2e3436;
|
background-color: #2e3436;
|
||||||
|
|
|
@ -205,8 +205,8 @@ body.content #umap-ui-container {
|
||||||
|
|
||||||
input[type="submit"],
|
input[type="submit"],
|
||||||
.button {
|
.button {
|
||||||
background-color: var(--color-waterMint);
|
background-color: var(--button-primary-background);
|
||||||
color: var(--color-darkBlue);
|
color: var(--button-primary-color);
|
||||||
}
|
}
|
||||||
.button-primary {
|
.button-primary {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -215,8 +215,8 @@ input[type="submit"],
|
||||||
background-color: #35537c;
|
background-color: #35537c;
|
||||||
}
|
}
|
||||||
.wrapper .neutral, .wrapper input[type="submit"].neutral {
|
.wrapper .neutral, .wrapper input[type="submit"].neutral {
|
||||||
background-color: var(--color-lightGray);
|
background-color: var(--button-neutral-background);
|
||||||
color: var(--color-darkGray);
|
color: var(--button-neutral-color);
|
||||||
}
|
}
|
||||||
.wrapper.somber {
|
.wrapper.somber {
|
||||||
background-color: #2E3641;
|
background-color: #2E3641;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* Same as leaflet background, to work around screen blincking
|
* Same as leaflet background, to work around screen blincking
|
||||||
* between DOM is loaded and JS is read to render the map.
|
* between DOM is loaded and JS is read to render the map.
|
||||||
*/
|
*/
|
||||||
background-color: #ddd;
|
background-color: var(--color-lightGray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ ul.photon-autocomplete {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
border-right: 1px solid #eee;
|
border-right: 1px solid #eee;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url('./img/24.svg');
|
background-image: url('./img/24.svg');
|
||||||
|
@ -446,7 +446,7 @@ ul.photon-autocomplete {
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
padding: 40px 20px;
|
padding: 40px 20px;
|
||||||
border: 1px solid #222;
|
border: 1px solid #222;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
color: #efefef;
|
color: #efefef;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
@ -464,7 +464,7 @@ ul.photon-autocomplete {
|
||||||
background-position: -4px -4px;
|
background-position: -4px -4px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url('./img/16.svg');
|
background-image: url('./img/16.svg');
|
||||||
background-color: #323737 !important;
|
background-color: var(--color-darkGray) !important;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-indent: -9999px;
|
text-indent: -9999px;
|
||||||
min-height: inherit;
|
min-height: inherit;
|
||||||
|
@ -518,7 +518,7 @@ ul.photon-autocomplete {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
width: auto;
|
width: auto;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -625,7 +625,7 @@ ul.photon-autocomplete {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
|
@ -728,7 +728,7 @@ ul.photon-autocomplete {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 46px;
|
line-height: 46px;
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid var(--color-lightGray);
|
||||||
opacity: 0.93;
|
opacity: 0.93;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
@ -884,10 +884,10 @@ ul.photon-autocomplete {
|
||||||
}
|
}
|
||||||
.leaflet-inplace-toolbar a {
|
.leaflet-inplace-toolbar a {
|
||||||
background-image: url('./img/16-white.svg');
|
background-image: url('./img/16-white.svg');
|
||||||
background-color: #323737!important;
|
background-color: var(--color-darkGray)!important;
|
||||||
}
|
}
|
||||||
.leaflet-toolbar-tip {
|
.leaflet-toolbar-tip {
|
||||||
background-color: #323737;
|
background-color: var(--color-darkGray);
|
||||||
}
|
}
|
||||||
.leaflet-inplace-toolbar a:hover {
|
.leaflet-inplace-toolbar a:hover {
|
||||||
background-color: #353c3e!important;
|
background-color: #353c3e!important;
|
||||||
|
|
|
@ -36,7 +36,7 @@ footer .i18n_switch {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.umap-nav a {
|
.umap-nav a {
|
||||||
color: #263B58;
|
color: var(--color-darkBlue);
|
||||||
padding: .4rem;
|
padding: .4rem;
|
||||||
}
|
}
|
||||||
.umap-nav a:hover {
|
.umap-nav a:hover {
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
:root {
|
:root {
|
||||||
/* In use for primary buttons. */
|
/* Colors. */
|
||||||
--color-darkBlue: #263B58;
|
|
||||||
--color-waterMint: #B9F5D2;
|
--color-waterMint: #B9F5D2;
|
||||||
|
--color-darkBlue: #263B58;
|
||||||
/* In use for secondary buttons. */
|
|
||||||
--color-lightGray: #ddd;
|
--color-lightGray: #ddd;
|
||||||
--color-darkGray: #323737;
|
--color-darkGray: #323737;
|
||||||
|
|
||||||
|
/* Buttons. */
|
||||||
|
--button-primary-background: var(--color-waterMint);
|
||||||
|
--button-primary-color: var(--color-darkBlue);
|
||||||
|
--button-neutral-background: var(--color-lightGray);
|
||||||
|
--button-neutral-color: var(--color-darkGray);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue