summaryrefslogtreecommitdiff
path: root/css/content.scss
blob: bdac41c7d57c7c57b498201de9564ff6c61e88e5 (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
88
89
90
91
92
93
#content {
	background-color: $backgroundColour;
	margin:           auto;
	min-height:       100vh;
	max-width:        72rem;
	padding:          2rem;

	p:not(.heading, #contentHeading) {
		line-height: 2rem;
	}

	a, a:visited {
		color:       $highlightColour;
		font-weight: bold;
	}

	span {
		&.code {
			background-color: $foregroundColour;
			border-radius:    calc(1rem / 4);
			font-family:      "Martian Mono", "monospace";
			padding:          calc(1rem / 4);

			a {
				font-weight: normal;
			}
		}

		&.fancy {
			font-weight: bold;
		}

		&.small {
			font-size: 0.75em;
		}
	}

	#contentHeading {
		background-color:    $foregroundColour;
		border-radius:       1rem;
		display:             block;
		font-family:         "Martian Mono", "monospace";
		font-size:           4rem;
		font-weight:         bold;
		margin:              auto;
		margin-bottom:       1rem;
		padding:             1rem;
		text-align:          center;

		span.small {
			font-size: 0.5em;
		}
	}

	section:nth-of-type(even) p.heading {
		text-align: right;
	}

	section + section {
		margin-top: 1rem;
	}

	p.heading {
		border-bottom-style: solid;
		border-bottom-width: calc(1rem / 4);
		font-size:           2rem;
		font-weight:         bold;
		margin-bottom:       1rem;
		width:               100%;
	}

	x-image {
		display: block;
		width: fit-content;

		&:nth-of-type(odd) {
			margin-right: auto;
		}

		&:nth-of-type(even) {
			margin-left: auto;
		}

		a {
			img {
				border-radius:   1rem;
				display:         block;
				height:          16rem;
				image-rendering: pixelated;
			}
		}
	}
}