-
-
Save ribafs/be4065fdfecd67f2b2427cd5e16b472e to your computer and use it in GitHub Desktop.
Mkdocs bootswatch tweaks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide sidebar with less than 2 entries. | |
var sidebar = $('.bs-sidebar') | |
var entries = sidebar.children().first() | |
if (entries.children().length <= 1) | |
sidebar.css('display', 'none') | |
else { | |
entries.children(':not(.main)').css('text-indent', '10px') | |
} | |
$('h1').css('font-weight', 'bold') | |
$('h1').css('font-size', '32px') | |
$('h2').css('font-size', '28px') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment