summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/typography.scss
blob: 8cd5db04411bfb6062eaac3e5d981977114e12df (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
.p {
  margin-top: 1em;
  margin-bottom: 1em;
  &:first-child {
    margin-top: 0;
  }
}

.topgap {
  margin-top: 0.5em;
}

//
// bootstrap default for headings has a really large line-height, which makes the headings look totally
// weird if they span multiple lines.
//

h2 {
  line-height: 1.2em;
  margin-top: 0.1em;
  margin-bottom: 0.25em;
}


//
// make headings and paragraphs that are at the top of the page fit more snugly against the top.
//
h1, h2, h3 {
  &.first {
    line-height: 0.8em;
    margin-bottom: 0.4em;
    //font-size: 3em;
    //color: #333;
  }
}
p.first {
  margin-top: 0 !important;
}


.ol {@extend ol}
.li {@extend li}

.h1 {@extend h1}
.h2 {@extend h2}
.h3 {@extend h3}

.bigger {
  font-size: 140%;
  line-height: 140%;
  margin: 20px 0;
}

a:visited {
  color: $linkVisitedColor;
}

#TOC {
  margin-top: 1em;
  margin-bottom: 1em;
  ul {
    list-style-type: none;
    margin: 0;
  }
  li ul {
    margin-left: 25px;
  }
  // ul {
  //   list-style-type: none;
  //   counter-reset: level1;
  // }
  // ul li:before {
  //   content: counter(level1) ". ";
  //   counter-increment: level1;
  // }
  // ul li ul {
  //   list-style-type: none;
  //   counter-reset: level2;
  // }
  // ul li ul li:before {
  //   content: counter(level1) "." counter(level2) " ";
  //   counter-increment: level2;
  // }
}

//
// pandoc specific
//
// a[href="#TOC"] {
//   color: black;
//   pointer-events: none;
//   cursor: default;
//   &:hover {
//     text-decoration: none;
//   }
// }