Twitter Bootstrap .topbar hiding c5 edit buttons when logged in
Permalink
Hi There,
I'm in the process of creating a blank Twitter Bootstrap theme and noticed that the standard Twitter .topbar hides the c5 edit bar.
To get around this, I've used this in the <head> to show it:
Is this the best way to handle an issue like this?
Cheers
Ben
I'm in the process of creating a blank Twitter Bootstrap theme and noticed that the standard Twitter .topbar hides the c5 edit bar.
To get around this, I've used this in the <head> to show it:
<?php // Pushes .topbar down to reveal c5 edit bar when logged in $cp = new Permissions($c); if($cp->canWrite() && $cp->canAddSubContent()){ echo('<style type="text/css">.topbar{margin-top:50px;}</style>'); } ?>
Is this the best way to handle an issue like this?
Cheers
Ben
Seems to work great - I haven't noticed any issues editing the site in Safari anyway.
Cheers
Ben
Cheers
Ben
How goes the c5/twitter bootstrap integration? How did you get around the conflicts with the c5 UI?
UI conflicts have been pretty minimal:
- c5 edit bar hasn't been an issue since implementing the above
- All the form styles get applied to c5 (which in most cases looks better)
- Some of the headlines seem to get pushed over to the right by about 50px
Still working on it though - block templates and core commerce etc
- c5 edit bar hasn't been an issue since implementing the above
- All the form styles get applied to c5 (which in most cases looks better)
- Some of the headlines seem to get pushed over to the right by about 50px
Still working on it though - block templates and core commerce etc
Cheers
Dan