aboutsummaryrefslogtreecommitdiff
path: root/assets/css/partials/_article.scss
blob: 86d1fc3b8fbc1eba0acbdacb168fd92884c20378 (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
main {
	box-sizing: border-box;
	margin: 0.75rem 1rem 3rem;
	padding: 1.5rem 2.5rem;
	border-radius: $floatingRadius;
	box-shadow: var(--shadow);

	align-self: center;

	max-width: 82ch;
	font-size: 1.25rem;

	background-color: var(--header-background);

	a {
		color: var(--accent-1);
		transition: color 0.2s ease-in-out;

		&:hover {
			color: var(--accent-2);
		}
	}

	>* {
		margin-top: 0;
		margin-bottom: 1.75rem;
	}

	>p>code {
		word-break: break-word;
		font-family: $monoFontStack;

		color: var(--accent-1);
		background-color: #f6f6f6;
	}

	h1 {
		font-size: 2.75rem;
		line-height: 1;
		margin-bottom: 1rem;
	}

	p.meta {
		display: block;
		font-size: 0.85rem;
		margin-bottom: 1rem;
	}

	pre {
		overflow: scroll;
	}
}