summaryrefslogtreecommitdiffstats
path: root/assets/scss/_fuji-style/_content.scss
blob: df223e916399d0582f420c0f6f0accf7e42f73b1 (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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
.content {
    padding: 1.5rem 1.5rem 0 1.5rem; // same as sidebar
}

.post {
    // paddings between posts
    &:not(:first-child) {
        padding: 1.5rem 0;
    }

    &:first-child {
        padding: 0 0 1.5rem 0;
    }
}

.post-title {
    font-size: $font-size-1;
}

.post-meta {
    display: flex;
    align-items: center;
    margin: 0.5rem 0.1rem 1rem 0.1rem; // little space
    flex-wrap: wrap;

    span {
        display: flex;
        align-items: center;
    }

    span:not(:last-child) {
        padding-right: 1.5rem;
    }
}

.post-summary {
    margin: 0 0.1rem; // little space

    p:last-child {
        margin-bottom: 0; // remove margin-bottom of last para in summary
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        display: none; // hide h1-h6 in post summary
    }
}

.post-meta-archive {
    display: flex;
    align-items: center;
    margin: 0.5rem 0.1rem 0 0.1rem; // little space
    flex-wrap: wrap;

    span:not(:last-child) {
        padding-right: 1.5rem;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1.25rem;
    padding: 1.25rem 0;

    div {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;

        a {
            display: flex;
            align-items: center;
        }
    }
}

.page-info {
    padding: 0 0.1rem 1.5rem 0.1rem;

    // search page part
    .search-form {
        display: flex;
    }

    .search-input {
        flex: 1 1 auto;

        input {
            width: 100%;
            max-width: 100%;
        }
    }
}

// single page part
article {
    padding-bottom: 1.5rem;

    .post-content {
        margin: 1.25rem 0.1rem 0 0.1rem;
    }
}

.license {
    margin-bottom: 1.5rem;
}

.post-loading {
    margin: 0 0 1.5rem 0;
    padding-top: 1.5rem;
    text-align: center;

    i {
        font-size: 1.25rem;
    }

    p {
        margin: 0.5rem 0 0 0;
    }
}

.markdown-body {
    h1 {
        font-size: $font-size-1;
        margin-top: 1.5rem;
    }

    h2 {
        font-size: $font-size-2;
        margin-top: 1.375rem;
    }

    h3 {
        font-size: $font-size-3;
        margin-top: 1.25rem;
    }

    h4 {
        margin-top: 1.25rem;
    }

    ul {
        list-style-type: circle;
    }

    img {
        max-width: 98%;
        margin: 0 0.25rem 0.5rem 0.25rem;
    }
}

.post-comment {
    span.post-comment-notloaded {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

#disqus_thread {
    padding: 1.25rem 0;
}

#search-result .post:first-child {
    padding: 1.5rem 0;
}