aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-21 14:45:56 -0800
committerfriendica <info@friendica.com>2013-02-21 14:45:56 -0800
commit1e464120ebccf8d4cb03db748f08ce19eb31a6f4 (patch)
treef23b6ac59a0c242bad03e34608cb74656f736dd9
parentaacb1eab0f0292b2036550aabc1676b14781ada0 (diff)
downloadvolse-hubzilla-1e464120ebccf8d4cb03db748f08ce19eb31a6f4.tar.gz
volse-hubzilla-1e464120ebccf8d4cb03db748f08ce19eb31a6f4.tar.bz2
volse-hubzilla-1e464120ebccf8d4cb03db748f08ce19eb31a6f4.zip
fix a typo and bring back nav:hover animation for the red scheme
-rw-r--r--version.inc2
-rw-r--r--view/theme/redbasic/php/style.php13
2 files changed, 13 insertions, 2 deletions
diff --git a/version.inc b/version.inc
index e6ae4dac0..94aae2070 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-02-20.230
+2013-02-21.231
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 1423e512a..2b1d68519 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -11,6 +11,8 @@
$navcolour = false;
$nav_bg_1 = "f88";
$nav_bg_2 = "b00";
+ $nav_bg_3 = "f00";
+ $nav_bg_4 = "b00";
$displaystyle = false;
$linkcolour = false;
$shiny = false;
@@ -60,6 +62,7 @@
}
+
// Enforce sane limits for expert mode - otherwise we'll end up with "experts" who think font size is a percentage.
if(($redbasic_font_size >= 8.0) && ($redbasic_font_size <= 20.0)) {
@@ -88,6 +91,14 @@
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%);}";
+ if($navcolour === false || $navcolour === 'red') {
+ echo "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: -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%);}";
+ }
+
// This takes quite a lot of code, so we'll keep it in a separate file, and echo the lot. Devs still don't have to worry about - it's just overrides.
// Theme devs can play with it without facing scary PHP.
@@ -106,7 +117,7 @@
// If you want a shiny that just sets a different colour, add an if $shiny != false and handle it as the linkcolour above.
- if ($shiny === opaque) {
+ if ($shiny === 'opaque') {
echo "div.wall-item-content-wrapper.shiny {opacity: 1;}\r\n
.wall-item-content-wrapper {opacity: 0.8;}";
} \ No newline at end of file