mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
docs css
This commit is contained in:
parent
dcdde20b7c
commit
ae72d8b0f5
15 changed files with 118 additions and 75 deletions
|
@ -4,18 +4,6 @@ date: 2018-11-28T15:14:39+10:00
|
|||
weight: 1
|
||||
---
|
||||
|
||||
## Make Beautiful Docs
|
||||
## Whisper Theme
|
||||
|
||||
Whisper is a minimal documentation theme for Hugo. The design and functionality is intentionally minimal. We’re aiming for a similar feel to a Github readme.
|
||||
|
||||
```javascript
|
||||
var body = document.querySelector('body');
|
||||
var menuTrigger = document.querySelector('#toggle-main-menu-mobile');
|
||||
var menuContainer = document.querySelector('#main-menu-mobile');
|
||||
|
||||
menuTrigger.onclick = function() {
|
||||
menuContainer.classList.toggle('open');
|
||||
menuTrigger.classList.toggle('is-active');
|
||||
body.classList.toggle('lock-scroll');
|
||||
};
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue