1 layerinfo type = "layout";
2 layerinfo name = "Brittle";
3 layerinfo redist_uniq = "brittle/layout";
4 layerinfo author_name = "renoir";
6 set layout_authors = [ { "name" => "renoir", "type" => "user" } ];
8 ##===============================
9 ## Display settings - general
10 ##===============================
12 propgroup presentation {
13 property use num_items_recent;
14 property use num_items_reading;
15 property use use_journalstyle_entry_page;
16 property use layout_type;
17 property use tags_page_type;
18 property use sidebar_width;
19 property use margins_size;
20 property use margins_unit;
21 property use userpics_style_group;
22 property string entryicons_position {
23 des = "Place icons on the same side or opposite the sidebar";
24 values = "none|None (don't show)|same|Same side as sidebar|opposite|Opposite the sidebar";
26 property use entry_metadata_position;
27 property use use_custom_friend_colors;
28 property use use_shared_pic;
29 property use userlite_interaction_links;
30 property use entry_management_links;
31 property use comment_management_links;
32 property use reg_firstdayofweek;
33 property use entry_datetime_format_group;
34 property use comment_datetime_format_group;
37 set sidebar_width = "15em";
38 set layout_type = "two-columns-right";
39 set entry_userpic_style= "small";
40 set comment_userpic_style= "small";
41 set entryicons_position = "opposite";
42 set use_custom_friend_colors = false;
43 set custom_foreground_element = "userpic_border";
44 set custom_background_element = "userpic_background";
46 ##===============================
47 ## Journal style - colors
48 ##===============================
52 property use color_page_background;
53 property use color_page_text;
54 property use color_page_link;
55 property use color_page_link_hover;
56 property use color_page_link_visited;
58 property use color_footer_background;
59 property use color_footer_link;
60 property use color_footer_link_hover;
61 property use color_footer_link_visited;
63 property Color color_navigation_module_background { des = "Navigation module background color"; }
64 property Color color_navigation_module_link { des = "Navigation module link color"; }
65 property Color color_navigation_module_link_hover { des = "Navigation module hover link color"; }
66 property Color color_navigation_module_link_visited { des = "Navigation module visited link color"; }
68 property use color_entry_title;
69 property use color_entry_background;
70 property use color_entry_text;
71 property use color_entry_link;
72 property use color_entry_link_hover;
73 property use color_entry_link_visited;
77 ##===============================
78 ## Display settings - fonts
79 ##===============================
82 property use font_base;
83 property use font_fallback;
84 property use font_base_size;
85 property use font_base_units;
87 property string font_entry_text {
88 des = "Preferred font for entry text";
91 note = "For example: Arial or \"Times New Roman\". Leave blank if you don't care.";
93 property string font_entry_text_size {
94 des = "Size of entry text font";
97 property string font_entry_text_units {
98 des = "Units for entry text size";
99 values = "em|em|ex|ex|%|%|pt|pt|px|px";
101 property use font_entry_title;
102 property use font_entry_title_size;
103 property use font_entry_title_units;
104 property use font_comment_title;
105 property use font_comment_title_size;
106 property use font_comment_title_units;
108 property string font_navigation_module_text {
109 des = "Preferred font for navigation module text";
112 note = "For example: Arial or \"Times New Roman\". Leave blank if you don't care.";
114 property string font_navigation_module_text_size {
115 des = "Size of navigation module text font";
118 property string font_navigation_module_text_units {
119 des = "Units for navigation module text size";
120 values = "em|em|ex|ex|%|%|pt|pt|px|px";
122 property use font_module_heading;
123 property use font_module_heading_size;
124 property use font_module_heading_units;
125 property string font_other_module_text {
126 des = "Preferred font for module text other than navigation module";
129 note = "For example: Arial or \"Times New Roman\". Leave blank if you don't care.";
131 property string font_other_module_text_size {
132 des = "Size of module text font other than navigation module";
135 property string font_other_module_text_units {
136 des = "Units for module text size other than navigation module";
137 values = "em|em|ex|ex|%|%|pt|pt|px|px";
140 property string font_date_time {
141 des = "Preferred font for date and time in entries and comments";
144 note = "For example: Arial or \"Times New Roman\". Leave blank if you don't care.";
146 property string font_date_time_size {
147 des = "Size of font for date and time in entries and comments";
150 property string font_date_time_units {
151 des = "Units for date and time in entries and comments text size";
152 values = "em|em|ex|ex|%|%|pt|pt|px|px";
158 set font_base = "Georgia";
159 set font_fallback = "sans-serif";
160 set font_base_size = "1";
161 set font_base_units = "em";
163 set font_entry_text = "Georgia";
164 set font_entry_text_size = "0.95";
165 set font_entry_text_units = "em";
166 set font_entry_title = "Georgia";
167 set font_entry_title_size = "0.7";
168 set font_entry_title_units = "em";
170 set font_navigation_module_text = "Georgia";
171 set font_navigation_module_text_size = "0.8";
172 set font_navigation_module_text_units = "em";
173 set font_other_module_text = "Georgia";
174 set font_other_module_text_size = "0.8";
175 set font_other_module_text_units = "em";
176 set font_module_heading = "Georgia";
177 set font_module_heading_size = "1";
178 set font_module_heading_units = "em";
180 set font_date_time = "Helvetica";
181 set font_date_time_size = "0.6";
182 set font_date_time_units = "em";
184 ##===============================
185 ## Display settings - images
186 ##===============================
189 property use image_background_page_group;
190 property use image_background_entry_group;
193 ##===============================
194 ## Display settings - modules
195 ##===============================
198 property use module_userprofile_group;
199 property use module_navlinks_group;
200 property use module_customtext_group;
201 property use module_calendar_group;
202 property use module_pagesummary_group;
203 property use module_tags_group;
204 property use module_active_group;
205 property use module_links_group;
206 property use module_syndicate_group;
207 property use module_time_group;
208 property use module_poweredby_group;
209 property use module_credit_group;
210 property use module_search_group;
211 property use module_cuttagcontrols_group;
214 # explicitly define what sections the layout has available
215 set module_layout_sections = "none|(none)|one|Group One|two|Group Two";
217 # set module order and sections
218 set module_navlinks_order = 1;
219 set module_navlinks_section = "one";
220 set module_customtext_order = 2;
221 set module_customtext_section = "one";
222 set module_userprofile_order = 3;
223 set module_userprofile_section = "two";
224 set module_links_order = 5;
225 set module_links_section = "two";
226 set module_syndicate_order = 6;
227 set module_syndicate_section = "two";
228 set module_tags_order = 7;
229 set module_tags_section = "two";
230 set module_pagesummary_order = 8;
231 set module_pagesummary_section = "two";
232 set module_active_order = 9;
233 set module_active_section = "two";
234 set module_credit_order = 10;
235 set module_credit_section = "two";
236 set module_calendar_order = 13;
237 set module_calendar_section = "two";
238 set module_calendar_opts_type = "horizontal";
240 ##===============================
242 ##===============================
244 propgroup customcss {
245 property use external_stylesheet;
246 property use include_default_stylesheet;
247 property use linked_stylesheet;
248 property use custom_css;
252 ##===============================
253 ## Text - main navigation
254 ##===============================
256 property use text_view_recent;
257 property use text_view_friends;
258 property use text_view_network;
259 property use text_view_archive;
260 property use text_view_userinfo;
261 property use text_view_memories;
262 property use text_view_tags;
264 ##===============================
265 ## Text - entry comment-related
266 ##===============================
268 property use text_post_comment;
269 property use text_max_comments;
270 property use text_read_comments;
271 property use text_post_comment_friends;
272 property use text_read_comments_friends;
274 property use text_skiplinks_back;
275 property use text_skiplinks_forward;
276 property use text_meta_music;
277 property use text_meta_mood;
278 property use text_meta_location;
279 property use text_meta_xpost;
280 property use text_tags;
282 property use text_entry_prev;
283 property use text_entry_next;
284 property use text_edit_entry;
285 property use text_edit_tags;
286 property use text_tell_friend;
287 property use text_mem_add;
288 property use text_watch_comments;
289 property use text_unwatch_comments;
290 property use text_permalink;
291 property use text_stickyentry_subject;
293 property use text_module_customtext;
294 property use text_module_customtext_content;
295 property use text_module_customtext_url;
298 function prop_init() {
299 if ( $*entryicons_position == "none" ) {
300 $*userpics_position = "none";
304 function Page::print_default_stylesheet() {
306 var string sidebar_position = "";
307 var string sidebar_position_opposite = "";
309 if ($*layout_type == "two-columns-right") { $sidebar_position = "right"; $sidebar_position_opposite = "left"; }
310 elseif ($*layout_type == "two-columns-left") { $sidebar_position = "left"; $sidebar_position_opposite = "right"; }
312 var string page_background = generate_background_css ($*image_background_page_url, $*image_background_page_repeat, $*image_background_page_position, $*color_page_background);
313 var string entry_background = generate_background_css ($*image_background_entry_url, $*image_background_entry_repeat, $*image_background_entry_position, $*color_entry_background);
315 var string page_font = generate_font_css("", $*font_base, $*font_fallback, $*font_base_size, $*font_base_units);
316 var string entry_font = generate_font_css($*font_entry_text, $*font_base, $*font_fallback, $*font_entry_text_size, $*font_entry_text_units);
317 var string entry_title_font = generate_font_css($*font_entry_title, $*font_base, $*font_fallback, $*font_entry_title_size, $*font_entry_title_units);
318 var string comment_title_font = generate_font_css($*font_comment_title, $*font_base, $*font_fallback, $*font_comment_title_size, $*font_comment_title_units);
319 var string module_title_font = generate_font_css($*font_module_heading, $*font_base, $*font_fallback, $*font_module_heading_size, $*font_module_heading_units);
320 var string navigation_module_font = generate_font_css($*font_navigation_module_text, $*font_base, $*font_fallback, $*font_navigation_module_text_size, $*font_navigation_module_text_units);
321 var string other_module_font = generate_font_css($*font_other_module_text, $*font_base, $*font_fallback, $*font_other_module_text_size, $*font_other_module_text_units);
322 var string date_time_font = generate_font_css($*font_date_time, $*font_base, $*font_fallback, $*font_date_time_size, $*font_date_time_units);
323 var string input_textarea_font = generate_font_css($*font_date_time, $*font_base, $*font_fallback, "", "");
325 var Color bottom_border = $*color_entry_text -> lighter(90);
326 var Color solid_border = $*color_entry_background -> darker(25);
327 var Color blockquote_text = $*color_entry_text -> lighter(10);
328 var Color blockquote_background = $*color_entry_background -> darker(10);
330 var string entry_userpic_margin = "";
331 if ( $*entry_userpic_style == "" ) { $entry_userpic_margin = "130px"; }
332 elseif ( $*entry_userpic_style == "small" ) { $entry_userpic_margin = "105px"; }
333 elseif ( $*entry_userpic_style == "smaller" ) { $entry_userpic_margin = "80px"; }
335 var string comment_userpic_margin = "";
336 if ( $*comment_userpic_style == "" ) { $comment_userpic_margin = "140px"; }
337 elseif ( $*comment_userpic_style == "small" ) { $comment_userpic_margin = "115px"; }
338 elseif ( $*comment_userpic_style == "smaller" ) { $comment_userpic_margin = "90px"; }
340 var string entryicon_css = "";
341 if ($*entryicons_position == "opposite") {
345 float: $sidebar_position_opposite;
346 text-align: $sidebar_position;
349 margin-$sidebar_position_opposite: -$entry_userpic_margin;
352 margin-$sidebar_position_opposite: -$comment_userpic_margin;
356 elseif ($*entryicons_position == "same") {
360 float: $sidebar_position;
361 text-align: $sidebar_position;
364 margin-$sidebar_position: -$entry_userpic_margin;
367 margin-$sidebar_position: -$comment_userpic_margin;
370 margin-$sidebar_position_opposite: $entry_userpic_margin;
380 color: $*color_page_text;
386 margin-left: $*margins_size$*margins_unit;
387 margin-right: $*margins_size$*margins_unit;
390 img { border: none; }
392 a { text-decoration: none; }
393 a, a:link { color: $*color_page_link; }
394 a:visited { color: $*color_page_link_visited; }
395 a:hover { color: $*color_page_link_hover; }
397 q { font-style: italic; }
402 padding-$sidebar_position_opposite: 15%;
408 float: $sidebar_position_opposite;
412 margin-$sidebar_position: .6em;
416 float: $sidebar_position_opposite;
417 width: $*sidebar_width;
424 background-color: $*color_entry_background;
426 color: $*color_entry_text;
428 margin-$sidebar_position: auto;
432 #tertiary > .inner:first-child { }
434 #tertiary .separator-after { clear: both; }
437 /*--- header + footer ---*/
439 #header { display: none; }
441 background: $*color_footer_background;
444 text-transform: lowercase;
447 margin-$sidebar_position: auto;
450 #footer a, #footer a:link, #footer a:active { color: $*color_footer_link; }
451 #footer a:visited { color: $*color_footer_link_visited; }
452 #footer a:hover { color: $*color_footer_link_hover; }
454 #footer .inner { padding: 10px; }
457 /*--- prev/next navigation ---*/
459 li.page-back, li.page-forward {
466 li.page-separator { display: none; }
479 color: $*color_entry_text;
485 .entry a, #tertiary a {
486 color: $*color_entry_link;
489 .entry a:visited, #tertiary a:visited {
490 color: $*color_entry_link_visited;
493 .entry a:hover, #tertiary a:hover {
494 color: $*color_entry_link_hover;
497 .entry-content { margin: 10px 0 0 0; }
502 border-bottom: 1px dotted $bottom_border;
510 text-transform: lowercase;
512 color: $*color_entry_title;
515 h3.entry-title a { color: $*color_entry_title; }
519 text-transform: uppercase;
520 color: $*color_entry_title;
522 .datetime a { color: $*color_entry_title; }
529 .entry .userpic img {
530 border: 5px solid $*color_navigation_module_background;
535 text-transform: uppercase;
538 .metadata { margin: 1.25em 0 0 0; }
540 .metadata.top-metadata { margin: 10px 0 1.25em 0; }
551 text-transform: lowercase;
552 color: $*color_entry_title;
559 text-transform: lowercase;
573 text-transform: lowercase;
574 color: $*color_entry_title;
579 ul.entry-management-links {
584 ul.entry-management-links li {
589 text-transform: lowercase;
590 color: $*color_entry_title;
595 ul.entry-interaction-links {
601 ul.entry-interaction-links li {
606 text-transform: uppercase;
607 color: $*color_entry_title;
623 background-color: $*color_entry_background;
624 color: $*color_entry_text;
632 text-transform: lowercase;
640 color: $*color_entry_link;
644 color: $*color_entry_link_visited;
648 color: $*color_entry_link_hover;
651 .navigation ul { display: inline; }
652 .navigation li { display: inline; list-style: none; }
654 table.month { border: 0; }
655 .month caption { display: none; }
659 text-transform: lowercase;
664 color: $*color_entry_title;
666 .month td.day-has-entries {
668 color: $*color_entry_title;
670 .month td.day-has-entries p {
690 .page-tags .tags-container {
691 background-color: $*color_entry_background;
692 color: $*color_entry_text;
698 .page-tags .tags-container h2 {
702 border-width: 0 0 1px 0;
703 border-style: dotted;
704 border-color: $bottom_border;
706 text-transform: lowercase;
708 color: $*color_entry_title;
711 .page-tags .ljtaglist { margin: 0; padding: 0; }
712 .page-tags .ljtaglist li {
715 text-transform: lowercase;
720 .page-tags .tags-container a {
721 color: $*color_entry_link;
724 .page-tags .tags-container a:visited {
725 color: $*color_entry_link_visited;
728 .page-tags .tags-container a:hover {
729 color: $*color_entry_link_hover;
732 .page-tags .tags_cloud { text-align: center; }
737 background-color: $*color_entry_background;
738 color: $*color_entry_text;
744 .icons-container h2 {
745 border-color: $bottom_border;
746 border-style: dotted;
747 border-width: 0 0 1px 0;
748 color: $*color_entry_title;
754 text-transform: lowercase;
758 color: $*color_entry_link;
761 .icons-container a:visited {
762 color: $*color_entry_link_visited;
765 .icons-container a:hover {
766 color: $*color_entry_link_hover;
769 .sorting-options ul {
773 .sorting-options ul li {
779 .page-icons .comment {
791 margin-bottom: .25em;
804 .icon-info .default {
805 text-decoration: underline;
808 .icon-info .keywords ul {
813 .icon-info .keywords ul li {
816 padding: 0 .25em 0 0;
831 font-weight: inherit;
836 hr.above-entry-interaction-links, hr.below-reply-container { display: none; }
839 background-color: $*color_entry_background;
840 color: $*color_entry_title;
842 border: 1px solid $bottom_border;
847 textarea.textbox { width: 90%!important; }
851 text-transform: uppercase;
852 color: $*color_entry_title;
862 .comment .userpic img {
863 border: 5px solid $*color_navigation_module_background;
867 background: $*color_entry_background;
868 color: $*color_entry_text;
873 .comment-wrapper { margin: 20px 0; padding: 0; }
874 .comment-content { margin: 10px 0; }
876 .bottomcomment, .comments-message {
877 background: $*color_entry_background;
878 color: $*color_entry_text;
885 color: $*color_entry_link;
889 .bottomcomment a:visited {
890 color: $*color_entry_link_visited;
894 .bottomcomment a:hover {
895 color: $*color_entry_link_hover;
898 .comment-management-links ul, .comment-interaction-links ul { margin: 0; padding: 0; list-style: none; }
899 .comment-management-links li, .comment-interaction-links li { display: inline; }
901 #qrform table { border: 0!important; }
905 text-transform: uppercase;
906 color: $*color_entry_title;
909 .comment-management-links ul, .comment-interaction-links ul { margin: 0; padding: 0; list-style: none; }
910 .comment-management-links li, .comment-interaction-links li { display: inline; }
913 background: $*color_entry_background;
914 color: $*color_entry_text;
921 color: $*color_entry_text;
925 color: $*color_entry_link;
928 table.talkform a:visited {
929 color: $*color_entry_link_visited;
932 table.talkform a:hover {
933 color: $*color_entry_link_hover;
947 #secondary .module-navlinks { $navigation_module_font; }
949 #tertiary .module-navlinks {
958 margin-$sidebar_position_opposite: -.8em;
959 background-color: $*color_navigation_module_background;
960 text-transform: lowercase;
963 .module-navlinks ul.module-list {
968 .module-navlinks ul.module-list li {
973 .module-navlinks ul.module-list li a, .module-navlinks ul.module-list li a:link { color: $*color_navigation_module_link; }
974 .module-navlinks ul.module-list li a:visited { color: $*color_navigation_module_link_visited; }
975 .module-navlinks ul.module-list li a:hover { color: $*color_navigation_module_link_hover; }
978 .module-calendar { text-align: center; }
990 text-transform: lowercase;
991 border-style: dotted;
992 border-width: 0 0 1px 0;
993 border-color: $bottom_border;
996 .module-customtext .module-header { text-align: center; }
998 #tertiary .module-header a,
999 #tertiary .module-header a:link,
1000 #tertiary .module-header a:visited,
1001 #tertiary .module-header a:hover
1002 { color: $*color_entry_title; }
1004 .module-userprofile .journal-name,
1005 .module-userprofile .userpic
1006 { text-align: center; }
1008 .module-userprofile .userpic img { border:5px solid $*color_navigation_module_background; }
1010 ul.userlite-interaction-links.icon-links {
1011 list-style-image: none;
1012 list-style-position: outside;
1013 list-style-type: none;
1019 ul.userlite-interaction-links.icon-links li {
1024 .module-tags_cloud, .module-time, .module-powered { width: 90%; }
1026 .tags_cloud li, .module-tags_cloud li { display: inline;
1027 list-style-type: none; }
1032 text-transform: uppercase;
1035 .module-time, .module-powered {
1036 border-style:dotted;
1037 border-width: 0 0 1px 0;
1038 border-color: $bottom_border;
1039 letter-spacing: 1px;
1045 .module-search .search-form { margin: .2em auto; }
1046 .module-search .search-box { margin: .2em; }
1048 #tertiary .module-content ul {
1049 list-style-image: none;
1050 list-style-position: outside;
1051 list-style-type: disc;
1056 #tertiary .module-content li {
1064 div.ContextualPopup {
1067 text-align: justify;
1068 font-weight: normal;
1069 $input_textarea_font
1071 color: $*color_entry_title;
1075 div.ContextualPopup div.Inner {
1076 color: $*color_entry_title !important;
1077 border: 1px dotted $bottom_border;
1078 background: $*color_entry_background !important;
1082 div.ContextualPopup div.Inner a {
1083 color: $*color_entry_link;
1086 div.ContextualPopup div.Inner a:visited {
1087 color: $*color_entry_link_visited;
1090 div.ContextualPopup div.Inner a:hover {
1091 color: $*color_entry_link_hover;
1094 div.ContextualPopup div.Inner a:active {
1095 color: $*color_entry_link_active;
1098 div.ContextualPopup .Userpic {
1100 border: 1px dotted $bottom_border;
1101 background: $*color_entry_background !important;
1106 background: $blockquote_background;
1107 border: 1px solid $solid_border;
1112 color: $blockquote_text;
1119 border-bottom: 3px double $solid_border;