From 62a53c98e6552c21be3314c1b3b9e705f4d74856 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 13 Aug 2020 23:42:43 +0200 Subject: [PATCH] Template and css tweaks --- .../lostplaces_app/static/main copy.css | 689 ------------------ lostplaces/lostplaces_app/static/main.css | 43 +- .../lostplaces_app/templates/global.html | 72 +- 3 files changed, 56 insertions(+), 748 deletions(-) delete mode 100644 lostplaces/lostplaces_app/static/main copy.css diff --git a/lostplaces/lostplaces_app/static/main copy.css b/lostplaces/lostplaces_app/static/main copy.css deleted file mode 100644 index 9e3642b..0000000 --- a/lostplaces/lostplaces_app/static/main copy.css +++ /dev/null @@ -1,689 +0,0 @@ -@font-face { - font-family: Crimson; - src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); } - -@font-face { - font-family: Montserrat; - src: url("fonts/Montserrat/Montserrat-Regular.ttf"), url("fonts/Montserrat/Montserrat-Bold.ttf"), url("fonts/Montserrat/Montserrat-Italic.ttf"); } - -html { - height: 100%; - margin: 0; - padding: 0; } - -body { - height: 100%; - margin: 0; } - -.LP-Main { - display: flex; - flex-direction: row; - height: calc(100% - 61px); - width: 100%; } - .LP-Main .LP-Main__Content { - min-height: 1px; - padding: 25px; } - .LP-Main .LP-Main__Sidebar { - width: 250px; - flex-grow: 0; - height: 100%; } - .LP-Main .LP-Wrapper__Content { - flex-grow: 1; } - .LP-Main .LP-Wrapper__Sidebar { - flex: 0 0 250px; } - -.LP-Section { - clear: both; - padding: 25px 0px; - padding-left: 25px; } - .LP-Section .LP-Headline { - margin-left: -25px; } - -@media (max-width: 650px) { - .LP-Section { - padding-left: 0; - padding-right: 0; } - .LP-Section .LP-Headline { - margin: 0; } } - -.LP-Link { - color: #565656; - text-decoration: none; - font-family: Montserrat, Helvetica, sans-serif; } - .LP-Link:hover { - color: #C09F80; } - .LP-Link .LP-Paragraph { - font-family: Montserrat, Helvetica, sans-serif; } - .LP-Link .LP-Paragraph:hover { - color: #C09F80; } - -.LP-Link__IconWrapper { - display: inline; } - -.LP-Headline { - font-family: Montserrat, Helvetica, sans-serif; - color: #565656; - font-size: 1.7rem; - padding-top: 0px; - margin-top: 0px; - padding-bottom: 0px; - margin-bottom: 25px; } - .LP-Headline--main { - position: relative; - top: 2rem; - font-size: 2rem; } - .LP-Headline--inline { - display: inline; } - -.LP-Paragraph { - color: black; - font-family: Crimson, Times, serif; - font-size: 1.2rem; - padding: 0; - margin: 0; } - -.LP-Icon { - height: 20px; - width: 20px; } - -.LP-Icon__List { - list-style-type: none; - display: inline-flex; - justify-content: space-between; - justify-items: stretch; - padding: 0; } - .LP-Icon__List .LP-Icon__Item { - padding: 0 3px; } - -.LP-Button { - background-color: #C09F80; - color: #565656; - border: none; - padding: 8px 14px; - border-radius: 2px; - font-weight: bold; - cursor: pointer; } - .LP-Button:active { - background-color: #76323F; - color: #f9f9f9; } - .LP-Button--cancel { - background-color: #565656; - color: #f9f9f9; } - .LP-Button--cancel:active { - color: #565656; - background-color: #f9f9f9; } - -.LP-Form .LP-Form__Checkbox { - display: none; } - -.LP-Form .LP-Form__CheckBox__CheckMark { - height: 1em; - width: 1em; - border: 1px solid black; - padding: 0 calc(.5em + 2px); - margin-right: .7em; } - -.LP-Input { - display: flex; - flex-direction: column; - margin-bottom: -30px; - padding: 10px 0; } - .LP-Input .LP-Input__Field { - border: none; - border-bottom: 1px solid #565656; - padding: 8px; - margin-bottom: 30px; } - .LP-Input .LP-Input__Field:focus, .LP-Input .LP-Input__Field:active, .LP-Input .LP-Input__Field:invalid { - margin-bottom: 29px; - border-bottom: 2px solid #76323F; - background-color: #f9f9f9; - border-radius: 3px 3px 0 0; - box-shadow: none; } - .LP-Input .LP-Input__Field[type=submit] { - background-color: #C09F80; - color: #565656; - border: none; - padding: 8px 14px; - border-radius: 2px; - font-weight: bold; - cursor: pointer; } - .LP-Input .LP-Input__Field[type=submit]:active { - background-color: #76323F; - color: #f9f9f9; } - .LP-Input .LP-Input__Label { - font-family: Montserrat, Helvetica, sans-serif; - font-size: 16px; } - .LP-Input .LP-Input__Message { - font-family: Montserrat, Helvetica, sans-serif; - font-style: italic; - font-size: 13px; - padding: 3px; - position: relative; - top: -30px; } - .LP-Input--error .LP-Input__Field { - margin-bottom: 25px; - border-bottom: 2px solid #76323F; - margin-bottom: 29px; } - .LP-Input--error .LP-Input__Message { - color: #76323F; } - .LP-Input--disabled .LP-Input__Field, .LP-Input--disabled .LP-Input__Field:disabled { - background-color: transparent; - border-bottom: 1px dashed #565656; - cursor: not-allowed; } - label + .LP-Input--disabled .LP-Input__Field, label + .LP-Input--disabled .LP-Input__Field:disabled { - color: red; } - .LP-Input--disabled .LP-Input__Field:focus, .LP-Input--disabled .LP-Input__Field:active, .LP-Input--disabled .LP-Input__Field:disabled:focus, .LP-Input--disabled .LP-Input__Field:disabled:active { - margin-bottom: 30px; - border-radius: 0; } - .LP-Input--disabled .LP-Input__Field ~ .LP-Input__Message, .LP-Input--disabled .LP-Input__Field:disabled ~ .LP-Input__Message { - visibility: hidden; } - .LP-Input--disabled .LP-Input__Label { - color: #565656; } - -.LP-Image { - object-fit: cover; - width: 100%; - height: auto; - vertical-align: top; - margin: 0; - padding: 0; } - -.LP-Logo { - max-width: 100%; - max-height: 100%; - width: auto; - object-fit: contain; } - -.LP-Tag { - padding: 8px 14px; - background-color: #D7CEC7; - border-radius: 2px; - width: max-content; } - .LP-Tag .LP-Paragraph { - padding: 0; - margin: 0; - font-family: Montserrat, Helvetica, sans-serif; - font-size: 1em; - display: inline; } - -.LP-Message { - display: flex; - flex-direction: row; - justify-content: center; - align-items: stretch; - background-color: #f9f9f9; - font-family: Montserrat, Helvetica, sans-serif; - border-radius: 3px; - font-weight: bold; - box-shadow: 0 0 2px #565656; - overflow: hidden; } - .LP-Message--error .LP-Message__Icon { - background-color: #02979e; - background-image: url("/icons/error.png"); } - .LP-Message--warning .LP-Message__Icon { - background-color: #0047e7; - background-image: url("/icons/error.png"); } - .LP-Message--info .LP-Message__Icon { - background-color: #522719; - background-image: url("/icons/information.svg"); } - .LP-Message--success .LP-Message__Icon { - background-color: #6937ff; - background-image: url("/icons/success.svg"); } - .LP-Message--debug .LP-Message__Icon { - background-color: #046a2f; - background-image: url("/icons/debug.png"); } - .LP-Message .LP-Message__Icon { - background-size: 40px 40px; - background-repeat: no-repeat; - background-position: center; - height: 100%; - min-height: 50px; - width: 50px; - filter: invert(1); - flex-shrink: 0; - flex-grow: 0; } - .LP-Message .LP-Message__Text { - padding: 0 15px; - flex-grow: 1; - display: flex; - flex-direction: column; - justify-content: center; - padding: 8px; } - -.LP-Pagination { - font-family: Montserrat, Helvetica, sans-serif; - font-weight: bold; - display: flex; - flex-direction: row; - justify-content: center; } - .LP-Pagination .LP-Pagination__List { - list-style-type: none; - display: flex; - flex-direction: row; } - .LP-Pagination .LP-Pagination__Item { - margin: 0 4px; } - .LP-Pagination .LP-Pagination__Item--current .LP-Link { - background-color: #D7CEC7; - border-radius: 2px; } - .LP-Pagination .LP-Pagination__Item--current .LP-Link:hover { - background-color: #D7CEC7; - color: #565656; } - .LP-Pagination .LP-Link { - padding: 15px 25px; } - .LP-Pagination .LP-Link:active, .LP-Pagination .LP-Link:hover { - background-color: #D7CEC7; - border-radius: 2px; - color: #565656; } - -.LP-Content { - padding: 35px; } - -@media (max-width: 1290px) { - .LP-Content { - padding: 15px; } } - -.LP-TextSection .LP-Text { - line-height: 1.4rem; } - -.LP-PlaceTeaser { - width: 280px; } - .LP-PlaceTeaser .LP-PlaceTeaser__Image { - height: 165px; - width: 280px; - overflow: hidden; } - .LP-PlaceTeaser .LP-PlaceTeaser__Image .LP-Image { - max-width: unset; - max-height: unset; - object-fit: cover; } - .LP-PlaceTeaser .LP-PlaceTeaser__Meta { - display: flex; - align-items: center; - justify-content: space-between; - padding: 5px; - padding-bottom: 10px; - padding-top: 10px; } - .LP-PlaceTeaser .LP-PlaceTeaser__Meta .LP-Paragraph { - font-family: Montserrat, Helvetica, sans-serif; - padding: 0; - margin: 0; - margin-top: 5px; - font-size: 0.9rem; } - .LP-PlaceTeaser .LP-PlaceTeaser__Meta .LP-Headline { - font-family: Montserrat, Helvetica, sans-serif; - color: #565656; - font-size: 1rem; - padding: 0px; - margin: 0px; } - .LP-PlaceTeaser .LP-PlaceTeaser__Description { - font-family: Roboto, Arial, sans-serif; - color: #565656; - display: none; } - -@media (min-width: 650px) { - .LP-PlaceTeaser--extended { - display: flex; - flex-direction: row; - width: auto; - padding-right: 25px; - height: 165px; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta { - margin: 0; - padding: 5px; - padding-left: 25px; - display: flex; - flex-direction: column; - justify-content: space-between; - align-items: flex-start; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Info .LP-Headline { - font-size: 28px; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Icons { - margin-top: auto; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Icons ul { - padding: 0; - margin: 0; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Description { - display: block; - max-height: 55px; - overflow: hidden; } - .LP-PlaceTeaser--extended .LP-PlaceTeaser__Image { - height: 165px; - width: 280px; - flex-shrink: 0; - flex-grow: 0; } } - -.LP-TagList .LP-TagList__List { - list-style-type: none; - display: flex; - flex-wrap: wrap; - padding: 0; - margin: 0; } - .LP-TagList .LP-TagList__List .LP-TagList__Item { - margin: 6px; } - -.LP-Menu { - border-left: 1px solid #C09F80; } - .LP-Menu .LP-Menu__List { - list-style-type: none; - display: flex; - flex-direction: row; - justify-content: space-around; - padding: 0; - margin: 0; } - .LP-Menu .LP-Menu__Item { - margin: 0; - text-align: center; - background-color: transparent; } - .LP-Menu .LP-Menu__Item .LP-Link { - display: block; - padding: 15px 0; } - .LP-Menu .LP-Link__Text { - color: #565656; - font-weight: bold; - text-shadow: 0px 0px 20px white; } - .LP-Menu .LP-Link__Text:hover { - color: #76323F; } - .LP-Menu--sidebar { - border-top: 1px solid #C09F80; - border-left: none; - min-width: 60px; - background-color: #f9f9f9; - height: 100%; - padding-top: 25px; } - .LP-Menu--sidebar .LP-Menu__List { - flex-direction: column; } - .LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item { - text-align: left; - margin-bottom: 10px; - padding-left: 25px; } - .LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item--additional { - background-color: #ccc; } - .LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item .LP-Link { - line-height: 1em; } - .LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item:last-child { - margin-bottom: 0; } - .LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item:hover { - border-right: 2px solid #C09F80; - position: relative; - background-color: #D7CEC7; - color: #76323F; } - -@media (max-width: 750px) { - .LP-Menu:not(.LP-Menu--sidebar) .LP-Menu__List { - display: flex; - flex-direction: row; - justify-content: flex-start; } - .LP-Menu:not(.LP-Menu--sidebar) .LP-Menu__List .LP-Menu__Item { - flex: 1 1 auto; } } - -@media (max-width: 450px) { - .LP-Menu .LP-Menu__List { - justify-content: space-between; } } - -.LP-MessageList { - padding: 25px; } - .LP-MessageList .LP-MessageList__List { - padding: 0; - margin: 0; - list-style-type: none; - display: flex; - flex-direction: column; - justify-content: space-between; } - .LP-MessageList .LP-MessageList__Item { - margin: 5px 0; } - -.LP-Header { - display: flex; - align-items: center; - justify-content: space-between; - height: 60px; - box-shadow: 0 0 2px #C09F80; } - .LP-Header__Navigation { - flex-grow: 2; } - .LP-Header__Logo { - height: 45px; - margin: 25px; - object-fit: cover; - max-height: 100%; - width: 225px; - overflow: hidden; - flex-shrink: 0; } - .LP-Header__Logo .LP-Image { - height: 100%; } - -.LP-Header__UserInformation { - margin-right: 3%; } - .LP-Header__UserInformation .LP-Paragraph { - font-family: Montserrat, Helvetica, sans-serif; - white-space: nowrap; } - .LP-Header__UserInformation .LP-Link { - margin: 0 3px; - padding: 4px 4px; } - -@media (max-width: 750px) { - .LP-Header__Logo { - width: 45px; } - .LP-Header__Logo .LP-Image { - object-position: 0 0; - object-fit: cover; } } - -@media (max-width: 450px) { - .LP-Header__Logo { - display: none; } - .LP-Header__Navigation { - width: 100%; } } - -.LP-PlaceGrid .LP-PlaceGrid__Grid { - margin: 0; - padding: 0; - list-style-type: none; - display: flex; - flex-direction: row; - flex-wrap: wrap; } - .LP-PlaceGrid .LP-PlaceGrid__Grid .LP-PlaceGrid__Item { - margin: 18px; } - .LP-PlaceGrid .LP-PlaceGrid__Grid .LP-Link .LP-PlaceTeaser:hover { - box-shadow: 0 0 2px #565656; } - -.LP-PlaceList .LP-PlaceList__List { - list-style-type: none; } - .LP-PlaceList .LP-PlaceList__List .LP-Link .LP-Place:hover { - color: #565656; - background-color: #f9f9f9; - position: relative; - left: -2px; } - .LP-PlaceList .LP-PlaceList__List .LP-Link .LP-Place:hover > .LP-Place__Image { - border-left: 2px #565656 solid; } - .LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item { - max-width: 900px; - min-width: 450px; - margin: 18px 0; } - -.LP-PlaceList .LP-Pagination { - margin-top: 50px; } - -.LP-LinkList__List { - list-style-type: none; - display: grid; - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); - margin: 0; - padding: 0; } - .LP-LinkList__List .LP-LinkList__Item { - border-left: 1px solid #C09F80; - width: calc(100% - 1px); - margin-top: 12px; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link { - padding: 1em 0 1em 1em; - width: calc(100% - 1em); - display: block; - color: #565656; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized { - padding-top: 0; - padding-bottom: 1.1em; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized:hover { - background-color: #ccc !important; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link--iconized .LP-Text { - padding-top: .1em; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover { - background-color: #f9f9f9; - color: #76323F; } - .LP-LinkList__List .LP-LinkList__Item .LP-Link .LP-Text { - color: inherit; } - -.LP-Link__Icon { - width: 2em; - height: 2em; - fill: #76323F; - line-height: 5em; } - -.LP-LinkList__Item .LP-Link__Icon { - position: relative; - top: .7em; - margin-right: .6em; } - -.LP-Footer { - margin-top: 75px; - width: 100%; - background-color: #565656; - padding: 25px; } - .LP-Footer .LP-LinkList__List { - display: flex; - align-items: center; - justify-content: center; } - .LP-Footer .LP-LinkList__List .LP-LinkList__Item { - border: none; - padding: 5px; - width: auto; } - .LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Text { - color: #f9f9f9; - font-size: 17px; } - .LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link { - display: inline; } - .LP-Footer .LP-LinkList__List .LP-LinkList__Item .LP-Link:hover { - background-color: inherit; } - -.LP-Form { - display: flex; - flex-direction: column; - align-items: center; } - .LP-Form .LP-Form__Fieldset { - border: none; - max-width: 1200px; - min-width: 750px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Legend { - margin: 0; - padding: 0; - font-family: Montserrat, Helvetica, sans-serif; - font-size: 21px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition { - display: flex; - flex-direction: row; - justify-content: space-between; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field { - flex: 3 2 100px; - padding: 6px 15px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider { - flex: 5 2; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide { - flex: 4 2; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow { - flex: 2 1; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower { - flex: 1 2; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons { - justify-content: flex-end; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button { - flex-grow: 0; - padding-left: 0; - min-width: 130px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button .LP-Link { - display: contents; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText .LP-Paragraph { - font-family: Montserrat, Helvetica, sans-serif; - color: #565656; } - -@media (max-width: 750px) { - .LP-Form .LP-Form__Fieldset { - min-width: unset; } } - -@media (max-width: 650px) { - .LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable { - display: flex; - flex-direction: column; - justify-content: space-between; } } - -@media (max-width: 450px) { - .LP-Form .LP-Form__Fieldset .LP-Form__Composition { - display: flex; - flex-direction: column; - justify-content: space-between; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field:not(.LP-Form__Button) { - flex: 3 1 100px; - padding: 12px 15px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Button { - padding: 0 15px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition--buttons { - justify-content: flex-end; } } - -.LP-ImageGrid .LP-ImageGrid__List { - list-style-type: none; - display: grid; - grid-template-columns: repeat(auto-fit, 300px); - align-content: space-around; - justify-content: center; - margin: 0px; - padding: 0px; } - -.LP-ImageGrid .LP-ImageGrid__Item { - margin-top: 10px; } - -.LP-ImageGrid .LP-Link { - overflow: hidden; } - -.LP-ImageGrid .LP-Image { - box-shadow: 0 0 5px #565656; - height: 200px; - width: 290px; - object-fit: cover; } - -@media (max-width: 650px) { - .LP-ImageGrid .LP-ImageGrid__List { - grid-template-columns: 1fr; } - .LP-ImageGrid .LP-ImageGrid__List .LP-Image { - box-shadow: 0 0 5px #565656; - height: auto; - width: 100%; - object-fit: cover; } } - -.LP-MainContainer { - margin: 0 auto; - max-width: 1280px; } - -.LP-HorizontalLine { - color: #565656; } - -@media (max-width: 650px) { - .LP-MainContainer { - width: 100%; } } - -.LP-PlaceDetail .LP-PlaceDetail__Image { - width: 700px; - max-height: 500px; - box-shadow: 0 0 10px #565656; - object-fit: cover; - object-position: 0 0; - margin: 0; - padding: 0; - float: right; - margin-left: 35px; - margin-bottom: 35px; - margin-right: 35px; - overflow: hidden; } - -@media (max-width: 1000px) { - .LP-PlaceDetail .LP-PlaceDetail__Header .LP-PlaceDetail__Image { - float: none; - width: 100%; - height: auto; - margin: 0; - padding: 0; - margin-bottom: 25px; } } diff --git a/lostplaces/lostplaces_app/static/main.css b/lostplaces/lostplaces_app/static/main.css index 6e9670a..fec69d4 100644 --- a/lostplaces/lostplaces_app/static/main.css +++ b/lostplaces/lostplaces_app/static/main.css @@ -1,4 +1,3 @@ -@charset "UTF-8"; @font-face { font-family: Crimson; src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); } @@ -14,23 +13,25 @@ html { body { height: 100%; - margin: 0; } + margin: 0; + padding: 0; } -.LP-Main { - display: table; - flex-direction: row-reverse; - height: calc(100% - 61px); - width: 100%; } - .LP-Main .LP-Main__Content { - display: table-cell; - width: calc(100% - 300px); - min-height: 1px; - padding: 25px; } - .LP-Main .LP-Main__Sidebar { - display: table-cell; - width: 250px; - flex-grow: 0; - height: 100%; } +.LP-Wrapper__Site { + display: grid; + grid-template-columns: 250px 1fr; + grid-template-rows: auto 1fr; + grid-template-areas: "header header" "sidebar content"; + margin: 0; + padding: 0; } + +.LP-Main__Content { + min-height: 1px; + padding: 25px; + grid-area: content; } + +.LP-Main__Sidebar { + grid-area: sidebar; + background-color: #f9f9f9; } .LP-Section { clear: both; @@ -274,10 +275,6 @@ body { background-color: #D7CEC7; border-radius: 2px; color: #565656; } - .LP-Pagination .LP-Pagination__Previous:before { - content: "«"; } - .LP-Pagination .LP-Pagination__Next:before { - content: "»"; } .LP-Content { padding: 35px; } @@ -391,7 +388,6 @@ body { border-left: none; min-width: 60px; background-color: #f9f9f9; - height: 100%; padding-top: 25px; } .LP-Menu--sidebar .LP-Menu__List { flex-direction: column; } @@ -440,7 +436,8 @@ body { align-items: center; justify-content: space-between; height: 60px; - box-shadow: 0 0 2px #C09F80; } + box-shadow: 0 0 2px #C09F80; + grid-area: header; } .LP-Header__Navigation { flex-grow: 2; } .LP-Header__Logo { diff --git a/lostplaces/lostplaces_app/templates/global.html b/lostplaces/lostplaces_app/templates/global.html index f77125e..6a7782c 100644 --- a/lostplaces/lostplaces_app/templates/global.html +++ b/lostplaces/lostplaces_app/templates/global.html @@ -15,44 +15,44 @@ -
- -
- - {% if user.is_authenticated %} - Hi {{ user.username }}! - logout - {% if user.is_superuser %} - | admin +
+
+ +
+ + {% if user.is_authenticated %} + Hi {{ user.username }}! + logout + {% if user.is_superuser %} + | admin + {% endif %} + + {% else %} + You are not logged in. + login | + signup {% endif %} - - {% else %} - You are not logged in. - login | - signup - {% endif %} - -
-
-
+
+ +
{% if messages %}
    @@ -72,9 +72,9 @@
{% endif %} - {% block maincontent %} - {% endblock maincontent %} - - + {% block maincontent %} + {% endblock maincontent %} +
+ \ No newline at end of file