1 layerinfo type = "layout";
2 layerinfo name = "Five AM";
3 layerinfo redist_uniq = "fiveam/layout";
4 layerinfo author_name = "winterfish";
7 set layout_authors = [ { "name" => "winterfish", "type" => "user" } ];
9 ##===============================
11 ##===============================
13 propgroup presentation_child {
14 property string userpics_position {
15 des = "Place of icons in entries";
16 note = "If displayed, icons will be on the opposite side in comments";
17 values = "none|None (don't show)|left|Left|right|Right";
21 set layout_type = "two-columns-left";
22 set sidebar_width = "17em";
23 set sidebar_width_doubled = "34em";
24 set userpics_position = "right";
26 ##===============================
28 ##===============================
30 propgroup colors_child {
31 property Color color_page_usernames { des = "Page username color"; }
32 property Color color_page_usernames_active { des = "Page active username color"; }
33 property Color color_page_usernames_hover { des = "Page hover username color"; }
34 property Color color_page_usernames_visited { des = "Page visited username color"; }
35 property Color color_header_border { des = "Page header border color"; }
36 property Color color_header_accent { des = "Page header accent color"; }
37 property Color color_footer_border { des = "Page footer border color"; }
38 property use color_entry_interaction_links_background;
39 property use color_entry_interaction_links_hover;
40 property use color_entry_interaction_links_active;
41 property use color_entry_interaction_links_visited;
42 property Color color_comment_interaction_links { des = "Comment interaction links color"; }
43 property Color color_comment_interaction_links_border { des = "Comment interaction links border color"; }
44 property Color color_module_accent { des = "Module accent color"; }
45 property Color color_calendar_background { des = "Calendar background color on days with entries"; }
46 property Color color_calendar_background_hover { des = "Calendar hover background color on days with entries"; }
47 property Color color_calendar_border { des = "Calendar border color"; }
48 property Color color_calendar_link { des = "Calendar link color on days with entries"; }
49 property Color color_calendar_link_active { des = "Calendar active link color on days with entries"; }
50 property Color color_calendar_link_hover { des = "Calendar hover link color on days with entries"; }
51 property Color color_calendar_link_visited { des = "Calendar visited link color on days with entries"; }
52 property Color color_calendar_text { des = "Calendar text color on days with entries"; }
53 property Color color_calendar_text_hover { des = "Calendar hover text color on days with entries"; }
56 ##===============================
58 ##===============================
60 set font_base = "Arial, Verdana, Helvetica";
61 set font_fallback = "sans-serif";
62 set font_journal_title = "Calibri";
63 set font_journal_title_size = "2";
64 set font_journal_title_units = "em";
65 set font_journal_subtitle = "Calibri";
66 set font_journal_subtitle_size = "1.2";
67 set font_journal_subtitle_units = "em";
68 set font_entry_title = "Calibri";
69 set font_entry_title_size = "1.2";
70 set font_entry_title_units = "em";
71 set font_comment_title = "Calibri";
72 set font_comment_title_size = "1.2";
73 set font_comment_title_units = "em";
74 set font_module_heading = "Calibri";
75 set font_module_heading_size = "1.2";
76 set font_module_heading_units = "em";
78 ##===============================
80 ##===============================
82 propgroup images_child {
83 property string[] image_blockquote_background_group {
84 des = "Blockquote background image";
87 set image_blockquote_background_group = [ "image_blockquote_background_url", "image_blockquote_background_repeat", "image_blockquote_background_position" ];
88 property string image_blockquote_background_url {
91 property string image_blockquote_background_repeat {
92 values = "repeat|tile image|no-repeat|don't tile|repeat-x|tile horizontally|repeat-y|tile vertically";
95 property string image_blockquote_background_position {
96 values = "top left|top left|top center|top center|top right|top right|center left|center left|center center|center|center right|center right|bottom left|bottom left|bottom center|bottom center|bottom right|bottom right";
102 ##===============================
104 ##===============================
106 property string module_navlinks_section_override {
107 values = "none|(none)|header|Header|one|Main Module Section|two|Second Module Section";
111 set grouped_property_override = { "module_navlinks_section" => "module_navlinks_section_override" };
112 set module_navlinks_section = "header";
114 ##===============================
116 ##===============================
118 function Page::print() {
119 """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n<head profile="http://www.w3.org/2006/03/hcard http://purl.org/uF/hAtom/0.1/ http://gmpg.org/xfn/11">\n""";
121 $this->print_stylesheets();
122 $this->print_head_title();
124 $this->print_wrapper_start();
125 $this->print_control_strip();
132 $this->print_module_section("header");
133 $this->print_global_title();
134 $this->print_global_subtitle();
135 $this->print_title();
137 </div><!-- end header>inner -->
138 </div><!-- end header -->
142 if ($*layout_type == "one-column-split") {
144 <div id="secondary"><div class="inner">
146 $this->print_module_section("one");
148 </div></div><!-- end secondary and secondary>inner -->
152 <div id="primary"><div class="inner">
156 </div></div><!-- end primary and primary>inner -->
158 if ($*layout_type != "one-column-split") {
160 <div id="secondary"><div class="inner">
162 $this->print_module_section("one");
164 </div></div><!-- end secondary and secondary>inner -->
168 <div id="invisible-separator" style="float: left; width: 1px;"></div> <!-- this is a hack for IE7 + two-columns-right -->
169 <div id="tertiary"><div class="inner">
171 $this->print_module_section("two");
173 </div></div><!-- end tertiary and tertiary>inner -->
174 <div id="content-footer"></div>
175 </div><!-- end content>inner -->
176 </div> <!-- end content -->
177 </div> <!-- end canvas>inner -->
185 <div class="page-top"><a href="#">$*text_page_top</a></div>
186 </div><!-- end footer>inner -->
187 </div><!-- end footer -->
189 </div> <!-- end canvas -->
191 $this->print_wrapper_end();
195 ##===============================
197 ##===============================
199 function print_stylesheet () {
201 var string blockquote_background = generate_background_css ($*image_blockquote_background_url, $*image_blockquote_background_repeat, $*image_blockquote_background_position, new Color);
203 var string entry_title_font = generate_font_css($*font_entry_title, $*font_base, $*font_fallback, $*font_entry_title_size, $*font_entry_title_units);
204 var string module_title_font = generate_font_css($*font_module_heading, $*font_base, $*font_fallback, $*font_module_heading_size, $*font_module_heading_units);
206 var string entry_contents_margin = "";
207 var string entry_userpic_margin = "";
208 if ( $*entry_userpic_style == "" ) { $entry_contents_margin = "120px"; $entry_userpic_margin = "140px"; }
209 elseif ( $*entry_userpic_style == "small" ) { $entry_contents_margin = "95px"; $entry_userpic_margin = "125px"; }
210 elseif ( $*entry_userpic_style == "smaller" ) { $entry_contents_margin = "70px"; $entry_userpic_margin = "90px"; }
212 var string userpic_css = "";
213 if($*userpics_position == "left") {
215 .has-userpic .entry .contents {
216 margin-left: $entry_contents_margin;
217 min-height: $entry_userpic_margin;
221 .has-userpic .entry .userpic {
224 margin-left: -$entry_userpic_margin;
227 .has-userpic .comment .userpic {
235 elseif ($*userpics_position == "right") {
237 .has-userpic .entry .contents {
238 margin-right: $entry_contents_margin;
239 min-height: $entry_userpic_margin;
243 .has-userpic .entry .userpic {
246 margin-right: -$entry_userpic_margin;
249 .has-userpic .comment .userpic {
260 /* by w i n t e r f i s h */
263 ***************************************************************************/
269 h1, h2, h3, h4, h5, h6 {
279 $blockquote_background
280 border-bottom: 4px solid $*color_entry_border;
281 border-top: 4px solid $*color_entry_border;
284 padding: 2em 1em 2em 6.5em;
287 input, textarea, select {
288 background: $*color_page_background;
289 border: 1px solid $*color_calendar_border;
290 color: $*color_page_text;
297 a, a:link, a:active, a:visited {
298 text-decoration: none;
301 /* Keep before ljuser */
303 .comment a { color: $*color_page_link; }
304 .comment a:visited { color: $*color_page_link_visited; }
305 .comment a:hover { color: $*color_page_link_hover; }
306 .comment a:active { color: $*color_page_link_active; }
309 color: $*color_page_usernames;
313 color: $*color_page_usernames_visited;
317 color: $*color_page_usernames_hover;
321 color: $*color_page_usernames_active;
325 ***************************************************************************/
331 .page-entry #primary,
332 .page-reply #primary {
333 margin-top: 2.15em; /* entry-wrapper has padding already */
336 .page-icons #primary,
337 .page-tags #primary {
341 #primary > .inner:first-child {
345 .column-left #primary > .inner:first-child {
349 .column-right #primary > .inner:first-child {
353 /* to make sure the sidebars always have the same size */
354 .three-columns-sides #primary > .inner:first-child {
363 #secondary > .inner:first-child {
367 .three-columns #secondary > .inner:first-child {
375 .one-column #tertiary {
379 .one-column #secondary,
380 .one-column #tertiary {
385 #tertiary > .inner:first-child {
389 .three-columns #tertiary > .inner:first-child {
394 ***************************************************************************/
397 border-bottom: 2px solid $*color_header_border;
400 text-transform: lowercase;
404 border-top: 2px solid $*color_header_border;
405 color: $*color_page_title;
410 color: $*color_page_title;
415 color: $*color_page_title;
416 font-size: 1.5em; /* restore to default size */
417 padding-bottom: 1.2em;
421 h1#title:first-letter,
422 h2#pagetitle:first-letter {
423 color: $*color_header_accent;
427 ***************************************************************************/
430 font-family: $*font_entry_title;
432 text-transform: lowercase;
440 .page-recent .bottomnav,
441 .page-read .bottomnav,
442 .page-network .bottomnav,
443 .page-day .bottomnav {
447 .page-day .navigation .page-forward:before {
451 .page-day .navigation .page-forward a {
456 ***************************************************************************/
472 .entry .entry-title {
477 .entry .access-filter img,
478 .entry .restrictions img {
485 display: inline-block;
487 font-family: $*font_entry_title;
488 text-transform: none;
492 color: $*color_entry_title;
496 color: $*color_entry_link_hover;
499 .entry .time:before {
509 .has-userpic .entry .userpic {
514 .contents .userpic img {
515 background: $*color_entry_text;
516 border: 1px solid $*color_entry_text;
521 color: $*color_page_usernames;
533 margin: 1em 1em 1em 3em;
543 text-transform: uppercase;
552 .metadata-item-xpost a {
565 font-family: $*font_entry_title;
568 text-transform: lowercase;
572 text-transform: uppercase;
575 .entry-management-links {
577 padding: 1em 0 1em .5em;
580 .entry-interaction-links {
581 background: $*color_entry_interaction_links_background;
582 padding: 1em .5em 1em 0;
586 .entry-interaction-links li,
587 .entry-management-links li {
588 font-family: $*font_entry_title;
589 text-transform: lowercase;
590 padding: .5em !important;
593 .entry-management-links li a {
594 color: $*color_entry_interaction_links;
597 .entry-interaction-links li a:visited,
598 .entry-management-links li a:visited {
599 color: $*color_entry_interaction_links_visited;
602 .entry-interaction-links li a:hover,
603 .entry-management-links li a:hover {
604 color: $*color_entry_interaction_links_hover;
607 .entry-interaction-links li a:active,
608 .entry-management-links li a:active {
609 color: $*color_entry_interaction_links_active;
613 ***************************************************************************/
616 margin-top: 1em !important;
624 .comment-pages.bottompages,
625 .comment-pages.bottompages {
634 .comment-content ol {
635 margin: 1em 1em 1em 3em;
639 border-top: 1px solid $*color_entry_border;
644 padding: .3em 0 !important;
648 display: inline !important;
652 .partial .comment-title {
653 display: inline !important;
657 display: inline !important;
661 .comment .comment-title a:hover {
662 color: $*color_page_link_hover;
665 .comment .header .datetime {
667 text-transform: uppercase;
670 .has-userpic .comment .userpic {
684 .comment-poster .anonymous {
685 color: $*color_page_link !important;
689 .comment .poster-ip {
690 color: $*color_page_link;
694 padding: .8em 0 .5em;
702 .comment .multiform-checkbox {
703 font-family: $*font_comment_title;
705 margin-top: -1px; /* line up the checkbox */
707 text-transform: lowercase;
710 .comment-interaction-links {
715 .comment-management-links {
719 .comment-interaction-links li,
720 .comment-management-links li {
721 border-right: 1px solid $*color_comment_interaction_links_border;
722 font-family: $*font_comment_title;
724 text-transform: lowercase;
727 .comment-interaction-links a,
728 .comment-management-links a {
729 color: $*color_comment_interaction_links;
732 .comment-interaction-links a:hover,
733 .comment-management-links a:hover {
734 color: $*color_page_link_hover;
738 color: $*color_page_link;
743 padding: 2.2em 0 .5em;
747 .bottomcomment .entry-interaction-links{
748 margin-bottom: 1.5em;
752 ***************************************************************************/
754 .page-archive .navigation {
758 .page-archive .bottomnav {
763 padding: 2.2em 4em 0;
770 .month-wrapper .header {
771 padding: 0 0 .5em 2em;
774 .month-wrapper .contents caption {
784 border: 1px solid $*color_calendar_border;
792 border-bottom: 1px solid $*color_calendar_border;
793 border-right: 1px solid $*color_calendar_border;
798 table.month td:first-child,
799 table.month th:first-child {
800 border-left: 1px solid $*color_calendar_border;
803 .month-wrapper .day-has-entries {
804 background: $*color_calendar_background;
805 color: $*color_calendar_text;
808 .month-wrapper .day-has-entries a {
809 color: $*color_calendar_link;
812 .month-wrapper .day-has-entries:hover {
813 background: $*color_calendar_background_hover;
814 color: $*color_calendar_text_hover;
817 .month-wrapper .day-has-entries a:visited {
818 color: $*color_calendar_link_visited;
821 .month-wrapper .day-has-entries:hover p a {
822 color: $*color_calendar_link_hover;
825 .month-wrapper .day-has-entries a:active {
826 color: $*color_calendar_link_active;
829 .month-wrapper .footer {
830 padding-right: 2.5em;
839 #archive-month .navigation {
843 #archive-month .topnav {
847 #archive-month .bottomnav {
851 #archive-month .topnav {
852 border-top: 1px solid $*color_entry_border;
855 .navigation .month-back,
856 .navigation .month-forward {
860 #archive-month .month {
865 .month h3.entry-title {
873 .month dl, .month dt, .month dd {
879 .month .access-filter,
880 .month .entry-title {
885 border-top: 1px solid $*color_entry_border;
890 font-family: $*font_entry_title;
895 ***************************************************************************/
898 border-top: 1px solid $*color_entry_title;
903 font-family: $*font_entry_title;
907 .tags-container .ljtaglist {
911 .tags-container ul.ljtaglist {
912 list-style-type: none;
915 .tags-container .manage-tags-link {
920 ***************************************************************************/
923 border-top: 1px solid $*color_entry_title;
927 .icons-container h2 {
928 font-family: $*font_entry_title;
932 .sorting-options ul {
943 margin-bottom: .25em;
956 .icon-info .default {
957 text-decoration: underline;
960 .icon-info .keywords ul {
964 .icon-info .keywords ul li {
965 padding: 0 .25em 0 0;
969 ***************************************************************************/
976 margin-bottom: 2.5em;
979 .one-column #secondary .module,
980 .one-column #tertiary .module,
981 .two-columns #tertiary .module {
986 .one-column-split #primary,
988 .two-columns #footer {
994 text-transform: lowercase;
998 color: $*color_module_title;
1005 .module-content ul {
1006 list-style-type: none;
1010 .module-content li {
1018 #header .module-navlinks ul {
1019 margin: -.8em 0 1.8em;
1022 #header .module-navlinks {
1026 #header .module-navlinks li {
1029 padding: 0 1em 0 0 !important;
1032 .module-userprofile .userpic img {
1033 background: $*color_module_title;
1034 border: 1px solid $*color_module_title;
1038 .module-userprofile .journal-website-name {
1042 ul.userlite-interaction-links {
1046 ul.userlite-interaction-links li {
1050 .module-calendar .module-content {
1054 .module-calendar table {
1059 .module-calendar th,
1060 .module-calendar td {
1061 border: 1px solid $*color_calendar_background;
1066 .module-calendar td a {
1067 background: $*color_calendar_background;
1068 color: $*color_calendar_link;
1073 .module-calendar td a:visited {
1074 color: $*color_calendar_link_visited;
1077 .module-calendar td a:hover {
1078 background: $*color_calendar_background_hover;
1079 color: $*color_calendar_link_hover;
1082 .module-calendar td a:active {
1083 color: $*color_calendar_link_active;
1086 .module-tags_multilevel li {
1087 list-style-type: none;
1092 .module-tags_multilevel li ul li {
1097 .module-tags_cloud .module-list {
1101 .module-tags_cloud .module-list a {
1102 text-decoration: underline;
1105 .manage-tags-link, .manage-link {
1106 font-family: $*font_module_heading;
1108 text-transform: lowercase;
1111 .module-powered, .module-time {
1113 border-top: 1px solid $*color_module_title;
1117 .manage-tags-link a,
1119 color: $*color_module_accent;
1122 .module-powered a:visited,
1123 .manage-tags-link a:visited,
1124 .manage-link a:visited {
1125 color: $*color_module_link_visited;
1128 .module-powered a:hover,
1129 .manage-tags-link a:hover,
1130 .manage-link a:hover {
1131 color: $*color_module_link_hover;
1134 .module-powered a:active,
1135 .manage-tags-link a:active,
1136 .manage-link a:active {
1137 color: $*color_module_link_active;
1140 .module-search .search-box {
1146 ***************************************************************************/
1149 border-top: 2px solid $*color_footer_border;
1152 text-transform: lowercase;