Closed (fixed)
Project:
Sasson
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2012 at 05:21 UTC
Updated:
21 Mar 2012 at 09:40 UTC
I'd like to be able to split the #page div into at least two separate divs - ie. #page-upper & #page-lower - while retaining the ability to configure the grid via settings. Should this be more of feature request that #page be a class rather than id so multiple divs can inherit the grid settings? Or is there an easy way to implement this in my own theme, again, while retaining control the settings page offers.
Comments
Comment #1
tsi commentedThere's quite an elegant way of doing this,
first you'll have to copy sasson.scss into your sub-theme and call it from your .info file,
then in your new sasson.scss file simply add :
Don't forget to clear your cache.
Comment #2
greenskin commentedAwesome, thanks!
Comment #3
greenskin commentedHmm, just tried this and it doesn't work. FIrst off my theme's sasson.scss file doesn't seem to be taking, but despite this I put the code in the sasson theme's sasson.scss file to test it and it still doesn't work.
Let me elaborate on what I'm trying to accomplish. I want to split my #page into two sections consisting of an upper and a lower. I want separate backgrounds for these two that go to the edges of the window. So my page.tpl.php would look similar to this in structure:
The #page-upper and #page-lower would inherit what is given to #page namely the grid. Each wrapper would have it's own background with a 100% width.
What am I doing wrong?
Edit: I should note I'm using a responsive layout.
Comment #4
tsi commentedYes, I've pretty much understood what you're trying to do.
did you call your new sasson.scss from your sub-theme's .info file ? did you clear your caches ? there is no reason this file wouldn't be taken by your theme.
I do see now that
@imported styles cannot be@extended, I wonder if that should clasify as a bug or is intentional.you may try and copy the
@imported styles (all the files imported in the "Media Queries for a Responsive Design" section) into the new sasson.scss you've created, that should work even though feels a bit hacky.Comment #5
thamasI think I'd like something similar as greenSkin. It would be great to have a full width (100 % of browser window) wrapper div for every main page element (header, menu bar, content, footer etc.), just like -- for example -- Corolla has. So we could add different backgrounds to them easily.
I think the page.tpl.php should be modified to make it possible. But I do not not know how should I do it to keep the grid settings work.
Comment #6
thamasIt's more a feature request than a support request IMHO.
Comment #7
tsi commentedThis won't happen in Sasson because we're trying to keep it simple and minimal in terms of markup but I do plan on writing a sub-theme that will have a similar markup, setting to 'postponed' and will report back when it is published, let's hope it won't take too long.
Comment #8
thamasCan't wait it! ;o)
Comment #9
tsi commentedCheck out Full On, you're gonna love it :)
Comment #10
thamasI will try and analyse it as soon as possible! Thanks!