65 lines
915 B
SCSS
65 lines
915 B
SCSS
.gallery {
|
|
h1 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.subtitle {
|
|
font-weight: bold;
|
|
font-size: 1.2em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
border-radius: .5em;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
|
}
|
|
}
|
|
|
|
.gallery-list {
|
|
a {
|
|
display: block;
|
|
border-radius: 1rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
div {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: .5em;
|
|
color: $col-fg-0-dark;
|
|
|
|
background: rgba(0 ,0, 0, .5);
|
|
transition: background .2s ease-out;
|
|
|
|
&:hover {
|
|
background: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
.title {
|
|
font-weight: bold;
|
|
font-size: 1.5em;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
|
|
.title, .year {
|
|
filter: drop-shadow(0 0 3px #000);
|
|
}
|
|
}
|
|
}
|