aboutsummaryrefslogtreecommitdiff
path: root/public/products.css
blob: ecaaaa3bdd2abab734339aae076213e8bc07ca3e (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
:root {
	--width: 1000px;
}

.products {
	--min-width: 200px;
	display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--min-width), 1fr));
	gap: 8px;
	align-items: start;
}

.products .product {
	background-color: var(--bg-alt);
	padding: 8px;
	border-radius: 8px;
}

.product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product span { display: block; }
.product .price { font-size: 1.5rem; }

.categories a {
	position: relative;
	display: block;
	color: var(--fg-alt);
	text-decoration: none;
}
.categories .category {
	margin-left: 8px;
	height: 1.25em;
}

.categories .category::before {
	content: "";
	position: absolute;
	height: 2px;
	width: 14px;
	background-color: var(--fg);
	left: -2px;
	top: 50%;
	transform: translate(-100%, -50%);
}

.categories .sub {
	margin-left: 8px;
	position: relative;
}

.categories > .sub::before {
	top: 0;
}

.sub::before {
	content: "";
	position: absolute;
	width: 2px;
	background-color: var(--fg);
	left: -8px;
	top: calc(1.25em * -0.5);
	bottom: calc(1.25em * 0.5);
}

.categories:has(.current) a {
	color: var(--fg);
}

.categories:has(.current) a.current {
	color: var(--fg-alt);
	font-weight: 700;
}