aboutsummaryrefslogtreecommitdiff
path: root/app/scss
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 20:39:34 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-22 20:49:19 +0000
commit8eedbf64a4c85d9cc8ed61f489f8dcf0e406c56c (patch)
tree8db63758ef987f0b2901204684f9f19ec1a74992 /app/scss
parentc551201f792aa288a49c986aab264f4692e3b478 (diff)
downloadcheatdb-8eedbf64a4c85d9cc8ed61f489f8dcf0e406c56c.tar.xz
Improve package grid
Diffstat (limited to 'app/scss')
-rw-r--r--app/scss/packagegrid.scss33
1 files changed, 11 insertions, 22 deletions
diff --git a/app/scss/packagegrid.scss b/app/scss/packagegrid.scss
index cc0b0de..28d6e8c 100644
--- a/app/scss/packagegrid.scss
+++ b/app/scss/packagegrid.scss
@@ -1,24 +1,17 @@
-.packagegrid {
- display: flex;
- flex-wrap: wrap;
- flex-direction: row;
- flex-grow: 1;
- flex-shrink: 1;
+.packagetile {
+ list-style: none;
padding: 0;
- margin: 0 -7px;
+ margin: 0 7px 7px 0;
+ min-width: 250px;
}
-.packagegrid li {
- flex: 1;
- display: block;
- min-width: 300px;
- min-height: 200px;
- max-width: 332px;
+li.d-flex {
+ list-style: none;
padding: 0;
- margin: 7px;
+ margin: 0;
}
-.packagegrid a {
+.packagetile a {
display: block;
padding-bottom: 66.66%;
border-radius: 7px;
@@ -29,10 +22,6 @@
background-position: center;
}
-.packagegrid a:hover {
- // box-shadow: 0px 0px 16px 6px rgba(0,0,0,0.4);
-}
-
.packagegridscrub {
position: absolute;
top: 50%;
@@ -63,15 +52,15 @@
font-weight: normal;
}
-.packagegrid a:hover .packagegridinfo {
+.packagetile a:hover .packagegridinfo {
top: 0;
}
-.packagegrid a:hover p {
+.packagetile a:hover p {
display: block;
}
-.packagegrid a:hover .packagegridscrub {
+.packagetile a:hover .packagegridscrub {
top: 0;
background: rgba(0,0,0,0.8);
}