Skip to content

Commit

Permalink
style: adjust mobile padding for footer bands (#755)
Browse files Browse the repository at this point in the history
* style: adjust mobile padding for footer bands

* chore: update tokens package
  • Loading branch information
melaniebmn authored Feb 20, 2025
1 parent a73433c commit 890c216
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@cdssnc/gcds-tokens": "^2.5.0",
"@cdssnc/gcds-tokens": "^2.6.0",
"@fortawesome/fontawesome-free": "^6.3.0",
"@stencil/angular-output-target": "file:../../utils/angular-output-target",
"@stencil/postcss": "^2.1.0",
Expand Down
13 changes: 12 additions & 1 deletion packages/web/src/components/gcds-footer/gcds-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.gcds-footer__contextual,
.gcds-footer__main,
.gcds-footer__sub {
padding: var(--gcds-footer-band-padding);
padding: var(--gcds-footer-band-padding-desktop);
}

.sub__header,
Expand Down Expand Up @@ -156,6 +156,17 @@
}

@layer compact {
/* Mobile specific style */
@media only screen and (width < 45em) {
:host {
.gcds-footer__contextual,
.gcds-footer__main,
.gcds-footer__sub {
padding: var(--gcds-footer-band-padding-mobile);
}
}
}

@container sub (width <= 30em) {
:host .gcds-footer__sub .sub__container {
slot[name='wordmark'],
Expand Down

0 comments on commit 890c216

Please sign in to comment.