contentdb/app/scss/packagegrid.scss

76 lines
1.1 KiB
SCSS
Raw Normal View History

2018-05-09 19:35:36 +02:00
.packagegrid {
display: flex;
flex-wrap: wrap;
flex-direction: row;
flex-grow: 1;
flex-shrink: 1;
2018-05-09 19:35:36 +02:00
padding: 0;
2018-05-18 02:27:11 +02:00
margin: 0 -7px;
2018-05-09 19:35:36 +02:00
}
.packagegrid li {
flex: 1;
2018-05-18 01:16:10 +02:00
display: block;
min-width: 300px;
min-height: 200px;
2018-05-30 00:18:13 +02:00
max-width: 332px;
2018-05-18 02:27:11 +02:00
padding: 0;
2018-05-18 01:16:10 +02:00
margin: 7px;
2018-05-09 19:35:36 +02:00
}
.packagegrid a {
display: block;
padding-bottom: 66.66%;
2018-05-09 19:35:36 +02:00
border-radius: 7px;
position: relative;
overflow: hidden;
2018-05-18 01:16:10 +02:00
background-size: cover;
background-repeat: no-repeat;
2018-05-18 01:16:10 +02:00
background-position: center;
2018-05-09 19:35:36 +02:00
}
2018-05-18 01:16:10 +02:00
.packagegrid a:hover {
// box-shadow: 0px 0px 16px 6px rgba(0,0,0,0.4);
}
2018-05-09 19:35:36 +02:00
2018-05-18 01:16:10 +02:00
.packagegridscrub {
2018-05-09 19:35:36 +02:00
position: absolute;
2018-05-18 01:16:10 +02:00
top: 50%;
2018-05-09 19:35:36 +02:00
right: 0;
bottom: 0;
2018-05-18 01:16:10 +02:00
left: 0;
2018-05-09 19:35:36 +02:00
padding: 5px;
2018-05-18 01:16:10 +02:00
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5));
}
.packagegridinfo {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1em;
}
.packagegridinfo h3 {
color: white;
}
.packagegridinfo p {
display: none;
color: #ddd;
font-weight: normal;
}
.packagegrid a:hover .packagegridinfo {
top: 0;
}
.packagegrid a:hover p {
display: block;
}
.packagegrid a:hover .packagegridscrub {
top: 0;
background: rgba(0,0,0,0.8);
2018-05-09 19:35:36 +02:00
}