layerinfo type = "layout"; layerinfo name = "Patsy"; layerinfo redist_uniq = "patsy/layout"; layerinfo author_name = "renoir"; layerinfo lang = "en"; ##=============================== ## Layout ##=============================== set layout_authors = [ { "name" => "renoir", "type" => "user" } ]; set layout_type = "two-columns-left"; set userpics_position = "right"; ##=============================== ## Modules ##=============================== propgroup colors_child { property Color color_header_border { des = "Header border color"; } property Color color_footer_border { des = "Footer border color"; } property Color color_content_border { des = "Content border color"; } property Color color_navlinks_current { des = "Current navigation link color"; } property use color_header_link; property use color_header_link_active; property use color_header_link_hover; property use color_header_link_visited; property Color color_calendar_header_background { des = "Calender header entries background color"; } property Color color_calendar_header_text { des = "Calender header entries text color"; } property Color color_calendar_entryday_background { des = "Calender days with entries background color"; } } property string module_navlinks_section_override { values = "none|(none)|header|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } set grouped_property_override = { "module_navlinks_section" => "module_navlinks_section_override" }; set module_navlinks_section = "header"; ##=============================== ## Functions ##=============================== # Give a title to the navlinks module function print_module_navlinks() { var Page p = get_page(); var string title = "Navigation"; open_module("navlinks", "$title", ""); var string{}[] links = []; foreach var string k ($p.views_order) { var string class = "list-item-$k"; var string css = """ class="$k" """; if ($p.view == $k) { $css = """ class="current $k" """; } $links[size $links] = { "class" => $class, "item" => """"""+lang_viewname($k)+"""""" }; } print_module_list($links); close_module(); } # Add section for navlinks module, reorder header and footer function Page::print() { """\n\n\n"""; $this->print_meta_tags(); $this->print_head(); $this->print_stylesheets(); $this->print_head_title(); """"""; $this->print_wrapper_start(); $this->print_control_strip(); """
"""; if ($*layout_type == "one-column-split") { """
"""; $this->print_module_section("one"); """
"""; } """
"""; $this->print_body(); """
"""; if ($*layout_type != "one-column-split") { """
"""; $this->print_module_section("one"); """
"""; } """
"""; $this->print_module_section("two"); """
"""; """
"""; $this->print_wrapper_end(); """"""; } function print_stylesheet () { var string medium_media_query = generate_medium_media_query(); var string entry_header_margin = ""; var string entry_userpic_margin = ""; if ( $*entry_userpic_style == "" ) { $entry_header_margin = "140px"; $entry_userpic_margin = "160px"; } elseif ( $*entry_userpic_style == "small" ) { $entry_header_margin = "115px"; $entry_userpic_margin = "135px";} elseif ( $*entry_userpic_style == "smaller" ) { $entry_header_margin = "90px"; $entry_userpic_margin = "110px";} var string comment_header_margin = ""; var string comment_userpic_margin = ""; if ( $*comment_userpic_style == "" ) { $comment_header_margin = "140px"; $comment_userpic_margin = "160px"; } elseif ( $*comment_userpic_style == "small" ) { $comment_header_margin = "115px"; $comment_userpic_margin = "135px";} elseif ( $*comment_userpic_style == "smaller" ) { $comment_header_margin = "90px"; $comment_userpic_margin = "110px";} if ( ($*comment_userpic_style == "" and $*entry_userpic_style == "small") or ($*comment_userpic_style == "" and $*entry_userpic_style == "smaller") or ($*comment_userpic_style == "small" and $*entry_userpic_style == "smaller" )) {$entry_header_margin = $comment_header_margin;} var string userpic_css = ""; if ($*userpics_position == "left") { $userpic_css = """ .entry, .comment, .comment-pages, .bottomcomment, .month, .tags-container, .icons-container, .navigation, .talkform { border-right: 20px solid $*color_entry_border; border-left:0 !important; } #secondary, #tertiary { border-right: 20px solid $*color_entry_border; } #header { border-right: 20px solid $*color_header_border; } #footer { border-right: 20px solid $*color_footer_border; } @media $medium_media_query { #primary, #header, #footer, #secondary, #tertiary { border-left: $entry_header_margin solid $*color_page_background !important; } .has-userpic .entry .userpic { float: left; margin: -4em 0 0 -$entry_userpic_margin; border-right: 20px solid $*color_entry_border; } .has-userpic .comment .userpic { float: left; margin: -1em 0 0 -$comment_userpic_margin; border-right: 20px solid $*color_entry_border; } } """; } elseif ($*userpics_position == "right") { $userpic_css = """ @media $medium_media_query { #primary, #header, #footer, #secondary, #tertiary { border-right: $entry_header_margin solid $*color_page_background; } .has-userpic .entry .userpic { float: right; margin: -4em -$entry_userpic_margin 0 0; border-left: 20px solid $*color_entry_border; } .has-userpic .comment .userpic { float: right; border-left: 20px solid $*color_entry_border; margin: -1em -$comment_userpic_margin 0 0; } } """; } $userpic_css = $userpic_css + """ .multiple-columns #secondary, .three-columns #tertiary { border: none; } """; """ /*------------------------------------- layout name: patsy layout type: tabularasa renoir.dreamwidth.org / vaisselle.livejournal.com -------------------------------------*/ /*------------------------------------- basics -------------------------------------*/ html { font-size: 100%; } body {line-height: 1.8em; text-align: center; margin: 0; } a { text-decoration: none; } #canvas { text-align: justify; padding: 0; } #primary { background: $*color_entry_background; color: $*color_entry_text; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } #primary > .inner:first-child { padding:0;} .navigation { background:$*color_entry_background; border-left: 20px solid $*color_entry_border; margin: 0 auto; padding: 20px; text-align: right; text-transform: uppercase; } li.page-back, li.page-forward { display: inline; list-style: none; padding: 0; margin: 0; } li.page-separator { display: none; } .navigation ul { display: inline; padding: 0; margin: 0; } @media $medium_media_query { #canvas { border-left: 100px solid $*color_content_border; } .column-left #content, .column-right #content { border-color: $*color_module_background; } .two-columns #secondary, .three-columns #secondary, .three-columns #tertiary {position:relative; top: -7em;} } /*------------------------------------- header & footer -------------------------------------*/ #header { border-left: 20px solid $*color_header_border; margin: 0 auto 0 auto; padding: 50px 20px 40px 20px; } #footer { border-left: 20px solid $*color_footer_border; margin: 0; padding: 20px; clear: both; text-align: right; text-transform: uppercase; } h1#title { font-weight: normal; text-transform: uppercase; letter-spacing: 0.5em; padding: 0; margin: 0; } h1#title a { color: $*color_page_title; } h2#subtitle { font-weight: normal; text-transform: lowercase; letter-spacing: .6em; padding: 0; margin: 0; } /*------------------------------------- navigation -------------------------------------*/ #header .module-navlinks { text-align: left; padding-bottom: 1em; background: none;} #header .module-navlinks .module-header {display:none;} #header .module-navlinks .module-list { display: inline; padding: 0; margin: 0; text-transform: uppercase; letter-spacing: -0.1em; } #header .module-navlinks .module-list li { display: inline; margin: 0 10px 0 0; list-style: none; padding: 0 5px 0 0; } #header .module-navlinks a { color: $*color_header_link; } #header .module-navlinks a:active { color: $*color_header_link_active; } #header .module-navlinks a:hover { color: $*color_header_link_hover; } #header .module-navlinks a:visited { color: $*color_header_link_visited; } #header .module-navlinks .current, .module-navlinks .current {color: $*color_navlinks_current;} /*------------------------------------- entry -------------------------------------*/ .entry { padding: 20px; border-left: 20px solid $*color_entry_border; border-bottom: 20px solid $*color_entry_border; border-top:0; border-right:0;} .entry-content {margin: 1em 0;} .entry-title { padding: 0; margin: 0; text-transform: lowercase; letter-spacing: 0.2em; font-weight: normal; } .datetime { text-transform: uppercase; font-size: smaller; letter-spacing: 0.3em; } .entry .userpic img, .comment .userpic img { border: 10px solid $*color_entry_background; display:block} $userpic_css .poster { margin: 15px 0; } .metadata {margin: 0; } .metadata ul { padding: 0; margin: 0; } .metadata ul li { list-style: none; padding: 0; margin: 0; } .tag ul li { list-style: none; font-weight: normal; padding: 0; margin: 0 5px 0 0; } ul.entry-management-links { padding: 0; margin: 10px 0 0 0; list-style: none; text-align: center; } ul.entry-management-links li { padding: 0; margin: 0 auto; list-style: none; text-align: center; } ul.entry-interaction-links { padding: 0; margin: 10px 0; text-align: center; } ul.entry-interaction-links li { display: inline; list-style: none; font-weight: normal; text-transform: uppercase; margin: 0 5px 0 0; padding: 0; } .entry {background:none;} /*------------------------------------- archive & calendar page -------------------------------------*/ li.active { list-style: none; display: inline; padding: 0; margin: 10px; } .month, .tags-container, .icons-container { padding: 20px; margin-bottom: 0 0 20px 0; border-left: 20px solid $*color_entry_border; } .month h3, .tags-container h2, .icons-container h2 { padding: 0; margin: 0; font-size: $*font_entry_title_size$*font_entry_title_units; text-transform: lowercase; letter-spacing: .2em; font-weight: normal; color: $*color_entry_title; background: $*color_entry_title_background; } .navigation ul { display: inline; } .navigation li { display: inline; list-style: none; } table.month { border: 0; } .month th { text-align: center; margin: 0 2px; text-transform: lowercase; font-weight: normal; background: $*color_calendar_header_background; color: $*color_calendar_header_text; } .month td.day { font-weight: normal; } .month td.day-has-entries { font-weight: normal; background: $*color_calendar_entryday_background } .month td.day-has-entries p { padding: 0 0 0 5px; margin: 0; } .month table { width: 100%; border: 0; margin: auto; } td.day { padding: 10px; border: 0; text-align: center; } /*------------------------------------- tags page -------------------------------------*/ .page-tags .ljtaglist { margin: 0; padding: 0; } .page-tags .ljtaglist li { padding: 0 0 0 10px; margin: 0; text-transform: lowercase; letter-spacing: 0; list-style: none; } /*--- Icon Page ---*/ div.icons-container div.icon:nth-of-type(2n) { clear: both; } .icons-container .icon { float: left; margin-bottom: 15px; min-width: 350px; vertical-align: bottom; width: 50%; display:table; } .icon-image { display: inline; float: left; margin-right: 1em; min-width: 100px; margin-top: 0; } .icon-info { overflow: auto; vertical-align: bottom; word-wrap: break-word; display:table-cell; width:100%; } .icon-info .label, .icon-info span { font-weight: bold; } .icons-container .inner .footer, .icon-pages { clear: both; text-align: center; } /*------------------------------------- read comments & write a comment -------------------------------------*/ hr.above-entry-interaction-links, hr.below-reply-container { display: none; } textarea.textbox { width: 80% !important; } #primary #comments {background:$*color_page_background;} .comment { background: $*color_entry_background; border-left: 20px solid $*color_entry_border; padding:20px; border-bottom: 20px solid $*color_entry_border; } .dwexpcomment {margin-top:0 !important;} .bottomcomment, .comment-pages { background: $*color_entry_background; padding: 20px; border-left: 20px solid $*color_entry_border; border-bottom: 20px solid $*color_entry_border; text-align: center; } .comment-management-links ul, .comment-interaction-links ul { margin: 0; padding: 0; list-style: none; } .comment-management-links li, .comment-interaction-links li { display: inline; } #qrform table { border: 0!important; } .comment-poster { text-transform: uppercase; } .comment-wrapper {padding: 0;} .comment-management-links ul, .comment-interaction-links ul { margin: 0; padding: 0; list-style: none; } .comment-management-links li, .comment-interaction-links li { display: inline; } .talkform { padding: 20px; margin: 0; border-left: 20px solid $*color_entry_border; } /*------------------------------------- sidebar (minus the navigation) -------------------------------------*/ .any-column #secondary, .any-column #tertiary { width: auto; } @media $medium_media_query { .multiple-columns #secondary, .three-columns.column-right #tertiary { width: $*sidebar_width; } .two-columns #tertiary .module, .one-column #tertiary .module, .one-column #secondary .module { display: inline-block; width: $*sidebar_width; float: none; } .two-columns #tertiary, .one-column #tertiary, .one-column #secondary { border-left: 20px solid $*color_entry_border; background: $*color_module_background; } .two-columns #tertiary {margin:0;} } .module-content .userpic { text-align: center; } .module-content .userpic img { padding: 5px; background: $*color_module_text !important; } .journal-name { text-transform: uppercase; letter-spacing: .15em; margin: 5px 0 0 0; text-align: center; } .journal-website-name { text-transform: uppercase; letter-spacing: .15em; margin: 0; text-align: center; } ul.userlite-interaction-links { padding: 0; margin: 5px 0 0 0; list-style: none; text-align: center; } ul.userlite-interaction-links li { padding: 0; margin: 0 auto; display: inline; list-style: none; text-align: center; } ul.module-list-item { padding: 0; margin: 0; list-style: none; } ul.module-list-item li { padding: 0 0 0 9px; margin: 0; list-style: none; } .manage-tags-link { margin: 10px 0 0 0; padding: 0; text-transform: uppercase; text-align: right; letter-spacing: .15em; } .module-calendar table { text-align: center; margin: 0 auto;} .module-calendar th { text-transform: uppercase; background: $*color_calendar_header_background; color: $*color_calendar_header_text; margin: 0 1px; padding: 3px 8px; border: 1px solid $*color_entry_text; } .module-calendar td { text-transform: uppercase; margin: 0 1px; border: 1px solid $*color_entry_text; } .module-calendar td.entry-day {background: $*color_calendar_entryday_background; } /*------------------------------------- extras -------------------------------------*/ blockquote { font-style: italic; padding: 40px 20px; margin: 20px; } """; }