Text-Header Spacing from Top
This support request was posted in Flatbase by tleuxner
- tleuxner February 17, 2018 at 3:30 pm
Hi,
I installed the theme yesterday and like it a lot. When using a text header with the “Minimal” layout, the spacing of the red text header from the top is different depending on the view:
https://kb.leuxner.net/article-category/named/
If you navigate to the article the text header is further away from the top (it is pushed down a bit):
https://kb.leuxner.net/article/securing-transaction-signatures-using-acls/
This creates a bit of an uneasy effect as the header “jumps” when browsing articles vs categories.
Another little thing I noticed is in regard to the idents of “pre” tags. My configuration snippets look fine in the editor but they lose all the indent when rendered inside the article – well some do. The same article depicts the problem:
https://kb.leuxner.net/article/securing-transaction-signatures-using-acls/
Zone configuration shows no idents while pre-tagged boxes above it correctly display the “whitespace”.
Regards
ThomasJuanfra Aldasoro February 19, 2018 at 1:19 pmHi Thomas,
Thank you for writing. I hope you are doing well.
We’ll be checking the logo issue.
With regards to the pre tag, are you using any plugin that may change the styles for it?
Would you please try adding the following CSS:
pre, pre code { white-space: pre-wrap !important; }
Best,
Juan.tleuxner February 19, 2018 at 1:36 pmThanks Juan,
I added the CSS to the Custom Section and it works fine now. Much appreciated.
Regards
ThomasJuanfra Aldasoro February 19, 2018 at 3:22 pmHi Thomas,
Thanks for the follow-up.
Regarding the other issue, it has to do with a CSS inheritance. As you are using the text title option, the logo is rendered in an H1 tag, and it is taking the same size as the article title (and by that, the line height as well). So, you can apply a small fix by adding the following CSS:
body.single-article #logo h1 { font-size: 32px; }
Best,
Juan.tleuxner February 19, 2018 at 3:28 pmExcellent. This works now too.
Thanks for resolving this so quickly.
Regards
Thomas
This topic is marked as resolved
Only the topic author can re-open this thread.