photos/theme/static/css/media.css

150 lines
2.0 KiB
CSS

html, body {
height: 100%;
}
body {
display: flex;
flex-flow: column;
}
main {
flex: 1 0 auto;
display: flex;
flex-flow: column;
align-items: center;
}
.img-container {
flex: 1 0 auto;
position: relative;
width: 100%;
margin-top: 1rem;
display: flex;
align-items: center;
justify-content: center;
}
.img-links {
justify-content: start;
margin: 0 0 .5em -1.5rem;
position: relative;
z-index: 1;
}
.img-links a {
margin-left: 1.5rem;
text-decoration: none;
color: inherit;
}
.img-links a:hover {
color: var(--linkColor);
}
.img-links span {
margin-left: .5rem;
text-decoration: underline;
}
.img-container img {
max-width: 100%;
max-height: calc(100vh - 14rem);
display: block;
margin: auto;
}
.meta {
display: flex;
flex-wrap: wrap;
align-items: start;
width: calc(100% + 1.5rem);
margin: 0.5rem 0 0 -1.5rem;
position: relative;
z-index: 1;
}
.meta > div {
margin-left: 1.5rem;
}
.meta dd {
margin: 0 0 0 .5rem;
}
.meta > div {
flex-shrink: 0;
}
.meta > div:nth-of-type(2),
.img-links > li:first-of-type {
flex: 1 0 auto;
}
.meta dd, .meta dt {
display: inline-block;
}
.meta li:not(:first-of-type) {
margin-left: 1rem;
}
.overlay-nav, .media-nav a {
color: inherit;
}
.overlay-nav {
position: fixed;
height: 100%;
width: 33%;
display: flex;
align-items: center;
text-decoration: none;
padding: 0 0.5rem;
}
.overlay-nav.previous {
left: 0;
}
.overlay-nav.next {
right: 0;
justify-content: flex-end;
}
.overlay-nav i {
position: relative;
transition: all .5s ease-out;
}
.overlay-nav.previous i {
left: -4em;
}
.overlay-nav.next i {
right: -4em;
}
.overlay-nav.previous:hover i {
left: 0;
}
.overlay-nav.next:hover i {
right: 0;
}
@media (max-width: 680px) {
main {
width: 100%;
}
.meta, .img-links {
margin-left: -1rem;
width: calc(100% + .5rem);
justify-content: space-between;
}
.meta > div:nth-of-type(2),
.img-links > li:first-of-type {
flex-grow: 0;
}
}