p/src/index.scss

142 lines
2.9 KiB
SCSS

@font-face {
font-family: 'GT America';
src: url('fonts/GTAmerica-Regular.woff2') format('woff2'),
url('fonts/GTAmerica-Regular.woff') format('woff'),
url('fonts/GTAmerica-Regular.ttf') format('truetype'),
url('fonts/GTAmerica-Regular.svg#GTAmerica-Regular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'GT America';
src: url('fonts/GTAmerica-RegularItalic.woff2') format('woff2'),
url('fonts/GTAmerica-RegularItalic.woff') format('woff'),
url('fonts/GTAmerica-RegularItalic.ttf') format('truetype'),
url('fonts/GTAmerica-RegularItalic.svg#GTAmerica-RegularItalic') format('svg');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Respira';
src: url('fonts/Respira-Black.woff2') format('woff2'),
url('fonts/Respira-Black.woff') format('woff'),
url('fonts/Respira-Black.ttf') format('truetype'),
url('fonts/Respira-Black.svg#Respira-Black') format('svg');
font-weight: 800;
font-style: normal;
}
* {
cursor: url(images/cursor.png) 3 3, auto !important;
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
font-family: "GT America";
overflow-x: hidden;
-webkit-tap-highlight-color: transparent;
}
.container {
min-width: 100vw;
min-height: 100vh;
background: #f0f0f0;
position: absolute;
left: 0;
top: 0;
padding: 2em;
}
header, main, footer {
max-width: 60em;
margin: 2em auto;
}
h1,h2,h3 {
font-family: "Respira";
font-weight: 800;
}
h1 {
font-size: 3.5rem;
}
h2 {
font-size: 3rem;
}
h3 {
font-size: 2.5rem;
}
p,li {
font-size: 1.5rem;
}
mark, ::selection {
background: #000;
color: #f0f0f0;
opcaity: 1;
}
a {
color: #f00;
text-decoration: none;
}
.light-inner {
background: rgba(255, 0, 0, 0.1);
}
@supports (mix-blend-mode: screen) {
.light {
mix-blend-mode: screen;
}
.light-inner {
background: #ff0000;
}
}
.shadow-inner {
background: transparent;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}
.light, .shadow {
position: fixed;
top: 0;
left: 0;
transform: translate3d(var(--x, -150px), var(--y, -150px), 0);
pointer-events: none;
height: 0px;
width: 0px;
margin-top: 0px;
margin-left: 0px;
backface-visibility: hidden;
z-index: 1100;
display: none;
}
.light-inner, .shadow-inner {
opacity: 1;
border-radius: 50%;
height: 50px;
width: 50px;
margin-top: -25px;
margin-left: -25px;
transform: translateZ(0) scale(var(--scale, 1));
z-index: 1100;
transition: transform 0.5s ease-out, opacity 0.5s ease-out 0.5s;
transition: transform 0.5s cubic-bezier(0.07, 0.08, 0.16, 0.99), opacity 0.5s ease-out 0.5s;
transform-origin: 50% 50%;
backface-visibility: hidden;
}
br {
user-select: none;
}