From 55a9742fa43bd15cf4898db706ec6143ae5cd27d Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 29 Jun 2024 12:01:10 +1000 Subject: [PATCH 1/3] fix inline styles for loan periods --- website/load-map.js | 37 +++++------------------------------- website/style.css | 46 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 32 deletions(-) diff --git a/website/load-map.js b/website/load-map.js index 0ac4031..6936fca 100644 --- a/website/load-map.js +++ b/website/load-map.js @@ -439,38 +439,11 @@ Promise.all([boundaries, branchesCsv, ikcCsv, mechanics, nslaBranches, caul]) infoBoxes.loanPeriod.update = function (props) { this._div.innerHTML = `
-
2 weeks
-
3 weeks
-
4 weeks
-
6 weeks
-
Unknown (help me find out!)
+
2 weeks
+
3 weeks
+
4 weeks
+
6 weeks
+
Unknown (help me find out!)
` }; diff --git a/website/style.css b/website/style.css index dc00c4a..c65486b 100644 --- a/website/style.css +++ b/website/style.css @@ -273,6 +273,52 @@ ul#libraries li { background-color: #bbb } +.two-weeks { + background: + radial-gradient(4px 4px at 6px 6px, #3a3a3a 50%, transparent 75%), + radial-gradient(4px 4px at 16px 6px, #3a3a3a 50%, transparent 75%), + radial-gradient(4px 4px at 2px 12px, #3a3a3a 50%, transparent 75%), + radial-gradient(4px 4px at 12px 12px, #3a3a3a 50%, transparent 75%), + radial-gradient(4px 4px at 20px 12px, #3a3a3a 50%, transparent 75%), + radial-gradient(4px 4px at 8px 18px, #3a3a3a 50%, transparent 75%); + background-repeat: no-repeat; + border: 1px solid black; +} + +.three-weeks { + background: repeating-linear-gradient( + 0deg, + #3a3a3a, + #3a3a3a 2px, + #fff 2px, + #3a3a3a 4px + ) +} + +.four-weeks { + background: repeating-linear-gradient( + 45deg, + #3a3a3a, + #3a3a3a 3px, + #fff 1px, + #3a3a3a 4px + ) +} + +.six-weeks { + background: repeating-linear-gradient( + 135deg, + #fff, + #fff 8px, + #3a3a3a 2px, + #fff 10px + ) +} + +.unknown-weeks { + background-color: #bbb; +} + @media only screen and (max-width: 800px) { nav ul { From f0676f8f598aaeaf49f20a620626a17bcb0b9ef5 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 29 Jul 2024 19:44:47 +1000 Subject: [PATCH 2/3] fix links in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bdb965..9414907 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ You should be able to find the location of every public library in Australia ter Check out the map at [librarymap.hugh.run](https://librarymap.hugh.run). -Find more on this project at [about](about.md). +Find more on this project at [about](https://librarymap.hugh.run/about). ## Attributions -See [sources](sources.md). +See [sources](https://librarymap.hugh.run/sources). ## Want to help? From 6bedd5a2bd7672d9885eaeaf3129cb57998fe29b Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 3 Aug 2024 13:45:47 +1000 Subject: [PATCH 3/3] minor readme edit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9414907..e3ce9ce 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ See [contributing](https://librarymap.hugh.run/contributing/), especially *[whic ## Contributors -Contributors (whether via GitHub or another way) are listed at [contributors.txt](contributors.txt). +Contributors are listed at [contributors.txt](contributors.txt). ## Licenses