diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-08-23 11:46:12 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-12-21 19:43:13 +0200 |
| commit | e99cf8703ed1f1ff372b3e7e586ae3952b9299a5 (patch) | |
| tree | c8a51879f4d87a7d6b795ee344b23fd99fc0ad51 /static | |
| parent | 3ea6154a9e75011c194820456b66fa00f12a55b7 (diff) | |
Improvements
Diffstat (limited to 'static')
| -rw-r--r-- | static/InclusiveSans-Regular.ttf | bin | 0 -> 57124 bytes | |||
| -rw-r--r-- | static/styles.css | 70 |
2 files changed, 48 insertions, 22 deletions
diff --git a/static/InclusiveSans-Regular.ttf b/static/InclusiveSans-Regular.ttf Binary files differnew file mode 100644 index 0000000..3a30e79 --- /dev/null +++ b/static/InclusiveSans-Regular.ttf diff --git a/static/styles.css b/static/styles.css index eb71d75..671397f 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,5 +1,27 @@ +:root { + --blue: rgb(30, 99, 248); + --red: #d42f2f; + --yellow: #ff9800; + --black: rgb(0, 0, 0); + --white: rgb(255, 255, 255); + --gray: #666; + --light-gray-1: #f2f2f2; + --light-gray-2: #f8f6ff; + --gold-trans: #ffcd0455; + + --font-family: "Inclusive Sans", sans-serif; +} + +@font-face { + font-family: "Inclusive Sans"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/static/InclusiveSans-Regular.ttf) format('woff2'); +} + html { - font-family: "Verdana", "Arial", sans-serif !important; + font-family: var(--font-family) !important; font-size: 16px; } @@ -10,8 +32,8 @@ body { line-height: 24px; } -a { - color: rgb(30, 99, 248); +a, .contrast { + color: var(--blue); } h1 { @@ -19,17 +41,17 @@ h1 { } h1 a { - color: black; + color: var(--black); text-decoration: none; } h1:hover a { - border-bottom: 2px dotted #fa8e35; + border-bottom: 2px dotted var(--blue); text-decoration: none; } textarea, input { - font-family: "Verdana", "Arial", sans-serif; + font-family: var(--font-family); font-size: 16px; } @@ -42,38 +64,34 @@ input[type="submit"] { box-shadow: none; padding: 5px 8px; border: 0; - background-color: rgb(30, 99, 248); - color: white; + background-color: var(--blue); + color: var(--white); } button.red, input[type="submit"].red { - background-color: #d42f2f; + background-color: var(--red); } button.blue, input[type="submit"].blue { - background-color: rgb(30, 99, 248); + background-color: var(--blue); } button.yellow, input[type="submit"].yellow { - background-color: #ff9800; + background-color: var(--yellow); } input[type="text"], input[type*="date"] { font-size: 16px; - color: black; + color: var(--black); } input[type="text"]:disabled, input[type*="date"]:disabled { - color: #666; -} - -.contrast { - color: rgb(30, 99, 248); + color: var(--gray); } th, td { @@ -121,11 +139,11 @@ th, td { .vote-table tr td:nth-of-type(even), .vote-table tr th:nth-of-type(even) { - background-color: #f2f2f2 !important; /* Light grey background */ + background-color: var(--light-gray-1) !important; } .vote-table tr:nth-of-type(odd) td { - background-color: #f8f6ff; /* Light grey background */ + background-color: var(--light-gray-2); } .vote-table td input[type="checkbox"] { @@ -145,6 +163,12 @@ th, td { text-align: left; } +.poll-description { + font-family: var(--font-family) !important; + white-space: break-spaces; + overflow-x: hidden; +} + .poll-form td:last-of-type, .manage-table td:last-of-type { display: flex; @@ -167,9 +191,11 @@ th, td { .display-mode-section input[type="submit"] { text-decoration: underline; - color: rgb(30, 99, 248); + color: var(--blue); background: none; padding: 5px 0; + min-width: 25px; + text-align: center; } .vote-list label, @@ -198,7 +224,7 @@ input[type="checkbox"] { button#share-link-copy { padding: 0; background: none; - color: black; + color: var(--black); font-size: 24px; line-height: 24px; } @@ -223,5 +249,5 @@ input[type="submit"].delete-voter-btn { /* This is to fix a CSS specificity issue with the .most-voted class */ .most-voted, .vote-table tr th.most-voted { - background-color: #ffcd0455 !important; + background-color: var(--gold-trans) !important; } |
