156 lines
2.5 KiB
CSS
156 lines
2.5 KiB
CSS
@font-face {
|
|
font-family: 'Ethnocentric';
|
|
src: url('/static/ethnocentric.otf') format('opentype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: swap; /* Shows fallback font until custom font loads */
|
|
}
|
|
|
|
* {
|
|
color: whitesmoke;
|
|
font-family: sans-serif;
|
|
text-align: center;
|
|
}
|
|
|
|
#navbar {
|
|
display: flex;
|
|
background: #000;
|
|
border: 1px solid whitesmoke;
|
|
border-radius: 32px;
|
|
padding: 10px 20px;
|
|
margin: 0 auto;
|
|
width: 95%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
position: fixed;
|
|
top: 10;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 9999;
|
|
}
|
|
|
|
@keyframes hoverShadow {
|
|
0% {
|
|
text-shadow: none;
|
|
box-shadow: none;
|
|
}
|
|
50% {
|
|
text-shadow:
|
|
-6px -3px cornflowerblue,
|
|
6px 3px orangered;
|
|
box-shadow:
|
|
-6px -3px cornflowerblue,
|
|
6px 3px orangered;
|
|
}
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
max-height: 400px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.postpreview {
|
|
border: 1px solid whitesmoke;
|
|
border-radius: 32px;
|
|
margin: auto;
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 1rem;
|
|
background-color: linear-gradient(150deg, #222, #040404);
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.postpreview:hover {
|
|
/* border: 10px solid whitesmoke;
|
|
background-color: yellow;
|
|
font-size: 18px; */
|
|
background-color: linear-gradient(330deg, #222, #040404);
|
|
animation: hoverShadow 0.4s linear ;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.hover-underline {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.hover-underline::after,
|
|
.hover-underline::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: linear-gradient(to right, cornflowerblue, orangered);
|
|
bottom: -5px;
|
|
left: 0;
|
|
|
|
.hover-underline::before {
|
|
top: -5px;
|
|
transform-origin: left;
|
|
}
|
|
transform: scaleX(0);
|
|
transform-origin: left;
|
|
transition: transform 0.2s linear;
|
|
}
|
|
|
|
.hover-underline:hover::after,
|
|
.hover-underline:hover::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.content {
|
|
width: 80%;
|
|
margin: auto;
|
|
}
|
|
|
|
.content p {
|
|
text-align: left;
|
|
}
|
|
|
|
.content li {
|
|
text-align: left;
|
|
}
|
|
|
|
nav ul {
|
|
list-style: none;
|
|
display: flex;
|
|
gap: 20px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
@keyframes nameShadow {
|
|
0% {
|
|
text-shadow: none;
|
|
}
|
|
90% {
|
|
text-shadow:
|
|
-6px -3px cornflowerblue,
|
|
6px 3px orangered;
|
|
}
|
|
}
|
|
|
|
#name {
|
|
font-size: 5rem;
|
|
margin: 20px;
|
|
padding: 0px;
|
|
animation: nameShadow 5s linear infinite;
|
|
letter-spacing: 2px;
|
|
color: whitesmoke;
|
|
font-family: "Ethnocentric", sans-serif;
|
|
transform: skewX(-20deg);
|
|
text-align: center;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background-image: linear-gradient(330deg, #222, #040404);
|
|
}
|
|
|