mirror of https://github.com/onweru/compose.git

weru
19.50.2020 1184e4687598e4b63ca37883fcf3c462516b6a4d
keep content clear of nav #8
1 files modified
7 ■■■■■ changed files
assets/js/index.js 7 ●●●●● patch | view | raw | blame | history
assets/js/index.js
@@ -104,6 +104,13 @@
  }
}
(function calcNavHeight(){
  const nav = elem('.nav_header');
  const navHeight = nav.offsetHeight;
  const docContent = elem('main');
  docContent.style.paddingTop = `${navHeight + 20}px`;
})();
(function markInlineCodeTags(){
  const codeBlocks = elems('code');
  if(codeBlocks) {