syntax highlight + TOC scroll + other content parsing improvements
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
jQuery( document ).ready(function( $ ) {
|
||||
|
||||
$('a').smoothScroll({
|
||||
speed: 'auto'
|
||||
speed: 400,
|
||||
offset: -20
|
||||
});
|
||||
|
||||
var sticky = new Sticky('.stickyscroll');
|
||||
|
||||
});
|
@@ -8,4 +8,4 @@ $warning: #f68b39;
|
||||
|
||||
@import './layout/_header';
|
||||
@import './layout/_footer';
|
||||
|
||||
@import './layout/_content';
|
32
client/scss/layout/_content.scss
Normal file
32
client/scss/layout/_content.scss
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user