Compare commits

..

No commits in common. "f35ca8c818f46ba67fa7ee872c14005a9667c71b" and "802134db1458fdafa47ee4bef0b70939cf3f8349" have entirely different histories.

3 changed files with 27 additions and 42 deletions

View File

@ -1,18 +1,18 @@
.LP-PlaceTeaser { .LP-PlaceTeaser{
width: 100%; width: 100%;
.LP-PlaceTeaser__Image { .LP-PlaceTeaser__Image{
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
.LP-Image { .LP-Image{
max-width: unset; max-width:unset;
max-height: unset; max-height:unset;
object-fit: cover; object-fit: cover;
} }
} }
.LP-PlaceTeaser__Meta { .LP-PlaceTeaser__Meta{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: $-spacing-small; gap: $-spacing-small;
@ -21,8 +21,8 @@
padding: 5px; padding: 5px;
padding-bottom: 10px; padding-bottom: 10px;
padding-top: 10px; padding-top: 10px;
.LP-Paragraph { .LP-Paragraph{
font-family: $-primary-sans-serif-font; font-family: $-primary-sans-serif-font;
padding: 0; padding: 0;
margin: 0; margin: 0;
@ -30,7 +30,7 @@
font-size: 1.3rem; font-size: 1.3rem;
} }
.LP-Headline { .LP-Headline{
font-family: $-primary-sans-serif-font; font-family: $-primary-sans-serif-font;
color: $-grey; color: $-grey;
font-size: 2rem; font-size: 2rem;
@ -44,19 +44,18 @@
} }
} }
.LP-PlaceTeaser__Description { .LP-PlaceTeaser__Description{
font-family: $-primary-sans-serif-font; font-family: $-primary-sans-serif-font;
color: $-grey; color: $-grey;
order: 3; order: 3;
flex-basis: 100%; flex-basis: 100%;
.LP-Paragraph { .LP-Paragraph {
font-size: 22px; font-size: 22px;
} }
} }
} }
@media(min-width: $-viewport-small) { @media(min-width: $-viewport-small){
.LP-PlaceTeaser { .LP-PlaceTeaser {
width: 280px; width: 280px;
@ -65,15 +64,14 @@
height: 165px; height: 165px;
} }
} }
.LP-PlaceTeaser--extended{
.LP-PlaceTeaser--extended {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: auto; width: auto;
padding-right: 25px; padding-right: 25px;
height: 165px; height: 165px;
.LP-PlaceTeaser__Meta { .LP-PlaceTeaser__Meta{
margin: 0; margin: 0;
padding-left: 25px; padding-left: 25px;
display: flex; display: flex;
@ -83,21 +81,20 @@
align-items: flex-start; align-items: flex-start;
gap: unset; gap: unset;
.LP-Headline, .LP-Headline, .LP-Paragraph {
.LP-Paragraph {
font-size: unset; font-size: unset;
} }
.LP-PlaceTeaser__Info { .LP-PlaceTeaser__Info{
.LP-Headline { .LP-Headline{
font-size: 28px; font-size: 28px;
} }
} }
.LP-PlaceTeaser__Icons { .LP-PlaceTeaser__Icons{
margin-top: auto; margin-top: auto;
ul { ul{
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
@ -109,7 +106,7 @@
} }
} }
.LP-PlaceTeaser__Description { .LP-PlaceTeaser__Description{
display: block; display: block;
max-height: 55px; max-height: 55px;
overflow: hidden; overflow: hidden;
@ -117,20 +114,15 @@
.LP-Paragraph { .LP-Paragraph {
font-size: unset; font-size: unset;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
} }
} }
.LP-PlaceTeaser__Image { .LP-PlaceTeaser__Image{
height: 165px; height:165px;
width: 280px; width: 280px;
flex-shrink: 0; flex-shrink: 0;
flex-grow: 0; flex-grow: 0;
} }
} }
} }

View File

@ -2,12 +2,11 @@
"name": "Lostplaces", "name": "Lostplaces",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@frctl/fractal": "^1.5.2", "@frctl/fractal": "^1.3.0",
"fractal": "0.0.3", "fractal": "0.0.3",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"sass": "^1.30.0", "sass": "^1.26.11"
"sass-loader": "^10.0.5"
}, },
"scripts": { "scripts": {
"sass": "node-sass -w components/main.scss -o public/ --recursive", "sass": "node-sass -w components/main.scss -o public/ --recursive",

View File

@ -923,8 +923,7 @@ body {
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
gap: unset; } gap: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Headline, .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Headline, .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Paragraph {
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-Paragraph {
font-size: unset; } font-size: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Info .LP-Headline { .LP-PlaceTeaser--extended .LP-PlaceTeaser__Meta .LP-PlaceTeaser__Info .LP-Headline {
font-size: 28px; } font-size: 28px; }
@ -942,12 +941,7 @@ body {
overflow: hidden; overflow: hidden;
order: unset; } order: unset; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Description .LP-Paragraph { .LP-PlaceTeaser--extended .LP-PlaceTeaser__Description .LP-Paragraph {
font-size: unset; font-size: unset; }
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis; }
.LP-PlaceTeaser--extended .LP-PlaceTeaser__Image { .LP-PlaceTeaser--extended .LP-PlaceTeaser__Image {
height: 165px; height: 165px;
width: 280px; width: 280px;