You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.9 KiB
CSS

@import url("https://fonts.googleapis.com/css?family=Rajdhani:300&display=swap");
body, html {
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-image: url("https://www.romankoenigshofer.com/wp-content/uploads/2017/06/%C2%A9RomanKoenigshofer_Travel_Alberta_campaign_DSC01496.jpg");
background-size: cover;
background-position: center;
font-family: 'Rajdhani', sans-serif;
}
*, *:before, *:after {
box-sizing: border-box;
}
.glass {
height: 100%;
width: 100%;
background-image: url("https://www.romankoenigshofer.com/wp-content/uploads/2017/06/%C2%A9RomanKoenigshofer_Travel_Alberta_campaign_DSC01496.jpg");
background-size: cover;
background-position: center;
-webkit-clip-path: inset(10em);
clip-path: inset(10em);
-webkit-filter: blur(20px);
filter: blur(20px);
display: flex;
justify-content: center;
align-items: center;
}
.drop-shadow {
height: 100%;
width: 100%;
-webkit-filter: drop-shadow(0px 20px 10px rgba(0, 0, 0, 0.3));
filter: drop-shadow(0px 20px 10px rgba(0, 0, 0, 0.3));
display: flex;
justify-content: center;
align-items: center;
}
.drop-shadow:before {
display: block;
content: "";
position: absolute;
top: 10em;
height: calc(100% - 20em);
width: calc(100% - 20em);
border-top: 2px solid rgba(225, 225, 225, 0.2);
border-left: 1px solid rgba(225, 225, 225, 0.1);
border-right: 1px solid rgba(225, 225, 225, 0.3);
z-index: 2;
}
.drop-shadow > span {
position: absolute;
z-index: 5;
color: white;
font-size: 4em;
letter-spacing: 0.75em;
padding-left: 0.375em;
}
@media (max-width: 980px) {
.glass {
-webkit-clip-path: inset(5em);
clip-path: inset(5em);
}
.drop-shadow:before {
top: 5em;
width: calc(100% - 10em);
}
.drop-shadow > span {
font-size: 4em;
}
}
@media (max-width: 640px) {
.drop-shadow > span {
font-size: 2em;
}
}