311 lines
5.0 KiB
CSS
311 lines
5.0 KiB
CSS
body {
|
|
background-color: #3e3e3e;
|
|
font-family: Rubik, sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
display: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
#header {
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
#menu {
|
|
position: fixed;
|
|
top: 0;
|
|
left: -300px;
|
|
width: 300px;
|
|
height: 100%;
|
|
background-color: #b9b9b9;
|
|
transition: left 0.3s ease-in-out;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hidden {
|
|
right: -300px;
|
|
}
|
|
|
|
h1.name {
|
|
padding-left: 25px;
|
|
}
|
|
|
|
h1 {
|
|
color: white;
|
|
}
|
|
|
|
h2 {
|
|
color: white;
|
|
}
|
|
|
|
h3 {
|
|
color: white;
|
|
}
|
|
|
|
h4 {
|
|
color: white;
|
|
}
|
|
|
|
h5 {
|
|
color: white;
|
|
}
|
|
|
|
p {
|
|
color: white;
|
|
}
|
|
|
|
#current_date {
|
|
color: white;
|
|
}
|
|
|
|
header {
|
|
background-color: #303030;
|
|
width: 100%;
|
|
height: 100px;
|
|
display:flex;
|
|
justify-content:left;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
nav.nav {
|
|
margin-top: 150px;
|
|
text-decoration: none;
|
|
list-style-type: none;
|
|
}
|
|
|
|
nav.nav2 {
|
|
margin-top: 80%;
|
|
list-style-type: none;
|
|
}
|
|
|
|
li.nav {
|
|
background-color: #939393;
|
|
transition: 0.3s;
|
|
margin: 20px;
|
|
text-align: center;
|
|
height: 70px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
}
|
|
|
|
li.nav:hover {
|
|
background-color: #b9b9b9;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
margin: auto;
|
|
color: black;
|
|
font-size: 30px;
|
|
}
|
|
|
|
li.nav2 {
|
|
background-color: #939393;
|
|
transition: 0.3s;
|
|
margin: 20px;
|
|
text-align: center;
|
|
height: 70px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
}
|
|
|
|
li.nav2:hover {
|
|
background-color: #b9b9b9;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.pencil {
|
|
display: block;
|
|
width: 10em;
|
|
height: 10em;
|
|
}
|
|
|
|
.pencil__body1,
|
|
.pencil__body2,
|
|
.pencil__body3,
|
|
.pencil__eraser,
|
|
.pencil__eraser-skew,
|
|
.pencil__point,
|
|
.pencil__rotate,
|
|
.pencil__stroke {
|
|
animation-duration: 3s;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
.pencil__body1,
|
|
.pencil__body2,
|
|
.pencil__body3 {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.pencil__body1 {
|
|
animation-name: pencilBody1;
|
|
}
|
|
|
|
.pencil__body2 {
|
|
animation-name: pencilBody2;
|
|
}
|
|
|
|
.pencil__body3 {
|
|
animation-name: pencilBody3;
|
|
}
|
|
|
|
.pencil__eraser {
|
|
animation-name: pencilEraser;
|
|
transform: rotate(-90deg) translate(49px,0);
|
|
}
|
|
|
|
.pencil__eraser-skew {
|
|
animation-name: pencilEraserSkew;
|
|
animation-timing-function: ease-in-out;
|
|
}
|
|
|
|
.pencil__point {
|
|
animation-name: pencilPoint;
|
|
transform: rotate(-90deg) translate(49px,-30px);
|
|
}
|
|
|
|
.pencil__rotate {
|
|
animation-name: pencilRotate;
|
|
}
|
|
|
|
.pencil__stroke {
|
|
animation-name: pencilStroke;
|
|
transform: translate(100px,100px) rotate(-113deg);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pencilBody1 {
|
|
from,
|
|
to {
|
|
stroke-dashoffset: 351.86;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
50% {
|
|
stroke-dashoffset: 150.8;
|
|
/* 3/8 of diameter */
|
|
transform: rotate(-225deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilBody2 {
|
|
from,
|
|
to {
|
|
stroke-dashoffset: 406.84;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
50% {
|
|
stroke-dashoffset: 174.36;
|
|
transform: rotate(-225deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilBody3 {
|
|
from,
|
|
to {
|
|
stroke-dashoffset: 296.88;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
50% {
|
|
stroke-dashoffset: 127.23;
|
|
transform: rotate(-225deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilEraser {
|
|
from,
|
|
to {
|
|
transform: rotate(-45deg) translate(49px,0);
|
|
}
|
|
|
|
50% {
|
|
transform: rotate(0deg) translate(49px,0);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilEraserSkew {
|
|
from,
|
|
32.5%,
|
|
67.5%,
|
|
to {
|
|
transform: skewX(0);
|
|
}
|
|
|
|
35%,
|
|
65% {
|
|
transform: skewX(-4deg);
|
|
}
|
|
|
|
37.5%,
|
|
62.5% {
|
|
transform: skewX(8deg);
|
|
}
|
|
|
|
40%,
|
|
45%,
|
|
50%,
|
|
55%,
|
|
60% {
|
|
transform: skewX(-15deg);
|
|
}
|
|
|
|
42.5%,
|
|
47.5%,
|
|
52.5%,
|
|
57.5% {
|
|
transform: skewX(15deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilPoint {
|
|
from,
|
|
to {
|
|
transform: rotate(-90deg) translate(49px,-30px);
|
|
}
|
|
|
|
50% {
|
|
transform: rotate(-225deg) translate(49px,-30px);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilRotate {
|
|
from {
|
|
transform: translate(100px,100px) rotate(0);
|
|
}
|
|
|
|
to {
|
|
transform: translate(100px,100px) rotate(720deg);
|
|
}
|
|
}
|
|
|
|
@keyframes pencilStroke {
|
|
from {
|
|
stroke-dashoffset: 439.82;
|
|
transform: translate(100px,100px) rotate(-113deg);
|
|
}
|
|
|
|
50% {
|
|
stroke-dashoffset: 164.93;
|
|
transform: translate(100px,100px) rotate(-113deg);
|
|
}
|
|
|
|
75%,
|
|
to {
|
|
stroke-dashoffset: 439.82;
|
|
transform: translate(100px,100px) rotate(112deg);
|
|
}
|
|
} |