-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: Better way to adjust footer position in Pisces. #1807
Conversation
@AlynxZhou maybe not need |
@ivan-nginx Maybe. I just think that main needs keep a distence with footer, just because this looks good, you can remove this line. I just think the old way NexT use is not so flexible. |
Yes, footer padding/margin have more space. In my blog i reduce it, but not else syncronize with master branch because there are a lot of changes in custom styles, but i do it soon. |
@ivan-nginx I only find Pisces, because I only find padding-bottom in |
@AlynxZhou there is some bug in Mist theme (#1818). Need to fix it, i think. |
@ivan-nginx I think that's because his page is too short (shorter than the browser window), however if set its position to absolute back, the padding bottom of main need to set again, because it won't change automatically. I cannot think a better way to solve both of them... |
@ivan-nginx I find the way in Gemini to adjust the position of footer works fine and add it into Pisces, then solved this problem. Maybe I should open another PR? |
@AlynxZhou Sounds good. Need to fix it anyway, because and on Pisces and on Gemini if footer not absolute, he's will always stick to top page and on categories/tags pages footer will show at the center page — this is not right. Footer must always be in bottom. |
@ivan-nginx I finally changed it back, just change some variables to let it seems better, and changed Gemini, now its footer also stay in bottom. But honestly I want to add some custom lines to footer and in this way I need to change the variables for myself, there seems no easier way to set main's padding-bottom dynamically. Anyway, that's my own problem, I already fixed this bug, I will open another PR. |
Why u not want to add something like
Why? U read about flex style? There is no impossible things, if u want to change something truly. Show me, where u add your custom labels? |
@ivan-nginx I don't mean an option, I mean that I add something to my own site, then I need to change something, but not every one needs those things, so I didn't add them to the theme.
Now footer has a fixed height of 140px, this can contain 3 lines (copyright, theme info and busuanzi counter), but if I add to custom lines to footer such as "Hosted by GitHub Pages", 140px is too small that the word will expand to other part, then I need to custom the number. I really want a easy way to adjust the number due to total lines height, not by user, but I know little about CSS. |
@AlynxZhou ok, can u give me «Hosted by GitHub Pages» code? Go write comments to new #1824 pull. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Like this image, if you add some custom sentences or just enable busuanzi like me, you'll find that footer height didn't increase as you want, and that would cause a bug when the inner HTML is too much, it will going into main part.
I fixed this problem, very simply, I read the css code and find NexT use a strange way to place the footer, that is let main use absolute position in the bottom and a big padding-bottom, then let the footer show above this padding-bottom, but the padding-bottom won't change automatically. I just removed those css, added a padding-top to footer, then the footer will show after the main, and main's padding-bottom have nothing with footer, just the way every simple HTML page use.
Issue Number(s): N/A
What is the new behavior?
Already tested and worked in my blog, perfectly.
Does this PR introduce a breaking change?