-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix: (layouts/partials/footer.html) Alignment #230
Fix: (layouts/partials/footer.html) Alignment #230
Conversation
This removes the hard-coded padding-left property from these UL elements. It fixes the alignment in a narrow (e.g. smartphone) display, and in a wide (e.g. desktop) display, the difference is insignificant and no worse. Fixes scientific-python#192. Thanks to Pamphile Roy (@tupui) for reporting.
✅ Deploy Preview for scientific-python-hugo-theme ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Fixes scientific-python#192. Thanks to Pamphile Roy (@tupui) for reporting.
d22bfb0
to
1a585a6
Compare
The second commit adjusts margins around the A noticeable difference is that the "Scientific Python" text is more often split onto separate lines, depending on screen size. At some sizes, this is inevitable, but at wider ones it could be avoided by widening the containing element. But some of this is a matter of style or preference. @jarrodmillman @tupui What do you think? Thanks. ScreenshotsBefore:After: |
Thanks @alphapapa 🚀 For the first commit, it's way better! There still seems to be a slight padding, can this be removed?? For the second commit. I think it looked better with the logo close to the title. Otherwise we have a lot of empty space in between. But in general I do agree that this could be re-designed. |
Hi Pamphile,
I'm not sure what padding you mean. Would you be more specific please?
I agree that the spacing seems excessive. I'll try to improve that and then make another commit on this PR. Thanks for your feedback. |
For indentation in Emacs's css-mode. This way Emacs doesn't want to change the indentation from the file's current 2-spaces setting.
9c5e65f
to
713b5ca
Compare
I've made some further improvements to the CSS. Here are screenshots showing phone, tablet, and desktop screens: I also improved the alignment of the "GET STARTED" button and the text above it. This is much better, I think. The only minor problem I still see is that, in the phone-sized screenshot (the first one), the logo is very small. This could probably be further improved, and the best way to do so would probably be--on narrow screens, specifically--to either put the logo below the text rather than beside it, or decrease the text size to allow more room for the logo. What do you all think? Thanks. |
I agree with your assessment about the logo on mobile, and the solution proposed (top, perhaps?) sounds good. |
This enlarges the logo on screens above 400px wide, and on screens that wide or narrower, the logo is displayed below the text.
9c3af1c
to
560f07f
Compare
@stefanv Thanks. I made some more adjustments and I think it looks pretty good now. Here are screenshots at relevant sizes: |
When approved, this should probably be squash-merged. Thanks. |
LGTM; @jarrodmillman? |
This removes the hard-coded padding-left property from these UL elements. It fixes the alignment in a narrow (e.g. smartphone) display, and in a wide (e.g. desktop) display, the difference is insignificant and no worse.
Fixes #192. Thanks to Pamphile Roy (@tupui) for reporting.
Screenshots
Before changes
After changes