molotov: (Default)
Molotov Cocktease ([personal profile] molotov) wrote in [community profile] style_system2012-01-04 11:23 am

Showing the active page in the nav module in Flexible Squares

I really hope someone can help me!

I'm using the port of Flexible Squares, and I brought my old layout with me. The problem is that it uses images for navigation. On LJ, the active page shows in the nav module like this:


But on DW, the active page disappears from the nav, leaving me with this:


I feel like I'm overlooking something.



Any help would be much appreciated!!
twincy: Danny Briere of the Philadelphia Flyers, wearing a hat at the Winter Classic. (Default)

[personal profile] twincy 2012-01-04 04:39 pm (UTC)(link)
What happens if you remove the "body.lj-view-recent", "body.lj-view-archive" and "body.lj-view-friends" modifiers? So, essentially, take this whole part:

body.lj-view-recent div#header li.view {
background:transparent url(http://i55.tinypic.com/2wq7a69.png) no-repeat scroll 50% 0;
padding:22px 22px 0; }
body.lj-view-archive div#header li.view{ padding:25px 25px 0; background:transparent 
url(http://i54.tinypic.com/smayxx.png) no-repeat scroll 50% 0} 
body.lj-view-friends div#header li.view{ padding:22px 21px 0; background:transparent 
url(http://i55.tinypic.com/30lh0z7.png) no-repeat scroll 50% 0}


and reduce it to this:

div#header li.view {
background:transparent url(http://i55.tinypic.com/2wq7a69.png) no-repeat scroll 50% 0; padding:22px 22px 0; }
twincy: (misc | he a-a-ate my heart)

[personal profile] twincy 2012-01-04 04:46 pm (UTC)(link)
Your problem there is that the Dreamwidth version of this layout doesn't seem to have separate classes for each of the links when you're on that page (those were the lj- etc. classes you took out - the reason the images disappeared was that those simply don't exist in the Dreamwidth code). They're simply coded as li.view. Short of theme layer trickery, I can't think of a solution to that. Fingers crossed someone else can help!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2012-01-06 06:58 am (UTC)(link)
Hey can you link me to the port of FS that you used? I might be able to help out with the layout trickery to specify the specific view.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2012-01-06 07:24 am (UTC)(link)
Okay, got it!

Replace the entire Page::print bit with this:




And then you can add this to your stylesheet (taken from your old one but not exactly the same):

body.view-recent div#header li.view {
background:transparent url(http://i55.tinypic.com/2wq7a69.png) no-repeat scroll 50% 0;
padding:22px 22px 0; }
body.view-archive div#header li.view{ padding:25px 25px 0; background:transparent
url(http://i54.tinypic.com/smayxx.png) no-repeat scroll 50% 0}
body.view-read div#header li.view{ padding:22px 21px 0; background:transparent
url(http://i55.tinypic.com/30lh0z7.png) no-repeat scroll 50% 0}


Edited (fixed code) 2012-01-06 07:25 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2012-01-06 07:33 am (UTC)(link)
\o/ Welcome!