styling dw
11 Apr 2009 04:00 pmI read a couple of people's tutorials about how to copy and paste the code wholesale from public lj layers and styles, but the thing is that most of those styles are either rejects because they're unwieldy and ugly, or because they have, like, zero functionality. For me, a full tag list is a must in a journal style, which left very few options. I decided to see what I could do with Negatives, the current dw default style, since it's already up to date with the updated core2 version of S2 (thread-expanding functionality, tracking, hover menus, etc). (I'm posting this here because I honestly have no idea where you'd put such things on DW. I get the idea that there might not be any amateur style communities yet.)
First, without any knowledge of CSS, .
1. CSS-less theme-layer creation for noobs
(Unfortunately, you can't completely get rid of the lines and boxes with this method, because "theme_fgcolor" sets the text colour for entries and the fat box that outlines the entries at the same time, as far as I can tell. Also, I make no guarantees and don't sue me, etc. Also, you probably don't want to ask me too many questions because I probably don't know. This isn't the method I actually use now, or have used in the last like, 5 years for my journal, so I might have forgotten how it works.)
At the Your Layers page in the Advanced Customization area, you need to create a layout-specific layer based on Negatives. Then edit the layer and give it a name.
Here is the public layer page for the theme. You see the current colour scheme under "Properties Set". Open this in another tab for reference.
In the main box of your theme layer, under the name part, paste these commands. (Go ahead and delete any ones you don't want to change.)
Colour settings:
Other settings:
I don't know what the rest of those do. If you do, go to town! If not, you can ignore them. For "font_base", you want to enter the name of the one default font, and for "font_fallback" you want a font type such as "serif", "sans-serif", or "script". Obviously, "text_comments_heading" is the text at the bottom of your entry where the comment section starts.
After you Save & Compile the layer, you'll need to go back to Advanced Customization and then navigate to Your Styles. Create a new style and select Negatives as the layout and your new layer as the theme layer. You don't need to select anything for user layer. Save the style and use it, and that should work. (Again, though, if it doesn't... sorry.)
2. New layout layer with CSS, for those who know it
Here is the public layer page for the theme. Open the raw source or the sytax highlighted source and paste into the plain text editor or html editor of your choice. (Don't use a word processor, or you'll probably get unfortunate word processor artifacts.) The stylesheet is sort of in the middle of it, and you want to make all your changes to it without getting rid of the stuff around it that makes the layout actually work, obviously. There are some layout features hard-coded into the style, especially borders of various widths on all kinds of fields. You can get rid of the outlines and double-lines by setting all borders to "0px" or deleting their lines. You can change every colour manually in the stylesheet, obviously, but there are a lot of places that refer back to the colours set at the top of the layer in the #Border Color section, so it's probably best to do it there. It took me some trial and error to find all the bits of hard-coded things and change them around.
You can also manually set the fonts in a few places. It's easy to set the navigation, sidebar, and subject line fonts individually.
At the Your Layers page in the Advanced Customization area, you need to create a top-level layer. Choose "layout" as the type. Then paste the entire content of your html/text-editor into the layer and Save&Compile. Then, as with the other method, go back to Advanced Customization, create a style, add your new layer to it, and put it in use.
First, without any knowledge of CSS, .
1. CSS-less theme-layer creation for noobs
(Unfortunately, you can't completely get rid of the lines and boxes with this method, because "theme_fgcolor" sets the text colour for entries and the fat box that outlines the entries at the same time, as far as I can tell. Also, I make no guarantees and don't sue me, etc. Also, you probably don't want to ask me too many questions because I probably don't know. This isn't the method I actually use now, or have used in the last like, 5 years for my journal, so I might have forgotten how it works.)
At the Your Layers page in the Advanced Customization area, you need to create a layout-specific layer based on Negatives. Then edit the layer and give it a name.
Here is the public layer page for the theme. You see the current colour scheme under "Properties Set". Open this in another tab for reference.
In the main box of your theme layer, under the name part, paste these commands. (Go ahead and delete any ones you don't want to change.)
Colour settings:
set theme_bgcolor = "#99CC33";
set theme_fgcolor = "#591d17";
set entry_link_color = "#f80360";
set entry_link_color_hover = "#f80360";
set entry_link_color_visited = "#f80360";
set entry_border="";
set linklist_link = "#f80360";
set linklist_link_hover = "#f80360";
set linklist_hover_background = "";
set linklist_hover_underline ="#f80360";
set navigation_background ="";
set navigation_link = "#f80360";
set navigation_link_hover = "#f80360";
set middle_background = "#ffffff";
set middle_edge = "";
set entry_background = "";
set comments_link_color = "#f80360";
set comments_link_color_hover="#f80360";
set metadata_color = "#f80360";
set minical_color="#591d17";
set minical_back = "";
set minical_hover = "#f80360";
Other settings:
set text_comments_heading = "«Comments»";
set display_ljtag = false;
set enable_subjecticons = true;
set font_base ="Verdana";
set font_fallback = "sans-serif";
set entry_management_links = "text";
set comment_management_links = "text";
I don't know what the rest of those do. If you do, go to town! If not, you can ignore them. For "font_base", you want to enter the name of the one default font, and for "font_fallback" you want a font type such as "serif", "sans-serif", or "script". Obviously, "text_comments_heading" is the text at the bottom of your entry where the comment section starts.
After you Save & Compile the layer, you'll need to go back to Advanced Customization and then navigate to Your Styles. Create a new style and select Negatives as the layout and your new layer as the theme layer. You don't need to select anything for user layer. Save the style and use it, and that should work. (Again, though, if it doesn't... sorry.)
2. New layout layer with CSS, for those who know it
Here is the public layer page for the theme. Open the raw source or the sytax highlighted source and paste into the plain text editor or html editor of your choice. (Don't use a word processor, or you'll probably get unfortunate word processor artifacts.) The stylesheet is sort of in the middle of it, and you want to make all your changes to it without getting rid of the stuff around it that makes the layout actually work, obviously. There are some layout features hard-coded into the style, especially borders of various widths on all kinds of fields. You can get rid of the outlines and double-lines by setting all borders to "0px" or deleting their lines. You can change every colour manually in the stylesheet, obviously, but there are a lot of places that refer back to the colours set at the top of the layer in the #Border Color section, so it's probably best to do it there. It took me some trial and error to find all the bits of hard-coded things and change them around.
You can also manually set the fonts in a few places. It's easy to set the navigation, sidebar, and subject line fonts individually.
At the Your Layers page in the Advanced Customization area, you need to create a top-level layer. Choose "layout" as the type. Then paste the entire content of your html/text-editor into the layer and Save&Compile. Then, as with the other method, go back to Advanced Customization, create a style, add your new layer to it, and put it in use.
(no subject)
Date: 11 Apr 2009 01:13 pm (UTC)(no subject)
Date: 11 Apr 2009 01:30 pm (UTC)None of my icons match your layout!
(no subject)
Date: 11 Apr 2009 01:31 pm (UTC)(no subject)
Date: 11 Apr 2009 01:35 pm (UTC)http://www.dreamwidth.org/manage/settings/?cat=display
Does that help? Hmm. No probably not, as it will give you plain site comment pages.
(no subject)
Date: 11 Apr 2009 02:40 pm (UTC)(no subject)
Date: 11 Apr 2009 03:01 pm (UTC)set use_journalstyle_entry_page=false;
(I hate custom comment pages SO FREAKING MUCH.)
We'll have more styles added as quickly as possible, too!
(no subject)
Date: 11 Apr 2009 03:45 pm (UTC)(no subject)
Date: 14 May 2010 01:24 pm (UTC)(no subject)
Date: 14 May 2010 03:06 pm (UTC)(no subject)
Date: 15 May 2010 07:25 am (UTC)Many styles will have a simple option to turn custom comment pages off on the Customization page, but you can always do it the way described in this post: 1) creating a layout-specific "wizard" layer based on the style you're using at the Your Layers page 2) paste in the line "set use_journalstyle_entry_page=false;" and add a name inside the "" on the second line 3) Edit your in-use style from the Your Styles page and add the new layer to it.
(no subject)
Date: 13 Apr 2009 09:47 am (UTC)(no subject)
Date: 13 Apr 2009 10:35 am (UTC)(no subject)
Date: 13 Apr 2009 03:37 pm (UTC)I now have a VERY pretty layout.
(no subject)
Date: 13 Apr 2009 09:03 pm (UTC)(no subject)
Date: 14 Apr 2009 06:45 pm (UTC)(no subject)
Date: 15 Apr 2009 07:19 pm (UTC)(no subject)
Date: 14 Apr 2009 08:32 pm (UTC)stupidplaying with things you don't understand and you apparently delete the Negatives layer?I can apply it. It's what I'm looking at right now when I look at my circle. But when I go to layers, the only thing there is zesty.
Halp? Or do you know who I should be Halping to?
(no subject)
Date: 15 Apr 2009 07:18 pm (UTC)Remember, in order for the colour-change method (Method #1) to work, after you've clicked save & compile on your new layer, you have to go back to Your Styles, create and name a new style, and add Negatives as the layout layer and your new layer as the theme layer to it!
But whatever you've done wrong, it's easy to fix by just going back to the regular Customize page and clicking on Negatives again to apply it.
(no subject)
Date: 15 Apr 2009 05:15 am (UTC)I still wish I had things like this nice clean entry page, but I suspect that is beyond me. So for that I will wait for the nice wizard to be ready.
(no subject)
Date: 15 Apr 2009 07:12 pm (UTC)(no subject)
Date: 15 Apr 2009 07:13 pm (UTC)(no subject)
Date: 15 Apr 2009 07:26 pm (UTC)(no subject)
Date: 17 Apr 2009 02:27 am (UTC)(no subject)
Date: 18 Apr 2009 06:07 am (UTC)