Compare commits

..

2 Commits

Author SHA1 Message Date
1bd1797281 More Tweaking 2020-09-29 22:21:08 +02:00
c190940fff Tweaking teaser / teaser list on mobile viewport 2020-09-29 22:11:02 +02:00
4 changed files with 85 additions and 19 deletions

View File

@ -1,9 +1,8 @@
.LP-PlaceTeaser{
width: 280px;
width: 100%;
.LP-PlaceTeaser__Image{
height: 165px;
width: 280px;
width: 100%;
overflow: hidden;
.LP-Image{
@ -15,6 +14,8 @@
.LP-PlaceTeaser__Meta{
display: flex;
flex-wrap: wrap;
gap: $-spacing-small;
align-items: center;
justify-content: space-between;
padding: 5px;
@ -26,26 +27,43 @@
padding: 0;
margin: 0;
margin-top: 5px;
font-size: 0.9rem;
font-size: 1.3rem;
}
.LP-Headline{
font-family: $-primary-sans-serif-font;
color: $-grey;
font-size: 1rem;
font-size: 2rem;
padding: 0px;
margin: 0px;
}
.LP-Icon {
height: 2em;
width: 2em;
}
}
.LP-PlaceTeaser__Description{
font-family: $-primary-sans-serif-font;
color: $-grey;
display: none;
order: 3;
flex-basis: 100%;
.LP-Paragraph {
font-size: 22px;
}
}
}
@media(min-width: $-viewport-small){
.LP-PlaceTeaser {
width: 280px;
&__Image {
width: 280px;
height: 165px;
}
}
.LP-PlaceTeaser--extended{
display: flex;
flex-direction: row;
@ -55,12 +73,17 @@
.LP-PlaceTeaser__Meta{
margin: 0;
padding: 5px;
padding-left: 25px;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: unset;
.LP-Headline, .LP-Paragraph {
font-size: unset;
}
.LP-PlaceTeaser__Info{
.LP-Headline{
@ -76,12 +99,22 @@
margin: 0;
}
}
.LP-Icon {
height: 20px;
width: 20px;
}
}
.LP-PlaceTeaser__Description{
display: block;
max-height: 55px;
overflow: hidden;
order: unset;
.LP-Paragraph {
font-size: unset;
}
}
.LP-PlaceTeaser__Image{

View File

@ -1,6 +1,8 @@
.LP-PlaceList{
.LP-PlaceList__List{
list-style-type: none;
padding: 0;
margin: 0;
.LP-Link{
.LP-Place{
@ -23,6 +25,10 @@
max-width: 900px;
//min-width: 450px;
margin: 18px 0;
@media (max-width: $-viewport-medium) {
width: 100%;
margin-bottom: $-spacing-large;
}
}
}

View File

@ -20,7 +20,7 @@
}
}
@media (max-width: $-viewport-normal){
@media (max-width: $-viewport-medium){
.LP-PlaceDetail{
.LP-PlaceDetail__Header{
.LP-PlaceDetail__Image{

View File

@ -862,10 +862,9 @@ body {
margin: 0 3px; }
.LP-PlaceTeaser {
width: 280px; }
width: 100%; }
.LP-PlaceTeaser .LP-PlaceTeaser__Image {
height: 165px;
width: 280px;
width: 100%;
overflow: hidden; }
.LP-PlaceTeaser .LP-PlaceTeaser__Image .LP-Image {
max-width: unset;
@ -873,6 +872,8 @@ body {
object-fit: cover; }
.LP-PlaceTeaser .LP-PlaceTeaser__Meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
justify-content: space-between;
padding: 5px;
@ -883,19 +884,30 @@ body {
padding: 0;
margin: 0;
margin-top: 5px;
font-size: 0.9rem; }
font-size: 1.3rem; }
.LP-PlaceTeaser .LP-PlaceTeaser__Meta .LP-Headline {
font-family: "Montserrat", Helvetica, sans-serif;
color: #565656;
font-size: 1rem;
font-size: 2rem;
padding: 0px;
margin: 0px; }
.LP-PlaceTeaser .LP-PlaceTeaser__Meta .LP-Icon {
height: 2em;
width: 2em; }
.LP-PlaceTeaser .LP-PlaceTeaser__Description {
font-family: "Montserrat", Helvetica, sans-serif;
color: #565656;
display: none; }
order: 3;
flex-basis: 100%; }
.LP-PlaceTeaser .LP-PlaceTeaser__Description .LP-Paragraph {
font-size: 22px; }
@media (min-width: 650px) {
.LP-PlaceTeaser {
width: 280px; }
.LP-PlaceTeaser__Image {
width: 280px;
height: 165px; }
.LP-PlaceTeaser--extended {
display: flex;
flex-direction: row;
@ -904,12 +916,15 @@ body {
height: 165px; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta {
margin: 0;
padding: 5px;
padding-left: 25px;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: space-between;
align-items: flex-start; }
align-items: flex-start;
gap: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Headline, .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Paragraph {
font-size: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Info .LP-Headline {
font-size: 28px; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Icons {
@ -917,10 +932,16 @@ body {
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Icons ul {
padding: 0;
margin: 0; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Icon {
height: 20px;
width: 20px; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Description {
display: block;
max-height: 55px;
overflow: hidden; }
overflow: hidden;
order: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Description .LP-Paragraph {
font-size: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Image {
height: 165px;
width: 280px;
@ -1069,7 +1090,9 @@ body {
box-shadow: 0 0 2px #565656; }
.LP-PlaceList .LP-PlaceList__List {
list-style-type: none; }
list-style-type: none;
padding: 0;
margin: 0; }
.LP-PlaceList .LP-PlaceList__List .LP-Link .LP-Place:hover {
color: #565656;
background-color: #f9f9f9;
@ -1080,6 +1103,10 @@ body {
.LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item {
max-width: 900px;
margin: 18px 0; }
@media (max-width: 750px) {
.LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item {
width: 100%;
margin-bottom: 35px; } }
.LP-PlaceList .LP-Pagination {
margin-top: 50px; }
@ -1688,7 +1715,7 @@ body {
margin-right: 25px;
overflow: hidden; }
@media (max-width: 1000px) {
@media (max-width: 750px) {
.LP-PlaceDetail .LP-PlaceDetail__Header .LP-PlaceDetail__Image {
float: none;
width: 100%;