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

Date: 2012-01-04 04:39 pm (UTC)
twincy: Danny Briere of the Philadelphia Flyers, wearing a hat at the Winter Classic. (Default)
From: [personal profile] twincy
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; }

Date: 2012-01-04 04:46 pm (UTC)
twincy: (misc | he a-a-ate my heart)
From: [personal profile] twincy
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!

Date: 2012-01-06 06:58 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
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.

Date: 2012-01-06 07:24 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
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) Date: 2012-01-06 07:25 am (UTC)

Date: 2012-01-06 07:33 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
\o/ Welcome!

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 Jun. 6th, 2025 03:56 pm
Powered by Dreamwidth Studios