floter.design/src/lib/styles/global.scss
2023-08-22 18:05:15 +02:00

142 lines
No EOL
2.6 KiB
SCSS

:root {
--spacing-outer: 5vw;
--spacing-nav: 5vw;
// --color-bg: #FFF;
// --color-text: #000;
--color-bg: #00117f;
--color-text: #FF9494;
--aspect-ratio-heroes: 1.5;
--font-size-p: clamp(20px, 1.6vw, 1.6vw);
@media screen and (min-width: 768px) {
--spacing-outer: 5vw;
--spacing-nav: 2.5vw;
}
}
body {
cursor: url('/cursor.svg'), auto;
}
a:hover, input:hover, button:hover {
cursor: url('/pointer.svg'), auto;
}
body {
font-family: stratos, sans-serif;
font-size: var(--font-size-p);
padding: 0;
margin: 0;
background-color: var(--color-bg);
color: var(--color-text);
min-height: 100svh;
}
body * {
box-sizing: border-box;
}
h1, h2, h3, h4, h5 {
font-size: 2em;
line-height: 1.2;
font-weight: 900;
font-style: italic;
letter-spacing: -0.02em;
}
h2 {
font-size: 1.5em;
}
ul, ol {
padding-left: 0;
}
ul {
list-style: '▪︎ ';
}
p, li {
font-weight: 400;
font-size: var(--font-size-p);
line-height: 1.3;
}
a {
color: inherit;
}
.button {
font-size: clamp(20px, 1.6vw, 1.6vw);
font-weight: 900;
font-style: italic;
display: inline-block;
margin: 1em 0.5em 1em 0;
padding: .75em;
text-decoration: none;
box-sizing: border-box;
color: var(--color-text);
line-height: 1.2;
position: relative;
z-index: 2;
transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
letter-spacing: -0.01em;
&:hover {
letter-spacing: 0.01em;
}
&:before {
content: '';
display: block;
position: absolute;
z-index: -1;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid var(--color-text);
border-radius: 0;
box-sizing: border-box;
transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
&:hover:before {
left: -10px;
width: calc(100% + 20px);
height: calc(100% - 10px);
bottom: 5px;
border-radius: .25em;
transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
&.button--primary {
color: var(--color-bg);
&:before {
background-color: var(--color-text);
}
}
&.button--xl {
font-size: clamp(24px, 3.2vw, 3.2vw);
padding: 0.5em;
letter-spacing: -0.02em;
// display: block;
margin: 0 auto;
max-width: 40vw;
text-align: center;
&:hover {
letter-spacing: 0;
}
}
}
.infobox {
// border-top: 2px solid var(--color-text);
// border-bottom: 2px solid var(--color-text);
padding: 1.5em 0;
font-size: var(--font-size-p);
& li {
border-bottom: 1px solid;
padding: 0.5em 0;
}
& > :first-child {
margin-top: 0;
}
& > :last-child {
margin-bottom: 0;
}
}
.content{
position: absolute;
top: 0;
width: 100%;
}