mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
docs: fix some custom_js/css detail
This commit is contained in:
parent
cbd8839777
commit
361fd18e72
2 changed files with 26 additions and 4 deletions
|
@ -22,13 +22,35 @@ Also note that for every element you want to change the style to, you need to ov
|
|||
}
|
||||
```
|
||||
|
||||
### Fixed navbar
|
||||
```css
|
||||
/* fixed navbar */
|
||||
nav {
|
||||
margin-top: 80px;
|
||||
}
|
||||
|
||||
nav > div:first-of-type {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
top: 0px;
|
||||
z-index: 1;
|
||||
background-color: #272727;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
### Fixed footer
|
||||
```css
|
||||
/* fixed footer */
|
||||
footer.v-footer {
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.v-application--wrap {
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
```
|
||||
|
||||
> info "References"
|
||||
|
|
|
@ -29,10 +29,10 @@ document.getElementsByTagName('head')[0].appendChild(script);
|
|||
### Integrate Umami ([https://umami.is/](https://umami.is/))
|
||||
|
||||
```js
|
||||
var el = document.createElement('script');
|
||||
el.setAttribute('src', 'http://mywebsite.com/umami.js');
|
||||
el.setAttribute('data-website-id', 'your-website-id-string-of-numbers');
|
||||
document.body.appendChild(el);
|
||||
var el = document.createElement('script');
|
||||
el.setAttribute('src', 'http://mywebsite.com/umami.js');
|
||||
el.setAttribute('data-website-id', 'your-website-id-string-of-numbers');
|
||||
document.body.appendChild(el);
|
||||
```
|
||||
|
||||
> info "References"
|
||||
|
|
Loading…
Reference in a new issue