Closed blacklightpy closed 3 days ago
I'm not entirely sure what you're trying to do, but let me explain what your current settings do:
@saberzero1 That is what's intended. But on screens 400px and wider, it crams everything into a 400px width, which makes everything unreadable.
@saberzero1 That is what's intended. But on screens 400px and wider, it crams everything into a 400px width, which makes everything unreadable.
Can you try this for the desktop variable:
desktop: max(400px, 100vw),
Worky!
@saberzero1 Actually no, the mobile view in developer tools shows desktop layout on all resolutions. But on mobile, my three browsers show tablet mode.
Nvm, I got the full desktop layout on developer tools because it was cached. Now even desktop shows only the tablet mode.
I think I know what can fix this.. ~100vw-1
~ calc(100vw - 1px)
, because only 1201px wide viewports show desktop layout in the default config.
NOTE (for anyone copying this): the space before and after the -
is important.
That worked on all browsers except the LineageOS WebView Browser, which is pretty basic and has issues.
If I put in
variables.scss
I get a viewport of 400 px in all devices, even desktop.
What I want is to get the file navigation tree and table of contents to be visible on devices with 400px viewport, by zooming in. I thought this config would display desktop layout on 400px+ viewport devices. and tablet layout on all other devices.
With the above config, I do get the file navigation tree and table of contents, but all crammed into a small 400px content width. That's not what I want, I want the full device width to contain the whole layout. In small screens (400 px+), I'd want them to have a minimum viewport width of 1200 px.
If I set
<meta name="viewport" content="width=1201"/>
, it's of no use either, because the viewport will still be set to device viewport width effectively.How do I do this?