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 { h2.tabs {
text-transform: uppercase; text-transform: uppercase;
color: #263B58; color: var(--color-darkBlue);
text-align: left; text-align: left;
padding-top: 28px; padding-top: 28px;
} }
h2.tabs a { h2.tabs a {
color: #263B58; color: var(--color-darkBlue);
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 3px; text-decoration-thickness: 3px;
text-decoration-skip-ink: none; text-decoration-skip-ink: none;
@ -162,7 +162,7 @@ h2.tabs a {
} }
h2.tabs a:not(.selected) { h2.tabs a:not(.selected) {
font-weight: normal; font-weight: normal;
color: #263B58; color: var(--color-darkBlue);
text-decoration: none; text-decoration: none;
margin-right: 0; margin-right: 0;
} }
@ -203,8 +203,8 @@ body.content #umap-ui-container {
input[type="submit"], input[type="submit"],
.button { .button {
background-color: #B9F5D2; background-color: var(--color-waterMint);
color: #263B58; color: var(--color-darkBlue);
} }
.button-primary { .button-primary {
font-weight: bold; font-weight: bold;
@ -213,8 +213,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: #ddd; background-color: var(--color-lightGray);
color: #323737; color: var(--color-darkGray);
} }
.wrapper.somber { .wrapper.somber {
background-color: #2E3641; background-color: #2E3641;
@ -397,7 +397,7 @@ ul.umap-autocomplete {
} }
} }
.table-header form input { .table-header form input {
border: 2px solid #263B58; border: 2px solid var(--color-darkBlue);
border-radius: 0; border-radius: 0;
padding: .5rem 1rem; padding: .5rem 1rem;
margin-bottom: 0; margin-bottom: 0;
@ -408,7 +408,7 @@ ul.umap-autocomplete {
width: 30ch; width: 30ch;
} }
.table-header form input[type="submit"] { .table-header form input[type="submit"] {
background-color: #263B58; background-color: var(--color-darkBlue);
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
@ -417,8 +417,8 @@ ul.umap-autocomplete {
width: inherit; width: inherit;
display: inline; display: inline;
padding: .5rem 1rem; padding: .5rem 1rem;
border: 2px solid #263B58; border: 2px solid var(--color-darkBlue);
color: #263B58; color: var(--color-darkBlue);
font-weight: bold; font-weight: bold;
background-color: initial; background-color: initial;
margin-bottom: 0; margin-bottom: 0;
@ -440,7 +440,7 @@ ul.umap-autocomplete {
} }
.table-wrapper table a, .table-wrapper table a,
.table-wrapper table thead { .table-wrapper table thead {
color: #263B58; color: var(--color-darkBlue);
} }
.table-wrapper table thead th:last-of-type { .table-wrapper table thead th:last-of-type {
min-width: 240px; min-width: 240px;
@ -460,7 +460,7 @@ ul.umap-autocomplete {
.table-wrapper table input[type="submit"] { .table-wrapper table input[type="submit"] {
display: inline; display: inline;
background-color: transparent; background-color: transparent;
color: #263B58; color: var(--color-darkBlue);
padding: 0; padding: 0;
width: inherit; width: inherit;
height: 1rem; height: 1rem;
@ -520,7 +520,7 @@ dialog::backdrop {
padding: 1rem; padding: 1rem;
} }
.pagination a { .pagination a {
color: #263B58; color: var(--color-darkBlue);
text-decoration: underline; 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/locatecontrol/L.Control.Locate.min.css" />
<link rel="stylesheet" href="../vendors/iconlayers/iconLayers.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/font.css" />
<link rel="stylesheet" href="../../umap/base.css" /> <link rel="stylesheet" href="../../umap/base.css" />
<link rel="stylesheet" href="../../umap/content.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' %}" /> href="{% static 'umap/vendors/locatecontrol/L.Control.Locate.min.css' %}" />
<link rel="stylesheet" <link rel="stylesheet"
href="{% static 'umap/vendors/iconlayers/iconLayers.css' %}" /> 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/font.css' %}" />
<link rel="stylesheet" href="{% static 'umap/base.css' %}" /> <link rel="stylesheet" href="{% static 'umap/base.css' %}" />
<link rel="stylesheet" href="{% static 'umap/content.css' %}" /> <link rel="stylesheet" href="{% static 'umap/content.css' %}" />