128 and $ming > 128 and $minb > 128) { $r = dechex(intval( (($minr) * $scale) )); $g = dechex(intval( (($ming) * $scale) )); $b = dechex(intval( (($minb) * $scale) )); } else { $r = dechex(intval( (($minr) + (255 * (1-$scale))) )); $g = dechex(intval( (($ming) + (255 * (1-$scale))) )); $b = dechex(intval( (($minb) + (255 * (1-$scale))) )); } if (strlen($r) == 1) $r = "0" . $r; if (strlen($g) == 1) $g = "0" . $g; if (strlen($b) == 1) $b = "0" . $b; return "#$r$g$b"; } } function TextColour($scale) { if ($scale) { global $textbase; $minr = hexdec(substr($textbase, 1, 2)); $ming = hexdec(substr($textbase, 3, 2)); $minb = hexdec(substr($textbase, 5, 2)); if ($minr > 128 and $ming > 128 and $minb > 128) { $r = dechex(intval( (($minr) * $scale) )); $g = dechex(intval( (($ming) * $scale) )); $b = dechex(intval( (($minb) * $scale) )); } else { $r = dechex(intval( (($minr) + (255 * (1-$scale))) )); $g = dechex(intval( (($ming) + (255 * (1-$scale))) )); $b = dechex(intval( (($minb) + (255 * (1-$scale))) )); } if (strlen($r) == 1) $r = "0" . $r; if (strlen($g) == 1) $g = "0" . $g; if (strlen($b) == 1) $b = "0" . $b; return "#$r$g$b"; } } /* function dHue(cHex, d) { d = d % 360; var y = new Color(cHex); y = y.rgbToHsb(); y[0] = y[0] + d; if (y[0] > 359) y[0] = y[0] - 360; return y.hsbToRgb().rgbToHex(); } function dSaturation(cHex, d) { d = d % 100; var y = new Color(cHex); y = y.rgbToHsb(); y[1] = y[1] + d; if (y[1] > 99) y[1] = y[1] - 100; return y.hsbToRgb().rgbToHex(); } function dBrightness(cHex, d) { d = d % 100; var y = new Color(cHex); y = y.rgbToHsb(); y[2] = y[2] + d; if (y[2] > 99) y[2] = y[2] - 100; return y.hsbToRgb().rgbToHex(); } */ if ($style_selected == "default") { $greycolour = $grey_default; $textcolour = $text_default; } else if ($style_selected == "white") { $greycolour = $grey_white; $textcolour = $text_white; } else { $greycolour = $grey_default; $textcolour = $text_default; } if ($colour_selected == "default") { $headercolour = $colour_default; } else if ($colour_selected == "blue") {$headercolour = $colour_blue; } else if ($colour_selected == "green") {$headercolour = $colour_green; } else if ($colour_selected == "orange") {$headercolour = $colour_orange; } else if ($colour_selected == "aqua") {$headercolour = $colour_aqua; } else if ($colour_selected == "pink") {$headercolour = $colour_pink; } else if ($colour_selected == "grey") {$headercolour = $colour_grey; } else if ($colour_selected == "black") {$headercolour = $colour_black; } else { $headercolour = $colour_default; } ?> /* Greys - by default */ #searchform input { color: ; } .single #primary .redo-asides .entry-content, .single #primaryFirst .redo-asides .entry-content, input[type=text]:focus, textarea:focus, #commentlist li .counter, li.bypostauthor blockquote, #searchform input:focus, #akst_social a, #wp-calendar #today, .link-header { color: ; } body, input[type=text], textarea { color: ; } ul.menu li.current_page_item a, ul.menu li.current_page_item a:hover, .published_link { color: !important; } .tertiary { color: ; } #comment-block { color: !important; } .comment-login, .comment-welcomeback, .comments input[type=text], .comments textarea, small, strike, .link-title { color: ; } h3, h3 a, h3 a:visited, h4, h4 a, h4 a:visited { color: ; } #primary .metalink a, #primary .metalink a:visited, #primaryFirst .metalink a, #primaryFirst .metalink a:visited, .secondary .metalink a, .secondary .metalink a:visited, .secondary span a, .secondary span a:visited, .tertiary .metalink a, .secondary .metalink a:visited, .tertiary span a, .tertiary span a:visited, .commentsrsslink a, .trackbacklink a, .page-nav, .page-nav a, .sb-comments-blc ul li span a, .sb-comments ul li small a, .sb-comments-blc li > a[title="Go to the comments of this entry"] { color: ; } /* #footer, #footer a, .footer_content, */ .page-nav a:hover { color: ; } h2, #primary .entry-content h2, #primaryFirst .entry-content h2, h2, h2 a, h2 a:visited, h2, h2 a, h2 a:hover, h2 a:visited, .first .entry-meta, .entry-meta, .page-meta, .sidenote h2, a, .secondary h2, .tertiary h2, .first .entry-meta h2, .entry-content a:visited, blockquote, #comment-block h2, #wp-calendar caption, .first .relatedPosts, .first .relatedPosts h2 { color: ; } h3.entry-title a:hover, .sidenote h2 a, .first h3.entry-title a:hover, .published_tiny, .comment-content blockquote { color: !important; } #leavecomment, .comments #loading, .page-nav .current_page_item, .page-nav .current_page_item a { color: ; } #footer a:hover { color: ; } .secondary, .entry-content, .entry-meta a, .page-meta a, .comment-meta a, .sidenote, .first p, #commentlist li, li.byuser, li.bypostauthor, .navigation a, .sb-links a, #comment-block a, .sb-latest a, .sb-comments a, .sb-months a, #wp-calendar td, #wp-calendar td.pad:hover, #wp-calendar td:hover, .relatedPosts a, .link-title a { color: ; } h3.entry-title a, ul.menu li a:hover, .first h3.entry-title a { color: !important; } #header_content, #header_content a, #header_content a:hover, ul.menu li a, .sb-catblock a { color: !important; } /* #footer_content, */ #wp-calendar a:hover, #wp-calendar #next a:hover, #wp-calendar #prev a:hover { color: !important; } /* 1 - #111111 */ body, #header { background-color: ; } /* 2 - #161616 */ /* #footer_content { border-left-color: ; border-right-color: ; } */ /* 3 - #191919 */ #menu a, #rightcolumn, #rightcolumnheader, #rightcolumnfooter { border-right-color: ; } #comment-block, #alt_menu { border-left-color: ; border-right-color: ; } /* 4 - #222222 */ #menu .current_page_item a, #leftcolumn { border-right-color: ; } #middlecolumn { border-left-color: ; border-right-color: ; } li.byuser, #alt_menu { background-color: ; } /*, #footer_content*/ /* 5 - #262626 */ #header_content a, #rightcolumn, #rightcolumnheader, #rightcolumnfooter { background-color: ; } /* 6 - #292929 */ h2, #comment-block { background-color: ; } #menu a:hover { border-right-color: ; } /* 7 - #2C2C2C */ #leftcolumn { border-left-color: ; } /* 8 - #2D2D2D */ .page-nav { background-color: ; } /* 9 - #303030 */ #leftcolumn { background-color: ; } .lentry { border-color: ; } /* 10 - #333333 */ #header_content a:hover, #header_content .current_page_item a, ul.menu li a:hover, #middlecolumn, #footer, .footer_contentm, blockquote { background-color: ; } #menu .current_page_item a:hover { border-right-color: ; } li.byuser, #searchform input { border-color: ; } .link-header { color: ; } /* 11 - #363636 */ #pinglist { background-color: ; } /* 12 - #393939 */ #header_content .current_page_item a:hover, .lentry { background-color: !important; } /* 13 - #444444 */ .first .entry-meta, .entry-meta, .page-meta, li.bypostauthor, #primary .entry-content img, #primaryFirst .entry-content img, #searchform input, .sb-listen img:hover, .sb-watch img:hover, .sb-badge img:hover, .first .relatedPosts, .first-alt .relatedPosts, .published_tiny { background-color: ; } /* 14 - #555555 */ .first .entry-meta, .entry-meta, .page-meta, li.bypostauthor, #primary .entry-content img, #primaryFirst .entry-content img, .sb-listen img, .sb-listen img:hover, .sb-watch img, .sb-watch img:hover, .sb-badge img, .sb-badge img:hover, .first .relatedPosts, .published_tiny { border-color: ; } /* 15 - #606060 */ #pinglist { border-color: ; } /* 16 - #666666 */ .comments input[type=text], .comments textarea, input[type=text]:focus, textarea:focus, .comments form #submit, #searchform input:focus { border-color: ; } /* 17 - #777777 */ .firstheader { background-color: ; } /* 18 - #999999 */ .comments input[type=text], .comments textarea { background-color: ; } acronym, abbr { border-bottom-color: ; } .sb-flickr div a:hover img, .published, .published_sm, .published_link { border-color: ; } .entry-content .imgDigg, .entry-content .diggButton, .comment-content blockquote { border-color: !important; } /* 19 - #CCCCCC */ .secondary h2, .tertiary h2, .first .entry-meta h2, .entry-content a, #comment-block h2, #wp-calendar h2, #wp-calendar caption, .first .relatedPosts h2, .first-alt .relatedPosts h2 { border-bottom-color: ; } .sb-flickr div a img, .relatedPosts { border-color: ; } /* 20 - #DDDDDD */ #searchcontrols { background-color: ; } /* 21 - #EEEEEE */ li.bypostauthor blockquote, .published, .published_sm, .published_link { background-color: ; } #wp-calendar #today{ background-color: !important; } .entry-content .imgDigg, .entry-content .diggButton { background-colour: !important; } /* 22 - #FFFFFF */ ul.menu li.current_page_item a, ul.menu li.current_page_item a:hover, input[type=text]:focus, textarea:focus, #searchform input:focus { background-color: ; } #wp-calendar td { border-color: ; } /* Colourifical - not finished in Redoable 1.1 */ h1, h1 a, h1 a:hover, h1 a:visited, #header .description { color: ; } .quotes { border-left-color: ; border-right-color: ; } #header_content { border-left-color: ; border-right-color: ; } #menu a { border-left-color: ; } #menu .current_page_item a { border-left-color: ; } #menu a:hover { border-left-color: ; } .quotes { background-color: ; background-image:none;} #wp_quotes { background-image:none; } #menu .current_page_item a:hover { border-left-color: ; } #header_content { background-color: ; } .sidenote h2 a:hover { color: !important; } a:hover { color: ; } .entry-content a:hover { border-bottom-color: ; } #akst_social a:hover { color: ; } h2 a:hover, h2 span a:hover { color: !important; } #comment-block a:hover { color: ; } #wp-calendar a { color: !important; } #wp-calendar #next a { color: ; } #wp-calendar #prev a { color: ; } #wp-calendar #today a, #wp-calendar #today a:visited{ color: !important; } .contacterror { border-color: ; } /*#firefox_check { background: #995500; border-left: 10px solid #773300; border-right: 10px solid #773300; color: #FFFFFF; } #firefox_check a { color: #FFFFFF; } #firefox_check a:hover { color: #FFCC00; }*/ /*.comments #error { color: #FF0000; background-color: #FFFF99; }*/ /* end colourifical */ /* images */ blockquote { background-image: url('images/quote_lt.gif'); } blockquote p { background-image: url('images/quote_end_lt.gif'); } blockquote { background-image: url('images/quote.gif'); } blockquote p { background-image: url('images/quote_end.gif'); } /* special */ .download { background-color: #CFC; border-top: 2px solid #6C6; border-bottom: 2px solid #6C6; } .download a, .download a:visited { color: #6C6; border-bottom: 2px dotted #6C6; } .download a:hover { color: #9F9; border-bottom: 2px dotted #9F9; } .imp-download { background-color: #CFC !important; border-top: 2px solid #6C6 !important; border-bottom: 2px solid #6C6 !important; } .imp-download-error { background-color: #FCC !important; border-top: 2px solid #F33 !important; border-bottom: 2px solid #F33 !important; } .imp-download a, .imp-download a:visited, .imp-download-error a, .imp-download-error a:visited { color: #6C6 !important; border-bottom: 2px dotted #6C6 !important; } .imp-download a:hover, .imp-download-error a:hover { color: #9F9 !important; border-bottom: 2px dotted #9F9 !important; } .imp-download small, .imp-download-error small { color: #333333 !important; } .code { background-color: #EEEEEE; border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; } .alert { background-color: #FCC; border-top: 2px solid #F33; border-bottom: 2px solid #F33; } .new { background-color: #FDB; border-top: 2px solid #F93; border-bottom: 2px solid #F93; } .construction { background-color: #FFC; border-top: 2px solid #FF3; border-bottom: 2px solid #FF3; } .information { background-color: #CCF; border-top: 2px solid #33F; border-bottom: 2px solid #33F; } .note { background-color: #EEEEEE; border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; } .callout { border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; color: #CCCCCC; } .download { background-color: #353; border-top: 2px solid #383; border-bottom: 2px solid #383; } .download a, .download a:visited { color: #3F3; border-bottom: 2px dotted #3F3; } .download a:hover { color: #3C3; border-bottom: 2px dotted #3C3; } .imp-download { background-color: #353 !important; border-top: 2px solid #383 !important; border-bottom: 2px solid #383 !important; } .imp-download-error { background-color: #533 !important; border-top: 2px solid #F33 !important; border-bottom: 2px solid #F33 !important; } .imp-download a, .imp-download a:visited, .imp-download-error a, .imp-download-error a:visited { color: #3F3 !important; border-bottom: 2px dotted #3F3 !important; } .imp-download a:hover, .imp-download-error a:hover { color: #3C3 !important; border-bottom: 2px dotted #3C3 !important; } .imp-download small, .imp-download-error small { color: #EEEEEE !important; } .code { background-color: #444444; border-top: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA; } .alert { background-color: #533; border-top: 2px solid #F33; border-bottom: 2px solid #F33; } .new { background-color: #643; border-top: 2px solid #F93; border-bottom: 2px solid #F93; } .construction { background-color: #553; border-top: 2px solid #FF3; border-bottom: 2px solid #FF3; } .information { background-color: #335; border-top: 2px solid #33F; border-bottom: 2px solid #33F; } .note { background-color: #444444; border-top: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA; } .callout { border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; color: #CCCCCC; }