aboutsummaryrefslogtreecommitdiff
path: root/app/scss/packagegrid.scss
blob: e5f684b94b47d4cdda0eaf1ca98cd7ce675e6c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.packagetile {
	list-style: none;
	padding: 0;
	margin: 0 7px 7px 0;
	min-width: 250px;
}

li.d-flex {
	list-style: none;
	padding: 0;
	margin: 0;
}

.packagetile a {
	display: block;
	padding-bottom: 66.66%;
	border-radius: 3px;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.packagegridscrub {
	position: absolute;
	top: 50%;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 5px;
	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;

	h3 {
		color: white;
		font-size: 120%;
		font-weight: bold;
		margin: 0;
		padding: 0;
	}

	small {
		color: #ddd;
		font-size: 75%;
		font-weight: bold;
	}

	p {
		display: none;
		color: #ddd;
		font-weight: normal;
	}
}

.packagetile a:hover  {
	.packagegridinfo {
		top: 0;
	}

	h3 {
		margin-bottom: 0.5em;
	}

	p {
		display: block;
	}

	.packagegridscrub {
		top: 0;
		background: rgba(0,0,0,0.8);
	}
}