Static top navbar instead of fixed
This change allows us to simplify the code in both app.css and cleanup.php
This commit is contained in:
@@ -12,10 +12,6 @@ body { }
|
||||
|
||||
.banner { }
|
||||
|
||||
/* Fixed Topbar Navigation */
|
||||
body.top-navbar { padding-top: 60px; }
|
||||
body.admin-bar .navbar-fixed-top { top: 28px; }
|
||||
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
@@ -78,9 +74,6 @@ figure.alignnone { margin-left: 0; margin-right: 0; }
|
||||
Media Queries
|
||||
========================================================================== */
|
||||
|
||||
@media (max-width: 979px) {
|
||||
/* Fix top padding when using the responsive grid with the fixed topbar */
|
||||
body.top-navbar {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
|
||||
}
|
||||
|
||||
@@ -99,12 +99,6 @@ add_filter('style_loader_tag', 'roots_clean_style_tag');
|
||||
* Add and remove body_class() classes
|
||||
*/
|
||||
function roots_body_class($classes) {
|
||||
// Add 'top-navbar' class if using Bootstrap's Navbar
|
||||
// Used to add styling to account for the WordPress admin bar
|
||||
if (current_theme_supports('bootstrap-top-navbar')) {
|
||||
$classes[] = 'top-navbar';
|
||||
}
|
||||
|
||||
// Add post/page slug
|
||||
if (is_single() || is_page() && !is_front_page()) {
|
||||
$classes[] = basename(get_permalink());
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
add_theme_support('root-relative-urls'); // Enable relative URLs
|
||||
add_theme_support('rewrites'); // Enable URL rewrites
|
||||
add_theme_support('h5bp-htaccess'); // Enable HTML5 Boilerplate's .htaccess
|
||||
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's fixed navbar
|
||||
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's top navbar
|
||||
add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery]
|
||||
add_theme_support('nice-search'); // Enable /?s= to /search/ redirect
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<header class="banner navbar navbar-fixed-top" role="banner">
|
||||
<header class="banner navbar navbar-static-top" role="banner">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
@@ -18,4 +18,4 @@
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user