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

137 lines
2.9 KiB
SCSS
Raw Normal View History

2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser {
width: 100%;
2020-08-01 00:27:38 +02:00
2020-12-25 12:39:37 +01: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-12-25 12:39:37 +01:00
.LP-Image {
max-width: unset;
max-height: unset;
2020-08-05 20:44:52 +02:00
object-fit: cover;
}
2020-07-17 17:55:46 +02:00
}
2020-12-25 12:39:37 +01: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;
2020-12-25 12:39:37 +01:00
.LP-Paragraph {
2020-08-05 20:44:52 +02:00
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-12-25 12:39:37 +01:00
.LP-Headline {
2020-08-05 20:44:52 +02:00
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-12-25 12:39:37 +01: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-12-25 12:39:37 +01:00
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-12-25 12:39:37 +01:00
@media(min-width: $-viewport-small) {
.LP-PlaceTeaser {
width: 280px;
&__Image {
width: 280px;
height: 165px;
}
}
2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser--extended {
2020-08-05 20:44:52 +02:00
display: flex;
flex-direction: row;
width: auto;
padding-right: 25px;
height: 165px;
2020-08-01 10:57:00 +02:00
2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser__Meta {
2020-08-05 20:44:52 +02:00
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;
2020-12-25 12:39:37 +01:00
.LP-Headline,
.LP-Paragraph {
2020-09-29 22:21:08 +02:00
font-size: unset;
}
2020-08-01 10:57:00 +02:00
2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser__Info {
.LP-Headline {
2020-08-05 20:44:52 +02:00
font-size: 28px;
}
}
2020-08-01 10:57:00 +02:00
2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser__Icons {
2020-08-05 20:44:52 +02:00
margin-top: auto;
2020-12-25 12:39:37 +01:00
ul {
2020-08-05 20:44:52 +02:00
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-12-25 12:39:37 +01:00
.LP-PlaceTeaser__Description {
2020-08-05 20:44:52 +02:00
display: block;
max-height: 55px;
overflow: hidden;
2020-09-29 22:21:08 +02:00
order: unset;
.LP-Paragraph {
font-size: unset;
2020-12-25 12:39:37 +01:00
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
2020-09-29 22:21:08 +02:00
}
2020-08-05 20:44:52 +02:00
}
2020-08-01 10:57:00 +02:00
2020-12-25 12:39:37 +01:00
.LP-PlaceTeaser__Image {
height: 165px;
2020-08-05 20:44:52 +02:00
width: 280px;
flex-shrink: 0;
flex-grow: 0;
2020-12-25 12:39:37 +01:00
2020-08-05 20:44:52 +02:00
}
}
2021-10-02 07:19:34 +02:00
}