Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHEMH-260 | @jdwjdwjdw | Update full pill banner mobile styles #80

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions src/scss/components/banner/_banner--fullpill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ $banner-circle--sm-image-width: 150px;


.chemh-wrapper--banner-fullpill {
margin: 0 auto;

@include grid-media-min('sm') {

@include grid-media-min('md') {
margin: 0 auto;
max-width: calc(100vw - 200px);
}

Expand All @@ -20,18 +20,24 @@ $banner-circle--sm-image-width: 150px;
align-items: center;
min-height: 400px;

@include grid-media-max('lg') {
flex-direction: column;
}

@include grid-media-max('md') {
background: $su-color-black url("../../assets/svg/fullpill-bg.svg") no-repeat 100% / 205%;
flex-direction: column;
background-size: cover;

jdwjdwjdw marked this conversation as resolved.
Show resolved Hide resolved
@include modular-spacing('padding', 3);
}

@include grid-media-max('lg') {
flex-direction: column;

@include grid-media-max('sm') {
border-radius: unset;
background: $su-color-black;
}


@include modular-spacing('padding-top', 3);
@include modular-spacing('padding-bottom', 3);

Expand All @@ -44,8 +50,7 @@ $banner-circle--sm-image-width: 150px;
width: 275px;

@include grid-media-max('sm') {
aspect-ratio: unset;
margin: 0 auto;
display: none;
}

img { // Image display has been set to media image style - Medium (220)
Expand Down
Loading