Skip to content

Commit

Permalink
refactor: styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GentlemanHal committed Apr 22, 2024
1 parent 31ce3cb commit 1bdd0fd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/client/common/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ $spacing-height: 1.5em;
$spacing-width: 1em;
$max-page-width: 1280px;

// Cards
$card-header-padding: 0.75rem;

// Z Index
$header-footer-index: 100;
$focus-index: 1000;
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
align-items: center;
background-color: colours.$light-grey;
display: flex;
padding: 1em;
padding: layout.$card-header-padding;
}

.body {
Expand Down
4 changes: 4 additions & 0 deletions src/client/common/summary.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@use './responsive';

.summaryList {
div:last-child > dd {
margin-bottom: 0;
}

@include responsive.respond-to(tablet, desktop) {
width: 100%;
}
Expand Down
8 changes: 6 additions & 2 deletions src/client/settings/success/success-messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
.cardHeader {
background-color: black;
justify-content: flex-end;
margin-bottom: calc(-2em - #{forms.$standard-input-size-mobile});
margin-bottom: calc(
-#{layout.$card-header-padding * 2} - #{forms.$standard-input-size-mobile}
);
overflow: visible;

@include responsive.respond-to(tablet, desktop) {
margin-bottom: calc(-2em - #{forms.$standard-input-size-above-mobile});
margin-bottom: calc(
-#{layout.$card-header-padding * 2} - #{forms.$standard-input-size-above-mobile}
);
}
}

Expand Down

0 comments on commit 1bdd0fd

Please sign in to comment.