chore: Use CSS variables

This commit is contained in:
David Larlet 2024-02-09 22:22:21 -05:00
parent 148c119c05
commit 22412ffe13
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
4 changed files with 25 additions and 14 deletions

View file

@ -149,12 +149,12 @@ h2.section {
}
h2.tabs {
text-transform: uppercase;
color: #263B58;
color: var(--color-darkBlue);
text-align: left;
padding-top: 28px;
}
h2.tabs a {
color: #263B58;
color: var(--color-darkBlue);
text-decoration: underline;
text-decoration-thickness: 3px;
text-decoration-skip-ink: none;
@ -162,7 +162,7 @@ h2.tabs a {
}
h2.tabs a:not(.selected) {
font-weight: normal;
color: #263B58;
color: var(--color-darkBlue);
text-decoration: none;
margin-right: 0;
}
@ -203,8 +203,8 @@ body.content #umap-ui-container {
input[type="submit"],
.button {
background-color: #B9F5D2;
color: #263B58;
background-color: var(--color-waterMint);
color: var(--color-darkBlue);
}
.button-primary {
font-weight: bold;
@ -213,8 +213,8 @@ input[type="submit"],
background-color: #35537c;
}
.wrapper .neutral, .wrapper input[type="submit"].neutral {
background-color: #ddd;
color: #323737;
background-color: var(--color-lightGray);
color: var(--color-darkGray);
}
.wrapper.somber {
background-color: #2E3641;
@ -397,7 +397,7 @@ ul.umap-autocomplete {
}
}
.table-header form input {
border: 2px solid #263B58;
border: 2px solid var(--color-darkBlue);
border-radius: 0;
padding: .5rem 1rem;
margin-bottom: 0;
@ -408,7 +408,7 @@ ul.umap-autocomplete {
width: 30ch;
}
.table-header form input[type="submit"] {
background-color: #263B58;
background-color: var(--color-darkBlue);
color: white;
font-weight: bold;
}
@ -417,8 +417,8 @@ ul.umap-autocomplete {
width: inherit;
display: inline;
padding: .5rem 1rem;
border: 2px solid #263B58;
color: #263B58;
border: 2px solid var(--color-darkBlue);
color: var(--color-darkBlue);
font-weight: bold;
background-color: initial;
margin-bottom: 0;
@ -440,7 +440,7 @@ ul.umap-autocomplete {
}
.table-wrapper table a,
.table-wrapper table thead {
color: #263B58;
color: var(--color-darkBlue);
}
.table-wrapper table thead th:last-of-type {
min-width: 240px;
@ -460,7 +460,7 @@ ul.umap-autocomplete {
.table-wrapper table input[type="submit"] {
display: inline;
background-color: transparent;
color: #263B58;
color: var(--color-darkBlue);
padding: 0;
width: inherit;
height: 1rem;
@ -520,7 +520,7 @@ dialog::backdrop {
padding: 1rem;
}
.pagination a {
color: #263B58;
color: var(--color-darkBlue);
text-decoration: underline;
}

View file

@ -62,6 +62,7 @@
<link rel="stylesheet" href="../vendors/locatecontrol/L.Control.Locate.min.css" />
<link rel="stylesheet" href="../vendors/iconlayers/iconLayers.css" />
<link rel="stylesheet" href="../../umap/vars.css" />
<link rel="stylesheet" href="../../umap/font.css" />
<link rel="stylesheet" href="../../umap/base.css" />
<link rel="stylesheet" href="../../umap/content.css" />

View file

@ -0,0 +1,9 @@
:root {
/* In use for primary buttons. */
--color-darkBlue: #263B58;
--color-waterMint: #B9F5D2;
/* In use for secondary buttons. */
--color-lightGray: #ddd;
--color-darkGray: #323737;
}

View file

@ -22,6 +22,7 @@
href="{% static 'umap/vendors/locatecontrol/L.Control.Locate.min.css' %}" />
<link rel="stylesheet"
href="{% static 'umap/vendors/iconlayers/iconLayers.css' %}" />
<link rel="stylesheet" href="{% static 'umap/vars.css' %}" />
<link rel="stylesheet" href="{% static 'umap/font.css' %}" />
<link rel="stylesheet" href="{% static 'umap/base.css' %}" />
<link rel="stylesheet" href="{% static 'umap/content.css' %}" />