315 lines
7.5 KiB
Text
315 lines
7.5 KiB
Text
layerinfo "type" = "layout";
|
|
layerinfo "name" = "Modish";
|
|
layerinfo redist_uniq = "modish/layout";
|
|
layerinfo author_name = "branchandroot";
|
|
layerinfo lang = "en";
|
|
|
|
set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ];
|
|
set layout_type = "two-columns-left";
|
|
set userpics_position = "right";
|
|
|
|
propgroup colors_child {
|
|
|
|
property use color_page_details_text;
|
|
}
|
|
|
|
set color_page_details_text = "#999";
|
|
|
|
function print_stylesheet() {
|
|
var string medium_media_query = generate_medium_media_query();
|
|
|
|
var string header_colors = generate_color_css( new Color, $*color_header_background, new Color );
|
|
var string entry_title_colors = generate_color_css( $*color_entry_title, $*color_entry_title_background, $*color_entry_border );
|
|
var string comment_title_colors = generate_color_css( $*color_comment_title, $*color_comment_title_background, $*color_entry_border );
|
|
var string module_header_link_colors = generate_color_css( $*color_module_title, new Color, new Color );
|
|
var string module_navlinks_colors = generate_color_css( $*color_page_title, $*color_page_link, new Color );
|
|
var string module_navlinks_active_colors = generate_color_css( new Color, $*color_page_link_active, new Color );
|
|
var string footer_colors = generate_color_css( new Color, $*color_footer_background, new Color );
|
|
|
|
var string userpic_css = "";
|
|
if ($*userpics_position == "left") {
|
|
$userpic_css = """
|
|
.entry .contents .userpic { float: left;
|
|
margin: -1.5em .25em .25em 0; }
|
|
.comment .contents .userpic { float: left;
|
|
margin: 0 .25em .25em 0; }
|
|
.entry .header { text-align: right; }
|
|
.entry-title,
|
|
.comment-title { text-align: left; }
|
|
|
|
""";
|
|
}
|
|
elseif ($*userpics_position == "right") {
|
|
$userpic_css = """
|
|
.entry .contents .userpic { float: right;
|
|
margin: -1.5em 0 .25em .25em; }
|
|
.comment .contents .userpic { float: right;
|
|
margin: 0 0 .25em .25em; }
|
|
""";
|
|
}
|
|
|
|
"""
|
|
/* Modish */
|
|
blockquote { font-style: italic; }
|
|
dl dt { font-weight: bold; }
|
|
|
|
a:hover { text-decoration: underline; }
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
/* header */
|
|
|
|
#header { text-align: left;
|
|
padding: 1px 200px 1em 1em;
|
|
$header_colors }
|
|
|
|
#title { font-size: large;
|
|
font-weight: normal; }
|
|
#subtitle { font-size: medium;
|
|
font-weight: normal; }
|
|
#pagetitle { font-size: small;
|
|
font-style: italic;
|
|
font-weight: normal; }
|
|
|
|
#title a,
|
|
#title a:visited { color: $*color_page_title;
|
|
text-decoration: none; }
|
|
#title a:hover { text-decoration: underline; }
|
|
|
|
|
|
/* main column */
|
|
|
|
@media $medium_media_query {
|
|
.two-columns-left .navigation,
|
|
.three-columns-left .navigation { text-align: right; }
|
|
}
|
|
|
|
/* entries */
|
|
.entry li { margin-left: 1em; }
|
|
.entry-content hr { display: block;
|
|
margin: 1em 10%; }
|
|
|
|
.entry { margin-bottom: 3em;
|
|
border: none; }
|
|
|
|
.entry .entry-title {
|
|
$entry_title_colors
|
|
border-width: 0 0 2px;
|
|
padding: .25em 5px;
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
.entry .entry-title a,
|
|
.entry .entry-title a:visited {
|
|
color: $*color_entry_title;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.entry .entry-title a:hover {
|
|
color: $*color_entry_title;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.entry .datetime { font-size: small;
|
|
padding: 0 5px;
|
|
color: $*color_entry_text; }
|
|
|
|
.entry .poster { display: block;
|
|
margin: .5em 0; }
|
|
|
|
.entry .contents { padding: 0 .5em; }
|
|
|
|
.entry-content { margin: 1em 0; }
|
|
|
|
.metadata { margin: 1em 0 0 0; }
|
|
.metadata.top-metadata { margin-bottom: 2em; }
|
|
.metadata-label { font-weight: bold; }
|
|
.metadata ul li { margin-left: 0; padding-left: 0; }
|
|
|
|
.entry .footer { margin: .5em 0; }
|
|
.entry .footer > .inner:first-child { padding: 1px; } /*float uneveness fix */
|
|
|
|
.entry .tag { margin-left: .25em; }
|
|
.entry .tag li { margin-left: 0; padding: .25em 0; }
|
|
.entry .tag-text { font-weight: bold; }
|
|
|
|
ul.entry-management-links { float: left;
|
|
margin-left: -1em;
|
|
margin-top: 1em; }
|
|
ul.entry-interaction-links { text-align: right;
|
|
margin-top: 1em;
|
|
margin-bottom: .25em;
|
|
min-height: 17px; } /* prevent entry-management icons from shoving quickreply aside */
|
|
|
|
/* comments */
|
|
.comment { margin-bottom: 1em; }
|
|
|
|
.partial .comment { margin-bottom: 0;}
|
|
|
|
.comment .header {
|
|
$comment_title_colors
|
|
border-width: 0 0 1px;
|
|
padding: 2px 5px;
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
.comment .header a,
|
|
.comment .header a:visited {
|
|
$comment_title_colors
|
|
border: none;
|
|
}
|
|
|
|
.comment-title {
|
|
font-weight: bold;
|
|
padding: 0 0 .25em;
|
|
}
|
|
|
|
.partial .comment-title {
|
|
display: inline;
|
|
margin-right: .2em;
|
|
}
|
|
|
|
.partial .comment-poster:before {
|
|
content: "- ";
|
|
}
|
|
|
|
.comment .poster-ip {
|
|
color: $*color_page_text;
|
|
font-size: small;
|
|
}
|
|
|
|
.comment-content { margin-top: 1em; }
|
|
|
|
.comment .edittime { margin-top: 1em; }
|
|
|
|
.comment .multiform-checkbox { display: block;
|
|
text-align: right;
|
|
font-size: small;
|
|
color: $*color_entry_text;
|
|
}
|
|
|
|
.comment .footer { margin: .5em 0; }
|
|
.comment .footer > .inner:first-child { padding: 1px; } /*float uneveness fix */
|
|
|
|
.comment-management-links { float: right; }
|
|
.comment-interaction-links { text-align: left; }
|
|
|
|
.bottomcomment, .comments-message { padding: 1px 1px 3px 1px;
|
|
border-top: 1px solid $*color_entry_border;
|
|
border-bottom: 1px solid $*color_entry_border; }
|
|
|
|
.bottomcomment .entry-management-links,
|
|
.bottomcomment .entry-interaction-links { margin: .25em 0 .5em 0; }
|
|
|
|
.comment-pages { text-align: center; }
|
|
|
|
#qrdiv { margin: 1em; }
|
|
#qrdiv table { width: 100%; }
|
|
|
|
|
|
/* archive */
|
|
|
|
/* year-by-month view */
|
|
#archive-year .navigation { text-align: left; }
|
|
|
|
div.month { margin: 0 0 2em 0; }
|
|
|
|
table.month td,
|
|
table.month th { border-color: $*color_page_details_text;
|
|
vertical-align: top; }
|
|
|
|
.month caption { display: none; }
|
|
|
|
#archive-year .month .footer { padding: .5em;
|
|
text-align: center; }
|
|
|
|
/* month-by-day view */
|
|
#archive-month .navigation { text-align: center; }
|
|
|
|
.month dl .tag-text { font-style: italic; }
|
|
|
|
.month dl h3.entry-title { font-weight: bold; }
|
|
|
|
/* day-by-entries view */
|
|
.day .inner > h3:first-child { text-align: center; }
|
|
|
|
/* icons */
|
|
|
|
.sorting-options ul {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.icons-container .icon {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.icon-image {
|
|
float: left;
|
|
clear: left;
|
|
margin-bottom: .25em;
|
|
min-width: 100px;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
.icon-info {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.icon-info span {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.icon-info .default {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.icon-keywords ul li { margin-left: 0; padding: .25em 0; }
|
|
|
|
/* sidebars */
|
|
|
|
#secondary > .inner:first-child,
|
|
#tertiary > .inner:first-child {
|
|
padding: 1em .5em !important;
|
|
}
|
|
|
|
.module { padding: 3px;
|
|
margin-bottom: 1em;
|
|
border: none; }
|
|
|
|
.module-header {
|
|
border-bottom: 1px solid $*color_module_border;
|
|
font-size: large;
|
|
padding: 1px 3px; }
|
|
.module-header a,
|
|
.module-header a:visited { $module_header_link_colors
|
|
text-decoration: none; }
|
|
.module-header a:hover { text-decoration: underline; }
|
|
|
|
.module-userprofile { text-align: center; }
|
|
|
|
.module-customtext .module-content { padding: .25em 0; }
|
|
|
|
.module-navlinks ul,
|
|
.module-typelist ul { list-style: none; }
|
|
|
|
.module-navlinks ul { margin-left: 0;
|
|
padding-left: 0; }
|
|
.module-navlinks .module-content li {
|
|
margin: 0;
|
|
}
|
|
.module-navlinks a { display: block;
|
|
padding: .5em 1em;
|
|
margin-bottom: 1px;
|
|
$module_navlinks_colors }
|
|
.module-navlinks a:hover { $module_navlinks_active_colors
|
|
text-decoration: none; }
|
|
|
|
$userpic_css
|
|
""";
|
|
|
|
|
|
}
|
|
|
|
|