summaryrefslogtreecommitdiffstats
path: root/blog/_assets/stylesheets/_post.scss
blob: b2e737f8ae54080c1305f7c5c75db52be889c09f (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.post-header {
    background-color: $post-header-background;
    padding: 2mm;
    date {
        font-size: 10pt;
    }
    h1 {
        font: {
            size: 16pt;
            weight: bold;
        }
        margin: {
            bottom: 0;
            top: 0;
        }
        a {
            text-decoration: none;
        }
    }
}

.post {
  footer {
    padding-top: 4mm;
    .prev-post {
      float: left;
      &::before {
        content: "« ";
        font-size: 150%;
      }
    }
    .next-post {
      float: right;
      &::after {
        content: " »";
        font-size: 150%;
      }
    }
  }
}

.post-body {
    background-color: transparentize(#182530, 0.3);
    padding: 2mm;
    margin-bottom: 2mm;
    &::after {
      content: " ";
      display: block;
      visibility: hidden;
      clear: both;
    }
    .post-image {
        text-align: center;
        float: right;

        @media screen and (max-width: 590px){
            float: none;
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.post-excerpt {
    .post-body {
        .post-image {
            @media screen and (min-width: 500px) {
                float: right;
                width: 300px;
            }
        }
    }
}