2015-08-03 11:35:01 +02:00
|
|
|
/* Grid */
|
2015-12-15 11:54:49 +01:00
|
|
|
ul.grid > li {
|
2015-08-03 11:35:01 +02:00
|
|
|
background-size: cover;
|
|
|
|
width: calc(25% - 0.2em);
|
|
|
|
padding: 0;
|
|
|
|
padding-bottom: 25%;
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0.1em;
|
|
|
|
}
|
|
|
|
|
2015-12-21 22:59:03 +01:00
|
|
|
ul.grid.active > li:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2015-12-15 11:54:49 +01:00
|
|
|
ul.grid > li > nav {
|
2015-08-03 11:35:01 +02:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
color: white;
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
width: 100%;
|
2015-12-21 22:59:03 +01:00
|
|
|
padding: 0 1rem;
|
2015-08-03 11:35:01 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2015-12-21 22:59:03 +01:00
|
|
|
font-size: 2rem;
|
|
|
|
line-height: 5rem;
|
2015-08-03 11:35:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1024px) {
|
2015-12-15 11:54:49 +01:00
|
|
|
ul.grid > li {
|
2015-08-03 11:35:01 +02:00
|
|
|
width: calc(33.33% - 0.2em);
|
|
|
|
padding-bottom: 33.33%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 640px) {
|
2015-12-15 11:54:49 +01:00
|
|
|
ul.grid > li {
|
2015-08-03 11:35:01 +02:00
|
|
|
width: calc(50% - 0.2em);
|
|
|
|
padding-bottom: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.grid:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-12-15 11:54:49 +01:00
|
|
|
|
|
|
|
ul.grid.padded {
|
|
|
|
padding: 0;
|
|
|
|
}
|