docs: fix some custom_js/css detail

This commit is contained in:
lesion 2024-10-01 09:23:36 +02:00
parent cbd8839777
commit 361fd18e72
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 26 additions and 4 deletions

View file

@ -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"

View file

@ -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"