mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 08:08:33 -04:00
Sticky header background
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
bc2b422508
commit
a3bcf73408
1 changed files with 11 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue