summaryrefslogtreecommitdiff
path: root/style/typography.less
blob: f3a5e2e6aec4236272e4414cbcf57a4e272966ad (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 400;
	src: local('Noto Sans'), local('NotoSans'), url('../fonts/NotoSans.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 700;
	src: local('Noto Sans Bold'), local('NotoSans-Bold'), url('../fonts/NotoSansBold.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-style: italic;
	font-weight: 400;
	src: local('Noto Sans Italic'), local('NotoSans-Italic'), url('../fonts/NotoSansItalic.ttf') format('truetype');
}

html {
	font-family: 'Noto Sans', 'DejaVu Sans', sans-serif;
	font-size: 12pt;
	color: @color-text;
	background-color: @color-footer;
}

p {
	margin-bottom: 0.5rem;
}

h1, h2, h3 {
	font-weight: normal;
	margin-bottom: 1em;
}

h1 {
	color: @color-main;
}

a, a:link, a:visited, a:hover, a:active {
	color: crimson;
	text-decoration: none;
	transition: all 0.25s ease-in;
}

a:hover {
	color: #900000;
	text-decoration: underline;
}

main a:visited, footer a:visited {
	color: #a40000;
}

section {
	max-width: 975px;
	max-width: 60rem;
	margin: 0 auto;
	padding: 1rem 3rem;
	vertical-align: top;
}

header, main {
	background-color: @color-bg;
}

dt {
	font-weight: bold;
	color: @color-main;
}

dd, dt {
	display: block;
}

dd {
	margin-bottom: 0.5em;
}


/**
 * Footnotes
 */

sup {
	position: relative;
	font-size: 80%;
	top: -0.5em;
}

/**
 * Main text
 */

main, footer {
	line-height: 1.75;
}

main {

	h1, h2, h3, h4, h5, h6 {
		color: @color-main;
		margin-top: 0.25em;
		margin-bottom: 0.25em;
	}

	h1 {
		font-size: 200%;
	}

	h2 {
		font-size: 150%;
	}

	h3 {
		font-size: 125%;
	}

	h4, h5, h6 {
		font-weight: bold;
	}

}