]> git.lizzy.rs Git - cheatdb.git/blob - app/scss/packagegrid.scss
Fix flash being hidden behind elements
[cheatdb.git] / app / scss / packagegrid.scss
1 .packagegrid {
2         display: flex;
3         flex-wrap: wrap;
4         flex-direction: row;
5         flex-grow: 1;
6         flex-shrink: 1;
7         padding: 0;
8         margin: 0 -7px;
9 }
10
11 .packagegrid li {
12         flex: 1;
13         display: block;
14         min-width: 300px;
15         min-height: 200px;
16         max-width: 350px;
17         padding: 0;
18         margin: 7px;
19 }
20
21 .packagegrid a {
22         display: block;
23         padding-bottom: 66.66%;
24         border-radius: 7px;
25         position: relative;
26         overflow: hidden;
27         background-size: cover;
28         background-repeat: no-repeat;
29         background-position: center;
30 }
31
32 .packagegrid a:hover {
33         // box-shadow: 0px 0px 16px 6px rgba(0,0,0,0.4);
34 }
35
36 .packagegridscrub {
37         position: absolute;
38         top: 50%;
39         right: 0;
40         bottom: 0;
41         left: 0;
42         padding: 5px;
43         background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5));
44 }
45
46 .packagegridinfo {
47         position: absolute;
48         right: 0;
49         bottom: 0;
50         left: 0;
51         padding: 1em;
52 }
53
54 .packagegridinfo h3 {
55         color: white;
56 }
57
58 .packagegridinfo p {
59         display: none;
60         color: #ddd;
61         font-weight: normal;
62 }
63
64 .packagegrid a:hover .packagegridinfo {
65         top: 0;
66 }
67
68 .packagegrid a:hover p {
69         display: block;
70 }
71
72 .packagegrid a:hover .packagegridscrub {
73         top: 0;
74         background: rgba(0,0,0,0.8);
75 }