vampysite/source/css/index.css

189 lines
2.5 KiB
CSS
Raw Permalink Normal View History

2022-03-04 15:29:02 +00:00
.centered {
2022-07-14 10:12:30 +00:00
position: absolute;
display: flex;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
2022-03-04 15:29:02 +00:00
}
.text {
2022-07-14 10:12:30 +00:00
margin-top: 5em;
width: 400px;
2022-03-04 15:29:02 +00:00
}
h1 {
2022-07-14 10:12:30 +00:00
font-family: "Cinzel Decorative";
color: var(--accent);
width: min-content;
font-size: 55px;
font-weight: normal;
line-height: 1;
margin-bottom: 0;
2022-03-04 15:29:02 +00:00
}
h1 span {
2022-07-14 10:12:30 +00:00
font-size: 75px;
2022-03-04 15:29:02 +00:00
}
2022-07-14 10:12:30 +00:00
h3,
p {
font-family: "Crimson";
font-weight: normal;
2022-03-04 15:29:02 +00:00
}
h3 {
2022-07-14 10:12:30 +00:00
color: var(--accent-dark);
font-size: 30px;
margin-top: 0.2em;
2022-03-04 15:29:02 +00:00
}
p {
2022-07-14 10:12:30 +00:00
margin-top: 2em;
font-size: 25px;
line-height: 1.1;
color: var(--text);
2022-03-04 15:29:02 +00:00
}
abbr {
2022-07-14 10:12:30 +00:00
text-decoration: none;
font-style: italic;
animation: blink 5s linear infinite;
2022-03-04 15:29:02 +00:00
}
picture img {
2022-07-14 10:12:30 +00:00
height: 700px;
2022-03-04 15:29:02 +00:00
}
/* Links menu */
details {
2022-07-14 10:12:30 +00:00
margin-top: 1.5em;
width: max-content;
2022-03-04 15:29:02 +00:00
}
details a {
2022-07-14 10:12:30 +00:00
opacity: 0;
margin: 0 8px;
2022-03-04 15:29:02 +00:00
}
details * {
2022-07-14 10:12:30 +00:00
display: inline-block;
2022-03-04 15:29:02 +00:00
}
details[open] a {
2022-07-14 10:12:30 +00:00
opacity: 100;
transition: opacity 0.2s ease-in-out;
2022-03-04 15:29:02 +00:00
}
2022-07-14 10:12:30 +00:00
details,
details * {
font-family: "Crimson";
font-weight: normal;
font-size: 26px;
text-decoration: none;
2022-03-04 15:29:02 +00:00
2022-07-14 10:12:30 +00:00
color: var(--url);
2022-03-04 15:29:02 +00:00
2022-07-14 10:12:30 +00:00
height: min-content;
cursor: pointer;
user-select: none;
2022-03-04 15:29:02 +00:00
}
details summary::before {
2022-07-14 10:12:30 +00:00
content: "⦿ ";
filter: drop-shadow(0 0 5px);
2022-03-04 15:29:02 +00:00
}
2023-07-14 13:16:41 +00:00
details[open]>summary {
2022-07-14 10:12:30 +00:00
visibility: hidden;
font-size: 0;
2022-03-04 15:29:02 +00:00
}
2023-07-14 13:16:41 +00:00
details[open]>summary::after {
2022-07-14 10:12:30 +00:00
content: "←";
visibility: visible;
font-size: 26px;
2022-03-04 15:29:02 +00:00
2022-07-14 10:12:30 +00:00
position: relative;
top: -2px;
2022-03-04 15:29:02 +00:00
}
details *:hover {
2022-07-14 10:12:30 +00:00
animation: glow 0.2s ease-in-out both;
2022-03-04 15:29:02 +00:00
}
/* animations */
@keyframes glow {
2022-07-14 10:12:30 +00:00
from {
font-weight: normal;
}
2023-07-14 13:16:41 +00:00
2022-07-14 10:12:30 +00:00
to {
filter: drop-shadow(0.5px 0.5px 2px);
}
2022-03-04 15:29:02 +00:00
}
@keyframes blink {
2022-07-14 10:12:30 +00:00
80% {
filter: drop-shadow(0 0 1px) opacity(80%);
}
2022-03-04 15:29:02 +00:00
}
/* mobile screens */
@media (max-width: 880px) {
2022-07-14 10:12:30 +00:00
.centered {
display: block;
top: -20px;
-webkit-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.text {
margin-top: unset;
position: absolute;
left: 50%;
-webkit-transform: translate(-50%, -60%);
transform: translate(-50%, -60%);
width: 320px;
padding-bottom: 4em;
}
2023-07-14 13:16:41 +00:00
2022-07-14 10:12:30 +00:00
h1 {
filter: drop-shadow(5px 5px 5px var(--bg));
}
2022-03-04 15:29:02 +00:00
}
@media (max-width: 500px) {
2022-07-14 10:12:30 +00:00
picture img {
max-width: 100vw;
height: auto;
}
2022-03-04 15:29:02 +00:00
}
@media (max-width: 360px) {
2022-07-14 10:12:30 +00:00
.text {
position: unset;
left: unset;
-webkit-transform: translate(0, -60%);
transform: translate(0, -60%);
width: fit-content;
margin-left: 2em;
}
h1 {
font-size: 40px;
}
h1 span {
font-size: 60px;
}
details {
width: fit-content;
}
2023-07-14 13:16:41 +00:00
}