PageRenderTime 57ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/redoable-lite/style-dynamic.css.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 463 lines | 236 code | 96 blank | 131 comment | 58 complexity | dad66d6203ce62ba1251d1d507619eb4 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /*
  3. Dynamic Stylesheet for colours only.
  4. Still somewhat experimental, only a preview feature for Redoable 1.1.
  5. */
  6. // Send correct type:
  7. header("Content-Type: text/css");
  8. $style_selected = $_GET['s']; //get_option('dynamicss_style');
  9. $colour_selected = $_GET['c'];
  10. /* Background colours */
  11. $greybase = "#FFFFFF";
  12. /*$greycolour[0] = GreyColour(0); "#000000";
  13. $greycolour[1] = GreyColour(0.35); "#111111";
  14. $greycolour[2] = GreyColour(0.45); "#161616";
  15. $greycolour[3] = GreyColour(0.5); "#191919";
  16. $greycolour[4] = GreyColour(0.675); "#222222";
  17. $greycolour[5] = GreyColour(0.75); "#262626";
  18. $greycolour[6] = GreyColour(0.82); "#292929";
  19. $greycolour[7] = GreyColour(0.87); "#2C2C2C";
  20. $greycolour[8] = GreyColour(0.9); "#2D2D2D";
  21. $greycolour[9] = GreyColour(0.95); "#303030";
  22. $greycolour[10] = GreyColour(1); "#333333";
  23. $greycolour[11] = GreyColour(1.07); "#363636";
  24. $greycolour[12] = GreyColour(1.13); "#393939";
  25. $greycolour[13] = GreyColour(1.35); "#444444";
  26. $greycolour[14] = GreyColour(1.67); "#555555";
  27. $greycolour[15] = GreyColour(1.9); "#606060";
  28. $greycolour[16] = GreyColour(2); "#666666";
  29. $greycolour[17] = GreyColour(2.35); "#777777";
  30. $greycolour[18] = GreyColour(3); "#999999";
  31. $greycolour[19] = GreyColour(4); "#CCCCCC";
  32. $greycolour[20] = GreyColour(4.35); "#DDDDDD";
  33. $greycolour[21] = GreyColour(4.67); "#EEEEEE";
  34. $greycolour[22] = GreyColour(5); "#FFFFFF";*/
  35. $grey_default[0] = GreyColour(0);
  36. $grey_default[1] = GreyColour(0.07);
  37. $grey_default[2] = GreyColour(0.09);
  38. $grey_default[3] = GreyColour(0.1); //sidebar border right
  39. $grey_default[4] = GreyColour(0.135); // main border colour
  40. $grey_default[5] = GreyColour(0.15); //sidebar bg
  41. $grey_default[6] = GreyColour(0.162); //comment bg
  42. $grey_default[7] = GreyColour(0.175); //sidebar left border
  43. $grey_default[8] = GreyColour(0.18); //page nav bg
  44. $grey_default[9] = GreyColour(0.19); //sidenote bg
  45. $grey_default[10] = GreyColour(0.2); //main back colour
  46. $grey_default[11] = GreyColour(0.215); //pinglist bg
  47. $grey_default[12] = GreyColour(0.225); //current page nav hover
  48. $grey_default[13] = GreyColour(0.27); //page meta bg colour
  49. $grey_default[14] = GreyColour(0.335); //page meta border, img border
  50. $grey_default[15] = GreyColour(0.38); //ping list border
  51. $grey_default[16] = GreyColour(0.4); //comment form border
  52. $grey_default[17] = GreyColour(0.47);
  53. $grey_default[18] = GreyColour(0.6); //comment bg, various border
  54. $grey_default[19] = GreyColour(0.8);
  55. $grey_default[20] = GreyColour(0.87);
  56. $grey_default[21] = GreyColour(0.935);
  57. $grey_default[22] = GreyColour(1);
  58. $grey_white[0] = GreyColour(0);
  59. $grey_white[1] = GreyColour(0.87);
  60. $grey_white[2] = GreyColour(0.89);
  61. $grey_white[3] = GreyColour(0.9); //sidebar border right
  62. $grey_white[4] = GreyColour(0.935); // main border colour
  63. $grey_white[5] = GreyColour(0.95); //sidebar bg
  64. $grey_white[6] = GreyColour(0.962); // comment bg
  65. $grey_white[7] = GreyColour(0.975); //sidebar left border
  66. $grey_white[8] = GreyColour(0.98); //page nav bg
  67. $grey_white[9] = GreyColour(0.99); //sidenote bg
  68. $grey_white[10] = GreyColour(1); // main back colour
  69. $grey_white[11] = GreyColour(0.915); //pinglist bg
  70. $grey_white[12] = GreyColour(0.925); //current page nav hover
  71. $grey_white[13] = GreyColour(0.97); //page meta bg colour
  72. $grey_white[14] = GreyColour(0.835); //page meta border, img border
  73. $grey_white[15] = GreyColour(0.88); //ping list border
  74. $grey_white[16] = GreyColour(0.8); //comment form borders
  75. $grey_white[17] = GreyColour(0.87);
  76. $grey_white[18] = GreyColour(0.89); //comment bg, various border
  77. $grey_white[19] = GreyColour(0.2);
  78. $grey_white[20] = GreyColour(0.27);
  79. $grey_white[21] = GreyColour(0.975);
  80. $grey_white[22] = GreyColour(1);
  81. /* Text colours */
  82. $textbase = "#FFFFFF";
  83. $text_default[0] = TextColour(0);
  84. $text_default[1] = TextColour(0.135);
  85. $text_default[2] = TextColour(0.2);
  86. $text_default[3] = TextColour(0.27);
  87. $text_default[4] = TextColour(0.4);
  88. $text_default[5] = Textcolour(0.47);
  89. $text_default[6] = TextColour(0.535);
  90. $text_default[7] = TextColour(0.6);
  91. $text_default[8] = TextColour(0.735);
  92. $text_default[9] = TextColour(0.8);
  93. $text_default[10] = TextColour(0.87);
  94. $text_default[11] = TextColour(0.915);
  95. $text_default[12] = TextColour(0.935);
  96. $text_default[13] = TextColour(1);
  97. $text_white[0] = TextColour(1);
  98. $text_white[1] = TextColour(0.765);
  99. $text_white[2] = TextColour(0.8);
  100. $text_white[3] = TextColour(0.13);
  101. $text_white[4] = TextColour(0.6);
  102. $text_white[5] = TextColour(0.53);
  103. $text_white[6] = TextColour(0.465);
  104. $text_white[7] = TextColour(0.4);
  105. $text_white[8] = TextColour(0.265);
  106. $text_white[9] = TextColour(0.2);
  107. $text_white[10] = TextColour(0.13);
  108. $text_white[11] = TextColour(0.085);
  109. $text_white[12] = TextColour(0.065);
  110. $text_white[13] = TextColour(0.001);
  111. /* Header and link colours */
  112. $colour_default = array("#000000","#440000","#660000","#770000","#880000","#990000","#DD0000","#EE0000","#FF0000","#FFFFFF");
  113. $colour_blue = array("#000000","#000044","#000066","#000077","#000088","#000099","#0000DD","#0000EE","#0000FF","#FFFFFF");
  114. $colour_green = array("#000000","#004400","#006600","#007700","#008800","#009900","#00DD00","#00EE00","#00FF00","#FFFFFF");
  115. $colour_orange = array("#000000","#442200","#663300","#773B00","#884400","#994B00","#DD6B00","#EE7700","#FF7F00","#FFFFFF");
  116. $colour_aqua = array("#000000","#004444","#006666","#007777","#008888","#009999","#00DDDD","#00EEEE","#00FFFF","#FFFFFF");
  117. $colour_pink = array("#000000","#440022","#660033","#77003B","#880044","#99004B","#DD006B","#EE0077","#FF007F","#FFFFFF");
  118. $colour_grey = array("#000000","#444444","#666666","#777777","#888888","#999999","#DDDDDD","#EEEEEE","#FFFFFF","#FFFFFF");
  119. $colour_black = array("#000000","#050505","#0A0A0A","#101010","#151515","#1A1A1A","#202020","#252525","#2A2A2A","#FFFFFF");
  120. function GreyColour($scale) {
  121. if ($scale) {
  122. global $greybase;
  123. $minr = hexdec(substr($greybase, 1, 2));
  124. $ming = hexdec(substr($greybase, 3, 2));
  125. $minb = hexdec(substr($greybase, 5, 2));
  126. if ($minr > 128 and $ming > 128 and $minb > 128) {
  127. $r = dechex(intval( (($minr) * $scale) ));
  128. $g = dechex(intval( (($ming) * $scale) ));
  129. $b = dechex(intval( (($minb) * $scale) ));
  130. }
  131. else {
  132. $r = dechex(intval( (($minr) + (255 * (1-$scale))) ));
  133. $g = dechex(intval( (($ming) + (255 * (1-$scale))) ));
  134. $b = dechex(intval( (($minb) + (255 * (1-$scale))) ));
  135. }
  136. if (strlen($r) == 1) $r = "0" . $r;
  137. if (strlen($g) == 1) $g = "0" . $g;
  138. if (strlen($b) == 1) $b = "0" . $b;
  139. return "#$r$g$b";
  140. }
  141. }
  142. function TextColour($scale) {
  143. if ($scale) {
  144. global $textbase;
  145. $minr = hexdec(substr($textbase, 1, 2));
  146. $ming = hexdec(substr($textbase, 3, 2));
  147. $minb = hexdec(substr($textbase, 5, 2));
  148. if ($minr > 128 and $ming > 128 and $minb > 128) {
  149. $r = dechex(intval( (($minr) * $scale) ));
  150. $g = dechex(intval( (($ming) * $scale) ));
  151. $b = dechex(intval( (($minb) * $scale) ));
  152. }
  153. else {
  154. $r = dechex(intval( (($minr) + (255 * (1-$scale))) ));
  155. $g = dechex(intval( (($ming) + (255 * (1-$scale))) ));
  156. $b = dechex(intval( (($minb) + (255 * (1-$scale))) ));
  157. }
  158. if (strlen($r) == 1) $r = "0" . $r;
  159. if (strlen($g) == 1) $g = "0" . $g;
  160. if (strlen($b) == 1) $b = "0" . $b;
  161. return "#$r$g$b";
  162. }
  163. }
  164. /*
  165. function dHue(cHex, d) {
  166. d = d % 360;
  167. var y = new Color(cHex);
  168. y = y.rgbToHsb();
  169. y[0] = y[0] + d;
  170. if (y[0] > 359) y[0] = y[0] - 360;
  171. return y.hsbToRgb().rgbToHex();
  172. }
  173. function dSaturation(cHex, d) {
  174. d = d % 100;
  175. var y = new Color(cHex);
  176. y = y.rgbToHsb();
  177. y[1] = y[1] + d;
  178. if (y[1] > 99) y[1] = y[1] - 100;
  179. return y.hsbToRgb().rgbToHex();
  180. }
  181. function dBrightness(cHex, d) {
  182. d = d % 100;
  183. var y = new Color(cHex);
  184. y = y.rgbToHsb();
  185. y[2] = y[2] + d;
  186. if (y[2] > 99) y[2] = y[2] - 100;
  187. return y.hsbToRgb().rgbToHex();
  188. }
  189. */
  190. if ($style_selected == "default") { $greycolour = $grey_default; $textcolour = $text_default; }
  191. else if ($style_selected == "white") { $greycolour = $grey_white; $textcolour = $text_white; }
  192. else { $greycolour = $grey_default; $textcolour = $text_default; }
  193. if ($colour_selected == "default") { $headercolour = $colour_default; }
  194. else if ($colour_selected == "blue") {$headercolour = $colour_blue; }
  195. else if ($colour_selected == "green") {$headercolour = $colour_green; }
  196. else if ($colour_selected == "orange") {$headercolour = $colour_orange; }
  197. else if ($colour_selected == "aqua") {$headercolour = $colour_aqua; }
  198. else if ($colour_selected == "pink") {$headercolour = $colour_pink; }
  199. else if ($colour_selected == "grey") {$headercolour = $colour_grey; }
  200. else if ($colour_selected == "black") {$headercolour = $colour_black; }
  201. else { $headercolour = $colour_default; }
  202. ?>
  203. /* Greys - by default */
  204. #searchform input { color: <?php echo $textcolour[1]?>; }
  205. .single #primary .redo-asides .entry-content, .single #primaryFirst .redo-asides .entry-content, input[type=text]:focus, textarea:focus,
  206. #commentlist li .counter, li.bypostauthor blockquote, #searchform input:focus, #akst_social a, #wp-calendar #today, .link-header { color: <?php echo $textcolour[2]?>; }
  207. body, input[type=text], textarea { color: <?php echo $textcolour[3]?>; }
  208. ul.menu li.current_page_item a, ul.menu li.current_page_item a:hover, .published_link { color: <?php echo $textcolour[3]?> !important; }
  209. .tertiary { color: <?php echo $textcolour[4]?>; }
  210. #comment-block { color: <?php echo $textcolour[4]?> !important; }
  211. .comment-login, .comment-welcomeback, .comments input[type=text], .comments textarea, small, strike, .link-title { color: <?php echo $textcolour[5]?>; }
  212. h3, h3 a, h3 a:visited, h4, h4 a, h4 a:visited { color: <?php echo $textcolour[6]?>; }
  213. #primary .metalink a, #primary .metalink a:visited, #primaryFirst .metalink a, #primaryFirst .metalink a:visited,
  214. .secondary .metalink a, .secondary .metalink a:visited, .secondary span a, .secondary span a:visited,
  215. .tertiary .metalink a, .secondary .metalink a:visited, .tertiary span a, .tertiary span a:visited, .commentsrsslink a, .trackbacklink a,
  216. .page-nav, .page-nav a, .sb-comments-blc ul li span a, .sb-comments ul li small a,
  217. .sb-comments-blc li > a[title="Go to the comments of this entry"] { color: <?php echo $textcolour[7]?>; } /* #footer, #footer a, .footer_content, */
  218. .page-nav a:hover { color: <?php echo $textcolour[8]?>; }
  219. h2, #primary .entry-content h2, #primaryFirst .entry-content h2, h2, h2 a, h2 a:visited, h2, h2 a, h2 a:hover, h2 a:visited,
  220. .first .entry-meta, .entry-meta, .page-meta, .sidenote h2, a, .secondary h2, .tertiary h2, .first .entry-meta h2,
  221. .entry-content a:visited, blockquote, #comment-block h2, #wp-calendar caption, .first .relatedPosts, .first .relatedPosts h2 { color: <?php echo $textcolour[9]?>; }
  222. h3.entry-title a:hover, .sidenote h2 a, .first h3.entry-title a:hover, .published_tiny, .comment-content blockquote { color: <?php echo $textcolour[9]?> !important; }
  223. #leavecomment, .comments #loading, .page-nav .current_page_item, .page-nav .current_page_item a { color: <?php echo $textcolour[10]?>; }
  224. #footer a:hover { color: <?php echo $textcolour[11]?>; }
  225. .secondary, .entry-content, .entry-meta a, .page-meta a, .comment-meta a, .sidenote, .first p, #commentlist li, li.byuser,
  226. li.bypostauthor, .navigation a, .sb-links a, #comment-block a, .sb-latest a, .sb-comments a, .sb-months a, #wp-calendar td,
  227. #wp-calendar td.pad:hover, #wp-calendar td:hover, .relatedPosts a, .link-title a { color: <?php echo $textcolour[12]?>; }
  228. h3.entry-title a, ul.menu li a:hover, .first h3.entry-title a { color: <?php echo $textcolour[12]?> !important; }
  229. #header_content, #header_content a, #header_content a:hover, ul.menu li a,
  230. .sb-catblock a { color: <?php echo $textcolour[13]?> !important; } /* #footer_content, */
  231. #wp-calendar a:hover, #wp-calendar #next a:hover, #wp-calendar #prev a:hover { color: <?php echo $textcolour[13]?> !important; }
  232. /* 1 - #111111 */
  233. body, #header { background-color: <?php echo $greycolour[1]?>; }
  234. /* 2 - #161616 */
  235. /* #footer_content { border-left-color: <?php echo $greycolour[2]?>; border-right-color: <?php echo $greycolour[2]?>; } */
  236. /* 3 - #191919 */
  237. #menu a, #rightcolumn, #rightcolumnheader, #rightcolumnfooter { border-right-color: <?php echo $greycolour[3]?>; }
  238. #comment-block, #alt_menu { border-left-color: <?php echo $greycolour[3]?>; border-right-color: <?php echo $greycolour[3]?>; }
  239. /* 4 - #222222 */
  240. #menu .current_page_item a, #leftcolumn { border-right-color: <?php echo $greycolour[4]?>; }
  241. #middlecolumn { border-left-color: <?php echo $greycolour[4]?>; border-right-color: <?php echo $greycolour[4]?>; }
  242. li.byuser, #alt_menu { background-color: <?php echo $greycolour[4]?>; } /*, #footer_content*/
  243. /* 5 - #262626 */
  244. #header_content a, #rightcolumn, #rightcolumnheader, #rightcolumnfooter { background-color: <?php echo $greycolour[5]?>; }
  245. /* 6 - #292929 */
  246. h2, #comment-block { background-color: <?php echo $greycolour[6]?>; }
  247. #menu a:hover { border-right-color: <?php echo $greycolour[6]?>; }
  248. /* 7 - #2C2C2C */
  249. #leftcolumn { border-left-color: <?php echo $greycolour[7]?>; }
  250. /* 8 - #2D2D2D */
  251. .page-nav { background-color: <?php echo $greycolour[8]?>; }
  252. /* 9 - #303030 */
  253. #leftcolumn { background-color: <?php echo $greycolour[9]?>; }
  254. .lentry { border-color: <?php echo $greycolour[9]?>; }
  255. /* 10 - #333333 */
  256. #header_content a:hover, #header_content .current_page_item a, ul.menu li a:hover,
  257. #middlecolumn, #footer, .footer_contentm, blockquote { background-color: <?php echo $greycolour[10]?>; }
  258. #menu .current_page_item a:hover { border-right-color: <?php echo $greycolour[10]?>; }
  259. li.byuser, #searchform input { border-color: <?php echo $greycolour[10]?>; }
  260. .link-header { color: <?php echo $greycolour[10]?>; }
  261. /* 11 - #363636 */
  262. #pinglist { background-color: <?php echo $greycolour[11]?>; }
  263. /* 12 - #393939 */
  264. #header_content .current_page_item a:hover, .lentry { background-color: <?php echo $greycolour[12]?> !important; }
  265. /* 13 - #444444 */
  266. .first .entry-meta, .entry-meta, .page-meta, li.bypostauthor, #primary .entry-content img, #primaryFirst .entry-content img,
  267. #searchform input, .sb-listen img:hover, .sb-watch img:hover, .sb-badge img:hover, .first .relatedPosts, .first-alt .relatedPosts,
  268. .published_tiny { background-color: <?php echo $greycolour[13]?>; }
  269. /* 14 - #555555 */
  270. .first .entry-meta, .entry-meta, .page-meta, li.bypostauthor, #primary .entry-content img,
  271. #primaryFirst .entry-content img, .sb-listen img, .sb-listen img:hover, .sb-watch img,
  272. .sb-watch img:hover, .sb-badge img, .sb-badge img:hover, .first .relatedPosts, .published_tiny { border-color: <?php echo $greycolour[14]?>; }
  273. /* 15 - #606060 */
  274. #pinglist { border-color: <?php echo $greycolour[15]?>; }
  275. /* 16 - #666666 */
  276. .comments input[type=text], .comments textarea, input[type=text]:focus, textarea:focus,
  277. .comments form #submit, #searchform input:focus { border-color: <?php echo $greycolour[16]?>; }
  278. /* 17 - #777777 */
  279. .firstheader { background-color: <?php echo $greycolour[17]?>; }
  280. /* 18 - #999999 */
  281. .comments input[type=text], .comments textarea { background-color: <?php echo $greycolour[18]?>; }
  282. acronym, abbr { border-bottom-color: <?php echo $greycolour[18]?>; }
  283. .sb-flickr div a:hover img, .published, .published_sm, .published_link { border-color: <?php echo $greycolour[18]?>; }
  284. .entry-content .imgDigg, .entry-content .diggButton, .comment-content blockquote { border-color: <?php echo $greycolour[18]?> !important; }
  285. /* 19 - #CCCCCC */
  286. .secondary h2, .tertiary h2, .first .entry-meta h2, .entry-content a, #comment-block h2, #wp-calendar h2,
  287. #wp-calendar caption, .first .relatedPosts h2, .first-alt .relatedPosts h2 { border-bottom-color: <?php echo $greycolour[19]?>; }
  288. .sb-flickr div a img, .relatedPosts { border-color: <?php echo $greycolour[19]?>; }
  289. /* 20 - #DDDDDD */
  290. #searchcontrols { background-color: <?php echo $greycolour[20]?>; }
  291. /* 21 - #EEEEEE */
  292. li.bypostauthor blockquote, .published, .published_sm, .published_link { background-color: <?php echo $greycolour[21]?>; }
  293. #wp-calendar #today{ background-color: <?php echo $greycolour[21]?> !important; }
  294. .entry-content .imgDigg, .entry-content .diggButton { background-colour: <?php echo $greycolour[21]?> !important; }
  295. /* 22 - #FFFFFF */
  296. ul.menu li.current_page_item a, ul.menu li.current_page_item a:hover, input[type=text]:focus,
  297. textarea:focus, #searchform input:focus { background-color: <?php echo $greycolour[22]?>; }
  298. #wp-calendar td { border-color: <?php echo $greycolour[22]?>; }
  299. /* Colourifical - not finished in Redoable 1.1 */
  300. h1, h1 a, h1 a:hover, h1 a:visited, #header .description { color: <?php echo $headercolour[9]?>; }
  301. .quotes { border-left-color: <?php echo $headercolour[1]?>; border-right-color: <?php echo $headercolour[1]?>; }
  302. #header_content { border-left-color: <?php echo $headercolour[2]?>; border-right-color: <?php echo $headercolour[2]?>; }
  303. #menu a { border-left-color: <?php echo $headercolour[2]?>; }
  304. #menu .current_page_item a { border-left-color: <?php echo $headercolour[2]?>; }
  305. #menu a:hover { border-left-color: <?php echo $headercolour[3]?>; }
  306. .quotes { background-color: <?php echo $headercolour[3]?>; background-image:none;}
  307. #wp_quotes { background-image:none; }
  308. #menu .current_page_item a:hover { border-left-color: <?php echo $headercolour[4]?>; }
  309. #header_content { background-color: <?php echo $headercolour[5]?>; }
  310. .sidenote h2 a:hover { color: <?php echo $headercolour[6]?> !important; }
  311. a:hover { color: <?php echo $headercolour[6]?>; }
  312. .entry-content a:hover { border-bottom-color: <?php echo $headercolour[6]?>; }
  313. #akst_social a:hover { color: <?php echo $headercolour[6]?>; }
  314. h2 a:hover, h2 span a:hover { color: <?php echo $headercolour[7]?> !important; }
  315. #comment-block a:hover { color: <?php echo $headercolour[7]?>; }
  316. #wp-calendar a { color: <?php echo $headercolour[7]?> !important; }
  317. #wp-calendar #next a { color: <?php echo $headercolour[7]?>; }
  318. #wp-calendar #prev a { color: <?php echo $headercolour[7]?>; }
  319. #wp-calendar #today a, #wp-calendar #today a:visited{ color: <?php echo $headercolour[7]?> !important; }
  320. .contacterror { border-color: <?php echo $headercolour[8]?>; }
  321. /*#firefox_check { background: #995500; border-left: 10px solid #773300; border-right: 10px solid #773300; color: #FFFFFF; }
  322. #firefox_check a { color: #FFFFFF; }
  323. #firefox_check a:hover { color: #FFCC00; }*/
  324. /*.comments #error { color: #FF0000; background-color: #FFFF99; }*/
  325. /* end colourifical */
  326. /* images */
  327. <?php if ($style_selected == "white") { ?>
  328. blockquote { background-image: url('images/quote_lt.gif'); }
  329. blockquote p { background-image: url('images/quote_end_lt.gif'); }
  330. <?php } else if ($style_selected == "default") { ?>
  331. blockquote { background-image: url('images/quote.gif'); }
  332. blockquote p { background-image: url('images/quote_end.gif'); }
  333. <?php } ?>
  334. /* special */
  335. <?php if ($style_selected == "white") { ?>
  336. .download { background-color: #CFC; border-top: 2px solid #6C6; border-bottom: 2px solid #6C6; }
  337. .download a, .download a:visited { color: #6C6; border-bottom: 2px dotted #6C6; }
  338. .download a:hover { color: #9F9; border-bottom: 2px dotted #9F9; }
  339. .imp-download { background-color: #CFC !important; border-top: 2px solid #6C6 !important; border-bottom: 2px solid #6C6 !important; }
  340. .imp-download-error { background-color: #FCC !important; border-top: 2px solid #F33 !important; border-bottom: 2px solid #F33 !important; }
  341. .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; }
  342. .imp-download a:hover, .imp-download-error a:hover { color: #9F9 !important; border-bottom: 2px dotted #9F9 !important; }
  343. .imp-download small, .imp-download-error small { color: #333333 !important; }
  344. .code { background-color: #EEEEEE; border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; }
  345. .alert { background-color: #FCC; border-top: 2px solid #F33; border-bottom: 2px solid #F33; }
  346. .new { background-color: #FDB; border-top: 2px solid #F93; border-bottom: 2px solid #F93; }
  347. .construction { background-color: #FFC; border-top: 2px solid #FF3; border-bottom: 2px solid #FF3; }
  348. .information { background-color: #CCF; border-top: 2px solid #33F; border-bottom: 2px solid #33F; }
  349. .note { background-color: #EEEEEE; border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; }
  350. .callout { border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; color: #CCCCCC; }
  351. <?php } else if ($style_selected == "default") { ?>
  352. .download { background-color: #353; border-top: 2px solid #383; border-bottom: 2px solid #383; }
  353. .download a, .download a:visited { color: #3F3; border-bottom: 2px dotted #3F3; }
  354. .download a:hover { color: #3C3; border-bottom: 2px dotted #3C3; }
  355. .imp-download { background-color: #353 !important; border-top: 2px solid #383 !important; border-bottom: 2px solid #383 !important; }
  356. .imp-download-error { background-color: #533 !important; border-top: 2px solid #F33 !important; border-bottom: 2px solid #F33 !important; }
  357. .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; }
  358. .imp-download a:hover, .imp-download-error a:hover { color: #3C3 !important; border-bottom: 2px dotted #3C3 !important; }
  359. .imp-download small, .imp-download-error small { color: #EEEEEE !important; }
  360. .code { background-color: #444444; border-top: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA; }
  361. .alert { background-color: #533; border-top: 2px solid #F33; border-bottom: 2px solid #F33; }
  362. .new { background-color: #643; border-top: 2px solid #F93; border-bottom: 2px solid #F93; }
  363. .construction { background-color: #553; border-top: 2px solid #FF3; border-bottom: 2px solid #FF3; }
  364. .information { background-color: #335; border-top: 2px solid #33F; border-bottom: 2px solid #33F; }
  365. .note { background-color: #444444; border-top: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA; }
  366. .callout { border-top: 2px solid #CCCCCC; border-bottom: 2px solid #CCCCCC; color: #CCCCCC; }
  367. <?php } ?>