fixed background in header
This commit is contained in:
parent
35e7233853
commit
338aaa7cf7
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@
|
|||
<header class="main-header" style="position:relative;overflow:hidden;">
|
||||
<!-- Background image -->
|
||||
{{ if $banner }}
|
||||
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background-image:url('{{ $banner }}');background-size:cover;background-position:center;"></div>
|
||||
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background-image:url('{{ $banner }}');background-size:cover;background-position:center; background-attachment:fixed;"></div>
|
||||
<!-- Dark overlay for readability -->
|
||||
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background:linear-gradient(to bottom,rgba(0,0,0,0.4) 0%,rgba(0,0,0,0.2) 50%,rgba(0,0,0,0.4) 100%);pointer-events:none;"></div>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue