summaryrefslogtreecommitdiff
path: root/assets/css/post.css
blob: 7fcfd957d7653b468890d74e6c611070c484fe87 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* Post/Article */
.post {
    position: relative; /* Needed for post__scroll-top */
}

.post__content ol > li,
.post__content ul > li {
    margin-bottom: var(--gap-small);
}

.post__header {
    margin-bottom: var(--gap-large);
}

.post__navigation > hr {
    height: 2px;
    margin-bottom: var(--gap-large);
}

.post__navigation-label {
    color: var(--text-color);
    opacity: 0.9;
}

.post__navigation-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0.5rem !important;

    @media (max-width: 768px) {
        flex-direction: column;
        gap: var(--gap-default);
        margin: 0 !important;
    }
}

.post__navigation-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;

    &:hover > .post__navigation-title {
        color: var(--link-hover);
        text-decoration: underline;
    }
}

.post__navigation-next,
.post__navigation-prev {
    width: 45%;

    @media (max-width: 768px) {
        width: 100%;
    }
}

.post__scroll-top {
    background-color: var(--bg-special);
    border-radius: var(--border-radius-max);
    box-shadow: var(--shadow-default);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    position: absolute;
    bottom: 9rem;
    right: 0;
    z-index: 1000;

    @media (max-width: 768px) {
        bottom: 14rem;
    }

    & svg {
        height: 2rem;
        width: 2rem;
        padding-bottom: 0.2rem;
    }

    /* Arrow up  */
    & svg > path {
        stroke: var(--text-color);
    }

    &:hover {
        background-color: var(--link-hover);

        & svg > path {
            stroke: var(--bg-main);
        }
    }
}

.post__tags {
    margin: var(--margin-padding-Y-big);
}

.post__tags-heading {
    font-weight: bold;
}

.post__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-default);

    @media (max-width: 768px) {
        flex-direction: column;
    }
}

.post__tags-link {
    font-weight: normal;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}