cesy: "Cesy" - An old-fashioned quill and ink (Default)
Cesy ([personal profile] cesy) wrote in [community profile] style_system2014-08-31 02:44 pm

Mobile style options

I'm trying to adjust the width at which my journal uses the new mobile stuff. But when I look for the options mentioned in [site community profile] dw_styles, it looks like they're not available for my style yet, possibly because it's a custom one. Has anyone written up how to add the new stuff to a custom style, or can someone help me, please? I know the basics of writing styles but I'm out of practice.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2014-08-31 03:48 pm (UTC)(link)
I'm not familiar with the code either but if your style is a child of Core2 it looks like it's pretty simple to add. Looking at the source for http://www.dreamwidth.org/customize/advanced/layersource?id=551&fmt=html I see two presentation properties you needs to add:

property use medium_breakpoint_width;
property use large_breakpoint_width;

Then two strings in function Page::print_default_stylesheet() {
var string medium_media_query = generate_medium_media_query();
var string large_media_query = generate_large_media_query();

Then @media and one of the strings above being used in the stylesheet. Four times if I counted well.

Hope this helps a little at least.
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (flowers)

[personal profile] ninetydegrees 2014-09-01 01:55 pm (UTC)(link)
You're most welcome! I'm very glad you could figure it out!