From 9613f553e9af509c194c286597b6db56e229c829 Mon Sep 17 00:00:00 2001 From: reverend Date: Tue, 29 Sep 2020 20:21:27 +0200 Subject: [PATCH] #19 OSM-Map Styling --- .../static/icons/map-marker-icon.png | Bin 0 -> 4021 bytes django_lostplaces/lostplaces/static/main.css | 20 ++++++++++++++++++ .../templates/partials/osm_map.html | 8 +++---- 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 django_lostplaces/lostplaces/static/icons/map-marker-icon.png diff --git a/django_lostplaces/lostplaces/static/icons/map-marker-icon.png b/django_lostplaces/lostplaces/static/icons/map-marker-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..969f763188b5aa0c8d9214236f39048ba7c8f094 GIT binary patch literal 4021 zcmW+(c|6qJ7yi!pGBYL_dxea#W@+qXoe{=PC<@JJK^WWns$?63vSq2ru81NrmKICQ zB)#)yC;K*}H`z<}?Kl1YxcB~XpL3pb?z#7Vo|9m2OW@%?!3_WakA=C31AC?X8E`K4 z+-m624gkF27AAP7+oRvy5ozwGLQ5T)*&UhJ;TM@^!chDLM7%siQpo}@kH$YLu}nag zpe*e9m7hK`O~~<%&LN!#?#IUR%R}Sk6F$X1p{C1cfi-DyO479}>IG|u)&pO3j1J!q zMeH^o9+ou>XgVIQx9l%(@9%_68BTOxQ{Cv&55OcklH^)HwSJ=C{cx9V>0#9jVwi4P8+Fu_3=#=jOeo~7v!%66mjicm{ zxMVqiYADvmLpww3H>fKU*x>RLS`13_sM;`~;Xm;M(TCEBp|s;PV;SvB9^H&g3Owpd zv)s9~AP~pG;)Apo#mK}v)8}_MF?$!r(p8wppy<`b$tX~dIQCe>g*O+5X?nV3j`~;t zz{AfZ?s^bozxnP8pq6NbjAbaF&+Gg%C$884;GwagBB{78A|c+LmW!tvdFwsku9gO% z-Nc>uG)|g6IZCM)5{7yMH}M|2S*m@70DvvrZ4YV4x`?1;XHqSm8Z(;m+oS?cVc8j1 z3v1!WL?r#Y&-f!1fE!NzIKF2|ChAYa z7ah`ARih~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9d|h<5Li0@H;Sc9CS1V-##i#upHLYT-WVM|5CimVd$GLG$Z4K*XB z1>ei?z0ExaN8{yRUAA+HVTJW7+)S{Rp}RaB_w<)xETJA@^$_52<&wF}HR(TaywR0;Pk65FJ8z=5>A|$A?53iQG~Orq>rBQwzT7kOA0A z%Gdk#bC~8}+rc zD#Uh!!KlhND}78MXlzEQb4K81LLQp!uYlN*p`oCE@dNuMBFN5nnIsFC{4W|+h{i{28kE!`(2&R zHgc1}1>D$iv3R#@V#`mNld+Ld`~$uY4Lm|CTdwb`I|AD5y)6k# XlyZlMr;H@K9S1B-ZA~hTN!0%VEyW?K literal 0 HcmV?d00001 diff --git a/django_lostplaces/lostplaces/static/main.css b/django_lostplaces/lostplaces/static/main.css index c940834..ed06ba1 100644 --- a/django_lostplaces/lostplaces/static/main.css +++ b/django_lostplaces/lostplaces/static/main.css @@ -1641,6 +1641,26 @@ body { .LP-ImageGrid__Item > .LP-Link:hover + .LP-ImageGrid__DeleteItem, .LP-ImageGrid__DeleteItem:hover { visibility: visible; } +.LP-Map .ol-attribution { + font-family: "Montserrat", Helvetica, sans-serif; + color: #565656; } + .LP-Map .ol-attribution a { + color: #C09F80; } + .LP-Map .ol-attribution a:hover, .LP-Map .ol-attribution a:focus { + color: #D7CEC7; } + +.LP-Map .ol-zoom-in, .LP-Map .ol-zoom-out { + background-color: #C09F80; } + .LP-Map .ol-zoom-in:hover, .LP-Map .ol-zoom-in:focus, .LP-Map .ol-zoom-out:hover, .LP-Map .ol-zoom-out:focus { + background-color: #565656; } + +.LP-Map .LP-Map__Popup { + font-family: "Montserrat", Helvetica, sans-serif; + color: #565656; + background-color: #f9f9f9; + padding: .5em; + border-radius: 2px; } + .LP-MainContainer { margin: 0 auto; max-width: 1280px; } diff --git a/django_lostplaces/lostplaces/templates/partials/osm_map.html b/django_lostplaces/lostplaces/templates/partials/osm_map.html index bc45c53..e89a86f 100644 --- a/django_lostplaces/lostplaces/templates/partials/osm_map.html +++ b/django_lostplaces/lostplaces/templates/partials/osm_map.html @@ -1,6 +1,6 @@ - -
-
+{% load static %} +
+