syntax highlight + TOC scroll + other content parsing improvements

This commit is contained in:
NGPixel
2016-08-20 23:28:53 -04:00
parent 1ad03a3d1f
commit e94abf9466
13 changed files with 114 additions and 25 deletions

View File

@@ -3,7 +3,10 @@
jQuery( document ).ready(function( $ ) {
$('a').smoothScroll({
speed: 'auto'
speed: 400,
offset: -20
});
var sticky = new Sticky('.stickyscroll');
});

View File

@@ -8,4 +8,4 @@ $warning: #f68b39;
@import './layout/_header';
@import './layout/_footer';
@import './layout/_content';

View File

@@ -0,0 +1,32 @@
.mkcontent {
h1 {
border-bottom: 1px dotted $grey-light;
padding-bottom: 4px;
font-weight: 400;
color: $grey-dark;
}
a.toc-anchor {
font-size: 80%;
color: $purple;
border-bottom: none;
}
.hljs {
padding: 0;
border-bottom: 1px solid $grey-light;
border-right: 1px solid $grey-light;
border-radius: 3px;
}
pre + p {
padding-top: 1em;
}
img.right {
float:right;
}
}