75 lines
1.1 KiB
CSS
Raw Normal View History

2016-02-21 22:09:59 +01:00
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
.parallax-container {
2016-02-22 14:11:36 +01:00
height: 800px;
2016-02-21 22:09:59 +01:00
min-height: 250px;
margin-bottom: 20px;
2016-02-22 14:11:36 +01:00
background-color: rgba(0, 0, 0, .4);
2016-02-21 22:09:59 +01:00
}
.parallax-container h1 {
font-weight: 600;
font-size: 5.5vw;
text-transform: uppercase;
}
.parallax-container h2 {
font-weight: normal;
font-style: italic;
font-size: 2.2vw;
}
.parallax-tittle {
text-align: center;
width: 100%;
}
2016-02-26 19:52:14 +01:00
.caption {
position: relative;
overflow: hidden;
}
.caption__media {
display: block;
min-width: 100%;
max-width: 100%;
height: auto;
}
.caption__overlay {
background-color: rgba(0, 0, 0, .4);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
color: white;
transform: translateY(101%);
transition: transform .35s ease-out;
}
.caption:hover .caption__overlay {
transform: translateY(0);
}
.bordered-picture .caption__overlay {
margin-left: 11.5%;
margin-right: 11.5%;
}
.caption .card-panel {
margin: 0;
padding: 1px;
text-align: center;
}