aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/style.html
blob: 714b97dbb0e5ce94deb2cd6290c6f698597d7ca2 (plain) (blame)
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
81
82
83
84
85
86
87
<style>
	body {
		font: 1.06rem apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
		line-height: 1.7;
		max-width: 740px;
		margin: 40px auto;
		padding: 0 20px;
		background-color: #fbf9f4;
	}

	pre {
		border: 1px dashed #555;
		padding: 12px;
		overflow-x: auto;
	}

	img {
		max-width: 100%;
	}

	a,
	a:visited {
		color: inherit;
		text-decoration: none;
	}

	a:hover {
		text-decoration: underline;
	}

	article a, header a {
		text-decoration: underline;

	}

	time {
		float: right
	}

	.recent-posts ul,
	.blog-posts {
		list-style: none;
		padding-left: 0;
	}

	.posts-list li,
	.blog-posts li {
		margin-bottom: 0.5rem;
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 16px;
		align-items: baseline;
	}


	.posts-list li a,
	.blog-posts li a {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.posts-list li time,
	.blog-posts li time {
		white-space: nowrap;
		flex-shrink: 0;
	}

	@media (prefers-color-scheme: dark) {
		a {
			color: rgb(204, 204, 204)
		}

		a:visited {
			color: #aaa
		}

		html {
			color-scheme: dark;
		}

		body {
			background: #111111;
			color: rgb(204, 204, 204);
		}
	}
</style>