« get me outta code hell

site.css « static « site - blog - My blog website - https://florrie.ed1.club
about summary refs log tree commit diff
path: root/site/static/site.css
blob: 03d34442cf62fabf70848c20166919164828b004 (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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700|Martel:700|Ubuntu+Mono');
@import url('https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css');

body {
  background-color: hsl(60, 70%, 95%);
  color: #333;
  font-family: Merriweather;
  font-size: 0.8em;
  line-height: 1.4;
}

#nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding-bottom: 4px;
}

.top-block {
  background-color: hsl(60, 50%, 97%);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#main {
  padding: 30px;
}

footer {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px 30px;
  text-align: center;
}

/* Text formatting, etc */

a {
  color: #777;
}

#main a:visited {
  color: #555;
}

b {
  font-weight: 700;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Martel;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 0.3em;
  font-weight: 700;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
}

code {
  font-family: 'Ubuntu Mono';
  background-color: hsl(60, 75%, 92%);
  padding: 0.1em 0.25em;
}

blockquote {
  color: #999;
  font-style: italic;
}

.inline-math img {
  vertical-align: middle;
}

.inline-math {
  break-inside: avoid;
}

/* Tables */

table {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #CCC;
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 2px;
}

tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Art */

div.art-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  margin-top: 4px;
}

div.art-container.full-width {
  margin-top: 24px;
  margin-bottom: 12px;
  text-align: center;
}

div.art-container.full-width div {
  display: block;
  position: relative;
  margin-left: calc(-50vw + 4em);
  margin-right: calc(-50vw + 4em);
  max-width: calc(100vw - 8em);
  width: calc(100vw - 8em);
  margin-bottom: 12px;
}

div.art-container.full-width div img {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
/* Page specific stuff ----------------------------------------------------- */

/* Post pages */

.post-meta {
  font-style: italic;
  color: #AAA;
}

/* Archive pages */

.date-col {
  width: 150px;
}