Move photos styles to styles/photos/ files
This commit is contained in:
parent
2331e37e62
commit
162e17339c
3 changed files with 102 additions and 74 deletions
87
assets/styles/photos/001_photos.css
Normal file
87
assets/styles/photos/001_photos.css
Normal file
|
@ -0,0 +1,87 @@
|
|||
:root {
|
||||
--date-item-background-color: rgb(var(--lt-gray));
|
||||
|
||||
--photo-params-background-color: rgb(var(--lt-gray));
|
||||
--photo-params-container-background-color: rgb(var(--super-lt-gray));
|
||||
--photo-params-color: rgb(var(--sub-dk-gray));
|
||||
--photo-params-border-color: rgb(var(--super-lt-gray));
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--date-item-background-color: rgb(var(--dk-gray));
|
||||
|
||||
--photo-params-background-color: rgb(var(--dk-gray));
|
||||
--photo-params-container-background-color: rgb(var(--sub-dk-gray));
|
||||
--photo-params-color: rgb(var(--super-lt-gray));
|
||||
--photo-params-border-color: rgb(var(--sub-dk-gray));
|
||||
}
|
||||
}
|
||||
|
||||
.photos.list {
|
||||
box-sizing: border-box;
|
||||
max-width: none;
|
||||
padding: 0 var(--body-item-spacing);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.photos.list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.photos.list > * {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.photos.list > a {
|
||||
display: block;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.photos.list > a > img {
|
||||
border-radius: 3px;
|
||||
image-orientation: from-image;
|
||||
}
|
||||
|
||||
.photos.list > div {
|
||||
background-color: var(--date-item-background-color);
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.photos.list > div > h6 {
|
||||
display: block;
|
||||
font-size: 5rem;
|
||||
margin: 0 auto;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.photos.list > div > h6 > span {
|
||||
text-align: end;
|
||||
width: min-content;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding-inline-end: 20px;
|
||||
}
|
||||
|
||||
.photos.list > div > h6 > span::after {
|
||||
top: 6px;
|
||||
right: 0px;
|
||||
position: absolute;
|
||||
display: block;
|
||||
content: "⏵︎";
|
||||
font-size: 80%;
|
||||
}
|
||||
@media (max-width: calc(24px + 400px + 4px)) {
|
||||
.photos.list > div > h6 > span {
|
||||
width: max-content;
|
||||
padding-block: calc(0.25 * var(--body-item-spacing));
|
||||
}
|
||||
.photos.list > div > h6 > span::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
34
assets/styles/photos/050_page.css
Normal file
34
assets/styles/photos/050_page.css
Normal file
|
@ -0,0 +1,34 @@
|
|||
@layer section {
|
||||
.photos.page {
|
||||
gap: var(--body-item-spacing) 0;
|
||||
}
|
||||
|
||||
.photos.page > article > :not(:last-child) {
|
||||
margin-block-end: var(--body-item-spacing);
|
||||
}
|
||||
|
||||
.photos.page > article > h1 {
|
||||
font-size: var(--h3-size);
|
||||
}
|
||||
|
||||
.photos.page > nav {
|
||||
margin-block-end: var(--body-item-spacing);
|
||||
}
|
||||
|
||||
.photos.page > :not(figure) {
|
||||
grid-column: content-start / content-end;
|
||||
}
|
||||
|
||||
.photos.page > figure {
|
||||
grid-column: wide-content-start / wide-content-end;
|
||||
}
|
||||
@media (max-width: 960px) {
|
||||
figure, img {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.photos.page :is(figure, figure > img) {
|
||||
max-width: none;
|
||||
}
|
||||
}
|
68
assets/styles/photos/050_params.css
Normal file
68
assets/styles/photos/050_params.css
Normal file
|
@ -0,0 +1,68 @@
|
|||
.photo-params {
|
||||
padding-inline: calc(var(--body-item-spacing) / 2);
|
||||
}
|
||||
|
||||
.photo-params > .container {
|
||||
display: block;
|
||||
background-color: var(--photo-params-container-background-color);
|
||||
border-radius: 10px;
|
||||
margin: auto;
|
||||
padding: calc(var(--body-item-spacing) / 2);
|
||||
max-width: calc(0.66 * var(--content-width));
|
||||
}
|
||||
|
||||
.photo-params > .container > table {
|
||||
background-color: var(--photo-params-background-color);
|
||||
color: var(--photo-params-color);
|
||||
border-collapse: collapse;
|
||||
border-radius: 6px;
|
||||
table-layout: fixed;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.photo-params thead td {
|
||||
border-bottom: 1px solid var(--photo-params-border-color);
|
||||
font-size: 80%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.photo-params tbody tr > td {
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--photo-params-border-color);
|
||||
}
|
||||
|
||||
.photo-params tr.exposure-attributes > td {
|
||||
border: none;
|
||||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue