momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
Cocoa ([personal profile] momijizukamori) wrote in [site community profile] dreamscapes2012-02-22 03:14 am
Entry tags:

core2 variables!

So there are lots of nice pre-defined variables in core2 for us to use in coding themes, but you kind of have to dig into the core2 code (or see what other people have done) to find what's available. I figured I'd pull out the font and color ones (which I think are what come up the most for just-CSS styling) so they'd be a little more accessible.

Keep in mind that if there isn't a specific font or color property that you want, you're better off making a new one one, rather than doubling up or using a variable for a use other than what it was defined for. Moving them around ends up with confusion and frustration for end-users in the wizard, as it means what the description says the color does doesn't end up being what it actually does.


##===============================
## Journal style - fonts
##===============================


font_base - Preferred journal font - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_fallback - Alternative journal font - This general style will serve as a fallback if your preferred font is unavailable. (values - sans-serif|Sans-serif|serif|Serif|cursive|Cursive|monospace|Monospaced||Use browser's default)
font_base_size - Size of base font
font_base_units - Units for base font size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_journal_title - Preferred font for journal titles - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_journal_title_size - Size of title font
font_journal_title_units - Units for title font size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_journal_subtitle - Preferred font for journal subtitles - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_journal_subtitle_size - Size of subtitle font
font_journal_subtitle_units - Units for subtitle font size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_entry_title - Preferred font for entry titles - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_entry_title_size - Size of entry title font
font_entry_title_units - Units for entry title font size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_comment_title - Preferred font for comment titles - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_comment_title_size - Size of comment title font
font_comment_title_units - Units for comment title font size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_module_heading - Preferred font for module heading - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_module_heading_size - Size of module heading font
font_module_heading_units - Units for module heading size (values - em|em|ex|ex|%|%|pt|pt|px|px)
font_module_text - Preferred font for module text - For example: Arial or \"Times New Roman\". Leave blank to use the default.
font_module_text_size - Size of module text font
font_module_text_units - Units for module text size (values - em|em|ex|ex|%|%|pt|pt|px|px)



##===============================
## Journal style - basic colors
##===============================


color_comment_bar - Color of comment bar header
custom_control_strip_colors - Navigation strip colors (values - off|Do not use custom colors|on_gradient|Use custom colors with a background gradient|on_no_gradient|Use custom colors without a background gradient)

control_strip_bgcolor - Background color of navigation strip. If you don't enable custom navigation strip colors in the \"Presentation\" section, this won't have any effect.
control_strip_fgcolor - Text color of navigation strip. If you don't enable custom navigation strip colors in the \"Presentation\" section, this won't have any effect.
control_strip_bordercolor - Border color of navigation strip. If you don't enable custom navigation strip colors in the \"Presentation\" section, this won't have any effect.
control_strip_linkcolor - Link color of navigation strip. If you don't enable custom navigation strip colors in the \"Presentation\" section, this won't have any effect.


##===============================
## Journal style - element colors
##===============================


color_entry_background - Entry background color
color_entry_text - Entry text color
color_entry_link - Entry link color
color_entry_link_active - Entry active link color
color_entry_link_hover - Entry hover link color
color_entry_link_visited - Entry visited link color
color_entry_border - Entry border color
color_entry_title - Entry title color
color_entry_title_background - Entry title background color
color_entry_interaction_links - Entry interaction links color
color_entry_interaction_links_background - Entry interaction links background color
color_entry_interaction_links_hover - Entry hover interaction links color
color_entry_interaction_links_active - Entry active interaction links color
color_entry_interaction_links_visited - Entry visited interaction links color


##===============================
## Journal style - element colors
##===============================


color_comment_title - Comment title color
color_comment_title_background - Comment title background color

##===============================
## Journal style - element colors
##===============================


color_page_background - Page background color
color_page_text - Page text color
color_page_link - Page link color
color_page_link_active - Page active link color
color_page_link_hover - Page hover link color
color_page_link_visited - Page visited link color
color_page_border - Page border color
color_page_title - Page title color
color_page_details_text - Color for miscellaneous page details text

color_header_background - Page header background color";}
color_header_link - Page header link color
color_header_link_active - Page header active link color
color_header_link_hover - Page header hover link color
color_header_link_visited - Page header visited link color
color_footer_background - Page footer background color
color_footer_link - Page footer link color
color_footer_link_active - Page footer active link color
color_footer_link_hover - Page footer hover link color
color_footer_link_visited - Page footer visited link color

color_module_background - Module background color
color_module_text - Module text color
color_module_link - Module link color
color_module_link_active - Module active link color
color_module_link_hover - Module hover link color
color_module_link_visited - Module visited link color
color_module_border - Module border color
color_module_title - Module title color
color_module_title_background - Module title background color

Code for Custom Friends colors display

custom_foreground_element -Part of entry that will display foreground color, if you have custom colors enabled (values - subject|Entry title|userpic_border|Icon border|postername|Posted by|entry|Entry text|metadata|Mood/music/location|bottom_links|Comment links|custom|Custom template)
custom_background_element -Part of entry that will display background color, if you have custom colors enabled (values - subject|Entry header background|userpic_background|Icon background|entry_border|Entry border|metadata_background|Mood/music/location section|footer_border|Entry footer|custom|Custom template)
custom_colors_template - Your own CSS to use for custom color.
Enter a CSS statement with the class or id of CSS elements you want to use for foreground and background, and any CSS instructions.
Use %%foreground%% for the custom foreground color, and %%background%% for the custom background color
Each CSS rule should begin with %%new%%"
example: %%new%% div.special {border: 1px dotted %%background%%; font-size: 120%; color: %%foreground%%
turlough: purple crocuses ((mcr) got him in a trance)

[personal profile] turlough 2012-02-23 09:07 pm (UTC)(link)
Very useful! *bookmarks*