arimelody-web/public/style/index.css

341 lines
6.3 KiB
CSS
Raw Normal View History

main {
2026-07-06 19:09:56 +01:00
width: min(calc(100% - 4rem), 900px);
min-height: calc(100vh - 10.3rem);
margin: 0 auto 2rem auto;
}
2026-07-06 19:09:56 +01:00
.fancyheader-inner {
display: flex;
justify-content: space-between;
2026-07-06 19:09:56 +01:00
.right {
margin-top: auto;
}
h1 .icon {
width: .5em;
height: .5em;
transform: translateY(-.3em);
animation: wiggle-loop 2s cubic-bezier(.4,0,.6,1) alternate infinite;
}
}
2026-07-06 19:09:56 +01:00
@media (prefers-color-scheme: dark) {
.fancyheader-inner h1 .icon {
filter: invert();
}
}
2026-07-06 19:09:56 +01:00
@keyframes wiggle-loop {
from { transform: translateY(-.3em) rotate(0deg); }
to { transform: translateY(-.3em) rotate(10deg); }
}
2026-07-06 19:09:56 +01:00
h2 {
color: var(--secondary);
}
2026-07-06 19:09:56 +01:00
h3 {
color: var(--tertiary);
}
2026-07-06 19:09:56 +01:00
h1, h2, h3, h4, h5, h6, p, small, blockquote {
transition: background-color 0.1s;
2026-07-06 19:09:56 +01:00
&:hover {
background-color: #fff1;
}
}
2026-07-06 19:09:56 +01:00
h1, h2, h3, h4, h5, h6 {
a {
color: inherit;
2026-07-06 19:09:56 +01:00
&:hover {
text-decoration: none;
}
}
}
blockquote {
margin: 1rem 0;
padding: 0 2.5rem;
}
hr {
text-align: center;
line-height: 0px;
border-width: 1px 0 0 0;
border-color: #888;
margin: 1.5em 0;
overflow: visible;
}
ul.platform-links {
display: flex;
2026-07-06 19:09:56 +01:00
margin: 0 0 0 auto;
padding: 0;
2026-07-06 19:09:56 +01:00
li {
list-style: none;
a {
padding: .5em;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
transition-property: background-color, box-shadow;
transition-duration: .2s;
animation:
social-button-bouncein .5s forwards cubic-bezier(0, 1.5, .5, 1),
social-button-fadein .2s forwards ease-out;
opacity: 0;
img {
height: 1em;
width: 1em;
}
&:hover {
background-color: var(--on-background) !important;
box-shadow: 0 0 1em var(--on-background);
text-decoration: none;
}
}
}
}
@keyframes social-button-bouncein {
from { transform: translateY(1em); }
to { transform: none; }
}
@keyframes social-button-fadein {
from { opacity: 0; }
to { opacity: 1; }
}
ul#projects {
padding: 0;
list-style: none;
}
li.project-item {
padding: .5em;
border: 1px solid var(--links);
margin: 1em 0;
display: flex;
flex-direction: row;
gap: .5em;
border-radius: 2px;
transition-property: color, border-color, background-color, box-shadow;
transition-duration: .2s;
cursor: pointer;
}
li.project-item a {
transition: color .2s linear;
}
li.project-item:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
box-shadow: 0 0 1em var(--links);
}
li.project-item:hover a {
color: #eee;
}
li.project-item .project-info {
display: flex;
flex-direction: column;
justify-content: center;
}
li.project-item img.project-icon {
width: 2.5em;
height: 2.5em;
object-fit: cover;
border-radius: 2px;
}
li.project-item span.project-icon {
font-size: 2em;
display: block;
width: 45px;
height: 45px;
text-align: center;
/* background: #0004; */
/* border: 1px solid var(--on-background); */
border-radius: 2px;
}
li.project-item a {
text-decoration: none;
}
li.project-item p {
margin: 0;
}
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;
}
#web-buttons img:hover {
margin: -1px;
border: 1px solid #eee;
transform: translate(-2px, -2px);
box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
}
#live-banner {
margin: 1em 0 2em 0;
padding: 1em;
border-radius: 4px;
border: 1px solid var(--primary);
box-shadow: 0 0 8px var(--primary);
}
#live-banner p {
margin: 0;
}
.live-highlight {
color: var(--primary);
}
.live-preview {
display: flex;
flex-direction: row;
2025-07-05 18:53:57 +01:00
justify-content: start;
gap: 1em;
}
.live-preview div:first-of-type {
2025-06-17 02:01:06 +01:00
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
gap: .3em;
}
.live-thumbnail {
border-radius: 4px;
}
.live-button {
margin: .2em;
padding: .4em .5em;
display: inline-block;
color: var(--primary);
border: 1px solid var(--primary);
border-radius: 4px;
transition: color .1s linear, background-color .1s linear, box-shadow .1s linear;
}
.live-button:hover {
color: var(--background);
background-color: var(--primary);
box-shadow: 0 0 8px var(--primary);
text-decoration: none;
}
.live-info {
display: flex;
flex-direction: column;
gap: .3em;
overflow-x: hidden;
}
2025-06-17 02:01:06 +01:00
#live-banner h2 {
margin: 0;
color: var(--on-background);
font-family: 'Inter', sans-serif;
font-weight: 800;
font-style: italic;
}
.live-pinger {
width: .5em;
height: .5em;
margin: .1em .2em;
display: inline-block;
border-radius: 100%;
background-color: var(--primary);
box-shadow: 0 0 4px var(--primary);
animation: live-pinger-pulse 1s infinite alternate ease-in-out;
}
@keyframes live-pinger-pulse {
from {
opacity: .8;
transform: scale(1.0);
}
to {
opacity: 1;
transform: scale(1.1);
}
}
.live-game {
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
}
.live-game .live-game-prefix {
opacity: .8;
}
.live-title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.live-viewers {
opacity: .5;
}
2026-04-27 09:26:40 +01:00
.webring {
display: flex;
flex-direction: row;
}
.webring a {
border: 1px solid var(--links);
height: 1.5em;
padding: 0 0.5em;
text-align: center;
line-height: 1.7em;
transition: color .1s linear, background-color .1s linear, box-shadow .1s linear;
}
.webring a:nth-child(1) {
border-radius: 2px 0 0 2px;
border-right: none;
}
.webring a:nth-child(3) {
border-radius: 0 2px 2px 0;
border-left: none;
}
.webring a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
box-shadow: 0 0 1em var(--links);
}