1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
.header-image {
padding: 0;
position: absolute;
z-index: 1;
right: 0;
left: 0;
}
.header-image,
.header-image:after {
height: 900px;
height: 100vh;
min-height: 100%;
position: absolute;
z-index: 1;
right: 0;
left: 0;
}
.header-image {
background-image: url(images/bg.jpg) no-repeat center center fixed;
background-repeat: no-repeat;
background-position: top center;
background-size: cover;
}
.header-image:after {
content: "";
display: block;
z-index: 2;
top: 0;
background: #1d1d1d;
background: -moz-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.4) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.2)), color-stop(100%,rgba(255,255,255,0.4)));
background: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#331d1d1d', endColorstr='#1d1d1d',GradientType=0 );
} |
Partager