diff options
author | friendica <info@friendica.com> | 2013-02-21 14:45:56 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-21 14:45:56 -0800 |
commit | 1e464120ebccf8d4cb03db748f08ce19eb31a6f4 (patch) | |
tree | f23b6ac59a0c242bad03e34608cb74656f736dd9 /view/theme/redbasic/php | |
parent | aacb1eab0f0292b2036550aabc1676b14781ada0 (diff) | |
download | volse-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
Diffstat (limited to 'view/theme/redbasic/php')
-rw-r--r-- | view/theme/redbasic/php/style.php | 13 |
1 files changed, 12 insertions, 1 deletions
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 |