aboutsummaryrefslogtreecommitdiff
path: root/public/product.css
blob: 54fe81b7e713c01456a77c6d409343c18f8b1f6a (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
.twocolumn {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
}

.twocolumn .left { text-align: center; }
.twocolumn .left img {
	max-width: 100%;
	transition: box-shadow 300ms;
}
.twocolumn .left a {
	transition: transform 300ms;
}

.twocolumn .left a:hover { transform: scale(103%); }
.twocolumn .left a:hover img { box-shadow: 0px 7px 40px -17px #0009; }

.twocolumn .left a {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.twocolumn .left a::after,
.twocolumn .left img {
	border-radius: 8px;
}

.twocolumn .left a::after {
	content: "Open in nieuw tabblad";
	font-size: 75%;
}
.twocolumn .left a::after {
	white-space: nowrap;
	display: block;
	background-color: var(--bg-alt);
	color: var(--fg);
	padding: 8px 12px;
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translate(-50%, 100%) translateY(-10px);
	line-height: initial;
	margin-top: 20px;
	transition-property: opacity, transform;
	transition-duration: 300ms;
	opacity: 0;
}

.twocolumn .left a:hover:after {
	transform: translate(-50%, 100%) translateY(0px);
	opacity: 1;
}

.twocolumn .right h2 { margin-top: 0; }