[personal profile] branchandroot posting in [community profile] style_system
So let us suppose that I'm making a theme for a layout that already uses the print_stylesheet function (a theme for Modish, in the event). Let us further suppose that I want to add a little bit of css to this theme without copying the whole inherited stylesheet just to change one line. Does anyone know of a good way to do this?

Date: 2009-08-22 08:24 am (UTC)
mmmag: A cotton cloud with drop shaped beads dangling below. (Default)
From: [personal profile] mmmag
If the theme is in use, couldn't you just use the customization wizard (custom css) to do that?

Date: 2009-08-22 01:50 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
I'd use print Page::print_custom_head() { }

Edit: Hmm. Wait. I'm not sure if it's printed before or after print_stylesheet.

Edit2: It's printed before print_stylesheets so you may have to use !important. I don't know if that works with all browsers.
Edited Date: 2009-08-22 01:54 pm (UTC)

Date: 2009-08-22 05:16 pm (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
We're talking a bit in Bug 1611 about possibly splitting off the layout-specific bits in print_stylesheets() to a print_default_stylesheet block. The layout (or theme) could then override it or add new css, without it being too painful...

Profile

Dreamwidth style system discussion

April 2025

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

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 29th, 2025 04:35 pm
Powered by Dreamwidth Studios