summaryrefslogtreecommitdiff
path: root/assets/css/components/_post.scss
blob: 5ab58c850f922e936abf96401713fddde05ef9fd (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

/* post */

.post-header {
  margin-bottom: 2rem;

  .post-title {
    font-size: 2rem;
    font-weight: 900;
  }

  .post-subtitle {
    display: block;
    color: var(--secondary-text-color);
    font-style: italic;
    font-size: 1.2rem;
  }
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;

    .post-date, .post-tag {
      color: var(--secondary-text-color)
    }

    .post-category {
        background-color: var(--block-background-color);
        font-size: 0.9rem;
        padding: 0.2rem 0.5rem;
        border-radius: 0.2rem;
        &:hover {
            text-decoration: none;
        }
    }
}

.page-content {
  min-height: 60%;
}

.post-content {
  margin-bottom: 50px;
  line-height: 2
}

#post-page-header {
    margin: var(--page-header-top) auto;
    margin-bottom: 2rem;
    max-width: var(--page-width);

    .title-image {
        width: 10rem;
    }
}

#post-page-header.with-banner {
    .title-image-container {
        background-color: var(--block-background-color);
        border-radius: 50%;
        transform: rotate(7deg);
        box-shadow: 0 0 0.2rem rgba(0,0,0,.2);
        padding: 1rem;

        position: absolute;
        z-index: 5;
        right: 1rem;
        top: 1rem;
        width: 5rem;

        .title-image {
            width: 100%;
        }

        @media screen and (min-width: 768px) {
            width: 8rem;
            left: calc(50vw + var(--page-width) / 2 - 5rem);
            top: calc(var(--page-header-top) - 2rem);
        }
    }
}