-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstyle.scss
244 lines (225 loc) · 3.71 KB
/
style.scss
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
---
# keep the first three line front matter
---
@import "color";
body {
margin: 0;
background-color: #0f2540;
background-image: // https://projects.verou.me/css3patterns/#cicada-stripes
linear-gradient(90deg, rgba(255,255,255,.007) 50%, transparent 50%),
linear-gradient(90deg, rgba(255,255,255,.013) 50%, transparent 50%),
linear-gradient(90deg, transparent 50%, rgba(255,255,255,.017) 50%),
linear-gradient(90deg, transparent 50%, rgba(255,255,255,.019) 50%);
background-size: 13px, 29px, 37px, 53px;
display: flex;
flex-direction: column;
min-height: 100vh;
font-size: 16px;
}
ul._inline {
list-style-type: none;
padding: 0;
> li {
display: inline-block;
}
}
h1 {
display: inline-block;
font-size: 1.5em;
margin: 0;
color: $font-color;
align-self: center;
a {
padding: 0 1em;
}
}
body > header {
background-color: $bg-color1;
width: 100%;
position: fixed;
z-index: 9999;
border-bottom: 1px solid $font-color;
a {
text-decoration: none;
color: $font-color;
}
}
nav {
h2 {
display: none;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
display: inline-block;
margin: 0 .5em;
position: relative;
a {
display: inline-block;
padding: .8em .5em;
}
&.current::after {
display: block;
content: '';
position: absolute;
width: 100%;
height: 3px;
background-color: $font-color;
bottom: 0;
left: 0;
}
}
}
main {
line-height: 1.5em;
padding: 4em 2em 4em;
border-radius: 0.5em;
color: $font-color;
flex-grow: 1;
a {
color: $font-color;
}
li {
line-height: 1.5em;
word-break: break-all;
}
p {
padding: 0 1em;
img {
display: block;
margin: 0 auto;
}
}
pre {
padding: 0 4em;
}
details {
margin: 1em;
}
details > summary {
cursor: pointer;
}
h4 {
text-indent: 1em;
}
}
#extra {
header {
position: relative;
}
h4 {
padding-bottom: .5em;
background-size: calc(100% - 2em);
background-repeat: no-repeat;
background-position: center;
background-image: linear-gradient(transparent calc(100% - .1em), $bg-color2 calc(100% - .1em));
}
time {
position: absolute;
background-color: #434343;
padding: .2em .5em;
right: 1em;
top: -2.5em;
}
}
#news {
list-style-type: none;
padding-left: 4em;
li {
padding: 1em 0;
margin: .5em 0;
}
time {
margin: 0 1em;
background-color: #434343;
padding: .5em;
border-radius: .3em;
}
}
#post {
header {
position: relative;
}
time {
position: absolute;
background-color: #434343;
padding: .2em .5em;
right: 1em;
bottom: -1em;
}
}
#projects {
ul {
list-style-type: none;
margin: 0 0 1em;
}
li {
font-size: 1.2em;
margin: .5em 0;
}
}
#contributor {
list-style-type: none;
margin: 0;
padding: 2em 0;
li {
min-height: 120px;
margin-bottom: 2em;
a::after {
content: attr(title);
text-align: center;
}
img {
border-radius: 50%;
border: 4px solid $font-color;
float: left;
margin: 0 1em;
}
div {
@extend img;
height: 80px;
width: 80px;
background-color: $bg-color2;
}
}
}
h2, h3 {
position: relative;
background-color: #1c1c1c;
margin: 0;
padding: 1em;
color: $font-color;
box-shadow: inset 0 0 1px 1px #434343;
time {
float: right;
margin-right: 1em;
}
&::after {
content: attr(title);
display: inline-block;
margin-left: .5em;
padding-left: .5em;
color: $bg-color2;
}
}
h2 {
margin: 0 auto 1em;
background-image: linear-gradient(transparent calc(100% - .3em), #434343 calc(100% - .3em));
}
h3 {
padding-left: 1.8em;
}
.status {
text-align: center;
}
main + footer {
padding: 1em;
text-align: center;
color: $font-color;
background-color: $bg-color1;
border-top: 1px solid $font-color;
}
@import "layout"; // TODO: move to the top and fix responsive appearance