?

Log in

No account? Create an account

Previous Entry | Next Entry

[Please edit and title your post!]

  • Dec. 22nd, 2011 at 11:32 PM
Hello, I'm trying to make my normal style friendlier with general use due to the new default style changes.

I'm using Mixit/Nevermore, which has a big honkin' sidebar. I'd like to keep the sidebar for people who view my journal page, but hide it when I view my friends page or an entry page. A user in the community for the Floating Squares style asked a similar question, and was given the following code:

.lj-view-entry #sidebar, .lj-view-reply #sidebar {
display:none;
}


Is there similar code to use for Expressive, and if so, where should I put it?

Thanks for your help!

Comments

( 12 comments — Leave a comment )
fiddlingfrog
Dec. 23rd, 2011 09:38 am (UTC)
Clarification - you want to hide the sidebar when everyone views your friends page and entry page, or only when you view it? It might be possible either way, but it'll involve working with theme layers because Expressive creates a space for the sidebar to exist in separately from displaying the sidebar itself.

For instance, you could put
#beta { display:none; }


in the Custom CSS for your journal, and all you'll do is make the sidebar invisible.
lafinjack
Dec. 23rd, 2011 03:53 pm (UTC)
Ideally it would show it when others view my pages and hide it when I view them. I forgot that others could view my friends page, so if we could change it page by page then I would remove the sidebar from friends pages and from comments pages.

I used the CSS code from a comment below yours and it removed it from the comments pages. Now I just need to figure out how to change my theme so it doesn't leave a sidebar-shaped strip down the side...
fiddlingfrog
Dec. 23rd, 2011 04:04 pm (UTC)
Okay, that can be done. Like I said, it'll require a theme layer. I'll throw something together this afternoon when I get home from work.
lafinjack
Dec. 23rd, 2011 04:08 pm (UTC)
Wow, seriously, thank you. I assumed this stuff could be thrown together from stuff off the shelf, but if you're doing actual effort for some idiot on the internet... thank you.
lafinjack
Dec. 23rd, 2011 04:42 pm (UTC)
Hi again, more CSS below was able to remove the sidebar, and it looks like I can use the same CSS code but change "entry" to "friends" to have the same changes apply to friends list pages.
fiddlingfrog
Dec. 23rd, 2011 11:23 pm (UTC)
Glad to see you got it working. If you're still interested in making it invisible only for you, let me know. It's a tiny add to the end of the stylesheet function.
lafinjack
Dec. 24th, 2011 03:10 am (UTC)
Nah, I think it's OK as it is, thanks though. :)

If you could help with one other thing though...

While the sidebar is now gone when it needs to be, my header image still has the beginning of the sidebar on the right:



I've made a new one with transparency that would let the the sidebar show through it when it's there, but I can't seem to get the edited .css file to redirect to the one on my webspace. Is there a way to get the new header to display?
fiddlingfrog
Dec. 24th, 2011 03:19 am (UTC)
Put this in your custom CSS:

#header {
  background: url(YOUR IMAGE URL HERE);
}

#header-inner {
  height:YOUR IMAGE HEIGHT HEREpx;
}
lafinjack
Dec. 23rd, 2011 04:07 pm (UTC)
Awesome, thank you!

Any tips on how I can now edit my theme so it doesn't display a column down the side where it thinks the sidebar should be? Is this something that can be changed on a page-by-page basis or does it apply to every page the style affects?
av8rmike
Dec. 23rd, 2011 04:30 pm (UTC)
That's just due to the background image. I'm not sure I understand your question, but adding this line to the CSS will remove the gray strip on entry pages:

.lj-view-entry #content-inner { background-image: none; }
lafinjack
Dec. 23rd, 2011 04:39 pm (UTC)
Yes, that's exactly what I meant, sorry. I tried to upload a screenshot with my previous comment but Imgur is being stupid lately. Thanks again!
( 12 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars