Reorganized header component to use content projection for titles and simplified input properties.
121 lines
2.5 KiB
SCSS
121 lines
2.5 KiB
SCSS
#section1 {
|
|
background: -webkit-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
|
|
background: -o-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
|
|
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
text-align: center;
|
|
}
|
|
|
|
#section2 {
|
|
background: -webkit-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
|
|
background: -o-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
|
|
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
}
|
|
|
|
|
|
#scroll-button {
|
|
position: absolute;
|
|
bottom: 50px;
|
|
left: 50%;
|
|
z-index: 2;
|
|
display: inline-block;
|
|
-webkit-transform: translate(0, -50%);
|
|
transform: translate(0, -50%);
|
|
color: #fff;
|
|
transition: opacity .3s;
|
|
padding-top: 40px;
|
|
}
|
|
|
|
#scroll-button:hover {
|
|
opacity: .5;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#scroll-button span {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
width: 46px;
|
|
height: 46px;
|
|
margin-left: -23px;
|
|
border: 2px solid #fff;
|
|
border-radius: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#scroll-button span::after {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
content: '';
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: -12px 0 0 -8px;
|
|
border-left: 1px solid #fff;
|
|
border-bottom: 1px solid #fff;
|
|
-webkit-transform: rotate(-45deg);
|
|
transform: rotate(-45deg);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#scroll-button span::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
content: '';
|
|
width: 44px;
|
|
height: 44px;
|
|
box-shadow: 0 0 0 0 rgba(255, 255, 255, .1);
|
|
border-radius: 100%;
|
|
opacity: 0;
|
|
-webkit-animation: sdb03 3s infinite;
|
|
animation: sdb03 3s infinite;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@-webkit-keyframes sdb03 {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
30% {
|
|
opacity: 1;
|
|
}
|
|
|
|
60% {
|
|
box-shadow: 0 0 0 60px rgba(255, 255, 255, .1);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes sdb03 {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
30% {
|
|
opacity: 1;
|
|
}
|
|
|
|
60% {
|
|
box-shadow: 0 0 0 60px rgba(255, 255, 255, .1);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|