Skip to content

Commit

Permalink
Refactor EventHeader CSS
Browse files Browse the repository at this point in the history
Replaced margin-top in `.event-header__tag` with additional padding in `.event-header__content`.
  • Loading branch information
kasperbirch1 committed Dec 7, 2023
1 parent 4368929 commit d303344
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stories/Library/event-header/event-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

.event-header__content {
padding-top: $s-md;
display: grid;
grid-template-columns: $s-3xl 1fr $s-3xl;
grid-template-areas:
Expand All @@ -29,16 +30,17 @@
"btn btn btn";

@include breakpoint-s {
padding-top: $s-3xl;
grid-template-columns: 1fr;
}
}

.event-header__tag {
grid-area: tag;
width: max-content;
margin: $s-md 0;
margin-bottom: $s-md;
@include breakpoint-s {
margin: $s-lg 0;
margin-bottom: $s-lg;
}
}

Expand Down

0 comments on commit d303344

Please sign in to comment.