Skip to content

Commit

Permalink
Merge pull request #771 from City-of-Helsinki/UHF-9196_Update_card_style
Browse files Browse the repository at this point in the history
UHF-9196: Update project listing cards to common one
  • Loading branch information
teroelonen authored Jan 2, 2024
2 parents 1de1871 + d67816e commit f134f98
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 90 deletions.
2 changes: 1 addition & 1 deletion public/themes/custom/hdbt_subtheme/dist/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions public/themes/custom/hdbt_subtheme/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@use "sass:math";

/* District and project shared teaser styles */
.district-teaser,
.project-teaser {
.district-teaser {
background-color: $color-white;
margin-bottom: $spacing;
position: relative;
Expand Down Expand Up @@ -30,8 +29,7 @@
}
}

.district-teaser__data,
.project-teaser__data {
.district-teaser__data {
display: flex;
flex-direction: column;
padding: $spacing-double $spacing-and-half $spacing-double $spacing-and-half;
Expand Down Expand Up @@ -72,8 +70,7 @@ $-image-placeholder-ratio: math.div(3, 2);
$-image-size: 380px;
$-image-min-size: 220px;

.district-teaser__image,
.project-teaser__image {
.district-teaser__image {
min-width: $-image-min-size;
overflow: hidden;

Expand All @@ -94,8 +91,7 @@ $-image-min-size: 220px;
}
}

.district-teaser__link,
.project-teaser__link {
.district-teaser__link {
display: block;
margin-bottom: $spacing;
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
}

.metadata__item-content .label:not(:last-of-type)::after,
.metadata__item--schedule--plan-schedule *:last-child::after {
.metadata__item--schedule--plan-schedule *:last-child::after,
.card__meta__content .label:not(:last-of-type)::after,
.card__meta__content .label--schedule:not(:last-of-type) *:last-child::after {
content: ', ';
}

Expand Down
Loading

0 comments on commit f134f98

Please sign in to comment.