photos/theme/static/css/main.css

151 lines
2.1 KiB
CSS

@font-face {
font-family: 'amikoregular';
src: url('../fonts/Amiko-Regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
:root {
--textColor: #2a2a2a;
--linkColor: #050094;
--lightColor: #a8a8a8;
--backgroundColor: inherit;
}
body[theme=dark] {
--textColor: #eaeaea;
--linkColor: #70B7FF;
--lightColor: #a8a8a8;
--backgroundColor: #2a2a2a;
}
@media (prefers-color-scheme: dark) {
body:not([theme]), body[theme=dark] {
--textColor: #eaeaea;
--linkColor: #70B7FF;
--lightColor: #a8a8a8;
--backgroundColor: #2a2a2a;
}
body::after {
content: 'dark';
display: none;
}
}
html, body {
margin: 0;
}
body {
font-family: amikoregular, sans;
color: var(--textColor);
background-color: var(--backgroundColor);
}
a {
color: var(--linkColor);
}
header {
padding: 1em;
border-bottom: var(--textColor) solid 2px;
display: flex;
align-items: baseline;
}
header a {
color: inherit;
text-decoration: none;
}
header h1 {
margin: 0;
font-size: 1.25em;
}
header h2 {
font-size: 1em;
color: var(--lightColor);
margin: 0;
margin-left: .5em;
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
header h2 a {
text-decoration: underline dotted;
}
footer {
z-index: 1;
text-align: center;
font-size: .8rem;
}
footer p {
margin: .5rem 0;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline-block;
margin: 0 .5em;
}
main {
width: 75%;
margin: auto;
}
main ul {
display: flex;
justify-content: space-evenly;
list-style: none;
padding: 0;
margin: 0;
flex-wrap: wrap;
}
main ul .thumbnail {
display: flex;
justify-content: center;
align-items: center;
margin: 1em;
width: 250px;
height: 250px;
text-align: center;
}
main ul .thumbnail img {
max-width: 250px;
max-height: 250px;
}
main ul .thumbnail a {
color: inherit;
text-decoration: none;
}
img:target {
animation-name: highlight;
animation-duration: 3s;
}
@keyframes highlight {
from {
border: #ffffa0 solid 5px
}
to {
border: #ffffa000 solid 5px;
}
}