![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
SOLVED, with multiple options. THANK YOU!
I have recently started using my phone to access DW more often, and unsurprisingly I am finding that my styles, which I love and prefer to use on my desktop and laptop, do not play nicely with the tiny phone screen real estate.
Is there a way to keep my usual styles, but view pages when I'm on my phone using a different style, such as Mobility, instead?
[Edit to add] I'm specifically hoping to use an actual style rather than "?style=site" or "?style=light". [end edit]
Thanks for any advice you can give!
I have recently started using my phone to access DW more often, and unsurprisingly I am finding that my styles, which I love and prefer to use on my desktop and laptop, do not play nicely with the tiny phone screen real estate.
Is there a way to keep my usual styles, but view pages when I'm on my phone using a different style, such as Mobility, instead?
[Edit to add] I'm specifically hoping to use an actual style rather than "?style=site" or "?style=light". [end edit]
Thanks for any advice you can give!
no subject
Date: 2017-04-15 05:03 pm (UTC)no subject
Date: 2017-04-15 05:49 pm (UTC)no subject
Date: 2017-04-15 11:42 pm (UTC)I'll assume in my head that you already know about viewing in a different style (less ideal if the reasons yours doesn't work for you on mobile is because of options, rather than base layout. For instance, and an example of a theme that's worse, not better: https://montuos.dreamwidth.org/read?s2id=87663
Beyond that, I don't have a hack to offer for an entirely different style in a reactive mobile view, but if you haven't yet, it may help to fiddle with these existing options in customize journal/presentation/additional options.
*The width at which the layout switches from single column mode (mobile view) to multiple columns if selected (tablet view).
Set this to 0 to use multiple columns regardless of screen size
*The width at which the layout switches to larger screen mode (desktop view) and can afford some extra whitespace
no subject
Date: 2017-04-16 12:39 am (UTC)How would I go about finding that id number for the style(s) I want to try? (Denise posted in dw_news that Mobility works right now, and I'm sure that someday there will be more options.)
no subject
Date: 2017-04-16 01:05 am (UTC)no subject
Date: 2017-04-16 02:19 pm (UTC)Recording that id for Mobility here for posterity:
?s2id=49401
Thank you! This is exactly what I wanted to be able to do!
no subject
Date: 2017-04-15 08:09 pm (UTC)As for switching to a completely different style on a different device, I don't think that's possible, at least not without manually switching it around every time.
no subject
Date: 2017-04-16 12:45 am (UTC)no subject
Date: 2017-04-16 10:46 am (UTC)Or you could do that, didn't think of that yesterday. There are only two themes for Mobility, so that's not much of a choice. Tried to find a list of theme IDs, but no luck. Looks like you actually have to apply the theme to get that, so it's a good thing you already have that one.
Okay, I fiddled around with the CSS a bit and tested it on my phone, so this should work.
Your style already defaults to a one column layout on smaller screens (if you didn't deactivate that in your account settings), so that's easy. Now go to your customization page and add this to the custom CSS:
@media (max-width: 750px) {
#header {
margin: 0;
}
.module-navlinks {
text-align: center;
margin-bottom: 0;
padding-right: 0;
}
#content {
margin: -50px 0 0;
}
#primary > .inner:first-child {
padding: 0 5px;
}
.navigation.topnav.empty {
margin-bottom: 0;
}
.entry {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
}
.has-userpic .entry .header, .has-userpic .comment .header {
margin-left: 65px;
}
.has-userpic .entry .userpic {
margin: -4.5em 3px 3px;
}
.userpic img {
height: auto;
max-width: 60px;
}
}
@-ms-viewport {
width: device-width;
}
It changes nothing about the look of your layout when you look at it on a bigger screen, but you see the difference on your phone. If this is alright for you, then that's it, no need to do anything more.
It only takes effect on your own style of course.
no subject
Date: 2017-04-16 02:31 pm (UTC)