[personal profile] cesy posting in [community profile] style_system
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.

Date: 2014-08-31 03:48 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)
From: [personal profile] ninetydegrees
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.

Date: 2014-09-01 01:55 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (flowers)
From: [personal profile] ninetydegrees
You're most welcome! I'm very glad you could figure it out!

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 2nd, 2025 07:07 pm
Powered by Dreamwidth Studios