summaryrefslogtreecommitdiffstats
path: root/assets/scss/web/_blog.scss
blob: 7cfb522f3238bc94789e82b717d6180b236c0389 (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
.blog__header {
  font-size: 2.4rem;
  font-weight: 900;
  margin-top: 1cm;
}
.blog__date {
}

.posts {
  font-size: 1.2rem;
}

.post__link {
}

.post__content {
  margin-bottom: 2cm;
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0px;
  }
  h1 {
    font-size: 2rem;
  }
  blockquote {
    margin-left: 0;
    margin-right: 30px;
    padding-left: 26px;
    border-left-width: 4px;
    border-left-style: solid;
  }

  // Code (not only code blocks)
  code {
    opacity: 0.5;
  }

  // Code-block highlighting
  pre {
    font-size: 14px;
    overflow: auto;
    opacity: 1;

    > code {
      opacity: 1;

      > span {
        height: 1.1rem; // for some reason, the default is messed up (3rd line is always higher value)

        margin-left: 16px;
        margin-right: 16px;
        &:first-child {
          padding-top: 8px;
        }
        &:last-child {
          padding-bottom: 8px;
        }
      }
    }
  }
}