[gnome-web-www: 38/68] Don't overlap the navbar when the Wordpress admin bar is visible



commit 7f3ca06492996820a6eba8bfca0b6c29569d9070
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Mon Jan 9 18:08:44 2017 +0200

    Don't overlap the navbar when the Wordpress admin bar is visible

 theme/functions.php |    2 +-
 theme/style.css     |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/theme/functions.php b/theme/functions.php
index aab752a..5b9a77d 100644
--- a/theme/functions.php
+++ b/theme/functions.php
@@ -4,7 +4,7 @@
  * @subpackage Default_Theme
  */
  
-show_admin_bar(false);
+show_admin_bar(true);
 
 /*
  * Add support for theme translations.
diff --git a/theme/style.css b/theme/style.css
index 9556bbc..c46c436 100644
--- a/theme/style.css
+++ b/theme/style.css
@@ -54,6 +54,12 @@ a:visited {
   flex: 1;
 }
 
+/* We don't want the admin-bar to overlap the navbar */
+body.admin-bar .navbar-fixed-top {
+    top: 28px !important;
+}
+
+
 /*
  * Bootstrap extension
  * Extend and overwrite Bootstrap Framework


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]