Problems styling the page header the way I want it #6639
-
Here is my MkDocs/material GitHub: https://github.com/pitosalas/wp-convert and here is the resultant web site. It's getting to where I want it to be. Escaping the claws of Wordpress and controlling it all myself. I have a home page which is the latest "index" page of the blog. But for some reason the nav is along the side instead of along the top, and also I want an image in the header - a banner filling up the top 200 pixels or so. I've tried but so far have not succeeded in setting this up. Can someone give me a tip? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Since you are already using The banner should be fairly easy to do by overriding the |
Beta Was this translation helpful? Give feedback.
-
Thanks, a very helpful explanation of how this mechanism works!
I am sorry though about the limited nav.
|
Beta Was this translation helpful? Give feedback.
-
Actually, I got curious then what
"navigation.tabs” does and it seems like it should to do what I want…
Not sure why it’s not doing it.
…On Jan 12, 2024 at 8:47:28 PM, Pito Salas ***@***.***> wrote:
Thanks, a very helpful explanation of how this mechanism works!
I am sorry though about the limited nav.
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the small messages…
And now I figured out that the table only appear if the window is wider
than 1220. There seems to be many mentions of 1220 in the source. Which one
do I use if I want the Navigation Tabs to appear all the time or at least
at a narrower window? This does not seem to do it:
.md-grid {
<https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#__codelineno-19-2>
max-width: 600px;
<https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#__codelineno-19-3>
}
Thanks!
Pito
…On Jan 12, 2024 at 8:51:30 PM, Pito Salas ***@***.***> wrote:
Actually, I got curious then what
"navigation.tabs” does and it seems like it should to do what I want…
Not sure why it’s not doing it.
On Jan 12, 2024 at 8:47:28 PM, Pito Salas ***@***.***> wrote:
> Thanks, a very helpful explanation of how this mechanism works!
>
> I am sorry though about the limited nav.
>
>
>
|
Beta Was this translation helpful? Give feedback.
-
Fantastic, that works!
Thanks for all your help :)
…On Jan 13, 2024 at 12:33:38 AM, Kamil Krzyśków ***@***.***> wrote:
Looking in the developer tools I saw this hiding the tabs when switching
to "tablet" resolution:
@media screen and (max-width: 76.2344em) {
.md-tabs {
display: none;
}
}
so override it with the same and display: initial; in the extra css:
https://squidfunk.github.io/mkdocs-material/customization/#additional-css
@media screen and (max-width: 76.2344em) {
.md-tabs {
display: initial;
}
}
—
Reply to this email directly, view it on GitHub
<#6639 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAK5CPBS3URX4BKRSL3X7LYOIMDFAVCNFSM6AAAAABBYDUGO6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMJWGAYDA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Looking in the developer tools I saw this hiding the tabs when switching to "tablet" resolution:
so override it with the same and display
block
orinitial
in the extra css:https://squidfunk.github.io/mkdocs-material/customization/#additional-css