Ongoing styles work: more mobile-friendly styles
Hi!
Just a quick update, we've been adjusting the existing styles to make them more mobile friendly. None of this is live on the site yet, but the goal is to have sidebars, etc, go beneath the content on smaller screens, no matter how many columns there are on bigger screens (one, two, or three).
This should be the case for most of our styles, though not all -- some of the styles will require a bit more work than others and will come later.
Biggest changes:
- "one-column" mode on smaller screens, to avoid sidebars overlapping into your entry content
- navigation strip to become more flexible so it doesn't break the layout on smaller screens
- more reasonable appearance on initial load on mobile phones (using
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
if you're familiar with that) - adding a link to jump to the modules below the entries, as per Mobility
Biggest non-change: * barring a few tweaks of whitespace here and there, the appearance on bigger screens and desktops should remain unchanged. I've tested this as thoroughly as I can for each style -- but with how many styles we have, I've only been able to test with the default module configurations (e.g., if the module is in the sidebar by default, I haven't also tested by rearranging the modules so it's in the footer or header).
We don't expect any big changes but once this goes live, we're definitely open for bug reports of unexpected breakage or awkwardness!
There's not been a lot of structural HTML changes (the only change in the HTML is the addition of the meta viewport tag, and the link to jump to modules), so if you have a custom stylesheet we don't expect anything to break. But posting this as an early heads-up of what's coming so it doesn't come as a shock when it does.
no subject
Thank you. :)
no subject
Definitely not! We've set initial-scale but not maximum-scale (it's the latter that prevents zooming :))
no subject
no subject
I am glad you did; easier to make sure earlier than have to correct it once people are having problems later so thanks!
no subject
no subject
The
no subject
The styling is pretty baked into the CSS -- but if you're using a custom style and not the default style sheet your layout won't be affected by the changes.
(And yeah I hate redirects to mobile they so rarely work right. It's all with media queries, no redirects. That I can promise you)
no subject
What about C: A user picks a layout and edits the CSS or makes other changes solely in the customization wizard. Which would they get? Yes or no to mobile-shift? (That's how I've done mine for the most part - I'm using a base Librarian's Dream, but I've altered colors in the wizard and added a bunch of CSS in the custom box without going into the compiler.)
no subject
A: Yup
B: Yup (assuming they're overriding Page::print_default_stylesheet)
C: Depends on if they've checked the "use layout default stylesheet" or not. In your case it sounds like you will be getting the mobile-shift.
if you wanted to override that, there's no quick toggle unfortunately, but you could override in your own CSS. (And in case you're wondering, here are the code changes for Librarian's Dream specifically (you can see the whole layer post-changes using the view link up top))
no subject
Is there a simple thing like a display:none that I can just shove in there? I unticked the default stylesheet ticky just to see what happened and it went kablooie since I'm only making a few tweaks not putting in an entirely different cut/paste css layout. I mean, I'm willing to go so far as to hoover the Librarian's Dream S2 entirely and make my own custom layer in the compiler that looks EXACTLY THE SAME MWAHAHAHA >.> but a one-line "ignore this @media bit" would be so much easier.
no subject
Hmmmmm. I think technically you could set the $*desktop_media_query variable to something tiny -- it's something like "media screen and (min-width: X)" right now. I don't have the exact variable name (and can't check easily on the phone at the moment) but it could be doable
(The option won't be exposed in the wizard UI because I was only using a global variable for convenience across styles, but that means you can set it manually in a theme/user layer which I think you know how to deal with)
no subject
I appreciate your patience!
no subject
no subject
no subject
Since the conversion to the single column format, it has moved the second (small) column directly below the main entry column (as mentioned in the code push post). I'm finding that it looks awkward on the desktop (because the smaller column is very... uh, vertical?).
Looking at the layout options on the customization page, I noticed that it was horizontal options for the columns now. Would I be able to apply that to my current layout so that it simply makes the second column into a horizontal one containing all my modules instead of the current vertical on, without it effecting my layout too much?
(And if I do apply one of the horizontal options, is there no turning back? As in, I wouldn't be able to go back the awkward two column layout I currently have?)
Thank you.
no subject
Also, I'm not seeing the buttons for editing posts, etc? I'm not sure if I d checked for them on mobile before, but highly inconvenient if intended. Is there a way to disable the change? At least for me it seems to severely impact functionality.
no subject
no subject
Really, this is horrible. Please give us the choice of using desktop view on our mobile devices -- and please do so in a way that those of us not familiar with CSS coding can make use of it!
no subject
(I realise different layouts may have different CSS arguments - just guidance on where to find the argument I need will (hopefully) be useful enough!)
no subject
Hmmm. I think your best bet would be to check out places like
style_system!