Tweak

InsaneJournal

Tweak says, "The most famous shower scene"

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

Suzaku Kururugi ([info]black_as_knight) wrote in [info]marina_ooc,
@ 2009-07-23 11:22:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:cool stuff, design and coding

Customizable Layouts
ETA on April 5, 2011: Hey, people. :D FYI, I am still totally available to answer any layout questions you might have! I've edited the code provided below to try and help people avoid a mistake that seemed very common, sob, and also just for consistency because some of my font sizes were in pixels before. >>


These layouts will look best with at least one image, provided by you! First, a header graphic -- and second, optionally, a tiling background image (this is a fantastic resource).

1. Go here, and set your Style System to S2.
2. Under Layout & Language, choose "Complete Style" from the dropdown menu. Leave your Theme as "(Default Layout)".
3. Then...

Bordered

One Column | Header Image-Compatible | Title/Subtitle Compatible
[ LIVE ]


First, set your layout to One Column. Then...

1. Set "Show Day Header" to No.
2. Set all Text items appropriately.
3. Make a header image! Figure out its width and height. (Be sure to also make or find a tiling background image.)
4. Choose a color scheme (or make up your own).
5. Open up any text editor (Notepad, Word, etc) and do a Find and Replace to change the colors and heights/widths appropriately.
6. Paste everything into your Custom Stylesheet box!
7. Admire the end result, and tweak it however you like.

If you have any questions or problems (or you have a paid account and want a custom comment page!), just let me know and I'll see what I can do for you. :D



And here's the run-down on customizing:
#HIGHLIGHT: the green on Suzaku's layout (links and entry-date)

#LOWLIGHT: the "hover" color of links on Suzaku's layout

#FORECOLOR: the white on Suzaku's layout

#BACKCOLOR: the black on Suzaku's layout

LAYOUTWIDTH: a number representing the width of Suzaku's layout in pixels

URL_OF_BG_IMAGE: the background of Suzaku's layout

URL_OF_HEADER_IMG: the header image of Suzaku's layout

(HEADERHEIGHT+35): take the height of your image, add 35 pixels for spacing, and remove the ()'s

#header-text: do you want to move this around on your image? apply margins! "margin-top: 50px; margin-left: 200px;" (without quotes) will move the text down 50 pixels and left 200 pixels; play around, have fun!


If you don't want the subtitle / title of your journal to be visible, find this code:

#header-text {
background: transparent;
border-style: none;
}

#header-text h1, #header-text p {
margin: 0;
text-shadow: rgba(0,0,0,1) 1px 1px 5px, rgba(0,0,0,.5) -1px -1px 5px,
rgba(0,0,0,.5) 1px 1px 0, rgba(0,0,0,.5) -1px -1px 0;
}

#header-text h1 {
opacity: 0.8;
letter-spacing: 2px;
text-align: left;
}

#header-text p {
opacity: 0.7;
font-weight: bold;
font-style: italic;
}


and replace THE WHOLE THING with this:

#header-text {
display: none;
}


Frog Green


Wine Red


Sailing


Ultraviolet


On Fire




And...!



Boxy Revisited


Want to change your colors? Or add a header image? These are what the codes in your code mean:
#HIGHLIGHT: links

#LOWLIGHT: the "hover" color of links (and a color on your sidebar calendar you'll probably never see)

#BGCOLOR: the background color of the page

#ACCENTCOLOR: border around icons

#MINORACCENT: the color of the datetime and the metadata titles

#FORECOLOR: most of the text (entry, etc)

#BACKCOLOR: the background color of entries

LAYOUTWIDTH: a number representing the width of your layout in pixels

Optionally:

URL_OF_BG_IMAGE: the background image of your layout

URL_OF_HEADER_IMG: the header image of your layout

(HEADERHEIGHT+10): take the height of your image, add 10 pixels for spacing, and remove the ()'s

If you want a background image instead of a background color, find this line:

body {
background: #BGCOLOR;
color: #FORECOLOR;
}


And replace it with:

body {
background: #BGCOLOR url(URL_OF_BG_IMAGE) fixed;
color: #FORECOLOR;
}


(The image will cover up the color, but you'll probably see the color sometimes while the image loads, so make sure it coordinates to keep yourself from going briefly blind. ;)

If you want a header image, find this line:

#header {
margin-bottom: 5px;
padding: 10px 0 0 0;
}

#header-text {
background: none;
margin: 0;
padding: 0;
border: 0;
}

#header-text h1 {
margin: 0;
}

#header-text p {
color: #FORECOLOR;
font-style: italic;
margin: 0 0 10px 0;
text-indent: 60px;
}


And replace it (yes, ALL of it) with:

#header {
background: transparent url(URL_OF_HEADER_IMG) no-repeat top;
height: 30px;
margin: 10px 0 0 0;
padding: (HEADERHEIGHT+10)px 0 0 0;
}

#header-text {
display: none;
}


Unfortunately, due to the limitations of this layout, if you want to put a border around your image, you're going to have to do it yourself with a program like Photoshop.



Flowing Revisited


Want to change your colors? Or add a header image? These are what the codes in your code mean:
#HIGHLIGHT: links

#LOWLIGHT: the "hover" color of links (and a color on your sidebar calendar you'll probably never see)

#BGCOLOR: the background color of the page

#ACCENTCOLOR: border around icons

#MINORACCENT: the color of the datetime and the metadata titles

#FORECOLOR: most of the text (entry, etc)

#BACKCOLOR: the background color of entries

LAYOUTWIDTH: a number representing the width of your layout in pixels

URL_OF_BG_IMAGE: the background image of your layout

Optionally:

URL_OF_HEADER_IMG: the header image of your layout

HEADERWIDTH: a number representing the width of your header image in pixels

HEADERHEIGHT: a number representing the height of your header image in pixels

If you want a header image, find this line:

#header {
padding: 0;
}

#header-text {
background: none;
margin: 0;
padding: 0;
border: 0;
}

#header-text h1 {
font-weight: normal;
margin: 0;
}

#header-text h1 a, #header-text p {
font-family: "palatino linotype", "book antiqua", palatino, serif;
}

#header-text h1 a {
display: block;
letter-spacing: 2px;
}

#header-text h1 a::first-letter {
font-weight: bold;
color: #ccc;
}

#header-text h1 a:active::first-letter, #header-text h1 a:hover::first-letter {
color: #HIGHLIGHT;
}

#header-text p {
color: #FORECOLOR;
margin: -2px 0 18px 0;
text-transform: lowercase;
text-indent: 60px;
}


And replace it (yes, ALL of it) with:

#header {
background: transparent url(URL_OF_HEADER_IMG) no-repeat top;
width: HEADERWIDTHpx;
height: HEADERHEIGHTpx;
margin: 20px auto;
padding: 0;
border-radius: 30px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
}

#header-text {
display: none;
}


(Post a new comment)


[info]mrflowerpetals
2009-07-24 02:20 am UTC (link)
Thanks so much, Li! ♥ This was an invaluable reference for me! I managed to turn THIS (the default Botanical theme) into THIS! \o/

I posted the CSS changes I made here in case anyone wants to use/look at them. :D

(Reply to this)


[info]onelevelmeaner
2009-07-24 03:22 pm UTC (link)
Thank you for this awesomeness. ♥ The layout I used for Hikaru at inksome wouldn't work here because it had special layers and stuff that IJ doesn't allow, and this bordered one is so close to it! So I be happy, YAY~

(Reply to this) (Thread)


[info]black_as_knight
2009-07-24 05:42 pm UTC (link)
...I'm such a loser, do you mind if I try and make that exact layout work? It wouldn't have the "top of page" link at the bottom, and it'd have more links on the entries. But otherwise that looks totally feasible using Complete Style.

(Reply to this) (Parent) (Thread)


[info]onelevelmeaner
2009-07-24 06:06 pm UTC (link)
I don't mind. XD

Original layout.

And then the additional stuff x, x

In case you need all that. ;O

(Reply to this) (Parent) (Thread)


[info]black_as_knight
2009-07-25 07:37 am UTC (link)
♥

?

As a purely random limitation, apparently Complete Style doesn't have a header on its link box. I'm mystified by that, since making it not display would be easy if you didn't want to. But because of that (and for example the fact that the date is in a completely separate div from the entry header), the layout isn't identical. Pretty close though, right?

I went ahead and made the outline on your "sidebar" area circle without breaking, but if you liked the way that looked, I can break it. (I also made it so that the lj user name actually shows up in blue, like other links in the entry.) Another thing I deliberately changed is that the "sidebar" doesn't overlap the subtitle and the title is all on one line; if you wanted those to do that, let me know.

Verdict.....? :D

(Reply to this) (Parent) (Thread)


[info]onelevelmeaner
2009-07-25 10:05 pm UTC (link)
... You are amazing. That is so close to the original!

(Reply to this) (Parent) (Thread)

1/3
[info]black_as_knight
2009-07-25 10:36 pm UTC (link)
♥

The lack of link title is the only thing that really saddens me. But here's what I did:

1. Layout Type = Two Columns (Sidebar on Right)
2. Show Day Header = No
3. Title to use for custom text sidebar module = "Absolutely Zero"
4. Body of custom sidebar module = "So who am I to say this situation isn't great? It's my time to make the most of it. Of course I didn't know that it would happen to me."
6. Display of Tags in Sidebar = List
7. 1st-4th items in primary sidebar = Page Summary, Tags, Custom Text, Links
8. 5th-12th items = (none)

And then...

(Reply to this) (Parent)

This goes in the Custom CSS box (1/2, just paste them right on top of each other)
[info]black_as_knight
2009-07-25 10:36 pm UTC (link)

(Reply to this) (Parent)

3/3
[info]black_as_knight
2009-07-25 10:37 pm UTC (link)

(Reply to this) (Parent) (Thread)


[info]onelevelmeaner
2009-07-26 12:55 am UTC (link)
I'll definitely give this a try. *^*

(Reply to this) (Parent)


[info]trappedinresin
2009-07-27 06:08 am UTC (link)
Thank you SO much for making everything so easy on us. It was really sweet and generous. Pretty layoutness without hardly any work. Lovely mods~ ♥

(Reply to this) (Thread)


[info]black_as_knight
2009-07-27 06:43 am UTC (link)
You're very welcome. ♥

(Reply to this) (Parent)


[info]tomorrowsky
2009-07-28 06:48 pm UTC (link)
First of all I want to thank the hell out of you for sharing all these for us who are CSS impared. Second of all I need to request some help.

;_; I've been fiddling with it for a while and this is what I have, and this is what I want it to look like. I can't find how to divvie up the block where the entry is and where the uhh subject thinger is. I suck at this obv.

Here's my CSS if that'll help any:

(Reply to this) (Thread)


[info]black_as_knight
2009-07-28 07:44 pm UTC (link)
Okay. Don't worry, it's not that hard. ♥ It probably won't look exactly the same, though, because the date isn't part of the header block in Complete Style.

First:

body {
background: #FFF url(http://i250.photobucket.com/albums/gg278/warplanesicon/Untitled-1.png) fixed;
color: #FFF;
margin: 0;
padding: 0;
}


needs to be:

body {
background: #FFF url(http://i250.photobucket.com/albums/gg278/warplanesicon/Untitled-1.png) fixed;
color: #000;
margin: 0;
padding: 0;
}



This:

.entry {
background-color: #000;
margin: 0;
padding: 0;
}


needs to be to this:

.entry {
background: none;
margin: 0;
padding: 0;
}



And this:

.entry-header {
background: none;
padding: 0 10px 0 0;
border: 0;
}


to this.

.entry-header {
background-color: #000;
padding: 0 10px 0 0;
border: 0;
}



Finally, cleanup color changes:

.entry-datetime {
color: #FFF;
font-size: 6.5pt;
padding-top: 5px;
border-top: 2px solid #FFF;
}


to:

.entry-datetime {
color: #000;
font-size: 6.5pt;
padding-top: 5px;
border-top: 2px solid #000;
}



And:

.entry-linkbar {
margin-top: 5px;
border-top: 2px solid #FFF;
}


to:

.entry-linkbar {
margin-top: 5px;
border-top: 2px solid #000;
}



How does that work?

(Reply to this) (Parent) (Thread)


[info]tomorrowsky
2009-07-28 08:03 pm UTC (link)
you are so beautiful to me

(Reply to this) (Parent)



Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs