album/photos.scss
2017-02-12 16:03:36 +01:00

151 lines
2.0 KiB
SCSS

$border: 1px solid #333;
html {
height: 100%;
&, body {
margin: 0;
padding: 0;
}
}
body {
background: #eee;
line-height: 1.6;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100%;
}
p {
margin: 0;
}
p + p {
margin-top: 1ex;
}
header {
background-color: #eee;
box-shadow: 0 0 1ex #444;
position: sticky;
top: 0;
}
footer {
background: #999;
color: white;
:link, :visited {
color: #edf;
}
p { margin: 0; }
}
header, footer {
display: flex;
& > span {
flex-grow: 1;
}
& > :last-child {
flex-grow: 5;
padding-left: 1em;
text-align: right;
}
}
main {
flex-grow: 1;
margin-bottom: 1em;
}
header, footer, main {
flex-wrap: wrap;
padding: 0 1ex;
}
.item {
background: #ccc;
border: $border;
img {
box-shadow: 0 .2em 1em -.2em #000;
vertical-align: middle;
}
}
div.group {
display: flex;
flex-flow: row-reverse wrap;
.item {
display: flex;
flex-basis: 210px;
flex-flow: column;
flex-grow: 1;
justify-content: space-between;
margin: .2em;
padding: 1ex;
text-align: center;
h2, p {
margin: .2em;
}
}
p.item {
justify-content: space-around;
}
}
div.details {
display: flex;
flex-flow: row wrap;
.item, .meta {
padding: 1em;
}
.item {
align-self: flex-start;
flex-grow: 4;
flex-basis: 30em;
text-align: center;
img {
max-width: 100%;
}
&.zoom {
flex-basis: auto;
}
}
.meta {
flex-grow: 1;
flex-basis: 20em;
padding-top: 0;
}
}
ul.alltags, ul.allpeople, ul.allplaces {
-moz-column-width: 13em;
column-width: 13em;
}
#map {
border: $border;
height: 8em;
margin: 1ex auto;
}
form {
border: $border;
margin: auto;
padding: 1em;
width: -moz-fit-content;
width: fit-content;
p {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
label {
padding: .2em 1em .2em 0;
}
}