From 73eac17cac565491af9202d09e095be855cb1a97 Mon Sep 17 00:00:00 2001 From: reliberate Date: Fri, 20 May 2016 19:08:10 -0600 Subject: [PATCH] Theme: Code cleanup, optimize CSS. --- themes/default/css.php | 40 ++++++++++-- themes/default/template.php | 126 +++++++++--------------------------- 2 files changed, 64 insertions(+), 102 deletions(-) diff --git a/themes/default/css.php b/themes/default/css.php index 3f5da6b439..2248336453 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -202,9 +202,12 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; } div#footer { + display: inline-block; + width: 100%; background: ; text-align: center; vertical-align: middle; + margin-bottom: 60px; padding: 8px; -moz-border-radius: ; @@ -261,7 +264,8 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; border: none; height: 27px; width: auto; - margin: 11px 13px 0 7px; + margin: 11px 0 0 7px; + padding-right: 13px; cursor: pointer; float: left; display: inline; @@ -295,14 +299,14 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; } .navbar .navbar-nav > li > a > span.glyphicon { - margin: 1px 7px 0 0; + margin: 1px 2px 0 0; } @media(min-width: 768px) { .dropdown:hover .dropdown-menu { display: block; } - } + } /* xs menu toggle button */ .navbar-inverse .navbar-toggle { @@ -680,7 +684,25 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; text-decoration: underline; } + + #main_content { + display: inline-block; + width: 100%; 0 || !$default_login) @@ -698,10 +720,14 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false; -webkit-box-shadow: ; -moz-box-shadow: ; box-shadow: ; - padding: 15px 20px 20px 20px; - - padding: 5px 10px 10px 10px; - + padding: 20px; + padding: 5px 10px 10px 10px; text-align: left; } diff --git a/themes/default/template.php b/themes/default/template.php index 37faaf7b72..df52c7a220 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -195,6 +195,22 @@ }); }); + + //crossfade menu brand images (if hover version set) + $(function(){ + $('#menu_brand_image').mouseover(function(){ + $(this).fadeOut('fast', function(){ + $('#menu_brand_image_hover').fadeIn('fast'); + }); + }); + $('#menu_brand_image_hover').mouseout(function(){ + $(this).fadeOut('fast', function(){ + $('#menu_brand_image').fadeIn('fast'); + }); + }); + }); + + }); //audio playback functions @@ -331,7 +347,7 @@ switch ($menu_style) { case 'inline': $menu_type = 'default'; - $menu_width = 'calc(100% - 40px)'; + $menu_width = 'calc(100% - 20px)'; $menu_brand = false; break; case 'static': @@ -352,7 +368,7 @@