contentdb/app/scss/packagegrid.scss

73 lines
1.0 KiB
SCSS
Raw Normal View History

2018-12-22 21:39:34 +01:00
.packagetile {
list-style: none;
2018-05-09 19:35:36 +02:00
padding: 0;
2018-12-22 21:39:34 +01:00
margin: 0 7px 7px 0;
min-width: 250px;
2018-05-09 19:35:36 +02:00
}
2018-12-22 21:39:34 +01:00
li.d-flex {
list-style: none;
2018-05-18 02:27:11 +02:00
padding: 0;
2018-12-22 21:39:34 +01:00
margin: 0;
2018-05-09 19:35:36 +02:00
}
2018-12-22 21:39:34 +01:00
.packagetile a {
2018-05-09 19:35:36 +02:00
display: block;
padding-bottom: 66.66%;
2018-12-22 22:26:00 +01:00
border-radius: 3px;
2018-05-09 19:35:36 +02:00
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
.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;
2018-12-21 16:58:43 +01:00
font-size: 120%;
font-weight: bold;
2018-05-18 01:16:10 +02:00
}
2018-12-23 17:28:15 +01:00
.packagegridinfo small {
color: #ddd;
font-size: 75%;
font-weight: bold;
}
2018-05-18 01:16:10 +02:00
.packagegridinfo p {
display: none;
color: #ddd;
font-weight: normal;
}
2018-12-22 21:39:34 +01:00
.packagetile a:hover .packagegridinfo {
2018-05-18 01:16:10 +02:00
top: 0;
}
2018-12-22 21:39:34 +01:00
.packagetile a:hover p {
2018-05-18 01:16:10 +02:00
display: block;
}
2018-12-22 21:39:34 +01:00
.packagetile a:hover .packagegridscrub {
2018-05-18 01:16:10 +02:00
top: 0;
background: rgba(0,0,0,0.8);
2018-05-09 19:35:36 +02:00
}