Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SA GS Admin Toolbar
#76
It does
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#77
yes, with "your" templates, but not in either case. Its possible to annul the switch with css :-|
It hooks anywhere here
Code:
@media screen and (min-width:50em) {
main { margin-top: 2.7em; }
.logo { width:auto; float:left; }
nav { overflow:visible; float:left; width:auto; display:block !important; height:auto; } ...
and other css.

but didn't find it yet.

bell
Reply
#78
from my website

Themes
The toolbar will automatically work on most themes. It is designed to fix itself to the top of the browser window and push the content down 28 pixels.
Themes must call the get_footer() and get_header() functions

Some themes may have issues if there is already a fixed toolbar at the top, themes can custom style these using css selector rules. When the toolbar is present the body receives a custom class of .gs-toolbar. To make css adjustments using this selector in your styles use body.gs_toolbar

Example
/* to push a fixed navbar down when toolbar is present */
body.gs-toolbar .navbar-fixed-top{
margin-top:28px !important;
}

and here is the JS
https://github.com/tablatronix/sa_GSTool...r.php#L434

Code:
$('body').addClass('gs-toolbar'); // for special theme styling when toolbar is present, body.gs-toolbar elements{}
            
                // add margin to body to push down content
                bodytop = $('body').csspixels('margin-top');
                $('body').css('margin-top', (bodytop+28)+'px'); //todo: make the height dynamic based on navbar css

If you have a better way then let me know, but if its a fixed nav bar there is no way I can think of to override the canvas, maybe there is now.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)