Tweaking teaser / teaser list on mobile viewport

This commit is contained in:
reverend 2020-09-29 22:11:02 +02:00
parent 66a420741e
commit c190940fff
4 changed files with 40 additions and 11 deletions

View File

@ -1,9 +1,8 @@
.LP-PlaceTeaser{ .LP-PlaceTeaser{
width: 280px; width: 100%;
.LP-PlaceTeaser__Image{ .LP-PlaceTeaser__Image{
height: 165px; width: 100%;
width: 280px;
overflow: hidden; overflow: hidden;
.LP-Image{ .LP-Image{
@ -15,6 +14,8 @@
.LP-PlaceTeaser__Meta{ .LP-PlaceTeaser__Meta{
display: flex; display: flex;
flex-wrap: wrap;
gap: $-spacing-small;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 5px; padding: 5px;
@ -41,11 +42,20 @@
.LP-PlaceTeaser__Description{ .LP-PlaceTeaser__Description{
font-family: $-primary-sans-serif-font; font-family: $-primary-sans-serif-font;
color: $-grey; color: $-grey;
display: none; order: 3;
flex-basis: 100%;
} }
} }
@media(min-width: $-viewport-small){ @media(min-width: $-viewport-small){
.LP-PlaceTeaser {
width: 280px;
&__Image {
width: 280px;
height: 165px;
}
}
.LP-PlaceTeaser--extended{ .LP-PlaceTeaser--extended{
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -1,6 +1,8 @@
.LP-PlaceList{ .LP-PlaceList{
.LP-PlaceList__List{ .LP-PlaceList__List{
list-style-type: none; list-style-type: none;
padding: 0;
margin: 0;
.LP-Link{ .LP-Link{
.LP-Place{ .LP-Place{
@ -23,6 +25,10 @@
max-width: 900px; max-width: 900px;
//min-width: 450px; //min-width: 450px;
margin: 18px 0; 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{
.LP-PlaceDetail__Header{ .LP-PlaceDetail__Header{
.LP-PlaceDetail__Image{ .LP-PlaceDetail__Image{

View File

@ -862,10 +862,9 @@ body {
margin: 0 3px; } margin: 0 3px; }
.LP-PlaceTeaser { .LP-PlaceTeaser {
width: 280px; } width: 100%; }
.LP-PlaceTeaser .LP-PlaceTeaser__Image { .LP-PlaceTeaser .LP-PlaceTeaser__Image {
height: 165px; width: 100%;
width: 280px;
overflow: hidden; } overflow: hidden; }
.LP-PlaceTeaser .LP-PlaceTeaser__Image .LP-Image { .LP-PlaceTeaser .LP-PlaceTeaser__Image .LP-Image {
max-width: unset; max-width: unset;
@ -873,6 +872,8 @@ body {
object-fit: cover; } object-fit: cover; }
.LP-PlaceTeaser .LP-PlaceTeaser__Meta { .LP-PlaceTeaser .LP-PlaceTeaser__Meta {
display: flex; display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 5px; padding: 5px;
@ -893,9 +894,15 @@ body {
.LP-PlaceTeaser .LP-PlaceTeaser__Description { .LP-PlaceTeaser .LP-PlaceTeaser__Description {
font-family: "Montserrat", Helvetica, sans-serif; font-family: "Montserrat", Helvetica, sans-serif;
color: #565656; color: #565656;
display: none; } order: 3;
flex-basis: 100%; }
@media (min-width: 650px) { @media (min-width: 650px) {
.LP-PlaceTeaser {
width: 280px; }
.LP-PlaceTeaser__Image {
width: 280px;
height: 165px; }
.LP-PlaceTeaser--extended { .LP-PlaceTeaser--extended {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -1069,7 +1076,9 @@ body {
box-shadow: 0 0 2px #565656; } box-shadow: 0 0 2px #565656; }
.LP-PlaceList .LP-PlaceList__List { .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 { .LP-PlaceList .LP-PlaceList__List .LP-Link .LP-Place:hover {
color: #565656; color: #565656;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -1080,6 +1089,10 @@ body {
.LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item { .LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item {
max-width: 900px; max-width: 900px;
margin: 18px 0; } margin: 18px 0; }
@media (max-width: 750px) {
.LP-PlaceList .LP-PlaceList__List .LP-PlaceList__Item {
width: 100%;
margin-bottom: 35px; } }
.LP-PlaceList .LP-Pagination { .LP-PlaceList .LP-Pagination {
margin-top: 50px; } margin-top: 50px; }
@ -1688,7 +1701,7 @@ body {
margin-right: 25px; margin-right: 25px;
overflow: hidden; } overflow: hidden; }
@media (max-width: 1000px) { @media (max-width: 750px) {
.LP-PlaceDetail .LP-PlaceDetail__Header .LP-PlaceDetail__Image { .LP-PlaceDetail .LP-PlaceDetail__Header .LP-PlaceDetail__Image {
float: none; float: none;
width: 100%; width: 100%;