This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
arimelody.me-static/public/style/main.css

432 lines
6.2 KiB
CSS
Raw Normal View History

2023-10-02 05:30:54 +00:00
:root {
--primary: #b7fd49;
--secondary: #f8e05b;
--tertiary: #f788fe;
2023-10-14 22:26:26 +00:00
--links: #5eb2ff;
2023-10-02 05:30:54 +00:00
}
2023-11-27 23:29:21 +00:00
.col-primary {
color: var(--primary);
}
.col-secondary {
color: var(--secondary);
}
.col-tertiary {
color: var(--tertiary);
}
2023-10-02 05:30:54 +00:00
body {
2023-10-14 22:26:26 +00:00
margin: 0;
2023-10-02 05:30:54 +00:00
padding: 0;
background: #080808;
2023-10-14 22:26:26 +00:00
color: #eee;
font-family: monospace;
font-size: 18px;
2023-11-27 23:29:21 +00:00
text-shadow: 0 0 3em;
2023-10-14 22:26:26 +00:00
scroll-behavior: smooth;
2023-10-02 05:30:54 +00:00
}
header {
2023-11-28 02:07:29 +00:00
position: fixed;
top: 0;
left: 0;
width: 100vw;
2023-10-02 05:30:54 +00:00
border-bottom: 1px solid #888;
2023-11-28 02:07:29 +00:00
background-color: #080808;
2023-10-02 05:30:54 +00:00
}
#header {
width: min(calc(100% - 4rem), 720px);
height: 3em;
margin: auto;
2023-11-28 02:07:29 +00:00
padding: 0 1em;
2023-10-02 05:30:54 +00:00
display: flex;
flex-direction: row;
2023-11-28 02:07:29 +00:00
gap: .8em;
align-items: center;
2023-10-02 05:30:54 +00:00
}
img#header-icon {
width: 2em;
height: 2em;
margin: .5em;
display: block;
}
#header-text {
width: 11em;
2023-11-28 02:07:29 +00:00
margin-left: -0.5rem;
2023-10-02 05:30:54 +00:00
display: flex;
flex-direction: column;
justify-content: center;
2023-11-28 02:07:29 +00:00
flex-grow: 1;
2023-10-02 05:30:54 +00:00
}
#header-text h1 {
margin: 0;
font-size: 1em;
}
#header-text h2 {
height: 1.2em;
line-height: 1.2em;
margin: 0;
font-size: .8em;
color: #bbb;
}
2023-11-28 02:07:29 +00:00
a#header-links-toggle {
width: 1.8rem;
display: none;
}
header ul#header-links {
2023-10-02 05:30:54 +00:00
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
gap: .5em;
align-items: center;
}
header ul li {
list-style: none;
}
2023-10-14 22:26:26 +00:00
header ul li a,
header ul li span {
2023-10-02 05:30:54 +00:00
padding: .2em .5em;
2023-10-14 22:26:26 +00:00
border: 1px solid var(--links);
color: var(--links);
2023-10-02 05:30:54 +00:00
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
2023-10-02 05:30:54 +00:00
opacity: 0;
}
2023-10-14 22:26:26 +00:00
header ul li span {
2023-10-02 05:30:54 +00:00
color: #aaa;
border-color: #aaa;
cursor: default;
2023-11-21 13:55:58 +00:00
text-decoration: none;
2023-10-02 05:30:54 +00:00
}
2023-10-14 22:26:26 +00:00
header ul li a:hover {
2023-10-02 05:30:54 +00:00
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
2023-10-02 05:30:54 +00:00
text-decoration: none;
}
2023-11-21 13:55:58 +00:00
#toggle-crt a {
color: var(--primary);
border-color: var(--primary);
opacity: 1;
}
2023-11-21 13:55:58 +00:00
#toggle-crt a:hover {
color: #111;
background-color: var(--primary) !important;
}
2023-11-21 13:55:58 +00:00
#toggle-crt.disabled a {
opacity: .5 !important;
}
2023-10-02 05:30:54 +00:00
main {
width: min(calc(100% - 4rem), 720px);
min-height: calc(100vh - 10.3rem);
2023-11-28 02:07:29 +00:00
margin: 5rem auto 2rem auto;
2023-10-02 05:30:54 +00:00
}
main h1 {
line-height: 3rem;
color: var(--primary);
}
main h2 {
color: var(--secondary);
}
main h3 {
color: var(--tertiary);
}
a {
2023-10-14 22:26:26 +00:00
color: var(--links);
2023-10-02 05:30:54 +00:00
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
small {
font-size: 1em;
color: #aaa;
}
span.newchar {
animation: newchar 0.25s;
}
@keyframes newchar {
from {
background: #fff8;
}
}
span.hide {
display: none;
}
h1:hover span.hide {
display: initial;
opacity: 0.1;
}
div#me_irl {
width: fit-content;
height: fit-content;
border: 2px solid white;
}
div#me_irl img {
2023-11-08 20:39:10 +00:00
display: block;
2023-10-02 05:30:54 +00:00
}
div#me_irl::before {
content: "";
position: absolute;
width: 104px;
height: 104px;
transform: translate(2px, 2px);
background-image: linear-gradient(to top right,
var(--primary),
var(--secondary));
z-index: -1;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
2023-10-14 22:26:26 +00:00
small,
blockquote {
2023-10-02 05:30:54 +00:00
transition: background-color 0.1s;
}
2023-11-27 23:29:21 +00:00
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
color: inherit;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
text-decoration: none;
}
2023-10-02 05:30:54 +00:00
main h1:hover,
main h2:hover,
main h3:hover,
main h4:hover,
main h5:hover,
main h6:hover,
main p:hover,
2023-10-14 22:26:26 +00:00
main small:hover,
main blockquote:hover {
2023-11-27 23:29:21 +00:00
background-color: #fff1;
2023-10-02 05:30:54 +00:00
}
2023-10-14 22:26:26 +00:00
blockquote {
margin: 1rem 0;
padding: 0 2.5rem;
}
2023-10-02 05:30:54 +00:00
hr {
text-align: center;
line-height: 0px;
border-width: 1px 0 0 0;
border-color: #888f;
margin: 1.5em 0;
overflow: visible;
}
ul.links {
display: flex;
gap: 1em .5em;
flex-wrap: wrap;
}
ul.links li {
list-style: none;
}
ul.links li a {
padding: .2em .5em;
2023-10-14 22:26:26 +00:00
border: 1px solid var(--links);
color: var(--links);
2023-10-02 05:30:54 +00:00
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
2023-10-02 05:30:54 +00:00
opacity: 0;
}
ul.links li a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
2023-10-02 05:30:54 +00:00
text-decoration: none;
2023-10-14 22:26:26 +00:00
box-shadow: 0 0 1em var(--links);
2023-10-02 05:30:54 +00:00
}
@keyframes list-item-fadein {
from {
opacity: 1;
background: #fff8;
}
to {
opacity: 1;
background: transparent;
2023-10-02 05:30:54 +00:00
}
}
2023-11-21 14:17:41 +00:00
div#web-buttons {
margin: 2rem 0;
}
#web-buttons a {
text-decoration: none;
}
#web-buttons img {
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
2023-11-21 19:20:21 +00:00
#web-buttons img:hover {
margin: -1px;
border: 1px solid #eee;
2023-12-01 00:35:53 +00:00
transform: translate(-2px, -2px);
box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
2023-11-21 19:20:21 +00:00
}
2023-10-02 05:30:54 +00:00
footer {
border-top: 1px solid #888;
}
#footer {
width: min(calc(100% - 4rem), 720px);
margin: auto;
padding: 2rem 0;
2023-10-02 05:30:54 +00:00
color: #aaa;
}
@keyframes overlay-flicker {
from {
opacity: .5;
}
to {
opacity: .6;
}
}
@keyframes overlay-scroll {
from {
background-position-y: 0;
}
to {
background-position-y: .2em;
}
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgb(0, 0, 0) 40%, rgb(0, 0, 0) 60%, rgba(0,0,0,0) 85%);
background-size: 100vw .2em;
background-repeat: repeat;
opacity: .5;
pointer-events: none;
/* animation: linear .05s infinite alternate overlay-flicker; */
2023-10-02 05:30:54 +00:00
mix-blend-mode: overlay;
}
2023-11-28 02:07:29 +00:00
@media screen and (max-width: 780px) {
body {
font-size: 14px;
}
2023-11-28 02:07:29 +00:00
div#header {
width: calc(100vw - 2rem);
margin: 0;
}
div#header-text {
flex-grow: 1;
}
a#header-links-toggle {
display: flex;
}
header ul#header-links {
position: fixed;
left: 0;
top: 2.7rem;
width: calc(100vw - 2rem);
padding: 1rem;
flex-direction: column;
gap: 1rem;
border-bottom: 1px solid #888;
background: #080808;
2023-10-02 05:30:54 +00:00
display: none;
}
2023-11-28 02:07:29 +00:00
header ul#header-links.open {
display: flex;
}
ul#header-links li {
width: 100%;
}
ul#header-links li a,
ul#header-links li span {
margin: 0;
display: block;
font-size: 1rem;
text-align: center;
}
main {
margin-top: 4rem;
}
2023-10-02 05:30:54 +00:00
}