Skip to content

Commit

Permalink
fix(ffe-cards): fix styling så det funker med svg ikoner
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleneKassandra authored and Peter Hellstrand committed Feb 8, 2024
1 parent b1aa5a6 commit 88e710f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/ffe-cards/less/icon-card.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
padding: @ffe-spacing-md;
min-height: 130px;

&__icon {
& > &__icon {
color: var(--ffe-v-cards-icon-color);
font-size: 3rem;
margin: 0 @ffe-spacing-lg 0 @ffe-spacing-xs;
}

Expand All @@ -29,7 +28,6 @@
}

.ffe-icon-card__icon {
font-size: 2rem;
margin: 0 var(--ffe-spacing-sm) 0 0;
}
}
5 changes: 2 additions & 3 deletions packages/ffe-cards/less/stippled-card.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
}
}

.ffe-stippled-card__img--icon {
.ffe-stippled-card__img--icon,
.ffe-stippled-card__img--icon > .ffe-icons {
margin: 0 @ffe-spacing-md 0 @ffe-spacing-xs;
color: var(--ffe-v-cards-icon-color);
font-size: 3rem;
}

.ffe-stippled-card--condensed {
Expand All @@ -39,6 +39,5 @@

.ffe-stippled-card--condensed .ffe-stippled-card__img--icon {
margin: 0 @ffe-spacing-2xs 0 0;
font-size: 2rem;
color: var(--ffe-v-cards-icon-color);
}

0 comments on commit 88e710f

Please sign in to comment.