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
Refactor footer logo default maxWidth + Use Meta Open-Source Logo #262
Conversation
Size Change: +588 B (0%) Total Size: 554 kB
ℹ️ View Unchanged
|
Dist CSS Diffdiff --git a/packages/core/dist/css/default/default.css b/packages/core/dist-branch/css/default/default.css
index 52da5d8..95fc6e3 100644
--- a/packages/core/dist/css/default/default.css
+++ b/packages/core/dist-branch/css/default/default.css
@@ -314,6 +314,7 @@
--ifm-footer-padding-horizontal: calc(var(--ifm-spacing-horizontal) * 2);
--ifm-footer-padding-vertical: calc(var(--ifm-spacing-vertical) * 2);
--ifm-footer-title-color: inherit;
+ --ifm-footer-logo-max-width: min(30rem, 90vw);
--ifm-hero-background-color: var(--ifm-background-surface-color);
--ifm-hero-text-color: var(--ifm-color-emphasis-800);
--ifm-menu-color: var(--ifm-color-emphasis-700);
@@ -2207,7 +2208,7 @@ hr {
.footer__logo {
margin-top: 1rem;
- max-width: 10rem;
+ max-width: var(--ifm-footer-logo-max-width);
}
.footer__title { |
✅ Deploy Preview for infima ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
.nvmrc
Outdated
@@ -1 +1 @@ | |||
18 | |||
16.14.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use a lax range. I configured my Bash to automatically switch to the .nvmrc
version, and I installed 16.15.0
for v16, so anything declaring a different minor will force me to install another Node.
Fixes #260
By default, the footer logo has a CSS max-width way too small, and it doesn't work great for some logos, requiring CSS override.
Now we use
min(30rem, 90vw)
:Note:
min()
is not supported by a limited set of users (Chinese? cf #260 (comment)): not a big deal in this specific case and support should keep increasing. At worst the footer logo would be too large.Also related to Docusaurus issue facebook/docusaurus#7643, now permitting to provide CSS overrides more conveniently in case 480px is not a good value.
Also reverting to Node 16.14 to fix broken Netlify deployment after #261)