~dricottone/blog

ref: a1ab65abeebe4122cc3948541221f26ba16e5207 blog/static/css/blog.css -rw-r--r-- 971 bytes
a1ab65abDominic Ricottone Slight refactor 2 years ago
                                                                                
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
div#content {
  margin: 0;
  max-width: 800px;
  padding: 0 0 0 10px;
}
ul#list-posts {
  list-style-type: none; /* no bullets for post lists */
  margin: 0;
  padding: 0;
}
ul#list-posts li {
  margin: 0;
  padding: 0; /* no indentation on list item--title should not be indented */
}
div.post p {
  padding: 0 0 0 2em;
  text-indent: 2em;
}
div.post p.read-more {
  font-style: italic;
  text-indent: 0;
}

/* Table of Contents */
div#toc {
  left: calc(900px + 2em);
  margin: 5em 0 0 1em;
  padding: 1em;
  position: fixed;
  top: 0;
  width: 300px;
}
@media (max-width: 1200px) {
  div#toc {
    float: right;
    margin: 0 0 0 2em;
    padding: 0;
    position: static;
  }
}
@media (max-width: 800px) {
  div#toc {
    display: none;
    margin: 0;
    padding: 0;
    position: static;
  }
}
div#toc h2 {
  margin: 0;
}
div#toc ul {
  list-style: none;
  margin: 0 0 0 2em;
}
div#toc li {
  margin: 0.5em 0 0 0;
}
div#toc a, div#toc a:visited {
  color: #000;
}