Use misanthrozot as dark scheme, fix some PCSS bugs

This commit is contained in:
Thomas Willingham 2013-05-28 21:12:31 +01:00
parent 7c2aa706f2
commit 543e4903b2
3 changed files with 8 additions and 5 deletions

View file

@ -929,12 +929,12 @@ footer {
/* background: #fff; */ /* background: #fff; */
/* border-radius: 5px; */ /* border-radius: 5px; */
/* box-shadow: 12px 12px 12px #111; */ /* box-shadow: 12px 12px 12px #111; */
border-left: 1px solid #eec; /* border-left: 1px solid #eec; */
} }
.wall-item-content-wrapper.comment { .wall-item-content-wrapper.comment {
/* background: #fff; */ /* background: #fff; */
border-left: 1px solid #e0e0e0; /* border-left: 1px solid #e0e0e0; */
margin-left: 50px; margin-left: 50px;
/* box-shadow: 5px 5px 5px #222; */ /* box-shadow: 5px 5px 5px #222; */
} }
@ -945,9 +945,9 @@ footer {
.wall-item-content-wrapper.comment { .wall-item-content-wrapper.comment {
background: #ffffff; /* background: #ffffff;
border-left: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0;
*/
} }
.wall-item-like.comment, .wall-item-dislike.comment { .wall-item-like.comment, .wall-item-dislike.comment {

View file

@ -96,6 +96,7 @@ function redbasic_form(&$a, $font_size, $line_height, $colour, $shadow, $navcolo
$colour_schemes = array( $colour_schemes = array(
'redbasic' => 'redbasic', 'redbasic' => 'redbasic',
'fancyred' => 'fancyred', 'fancyred' => 'fancyred',
'dark' => 'dark',
); );
$shadows = array( $shadows = array(
'true' => 'Yes', 'true' => 'Yes',

View file

@ -41,7 +41,9 @@
// In non-expert mode, we just let them choose font size, line height, and a colour scheme. A colour scheme is just a pre-defined set of the above variables. // In non-expert mode, we just let them choose font size, line height, and a colour scheme. A colour scheme is just a pre-defined set of the above variables.
// But only apply these settings in non-expert mode to prevent confusion when turning expert mode on and off. // But only apply these settings in non-expert mode to prevent confusion when turning expert mode on and off.
if(! feature_enabled(local_user(),'expert')) { if(! feature_enabled(local_user(),'expert')) {
if ($colour_scheme === 'fancyred') {$shadows = true; $navcolour = 'black'; $shadows = true; $displaystyle = 'fancy'; $linkcolour = 'f00'; $shiny = "opaque";} if ($colour_scheme === 'fancyred') {$shadows = true; $navcolour = 'black'; $displaystyle = 'fancy'; $linkcolour = 'f00'; $shiny = "opaque";}
// Dark themes are very different - we need to do some of these from scratch, so don't bother setting vars for anything else
if ($colour_scheme === 'dark') {$colour = 'dark'; $navcolour = 'black';}
} }
// This is probably the easiest place to apply global settings. Don't bother with site line height and such. Instead, check pconfig for global user settings. // This is probably the easiest place to apply global settings. Don't bother with site line height and such. Instead, check pconfig for global user settings.