1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-01-23 15:11:38 +00:00

Update styles for new components and add code highlighting container styles

Container styles needed a javascript hack as of now since a block style
element is needed for overflow to work correctly.  app.js adds a div
wrapper around the highlighed code (with line numbers) to allow overflow
to work correctly.
This commit is contained in:
2013-07-29 05:53:34 -04:00
parent 725cb8893f
commit b5bdbaf332
5 changed files with 191 additions and 20 deletions

View File

@@ -10,6 +10,11 @@ for( var i = 0, l = scripts.length; i < l; i++ ){
yepnope.errorTimeout = 3000; // set 3 second error timeout instead of 10
function ready(){
// Hack to fix .codehilitetable overflow
$('.codehilitetable').wrap('<div class="codehilitewrapper">');
};
// zeptojs or jquery
Modernizr.load([{
test: '__proto__' in {},
@@ -32,10 +37,14 @@ Modernizr.load([{
if(!window.Foundation)
Modernizr.load([{
load: baseURL+'foundation.min.js',
complete: function() { $(document).foundation() },
complete: function() {
$(document).foundation()
ready()
},
}]);
else {
$(document).foundation()
ready()
}
}
},