From 22e2657367ad274ca39826ceecc8b4cefd80fe62 Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 12 Aug 2020 17:51:21 +0200 Subject: [PATCH 1/3] New css --- .../lostplaces_app/static/main copy.css | 591 ++++++++++++++++++ 1 file changed, 591 insertions(+) create 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 new file mode 100644 index 0000000..ffa5f72 --- /dev/null +++ b/lostplaces/lostplaces_app/static/main copy.css @@ -0,0 +1,591 @@ +@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: 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-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-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-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-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 .LP-Form__Fieldset { + border: none; } + .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 1 100px; + padding: 6px 15px; } + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider { + flex: 5 1; } + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide { + flex: 4 1; } + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow { + flex: 2 0; } + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower { + flex: 1 0; } + .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; } + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText { + font-family: Montserrat, Helvetica, sans-serif; + color: #565656; } + +@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; } } From 764d0f32be3869270ed6c308b7641c46e9cd24ef Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 12 Aug 2020 18:11:57 +0200 Subject: [PATCH 2/3] Fresh baked css --- .../lostplaces_app/static/main copy.css | 591 ------------------ lostplaces/lostplaces_app/static/main.css | 36 +- 2 files changed, 33 insertions(+), 594 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 ffa5f72..0000000 --- a/lostplaces/lostplaces_app/static/main copy.css +++ /dev/null @@ -1,591 +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: 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-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-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-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-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 .LP-Form__Fieldset { - border: none; } - .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 1 100px; - padding: 6px 15px; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wider { - flex: 5 1; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--wide { - flex: 4 1; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrow { - flex: 2 0; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower { - flex: 1 0; } - .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; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__InfoText { - font-family: Montserrat, Helvetica, sans-serif; - color: #565656; } - -@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 87f6f12..d619f72 100644 --- a/lostplaces/lostplaces_app/static/main.css +++ b/lostplaces/lostplaces_app/static/main.css @@ -106,7 +106,11 @@ body { background-color: #76323F; color: #f9f9f9; } .LP-Button--cancel { - background-color: #f9f9f9; } + background-color: #565656; + color: #f9f9f9; } + .LP-Button--cancel:active { + color: #565656; + background-color: #f9f9f9; } .LP-Form .LP-Form__Checkbox { display: none; } @@ -134,6 +138,17 @@ body { 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; } @@ -483,6 +498,17 @@ body { flex: 2 0; } .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field--narrower { flex: 1 0; } + .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: 650px) { .LP-Form .LP-Form__Fieldset .LP-Form__Composition--breakable { @@ -495,9 +521,13 @@ body { display: flex; flex-direction: column; justify-content: space-between; } - .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field { + .LP-Form .LP-Form__Fieldset .LP-Form__Composition .LP-Form__Field:not(.LP-Form__Button) { flex: 3 1 100px; - padding: 12px 15px; } } + 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; From bc49b305ffd32099d3c8723917c6ce06ec3c3336 Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 12 Aug 2020 18:12:12 +0200 Subject: [PATCH 3/3] Delte Form hybsched --- .../templates/place/place_delete.html | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/place/place_delete.html b/lostplaces/lostplaces_app/templates/place/place_delete.html index 027a593..d1a3150 100644 --- a/lostplaces/lostplaces_app/templates/place/place_delete.html +++ b/lostplaces/lostplaces_app/templates/place/place_delete.html @@ -9,15 +9,22 @@
Place löschen {% csrf_token %} -
-

Are you sure you want to delete "{{place.name}}"?

- -
+
+
+

Are you sure you want to delete "{{place.name}}"?

+
+
+ +
+
+ +
+ +
{% endblock maincontent %}