aboutsummaryrefslogtreecommitdiff
path: root/styles/search.css
blob: 270f2f6bb018c1d4ffbf9c62f1620b42d13d9c92 (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
.searchBar {
	background-color: var(--heliotrope-gray);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 24px;
}

.searchBar .input {
	background-color: transparent;
	border: 0;

	color: var(--bg);

	margin-left: 12px;
	width: calc(100% - 48px - 12px);
	padding: 14px 0;

	vertical-align: top;

	font-family: "Inter", sans-serif;
	font-size: 16px;
}

.searchBar .input::placeholder {
	font-style: italic;
	opacity: .75;

	color: var(--bg);
}

.searchBar .button {
	margin: 0;
	display: inline-block !important;
	line-height: 0;
	min-width: unset;
	background-color: var(--bg);
	color: var(--heliotrope-gray) !important;
}

.searchResults .post::after {
	display: none;
}

.searchResults .post {
	display: block;
	border-radius: 8px;

	padding: 12px;
	margin-bottom: 12px;
	background-color: var(--oxford-blue);

	color: var(--fg);
}

.searchResults .post .title,
.searchResults .post .subtitle,
.searchResults .post .authordate {
	margin: 4px 0;
}

.searchResults .post .authordate {
	font-style: italic;
	opacity: .75;
}

@media (prefers-color-scheme: light) {
	.searchBar { background-color: var(--fg); }
	.searchBar .button { color: var(--fg) !important; }

	.searchResults .post { background-color: var(--heliotrope-gray); }
}