Skip to content

Commit

Permalink
Adjust banners to match heights
Browse files Browse the repository at this point in the history
THis removes some padding and margins at smaller
sizes in order to keep the banners at a consistent
height.

Ticket: https://phabricator.wikimedia.org/T380274
  • Loading branch information
Abban committed Nov 22, 2024
1 parent 9fca948 commit 9866f6c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $form-width: 300px !default;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 16px;
padding: 11px;
color: var( --message-color );
background-color: var( --message-background );
border: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $form-width: 300px !default;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 16px;
padding: 11px;
}

&-column-left {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
@use 'src/themes/Treedip/Footer/SelectionInput';
@use 'src/themes/Treedip/Message/Message';
@use 'src/themes/Treedip/SoftClose/SoftClose';
@use 'src/themes/Treedip/Slider/KeenSlider';
@use 'src/themes/Treedip/Slider/KeenSlider' with (
$slider-padding: 0
);

/**
* Fallback banner with "Fijitiv" theme
Expand Down
15 changes: 12 additions & 3 deletions src/themes/Svingle/Message/Message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ $font-sizes: ( breakpoints.$extra-small: 18px ) !default;
&-message-header {
font-family: $font;
text-align: center;
padding-bottom: 15px;
padding-bottom: 0;

@include breakpoints.small-up {
padding-bottom: 15px;
}

h2 {
font-family: $font;
Expand All @@ -76,9 +80,14 @@ $font-sizes: ( breakpoints.$extra-small: 18px ) !default;
max-height: 62px;
margin: 0 0 4px;
padding: 0;
font-size: 25px;
font-size: 18px;
font-weight: 800;
line-height: 24px;
line-height: 18px;

@include breakpoints.small-up {
font-size: 25px;
line-height: 24px;
}
}

svg {
Expand Down
15 changes: 12 additions & 3 deletions src/themes/Treedip/Message/Message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ $font-sizes: ( breakpoints.$extra-small: 18px ) !default;
&-message-header {
font-family: $font;
text-align: center;
padding-bottom: 15px;
padding-bottom: 10px;

@include breakpoints.small-up {
padding-bottom: 15px;
}

h2 {
font-family: $font;
Expand All @@ -41,9 +45,14 @@ $font-sizes: ( breakpoints.$extra-small: 18px ) !default;
max-height: 62px;
margin: 0 0 4px;
padding: 0;
font-size: 25px;
font-size: 18px;
font-weight: 800;
line-height: 24px;
line-height: 18px;

@include breakpoints.small-up {
font-size: 25px;
line-height: 24px;
}
}

svg {
Expand Down

0 comments on commit 9866f6c

Please sign in to comment.