Fixes "Hide Code" Engine & Style
This commit is contained in:
bovenliggende
69af0ec703
commit
c8f21efd4a
2
css/daux-blue.min.css
vendored
2
css/daux-blue.min.css
vendored
Bestand-diff onderdrukt omdat een of meer regels te lang zijn
2
css/daux-green.min.css
vendored
2
css/daux-green.min.css
vendored
Bestand-diff onderdrukt omdat een of meer regels te lang zijn
2
css/daux-navy.min.css
vendored
2
css/daux-navy.min.css
vendored
Bestand-diff onderdrukt omdat een of meer regels te lang zijn
2
css/daux-red.min.css
vendored
2
css/daux-red.min.css
vendored
Bestand-diff onderdrukt omdat een of meer regels te lang zijn
49
js/custom.js
49
js/custom.js
@ -1,24 +1,24 @@
|
||||
$(function() {
|
||||
$('.aj-nav').click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).parent().siblings().find('ul').slideUp();
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
$(function () {
|
||||
$('.aj-nav').click(function (e) {
|
||||
e.preventDefault();
|
||||
$(this).parent().siblings().find('ul').slideUp();
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
|
||||
// Bootstrap Table Class
|
||||
$('table').addClass('table');
|
||||
// Bootstrap Table Class
|
||||
$('table').addClass('table');
|
||||
|
||||
// Responsive menu spinner
|
||||
$('#menu-spinner-button').click(function() {
|
||||
$('#sub-nav-collapse').slideToggle();
|
||||
});
|
||||
// Responsive menu spinner
|
||||
$('#menu-spinner-button').click(function () {
|
||||
$('#sub-nav-collapse').slideToggle();
|
||||
});
|
||||
|
||||
// Catch browser resize
|
||||
$(window).resize(function() {
|
||||
// Remove transition inline style on large screens
|
||||
if ($(window).width() >= 768)
|
||||
$('#sub-nav-collapse').removeAttr('style');
|
||||
});
|
||||
// Catch browser resize
|
||||
$(window).resize(function () {
|
||||
// Remove transition inline style on large screens
|
||||
if ($(window).width() >= 768)
|
||||
$('#sub-nav-collapse').removeAttr('style');
|
||||
});
|
||||
});
|
||||
|
||||
//Fix GitHub Ribbon overlapping Scrollbar
|
||||
@ -30,23 +30,18 @@ function toggleCodeBlocks() {
|
||||
t = (t + 1) % 3;
|
||||
localStorage.setItem("toggleCodeStats", t);
|
||||
var a = $('.content-page article');
|
||||
var b = a.children();
|
||||
var c = b.filter('pre');
|
||||
var c = a.children().filter('pre');
|
||||
var d = $('.right-column');
|
||||
if (d.hasClass('float-view')) {
|
||||
d.removeClass('float-view');
|
||||
$('#toggleCodeBlockBtn')[0].innerHTML = "Hide Code Blocks";
|
||||
} else {
|
||||
if (a.hasClass('hideCode')) {
|
||||
if (c.hasClass('hidden')) {
|
||||
d.addClass('float-view');
|
||||
a.removeClass('hideCode');
|
||||
b.removeClass('hideCode2');
|
||||
c.removeClass('hideCode3');
|
||||
c.removeClass('hidden');
|
||||
$('#toggleCodeBlockBtn')[0].innerHTML = "Show Code Blocks Inline";
|
||||
} else {
|
||||
a.addClass('hideCode');
|
||||
b.addClass('hideCode2');
|
||||
c.addClass('hideCode3');
|
||||
c.addClass('hidden');
|
||||
$('#toggleCodeBlockBtn')[0].innerHTML = "Show Code Blocks";
|
||||
}
|
||||
}
|
||||
|
@ -217,10 +217,6 @@ pre {
|
||||
}
|
||||
}
|
||||
|
||||
.hideCode:before {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
table {
|
||||
float: left;
|
||||
clear: left;
|
||||
@ -262,11 +258,6 @@ pre {
|
||||
}
|
||||
}
|
||||
|
||||
.hideCode2 {
|
||||
width: 900px !important;
|
||||
width: calc(100% - 130px) !important;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
li {
|
||||
margin-left: 30px;
|
||||
@ -282,10 +273,6 @@ pre {
|
||||
margin: 0px 0px 10px 0px;
|
||||
padding: 0px 0px 0px 10px;
|
||||
}
|
||||
|
||||
hideCode3 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user