erynwells.me/content/photos/photos.css

99 lines
1.7 KiB
CSS
Raw Normal View History

2022-08-27 09:17:42 -07:00
:root {
--photo-params-background: #ddd;
--photo-params-border-color: #aaa;
}
@media (prefers-color-scheme: dark) {
:root {
--photo-params-background: #444;
--photo-params-background: #777;
}
}
ul.grid {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 5px;
justify-content: flex-start;
margin: 0;
padding: 0;
}
.photos .grid li {
2022-08-27 09:17:42 -07:00
display: block;
height: 210px;
list-style: none;
width: 210px;
}
.grid li img {
border-radius: 0.5rem;
}
.photo-params {
background-color: var(--photo-params-background);
border-collapse: collapse;
border-radius: 6px;
margin: 1rem auto;
table-layout: fixed;
text-align: center;
width: 66%;
}
.photo-params thead td {
border-bottom: 1px solid var(--photo-params-border-color);
font-size: 80%;
font-weight: bold;
}
.photo-params tr.exposure-attributes td {
border-top: 1px solid var(--photo-params-border-color);
border-left: 1px solid var(--photo-params-border-color);
}
.photo-params tr.exposure-attributes td:first-child {
border-left: none;
}
.photo-params td {
font-size: 75%;
padding: 1rem;
}
.photo-params td:last-child {
text-align: end;
}
.photo-params td:first-child {
text-align: start;
}
.photo-params .make-model {
font-weight: bold;
}
.photo-params .size {
border-left: 0;
}
.photo-params .location {
border-right: 0;
}
.photo-params.debug thead {
font-size: 2rem;
font-weight: bold;
border-bottom: 2px solid var(--dark);
}
.photo-params.debug {
width: 100%;
}
.photo-params.debug td {
border: 1px solid var(--photo-params-border-color);
overflow: scroll;
vertical-align: top;
}