ayerh.art/style/scss/perspective.scss

152 lines
2.3 KiB
SCSS

@font-face {
font-family: "Open Sans Condensed";
font-weight: 300;
font-display: swap;
src: local("Open Sans Condensed");
}
@font-face {
font-family: "Alegreya Sans SC";
font-weight: 900;
font-weight: extra-bold;
font-display: swap;
src: local("Alegreya Sans Sc");
}
html {
background-color: #f4f7f6;
display: flex;
justify-content: center;
align-items: center;
main {
max-width: 40em;
padding: 1em;
}
section {
ul {
list-style-type: square;
}
p {
font-family: sans-serif;
line-height: 1.5em;
}
a {
color: #b43434;
text-decoration: none;
}
h2 {
display: flex;
margin: 1em 0;
font-family: "Open Sans Condensed", sans-serif;
text-transform: uppercase;
}
hr {
color: #b43434;
background-color: #b43434;
flex-basis: 100%;
align-self: center;
margin-left: 0.5em;
height: 1px;
border: 0;
}
}
code + p,
p + p {
margin: 1em 0;
}
&.perspective {
min-height: 100vh;
overflow: hidden;
body {
position: relative;
bottom: 5em;
}
div.name {
text-decoration: none;
color: #666666;
font-family: "Alegreya Sans SC";
filter: drop-shadow(1px 1px #333333);
text-transform: uppercase;
font-size: 5em;
font-weight: 900;
transform: skew(60deg, -30deg);
position: relative;
&:first-child {
right: 1em;
}
&:last-child {
left: 1em;
}
}
div.nav {
transform: skew(0deg, -30deg);
}
}
}
header {
h1 {
display: flex;
justify-content: space-evenly;
}
a.name {
text-decoration: none;
color: #666666;
font-family: "Alegreya Sans SC";
font-size: 2em;
filter: drop-shadow(1px 1px #333333);
}
.name {
&:first-child {
padding-right: 0.25em;
}
&:last-child {
padding-left: 0.25em;
}
}
}
nav {
font-family: "Open Sans Condensed", sans-serif;
font-size: 2em;
ul,
li {
margin: 0;
padding: 0;
display: inline;
}
ul {
background-color: #b43434;
display: flex;
justify-content: space-around;
}
a {
text-decoration: none;
color: #333333;
}
li {
padding: 0 5px;
&:hover {
a {
color: #f4f6f7;
}
}
}
}