# LAYER INFO layerinfo "redist_uniq" = "tranquilityii/layout"; layerinfo "type" = "layout"; layerinfo "name" = "Tranquility II"; layerinfo "des" = "XHTML/CSS Compliant layout. Relax."; layerinfo "author_name" = "Matthew Vince"; layerinfo "lang" = "en"; # PROPERTIES: COLORS propgroup Colors { # odd property Color c_main_border { des = "Border color of main column"; } property Color c_main_background { des = "Background color of main column"; } property Color c_menu_border { des = "Border color of menu"; } property Color c_header_background { des = "Header background color"; } property Color c_header_border { des = "Header border color"; } # page property Color c_page_background { des = "Page background color"; } property Color c_page_title { des = "Page title color"; } property Color c_page_text { des = "Page text color"; } property Color c_page_link { des = "Page link color"; } property Color c_page_link_visited { des = "Page visited link color"; } property Color c_page_link_hover { des = "Page hover link color"; } property Color c_page_link_active { des = "Page active link color"; } # menu property Color c_menu_background { des = "Side Menu background color"; } property Color c_menu_link { des = "Side Menu link color"; } property Color c_menu_link_visited { des = "Side Menu visited link color"; } property Color c_menu_link_hover { des = "Side Menu hover link color"; } property Color c_menu_link_active { des = "Side Menu active link color"; } property Color c_menu_text_color { des = "Side Menu text color"; } property Color c_menu_header_color { des = "Side Menu header color"; } property Color c_menu_current { des = "Current menu item color"; } # entry property Color c_entry_background { des = "Entry background color"; } property Color c_entry_link { des = "Entry link color"; } property Color c_entry_link_visited { des = "Entry visited link color"; } property Color c_entry_link_hover { des = "Entry hover link color"; } property Color c_entry_link_active { des = "Entry active link color"; } property Color c_entry_text_color { des = "Entry text color"; } property Color c_entry_title_color { des = "Entry title color"; } property Color c_entry_border { des = "Entry bottom border color"; } # metadata property Color c_meta_background { des = "Entry metadata background color"; } property Color c_meta_link { des = "Entry metadata link color"; } property Color c_meta_link_visited { des = "Entry metadata visited link color"; } property Color c_meta_link_hover { des = "Entry metadata hover link color"; } property Color c_meta_link_active { des = "Entry metadata active link color"; } property Color c_meta_text_color { des = "Entry metadata text color"; } # footer property Color c_footer_background { des = "Page footer background color"; } property Color c_footer_link { des = "Page footer link color"; } property Color c_footer_link_visited { des = "Page footer visited link color"; } property Color c_footer_link_hover { des = "Page footer hover link color"; } property Color c_footer_link_active { des = "Page footer active link color"; } property Color c_footer_text_color { des = "Page footer text color"; } # comments property Color c_comment_one_link { des = "Comment one link color"; } property Color c_comment_one_link_visited { des = "Comment one visited link color"; } property Color c_comment_one_link_hover { des = "Comment one hover link color"; } property Color c_comment_one_link_active { des = "Comment one active link color"; } property Color c_comment_one_text_color { des = "Comment one text color"; } property Color c_comment_one_title_color { des = "Comment one title color"; } property Color c_comment_one_background { des = "Comment bar one background color"; } property Color c_comment_one_border { des = "Comment one bottom border color"; } property Color c_comment_two_link { des = "Comment two link color"; } property Color c_comment_two_link_visited { des = "Comment two visited link color"; } property Color c_comment_two_link_hover { des = "Comment two hover link color"; } property Color c_comment_two_link_active { des = "Comment two active link color"; } property Color c_comment_two_text_color { des = "Comment two text color"; } property Color c_comment_two_title_color { des = "Comment two title color"; } property Color c_comment_two_background { des = "Comment two background color"; } property Color c_comment_two_border { des = "Comment two bottom border color"; } property Color c_comment_screened_link { des = "Comment screened link color"; } property Color c_comment_screened_link_visited { des = "Comment screened visited link color"; } property Color c_comment_screened_link_hover { des = "Comment screened hover link color"; } property Color c_comment_screened_link_active { des = "Comment screened active link color"; } property Color c_comment_screened_text_color { des = "Comment screened text color"; } property Color c_comment_screened_title_color { des = "Comment screened title color"; } property Color c_comment_screened_background { des = "Comment screened background color"; } property Color c_comment_screened_border { des = "Comment screened bottom border color"; } } # PROPERTIES: FONTS propgroup Fonts { # page property string f_page { des = "Generic font for use on the page"; } property string f_page_size { des = "Generic font size for use on the page"; } property string f_page_title { des = "Page title font"; } property string f_page_title_size { des = "Page title font size"; } property string f_page_link { des = "Generic font for links on the page"; } property string f_page_link_size { des = "Generic font size for links on the page"; } # menu property string f_menu_link { des = "Menu link font"; } property string f_menu_link_size { des = "Menu link font size"; } property string f_menu { des = "Menu font"; } property string f_menu_size { des = "Menu font size"; } property string f_menu_header { des = "Menu title font"; } property string f_menu_header_size { des = "Menu title font size"; } property string f_menu_current { des = "Current menu item font"; } property string f_menu_current_size { des = "Current menu item font size"; } # entry property string f_entry { des = "Entry font"; } property string f_entry_size { des = "Entry font size"; } property string f_entry_link { des = "Entry link font"; } property string f_entry_link_size { des = "Entry link font size"; } property string f_entry_title { des = "Entry title font"; } property string f_entry_title_size { des = "Entry title font size"; } # metadata property string f_meta { des = "Entry metadata font"; } property string f_meta_size { des = "Entry metadata font size"; } property string f_meta_link { des = "Entry metadata link font"; } property string f_meta_link_size { des = "Entry metadata link font size"; } # footer property string f_footer { des = "Footer font"; } property string f_footer_size { des = "Footer font size"; } property string f_footer_link { des = "Footer link font"; } property string f_footer_link_size { des = "Footer link font size"; } # comments property string f_comment { des = "Comment font"; } property string f_comment_size { des = "Comment font size"; } property string f_comment_title { des = "Comment title font"; } property string f_comment_title_size { des = "Comment title font size"; } property string f_comment_link { des = "Comment link font"; } property string f_comment_link_size { des = "Comment link font size"; } } # PROPERTIES: PRESENTATION propgroup Presentation { property use page_recent_items; property use page_friends_items; property use view_entry_disabled; property use use_shared_pic; property use comment_userpic_style; property bool show_entrynav_icons { des = "Toggle to show the next, memory, edit, etc icons on the entry view page"; } property string time_format { des = "Format for the time"; example = "%%hh%%:%%min%%:%%sec%% %%a%%m"; } property string date_format { des = "Format for the date"; example = "%%m%%/%%d%%/%%yy%%"; } property bool menu_disable_summary { des = "Disable menu summary view"; } property string css_page_width { des = "Width of the main page (increasing this will increase the main column's width)"; } property string css_style_overrides { des = "include any CSS here to override the default CSS"; } } # PROPERTIES: TEXT propgroup Text { property use text_post_comment; property use text_read_comments; property use text_post_comment_friends; property use text_read_comments_friends; property use text_meta_music; property use text_meta_mood; property use text_permalink; property use text_view_recent; property use text_view_friends; property use text_view_archive; property use text_view_userinfo; property use text_reply_nocomments_header; property use text_reply_nocomments; property use text_comment_from; property use text_comment_ipaddr; property use text_comment_parent; property use text_comment_reply; property use text_comment_thread; property use text_nosubject; property use text_post_comment; property use text_post_comment_friends; property use text_max_comments; property use text_view_month; property string text_comment_anonymous { des = "Text to substitute for anonymous commenters"; } property string text_comment_viewall { des = "Text for view all comments"; } property string text_links_header { des = "Sidebar links header text"; } property string text_summary_header { des = "Page summary text header"; } property string text_links_spacer { des = "String to act as links list spacer";} } # ------------------------------- # default property settings # ------------------------------- # ODD set c_main_border = "#000"; set c_main_background = "#fff"; set c_menu_border = "#333"; set c_header_background = "#333"; set c_header_border = "#333"; set c_page_title = "#fff"; set c_page_background = "#333"; set c_page_text = "#333"; set c_page_link = "#5ab300"; set c_page_link_visited = "#5ab300"; set c_page_link_hover = "#336600"; set c_page_link_active = "#336600"; set c_menu_background = "#333"; set c_menu_link = "#999"; set c_menu_link_visited = "#999"; set c_menu_link_hover = "#fff"; set c_menu_link_active = "#fff"; set c_menu_text_color = "#fff"; set c_menu_header_color = "#fff"; set c_menu_current = "#fff"; set c_entry_background = "#fff"; set c_entry_link = "#5ab300"; set c_entry_link_visited = "#5ab300"; set c_entry_link_hover = "#336600"; set c_entry_link_active = "#336600"; set c_entry_text_color = "#333"; set c_entry_title_color = "#333"; set c_entry_border = "#ccc"; set c_meta_background = "#fff"; set c_meta_link = "#5ab300"; set c_meta_link_visited = "#5ab300"; set c_meta_link_hover = "#336600"; set c_meta_link_active = "#336600"; set c_meta_text_color = "#000"; set c_footer_background = "#333"; set c_footer_link = "#fff"; set c_footer_link_visited = "#fff"; set c_footer_link_hover = "#fff"; set c_footer_link_active = "#fff"; set c_footer_text_color = "#fff"; set c_comment_one_link = "#5ab300"; set c_comment_one_link_visited = "#5ab300"; set c_comment_one_link_hover = "#336600"; set c_comment_one_link_active = "#336600"; set c_comment_one_text_color = "#333"; set c_comment_one_title_color = "#333"; set c_comment_one_background = "#fff"; set c_comment_one_border = "#999"; set c_comment_two_link = "#5ab300"; set c_comment_two_link_visited = "#5ab300"; set c_comment_two_link_hover = "#336600"; set c_comment_two_link_active = "#336600"; set c_comment_two_text_color = "#333"; set c_comment_two_title_color = "#333"; set c_comment_two_background = "#fff"; set c_comment_two_border = "#999"; set c_comment_screened_link = "#708CC4"; set c_comment_screened_link_visited = "#5ab300"; set c_comment_screened_link_hover = "#336600"; set c_comment_screened_link_active = "#336600"; set c_comment_screened_text_color = "#333"; set c_comment_screened_title_color = "#333"; set c_comment_screened_background = "#fff"; set c_comment_screened_border = "#999"; # FONTS set f_page = "Georgia, serif"; set f_page_title = "Georgia, serif"; set f_page_title_size = "190%"; set f_page_size = "12px"; set f_page_link = "Georgia, serif"; set f_page_link_size = "100%"; set f_menu_link = "Verdana, Helvetica, sans-serif"; set f_menu_link_size = "80%"; set f_menu = "Georgia, serif"; set f_menu_size = "100%"; set f_menu_header = "Georgia, serif"; set f_menu_header_size = "120%"; set f_menu_current = "Verdana, Helvetica, sans-serif"; set f_menu_current_size = "80%"; set f_entry = "Georgia, serif"; set f_entry_size = "100%"; set f_entry_link = "Georgia, serif"; set f_entry_link_size = "100%"; set f_entry_title = "Georgia, serif"; set f_entry_title_size = "150%"; set f_meta = "Verdana, Helvetica, sans-serif"; set f_meta_size = "80%"; set f_meta_link = "Verdana, Helvetica, sans-serif"; set f_meta_link_size = "100%"; set f_footer = "Georgia, serif"; set f_footer_size = "100%"; set f_footer_link = "Georgia, serif"; set f_footer_link_size = "100%"; set f_comment = "Georgia, serif"; set f_comment_size = "100%"; set f_comment_title = "Georgia, serif"; set f_comment_title_size = "130%"; set f_comment_link = "Georgia, serif"; set f_comment_link_size = "100%"; # OTHER set show_entrynav_icons = true; set time_format = "%%hh%%:%%min%% %%a%%m"; set date_format = "%%mon%%. %%dayord%%, %%yyyy%%"; set menu_disable_summary = false; set css_style_overrides = ""; set css_page_width = "800px"; # TEXT set text_meta_music = "music"; set text_links_header = "links"; set text_meta_mood = "mood"; set text_read_comments = "{#}"; set text_read_comments_friends = "{#}"; set text_comment_anonymous = "anonymous"; set text_comment_viewall = "view all comments"; set text_links_header = "Links"; set text_summary_header = "Page Summary"; set text_links_spacer = "_______________"; # ======================================== # METHODS # ======================================== # ------------------------------- # stylesheet # ------------------------------- function print_stylesheet ( ) { """ @media screen, print { * { margin: 0; padding: 0; } hr { display: none; } body { background-color: $*c_page_background; font-family: $*f_page; font-size: $*f_page_size; line-height: 125%; color: $*c_page_text; text-align: center; } a { font-family: $*f_page_link; font-size: $*f_page_link_size; color: $*c_page_link; text-decoration: none; } a:visited { color: $*c_page_link_visited; } a:hover, a:visited:hover { color: $*c_page_link_hover; text-decoration: underline; } a:active { color: $*c_page_link_active; } a img { border: none; } a.comm { background: transparent url(http://stat.livejournal.com/img/community.gif) no-repeat; padding-left: 19px; padding-bottom: 7px; } a.user { background: transparent url(http://stat.livejournal.com/img/userinfo.gif) no-repeat; padding-left: 19px; padding-bottom: 7px; } p { margin: 5px; padding: 5px; } form { display: inline; margin: 0px; padding: 0px; } input, select, textarea { font-family: $*f_meta; font-size: $*f_meta_size; color: $*c_meta_text_color; padding: 2px; margin: 3px; } #container { position: relative; width: $*css_page_width; margin: 0 auto; text-align: left; } #header { margin-bottom: 15px; border: 1px solid $*c_header_border; background-color: $*c_header_background; } #header h1 { padding: 20px; font-family: $*f_page_title; font-size: $*f_page_title_size; color: $*c_page_title; } #menu { position: relative; background-color: $*c_menu_background; float: left; width: 150px; font-family: $*f_menu; font-size: $*f_menu_size; color: $*c_menu_text_color; border: 1px solid $*c_menu_border; padding: 4px; } #content { position: relative; margin-left: 160px; } #entries { border: 1px solid $*c_main_border; padding: 15px; background-color: $*c_main_background; } #menu h2 { margin: 20px 0; font-family: $*f_menu_header; font-size: $*f_menu_header_size; color: $*c_menu_header_color; } #menu h2.userpic { text-align: center; } #menu a { font-family: $*f_menu_link; font-size: $*f_menu_link_size; color: $*c_menu_link; } #menu a:visited { color: $*c_menu_link_visited; } #menu a:hover, #menu a:visited:hover { color: $*c_menu_link_hover; } #menu a:active { color: $*c_menu_link_active; } #menu ul { margin: 3px; list-style: none; } #menu ul li { margin: 3px; padding: 2px; list-style: none; } #menu ul li.active { font-family: $*f_menu_current; font-size: $*f_menu_current_size; color: $*c_menu_current; font-weight: bold; } #content h2 { margin: 20px 0; } #entries, #comments { margin: 10px; } .ind-entry { padding: 5px; padding-bottom: 15px; border-bottom: 1px solid $*c_entry_border; background-color: $*c_entry_background; } .ind-entry h3 img, .ind-comment-one h3 img, .ind-comment-two h3 img, .ind-comment-screened h3 img { position: relative; float: right; padding: 5px; } .ind-entry h2 { font-family: $*f_entry_title; font-size: $*f_entry_title_size; color: $*c_entry_title_color; margin: 20px 0px; line-height: 140%; } .ind-entry h4, .ind-comment-one h4, .ind-comment-two h4, .ind-comment-screened h4 { font-family: $*f_meta; font-size: $*f_meta_size; color: $*c_meta_text_color; } .ind-entry h4 { background-color: $*c_meta_background; } .ind-entry h4 a, .ind-comment-one h4 a, .ind-comment-two h4 a, .ind-comment-screened h4 a { font-family: $*f_meta_link; font-size: $*f_meta_link_size; color: $*c_meta_link; text-decoration: underline; } .ind-entry h4 a:visited, .ind-comment-one h4 a:visited, .ind-comment-two h4 a:visited, .ind-comment-screened h4 a:visited { color: $*c_meta_link_visited; } .ind-entry h4 a:hover, .ind-comment-one h4 a:hover, .ind-comment-two h4 a:hover, .ind-comment-screened h4 a:hover { color: $*c_meta_link_hover; } .ind-entry h4 a:visited:hover, .ind-comment-one h4 a:visited:hover, .ind-comment-two h4 a:visited:hover, .ind-comment-screened h4 a:visited:hover { color: $*c_meta_link_hover; } .ind-entry h4 a:active, .ind-comment-one h4 a:active, .ind-comment-two h4 a:active, .ind-comment-screened h4 a:active { color: $*c_meta_link_active; } .ind-entry div.entry-item, .ind-entry div.month-entries { font-family: $*f_entry; font-size: $*f_entry_size; color: $*c_entry_text_color; margin: 15px 0px; } .ind-entry div.entry-item a, .ind-entry div.month-entries a { font-family: $*f_entry_link; font-size: $*f_entry_link_size; color: $*c_entry_link; text-decoration: underline; } .ind-entry div.entry-item a:visited, .ind-entry div.month-entries a:visited { color: $*c_entry_link_visited; } .ind-entry div.entry-item a:hover, .ind-entry div.entry-item a:visited:hover { color: $*c_entry_link_hover; } .ind-entry div.month-entries a:hover, .ind-entry div.month-entries a:visited:hover { color: $*c_entry_link_hover; } .ind-entry div.entry-item a:active, .ind-entry div.month-entries a:active { color: $*c_entry_link_active; } .ind-comment-one, .ind-comment-two, .ind-comment-screened { margin: 10px 0; padding: 5px; } .ind-comment-one { background-color: $*c_comment_one_background; border-bottom: 1px solid $*c_comment_one_border; } .ind-comment-two { background-color: $*c_comment_two_background; border-bottom: 1px solid $*c_comment_two_border; } .ind-comment-screened { background-color: $*c_comment_screened_background; border-bottom: 1px solid $*c_comment_screened_border; } .ind-comment-one h2 { font-family: $*f_comment_title; font-size: $*f_comment_title_size; color: $*c_comment_one_title_color; margin: 20px 0px; } .ind-comment-one div.entry-item { font-family: $*f_comment; font-size: $*f_comment_size; color: $*c_comment_one_text_color; margin: 15px 0px; } .ind-comment-one div.entry-item a { font-family: $*f_comment_link; font-size: $*f_comment_link_size; color: $*c_comment_one_link; text-decoration: underline; } .ind-comment-one div.entry-item a:visited { color: $*c_comment_one_link_visited; } .ind-comment-one div.entry-item a:hover, .ind-comment-one div.entry-item a:visited:hover { color: $*c_comment_one_link_hover; } .ind-comment-one div.entry-item a:active { color: $*c_comment_one_link_active; } .ind-comment-two h2 { font-family: $*f_comment_title; font-size: $*f_comment_title_size; color: $*c_comment_two_title_color; margin: 20px 0px; line-height: 140%; } .ind-comment-two div.entry-item { font-family: $*f_comment; font-size: $*f_comment_size; color: $*c_comment_two_text_color; margin: 10px 0px; } .ind-comment-two div.entry-item a { font-family: $*f_comment_link; font-size: $*f_comment_link_size; color: $*c_comment_two_link; text-decoration: underline; } .ind-comment-two div.entry-item a:visited { color: $*c_comment_two_link_visited; } .ind-comment-two div.entry-item a:hover, .ind-comment-two div.entry-item a:visited:hover { color: $*c_comment_two_link_hover; } .ind-comment-two div.entry-item a:active { color: $*c_comment_two_link_active; } .ind-comment-screened h2 { font-family: $*f_comment_title; font-size: $*f_comment_title_size; color: $*c_comment_screened_title_color; margin: 20px 0px; } .ind-comment-screened div.entry-item { font-family: $*f_comment; font-size: $*f_comment_size; color: $*c_comment_screened_text_color; margin: 10px 0px; } .ind-comment-screened div.entry-item a { font-family: $*f_comment_link; font-size: $*f_comment_link_size; color: $*c_comment_screened_link; text-decoration: underline; } .ind-comment-screened div.entry-item a:visited { color: $*c_comment_screened_link_visited; } .ind-comment-screened div.entry-item a:hover, .ind-comment-screened div.entry-item a:visited:hover { color: $*c_comment_screened_link_hover; } .ind-comment-screened div.entry-item a:active { color: $*c_comment_screened_link_active; } .month-entries { margin: 10px 0; } .month-entries ul { list-style: none; margin: 10px; } .month-entries ul li { list-style: none; padding: 3px; } #footer { position: relative; font-family: $*f_footer; font-size: $*f_footer_size; color: $*c_footer_text_color; background-color: $*c_footer_background; } #footer p { padding: 20px; } #footer a { font-family: $*f_footer_link; font-size: $*f_footer_link_size; color: $*c_footer_link; } #footer a:visited { color: $*c_footer_link_visited; } #footer a:hover, #footer a:visited:hover { color: $*c_footer_link_hover; } #footer a:active { color: $*c_footer_link_active; } } @media print { #menu { display: none; } #content { margin-left: 0px; } #entries, .ind-entry, .ind-comment, #footer, #header { border: none; } } $*css_style_overrides """; } # ------------------------------- # user pic main page # ------------------------------- function Page::lay_top_userpic ( ) { var Image up_img = $.journal.default_pic; if ( defined $up_img ) { print "
"; } } # ------------------------------- # returns a permalink link based on # the url passed # ------------------------------- function get_permalink ( string url ) : string { return("$*text_permalink"); } # ------------------------------- # prints the user's 'link-list' # ------------------------------- function Page::print_linklist ( ) { if ( size $.linklist > 0 ) { print "$*text_noentries_day
"; print "
$c.subject_icon $*text_nosubject
"; } else { print "$c.subject_icon $c.subject
"; } print ""; print "from: $poster
\n"; if ( $this.multiform_on ) { print ""; $c->print_multiform_check(); } print "\n"; print "date: $commentdate
\n"; if ( $c.metadata{"poster_ip"} ) { print "$*text_comment_ipaddr " + $c.metadata{"poster_ip"} + "
"; } print get_permalink($c.permalink_url) + "
\n"; var Link lnk; $lnk = $c->get_link("delete_comment"); if ( $lnk.caption != "" ) { print " [lower() + "\">" + $lnk.caption->lower() + "]"; } $lnk = $c->get_link("screen_comment"); if ( $lnk.caption != "" ) { print " [lower() + "\">" + $lnk.caption->lower() + "]"; } $lnk = $c->get_link("unscreen_comment"); if ( $lnk.caption != "" ) { print " [lower() + "\">" + $lnk.caption->lower() + "]"; } print "
"; print "$*text_comment_reply"; if ( $c.parent_url != "" ) { print " | $*text_comment_parent"; } if ( $c.thread_url != "" ) { print " | $*text_comment_thread"; } print "
"; print "