Sticky header background

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-08-12 07:39:46 +02:00 committed by Jan C. Borchardt
parent bc2b422508
commit a3bcf73408
No known key found for this signature in database
GPG key ID: CBD846FC845CBE17

View file

@ -162,6 +162,13 @@ export default {
}
}
},
backgroundImage: {
immediate: true,
handler() {
const header = document.getElementById('header')
header.style.backgroundImage = `url(${this.backgroundImage})`
},
},
},
mounted() {
setInterval(() => {
@ -242,7 +249,10 @@ export default {
<style lang="scss">
// Show Dashboard background image beneath header
#body-user #header {
background: none;
background-size: cover;
background-position: center 50%;
background-repeat: no-repeat;
background-attachment: fixed;
}
#content {