From b05b4437e59ea9e9a73b638c34c9ef9b10190c93 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 2 Oct 2013 18:31:14 +0100 Subject: Remove some !important that isn't, and add deprecated note to old CSS --- view/theme/redbasic/css/dark.css | 4 ++++ view/theme/redbasic/css/fancy.css | 3 ++- view/theme/redbasic/css/style.css | 12 ++++++------ 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/dark.css b/view/theme/redbasic/css/dark.css index 43912be69..3bcf15bc9 100644 --- a/view/theme/redbasic/css/dark.css +++ b/view/theme/redbasic/css/dark.css @@ -1,3 +1,7 @@ +/* This file is deprecated. We'll keep it here as reference until somebody +defines a dark colour scheme */ + + body { font-family: sans-serif; font-size: 12px; background-color: #101010; diff --git a/view/theme/redbasic/css/fancy.css b/view/theme/redbasic/css/fancy.css index 2da9d68d1..9b8899d2f 100644 --- a/view/theme/redbasic/css/fancy.css +++ b/view/theme/redbasic/css/fancy.css @@ -1,4 +1,5 @@ -/* There's probably some stuff in here we don't need, and maybe some missing stuff we do need. We can clean it up incrementaly, just get the heavy lifting done for now */ +/*This file is deprecated. We'll keep it for reference until we provide window decorations */ + aside { border-radius: $radiuspx;} diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index bc8014978..6019a7c6b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -117,17 +117,17 @@ blockquote { filter:alpha(opacity=100); } -nav {background-image: linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%) !important; - background-image: -o-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%) !important; - background-image: -moz-linear-gradient(bottom,$nav_bg_1 26%, $nav_bg_2 82%) !important; - background-image: -webkit-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%) !important; - background-image: -ms-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%) !important; +nav {background-image: linear-gradient(bottom, #$nav_bg_1 26%, #$nav_bg_2 82%); + background-image: -o-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%); + background-image: -moz-linear-gradient(bottom,$nav_bg_1 26%, $nav_bg_2 82%); + background-image: -webkit-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%); + background-image: -ms-linear-gradient(bottom, $nav_bg_1 26%, $nav_bg_2 82%); } nav:hover {background-image: linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%); background-image: -o-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%); - background-image: -moz-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%) !important; + background-image: -moz-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%); background-image: -webkit-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%); background-image: -ms-linear-gradient(bottom, $nav_bg_3 26%, $nav_bg_4 82%); } -- cgit v1.2.3 From 6224a5e458dd06c791e073c7b21a3b0fefd5e4d6 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 2 Oct 2013 20:39:47 +0100 Subject: Why use 6 lines when you can use 8,000? --- view/theme/redbasic/css/style.css | 2 +- view/theme/redbasic/php/config.php | 1 + view/theme/redbasic/php/style.php | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 6019a7c6b..868da0a03 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1405,7 +1405,7 @@ tr.mceLast { .wall-item-photo, .photo, .contact-block-img, .my-comment-photo { border-radius: $radiuspx; -moz-border-radius: $radiuspx; - box-shadow: 4px 4px 3px 0 #444444; + /*box-shadow: 4px 4px 3px 0 #444444; */ } diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php index 2502bb675..7470c399a 100644 --- a/view/theme/redbasic/php/config.php +++ b/view/theme/redbasic/php/config.php @@ -36,6 +36,7 @@ function redbasic_form(&$a, $nav_colour, $background_colour, $background_image, $nav_colours = array ( 'red' => 'red', 'black' => 'black', + 'silver' => 'silver', ); $t = get_markup_template('theme_settings.tpl'); diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index e9ee57268..aff592a05 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -37,6 +37,9 @@ $nav_bg_1 = $nav_bg_3 = "#000"; $nav_bg_2 = $nav_bg_4 = "#222"; } + if ($nav_colour == "silver") { + $nav_bg_1 = $nav_bg_2 = $nav_bg_3 = $nav_bg_4 = "silver"; + } $background_colour = get_pconfig($uid, "redbasic", "background_colour"); $background_image = get_pconfig($uid, "redbasic", "background_image"); -- cgit v1.2.3 From 89c1fc75407f27a31146554f92d98a90e43605d1 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Thu, 3 Oct 2013 02:39:49 +0100 Subject: Fix a gotcha in theme defaults. --- view/theme/redbasic/php/style.php | 41 +++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 15 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index aff592a05..88bf2ceb0 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -1,20 +1,5 @@