lostplaces-frontend/components/02_Molecules/placeTeaser/_placeTeaser.scss

128 lines
2.7 KiB
SCSS
Raw Normal View History

2020-08-01 10:30:38 +02:00
.LP-PlaceTeaser{
width: 100%;
2020-08-01 00:27:38 +02:00
2020-08-01 10:30:38 +02:00
.LP-PlaceTeaser__Image{
width: 100%;
2020-08-05 20:44:52 +02:00
overflow: hidden;
2020-08-01 10:27:50 +02:00
2020-08-05 20:44:52 +02:00
.LP-Image{
max-width:unset;
max-height:unset;
object-fit: cover;
}
2020-07-17 17:55:46 +02:00
}
2020-08-01 10:30:38 +02:00
.LP-PlaceTeaser__Meta{
2020-07-17 17:55:46 +02:00
display: flex;
flex-wrap: wrap;
gap: $-spacing-small;
2020-07-17 17:55:46 +02:00
align-items: center;
justify-content: space-between;
2020-08-05 20:44:52 +02:00
padding: 5px;
padding-bottom: 10px;
padding-top: 10px;
.LP-Paragraph{
font-family: $-primary-sans-serif-font;
padding: 0;
margin: 0;
margin-top: 5px;
2020-09-29 22:21:08 +02:00
font-size: 1.3rem;
2020-08-05 20:44:52 +02:00
}
2020-08-01 09:29:27 +02:00
2020-08-05 20:44:52 +02:00
.LP-Headline{
font-family: $-primary-sans-serif-font;
color: $-grey;
2020-09-29 22:21:08 +02:00
font-size: 2rem;
2020-08-05 20:44:52 +02:00
padding: 0px;
margin: 0px;
}
2020-09-29 22:21:08 +02:00
.LP-Icon {
height: 2em;
width: 2em;
}
2020-07-17 17:55:46 +02:00
}
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Description{
font-family: $-primary-sans-serif-font;
2020-08-05 20:44:52 +02:00
color: $-grey;
order: 3;
flex-basis: 100%;
2020-09-29 22:21:08 +02:00
.LP-Paragraph {
font-size: 22px;
}
2020-08-05 20:44:52 +02:00
}
2020-08-01 11:04:49 +02:00
}
2020-07-17 17:55:46 +02:00
2020-08-01 11:04:49 +02:00
@media(min-width: $-viewport-small){
.LP-PlaceTeaser {
width: 280px;
&__Image {
width: 280px;
height: 165px;
}
}
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser--extended{
display: flex;
flex-direction: row;
width: auto;
padding-right: 25px;
height: 165px;
2020-08-01 10:57:00 +02:00
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Meta{
margin: 0;
padding-left: 25px;
display: flex;
2020-09-29 22:21:08 +02:00
flex-wrap: nowrap;
2020-08-05 20:44:52 +02:00
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
2020-09-29 22:21:08 +02:00
gap: unset;
.LP-Headline, .LP-Paragraph {
font-size: unset;
}
2020-08-01 10:57:00 +02:00
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Info{
.LP-Headline{
font-size: 28px;
}
}
2020-08-01 10:57:00 +02:00
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Icons{
margin-top: auto;
ul{
padding: 0;
margin: 0;
}
}
2020-09-29 22:21:08 +02:00
.LP-Icon {
height: 20px;
width: 20px;
}
2020-08-05 20:44:52 +02:00
}
2020-08-01 10:57:00 +02:00
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Description{
display: block;
max-height: 55px;
overflow: hidden;
2020-09-29 22:21:08 +02:00
order: unset;
.LP-Paragraph {
font-size: unset;
}
2020-08-05 20:44:52 +02:00
}
2020-08-01 10:57:00 +02:00
2020-08-05 20:44:52 +02:00
.LP-PlaceTeaser__Image{
height:165px;
width: 280px;
flex-shrink: 0;
flex-grow: 0;
}
}
2020-07-17 17:55:46 +02:00
}