jekyll-theme-unity 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/_config.yml +135 -0
- data/_includes/assets/Google-Analytics.html +12 -0
- data/_includes/assets/anchor-headings.html +164 -0
- data/_includes/assets/btt.html +5 -0
- data/_includes/assets/code-header.html +6 -0
- data/_includes/assets/noscript.html +3 -0
- data/_includes/assets/site-banner.html +9 -0
- data/_includes/assets/site-top-bar.html +10 -0
- data/_includes/assets/toc.html +174 -0
- data/_includes/assets/youtube-embed.html +6 -0
- data/_includes/footer.html +39 -0
- data/_includes/head.html +21 -0
- data/_includes/header.html +49 -0
- data/_layouts/default.html +23 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +52 -0
- data/_layouts/post_home.html +105 -0
- data/_sass/Material/baseline.scss +18 -0
- data/_sass/Material/colors.scss +130 -0
- data/_sass/Material/elevation.scss +62 -0
- data/_sass/Material/motion.scss +180 -0
- data/_sass/Material/palette.scss +118 -0
- data/_sass/Material/shape.scss +109 -0
- data/_sass/Material/state.scss +35 -0
- data/_sass/Material/typography.scss +505 -0
- data/_sass/custom/layout.scss +1 -0
- data/_sass/custom/styles_variables.scss +70 -0
- data/_sass/custom/variables.scss +1 -0
- data/_sass/jekyll-theme-unity.scss +1 -0
- data/_sass/layout/base.scss +525 -0
- data/_sass/layout/highlight-dark.scss +357 -0
- data/_sass/layout/highlight-light.scss +202 -0
- data/_sass/layout/layout.scss +581 -0
- data/_sass/layout/styles_variables.scss +156 -0
- data/_sass/variables.scss +170 -0
- data/assets/css/style.scss +10 -0
- data/assets/image/404.svg +34 -0
- data/assets/image/Unity.png +0 -0
- data/assets/image/bg-banner.png +0 -0
- data/assets/image/favicons/android-chrome-192x192.png +0 -0
- data/assets/image/favicons/android-chrome-512x512.png +0 -0
- data/assets/image/favicons/apple-touch-icon-120x120.png +0 -0
- data/assets/image/favicons/apple-touch-icon-152x152.png +0 -0
- data/assets/image/favicons/apple-touch-icon-180x180.png +0 -0
- data/assets/image/favicons/apple-touch-icon-60x60.png +0 -0
- data/assets/image/favicons/apple-touch-icon-76x76.png +0 -0
- data/assets/image/favicons/apple-touch-icon.png +0 -0
- data/assets/image/favicons/browserconfig.xml +12 -0
- data/assets/image/favicons/favicon-16x16.png +0 -0
- data/assets/image/favicons/favicon-32x32.png +0 -0
- data/assets/image/favicons/favicon.ico +0 -0
- data/assets/image/favicons/mstile-150x150.png +0 -0
- data/assets/image/favicons/mstile-310x150.png +0 -0
- data/assets/image/favicons/mstile-310x310.png +0 -0
- data/assets/image/favicons/mstile-70x70.png +0 -0
- data/assets/image/favicons/safari-pinned-tab.svg +22 -0
- data/assets/image/favicons/site.webmanifest +17 -0
- data/assets/image/mobile.png +0 -0
- data/assets/js/main.js +228 -0
- data/bin/run +196 -0
- metadata +195 -0
@@ -0,0 +1,525 @@
|
|
1
|
+
html {
|
2
|
+
scroll-behavior: smooth;
|
3
|
+
}
|
4
|
+
|
5
|
+
body {
|
6
|
+
@include body-medium;
|
7
|
+
@include background;
|
8
|
+
@include horizontal-scroll;
|
9
|
+
-webkit-text-size-adjust: 100%;
|
10
|
+
font-kerning: normal;
|
11
|
+
min-height: 100vh;
|
12
|
+
flex-direction: column;
|
13
|
+
overflow-wrap: break-word;
|
14
|
+
display: flex;
|
15
|
+
line-height: 40px;
|
16
|
+
}
|
17
|
+
|
18
|
+
body,
|
19
|
+
h1,
|
20
|
+
h2,
|
21
|
+
h3,
|
22
|
+
h4,
|
23
|
+
h5,
|
24
|
+
h6,
|
25
|
+
p,
|
26
|
+
blockquote,
|
27
|
+
pre,
|
28
|
+
hr,
|
29
|
+
dl,
|
30
|
+
dd,
|
31
|
+
ol,
|
32
|
+
ul,
|
33
|
+
figure {
|
34
|
+
margin: 0;
|
35
|
+
padding: 0;
|
36
|
+
margin-bottom: 15px;
|
37
|
+
}
|
38
|
+
|
39
|
+
p {
|
40
|
+
line-height: 26px;
|
41
|
+
}
|
42
|
+
|
43
|
+
* {
|
44
|
+
@include horizontal-scroll;
|
45
|
+
margin: 0;
|
46
|
+
padding: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
h1, h2, h3, h4, h5, h6 {
|
50
|
+
line-height: 3rem;
|
51
|
+
a {
|
52
|
+
@include shape-extra-large;
|
53
|
+
opacity: 0;
|
54
|
+
color: var(--md-sys-color-on-surface);
|
55
|
+
padding: 5px;
|
56
|
+
background: var(--md-sys-color-on-surface-variant-2);
|
57
|
+
}
|
58
|
+
&:hover {
|
59
|
+
a {
|
60
|
+
text-decoration: none;
|
61
|
+
opacity: 1;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
h1 {
|
67
|
+
@include headline-large;
|
68
|
+
}
|
69
|
+
h2 {
|
70
|
+
@include headline-medium;
|
71
|
+
}
|
72
|
+
h3 {
|
73
|
+
@include headline-small;
|
74
|
+
}
|
75
|
+
h4 {
|
76
|
+
@include title-large;
|
77
|
+
}
|
78
|
+
h5 {
|
79
|
+
@include title-medium;
|
80
|
+
}
|
81
|
+
h6 {
|
82
|
+
@include title-small;
|
83
|
+
}
|
84
|
+
|
85
|
+
a {
|
86
|
+
@include link(
|
87
|
+
var(--md-sys-color-secondary),
|
88
|
+
var(--md-sys-color-on-surface),
|
89
|
+
auto
|
90
|
+
);
|
91
|
+
&:hover {
|
92
|
+
text-decoration: underline;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
img {
|
96
|
+
@include shape-extra-large;
|
97
|
+
max-width: 100%;
|
98
|
+
}
|
99
|
+
strong {
|
100
|
+
font-family: $md-ref-typeface-brand;
|
101
|
+
}
|
102
|
+
table {
|
103
|
+
width: 100%;
|
104
|
+
margin-bottom: 20px;
|
105
|
+
border-collapse: collapse;
|
106
|
+
border: 1px solid var(--md-sys-color-surface-variant);
|
107
|
+
th {
|
108
|
+
background: var(--md-sys-elevation-level1);
|
109
|
+
color: var(--md-sys-color-on-surface-variant);
|
110
|
+
}
|
111
|
+
td,
|
112
|
+
th {
|
113
|
+
padding: 16px 24px;
|
114
|
+
border: 1px solid var(--md-sys-color-surface-variant);
|
115
|
+
vertical-align: middle;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
pre,
|
119
|
+
code {
|
120
|
+
@include shape-small;
|
121
|
+
border: 1px solid var(--md-sys-color-outline);
|
122
|
+
font-weight: 700;
|
123
|
+
background: var(--md-sys-elevation-level1);
|
124
|
+
padding: 1px 5px;
|
125
|
+
color: var(--md-sys-color-on-background);
|
126
|
+
|
127
|
+
a {
|
128
|
+
color: inherit !important;
|
129
|
+
border-bottom: none !important;
|
130
|
+
pointer-events: none;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
pre {
|
134
|
+
overflow-x: auto;
|
135
|
+
border: 0;
|
136
|
+
|
137
|
+
code {
|
138
|
+
border: 0;
|
139
|
+
padding-right: 0;
|
140
|
+
padding-left: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
div {
|
144
|
+
&[class^="highlighter-rouge"],
|
145
|
+
&.language-plaintext.highlighter-rouge,
|
146
|
+
&.language-console.highlighter-rouge,
|
147
|
+
&.language-terminal.highlighter-rouge,
|
148
|
+
&.nolineno {
|
149
|
+
pre.lineno {
|
150
|
+
display: none;
|
151
|
+
}
|
152
|
+
.code-header {
|
153
|
+
span {
|
154
|
+
padding: 0px;
|
155
|
+
}
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
td.rouge-code {
|
160
|
+
padding: 8px 12px;
|
161
|
+
}
|
162
|
+
|
163
|
+
pre.highlight {
|
164
|
+
padding: 0px;
|
165
|
+
padding-bottom: 0px;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
li {
|
170
|
+
ul,
|
171
|
+
ol {
|
172
|
+
margin-bottom: 0;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
ul,
|
176
|
+
ol {
|
177
|
+
margin-left: 20px;
|
178
|
+
}
|
179
|
+
|
180
|
+
button {
|
181
|
+
@include label-large;
|
182
|
+
@include btn;
|
183
|
+
border: 0px;
|
184
|
+
background: var(--md-sys-color-primary);
|
185
|
+
color: var(--md-sys-color-on-primary);
|
186
|
+
p {
|
187
|
+
margin: 0px;
|
188
|
+
}
|
189
|
+
&:hover {
|
190
|
+
@include elevation5(var(--md-sys-color-primary));
|
191
|
+
@include shape-medium;
|
192
|
+
color: initial;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
span {
|
196
|
+
&[style^="display: inline !important;"] {
|
197
|
+
@include shape-small;
|
198
|
+
&::before {
|
199
|
+
display: flex;
|
200
|
+
content: "warning";
|
201
|
+
font-family: "Material Symbols Rounded";
|
202
|
+
color: var(--md-sys-color-on-warning);
|
203
|
+
font-size: 34px;
|
204
|
+
line-height: 1;
|
205
|
+
padding-right: 10px;
|
206
|
+
padding-top: 13px;
|
207
|
+
}
|
208
|
+
a {
|
209
|
+
color: var(--md-sys-color-on-background);
|
210
|
+
font-weight: bold;
|
211
|
+
}
|
212
|
+
display: block;
|
213
|
+
background-color: var(--md-sys-color-warning);
|
214
|
+
color: var(--md-sys-color-on-warning);
|
215
|
+
padding: 10px;
|
216
|
+
margin-left: 7rem;
|
217
|
+
@media (max-width: 1000px) {
|
218
|
+
margin-left: 0px;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
}
|
223
|
+
|
224
|
+
.rouge-table {
|
225
|
+
width: 0%;
|
226
|
+
border: 0px;
|
227
|
+
margin-bottom: 0px;
|
228
|
+
td.rouge-code {
|
229
|
+
padding-left: 1rem;
|
230
|
+
border: 0px;
|
231
|
+
}
|
232
|
+
.rouge-gutter {
|
233
|
+
padding: 0px;
|
234
|
+
border: 0px;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
.code-header {
|
238
|
+
// width: 100%;
|
239
|
+
position: absolute;
|
240
|
+
left: initial;
|
241
|
+
right: 20px;
|
242
|
+
top: 10px;
|
243
|
+
display: flex;
|
244
|
+
justify-content: flex-end;
|
245
|
+
user-select: none;
|
246
|
+
cursor: pointer;
|
247
|
+
span {
|
248
|
+
@include link(
|
249
|
+
var(--md-sys-color-on-surface),
|
250
|
+
inherit,
|
251
|
+
var(--md-sys-color-on-surface-variant-2)
|
252
|
+
);
|
253
|
+
@include shape-extra-large;
|
254
|
+
transition: all 0.3s ease;
|
255
|
+
padding: 16px;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
.highlight {
|
259
|
+
@include shape-medium;
|
260
|
+
margin-bottom: 15px;
|
261
|
+
position: relative;
|
262
|
+
// display: block;
|
263
|
+
// To preventing bordering all pre element
|
264
|
+
> pre {
|
265
|
+
border: 1px solid var(--md-sys-color-outline);
|
266
|
+
}
|
267
|
+
|
268
|
+
pre {
|
269
|
+
margin-bottom: 0;
|
270
|
+
line-height: 1.5rem;
|
271
|
+
word-wrap: normal;
|
272
|
+
background: var(--md-sys-color-surface);
|
273
|
+
/* Fixed Safari overflow-x */
|
274
|
+
}
|
275
|
+
table {
|
276
|
+
td pre {
|
277
|
+
overflow: visible; // Fixed iOS safari overflow-x
|
278
|
+
word-break: normal; // Fixed iOS safari linenos code break
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
.lineno {
|
283
|
+
padding-top: 7px;
|
284
|
+
padding-bottom: 7px;
|
285
|
+
padding-left: 7px;
|
286
|
+
padding-right: 0px;
|
287
|
+
width: 1%;
|
288
|
+
min-width: 20px;
|
289
|
+
text-align: right;
|
290
|
+
color: $md-ref-palette-neutral-50;
|
291
|
+
// TODO: add mixin select none
|
292
|
+
-webkit-user-select: none;
|
293
|
+
-khtml-user-select: none;
|
294
|
+
-moz-user-select: none;
|
295
|
+
-ms-user-select: none;
|
296
|
+
-o-user-select: none;
|
297
|
+
user-select: none;
|
298
|
+
}
|
299
|
+
|
300
|
+
// set the dollar sign to non-selectable
|
301
|
+
.nv {
|
302
|
+
user-select: none;
|
303
|
+
}
|
304
|
+
|
305
|
+
&:focus {
|
306
|
+
border-color: var(--md-sys-color-primary);
|
307
|
+
}
|
308
|
+
}
|
309
|
+
.wrapper {
|
310
|
+
padding: 30px 30px 0 0;
|
311
|
+
margin: 0 auto 0 7rem;
|
312
|
+
max-width: 1168px;
|
313
|
+
animation-duration: 0.2s;
|
314
|
+
animation-fill-mode: both;
|
315
|
+
animation-name: wrapper-animation;
|
316
|
+
@media (max-width: 1000px) {
|
317
|
+
margin: 0 auto 0 2rem;
|
318
|
+
max-width: 1168px;
|
319
|
+
padding-top: 6rem;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
.wrapper-animation {
|
323
|
+
@include duration-550;
|
324
|
+
@include easing-standard;
|
325
|
+
}
|
326
|
+
.wrapper-post {
|
327
|
+
padding: 30px 30px 0 0;
|
328
|
+
animation-duration: 0.2s;
|
329
|
+
animation-fill-mode: both;
|
330
|
+
animation-name: wrapper-animation;
|
331
|
+
margin: 0 auto 0 7rem;
|
332
|
+
max-width: 850px;
|
333
|
+
@media (max-width: 1309px) {
|
334
|
+
max-width: 1168px;
|
335
|
+
}
|
336
|
+
@media (max-width: 1000px) {
|
337
|
+
margin: 0 auto 0 2rem;
|
338
|
+
max-width: 1168px;
|
339
|
+
padding-top: 6rem;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
.wrapper-404 {
|
343
|
+
display: flex;
|
344
|
+
word-break: break-word;
|
345
|
+
gap: 15px;
|
346
|
+
padding: clamp(95px, 2%, 400px) 0px 0px clamp(95px, 2%, 400px);
|
347
|
+
animation-duration: 0.2s;
|
348
|
+
animation-fill-mode: both;
|
349
|
+
animation-name: wrapper-animation;
|
350
|
+
|
351
|
+
@media (max-width: $pc-width) {
|
352
|
+
flex-direction: column-reverse;
|
353
|
+
}
|
354
|
+
@media (max-width: $mobile-width) {
|
355
|
+
padding: 0px;
|
356
|
+
}
|
357
|
+
.content-wrapper {
|
358
|
+
p {
|
359
|
+
margin: 0;
|
360
|
+
}
|
361
|
+
.btn {
|
362
|
+
@include duration-550;
|
363
|
+
@include easing-standard;
|
364
|
+
@include title-large;
|
365
|
+
width: 195px;
|
366
|
+
height: 82px;
|
367
|
+
margin-top: 15px;
|
368
|
+
padding: 0px;
|
369
|
+
}
|
370
|
+
}
|
371
|
+
.svgcontainer {
|
372
|
+
@include shape-extra-large;
|
373
|
+
fill: var(--md-sys-color-on-error);
|
374
|
+
background-color: var(--md-sys-color-error);
|
375
|
+
padding: 16px;
|
376
|
+
width: 10rem;
|
377
|
+
display: flex;
|
378
|
+
}
|
379
|
+
|
380
|
+
}
|
381
|
+
span {
|
382
|
+
font-size: 24px;
|
383
|
+
}
|
384
|
+
.btn {
|
385
|
+
@include label-large;
|
386
|
+
@include btn;
|
387
|
+
background: var(--md-sys-color-primary);
|
388
|
+
color: var(--md-sys-color-on-primary);
|
389
|
+
p {
|
390
|
+
margin: 0px;
|
391
|
+
}
|
392
|
+
&:hover {
|
393
|
+
@include elevation5(var(--md-sys-color-primary));
|
394
|
+
@include shape-medium;
|
395
|
+
color: initial;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
.post-toc {
|
399
|
+
position: sticky;
|
400
|
+
top: 2rem;
|
401
|
+
align-self: start;
|
402
|
+
padding-left: 0;
|
403
|
+
border-left: 1px solid var(--md-sys-color-outline);
|
404
|
+
// min-height: 100vh;
|
405
|
+
overflow-wrap: break-word;
|
406
|
+
|
407
|
+
li {
|
408
|
+
margin-left: 1rem;
|
409
|
+
margin: 7px;
|
410
|
+
padding-left: 1rem;
|
411
|
+
list-style: none;
|
412
|
+
}
|
413
|
+
ul,
|
414
|
+
ol {
|
415
|
+
list-style: none;
|
416
|
+
margin: 0;
|
417
|
+
padding: 0;
|
418
|
+
}
|
419
|
+
li.active > a {
|
420
|
+
@include shape-medium;
|
421
|
+
display: flex;
|
422
|
+
border: 1px solid var(--md-sys-color-outline);
|
423
|
+
animation-duration: 0.3s;
|
424
|
+
animation-fill-mode: both;
|
425
|
+
animation-name: TOC-Entrance;
|
426
|
+
}
|
427
|
+
li.decative {
|
428
|
+
a {
|
429
|
+
animation-duration: 0.3s;
|
430
|
+
animation-fill-mode: both;
|
431
|
+
animation-name: TOC-Exit;
|
432
|
+
opacity: 0.5;
|
433
|
+
|
434
|
+
&:hover {
|
435
|
+
opacity: 1;
|
436
|
+
}
|
437
|
+
}
|
438
|
+
ul {
|
439
|
+
display: none;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
|
443
|
+
a {
|
444
|
+
color: var(--md-sys-color-on-surface);
|
445
|
+
transition: all 50ms ease-in-out;
|
446
|
+
padding-left: 1rem;
|
447
|
+
|
448
|
+
&:hover {
|
449
|
+
text-decoration: underline;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
|
453
|
+
@media (max-width: 1309px) {
|
454
|
+
display: none;
|
455
|
+
width: 0px;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
|
459
|
+
.back-to-top {
|
460
|
+
@include shape-medium;
|
461
|
+
display: none;
|
462
|
+
position: fixed;
|
463
|
+
bottom: 20px;
|
464
|
+
right: 20px;
|
465
|
+
width: 40px;
|
466
|
+
height: 40px;
|
467
|
+
flex-direction: row;
|
468
|
+
justify-content: center;
|
469
|
+
align-items: center;
|
470
|
+
padding: 0px;
|
471
|
+
background: var(--md-sys-color-tertiary);
|
472
|
+
color: var(--md-sys-color-on-tertiary);
|
473
|
+
box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
|
474
|
+
user-select: none;
|
475
|
+
&:hover {
|
476
|
+
@include elevation5(var(--md-sys-color-tertiary));
|
477
|
+
box-shadow: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
|
478
|
+
}
|
479
|
+
}
|
480
|
+
.BTT-Entrance {
|
481
|
+
animation-duration: 0.5s;
|
482
|
+
animation-fill-mode: both;
|
483
|
+
animation-name: opacitychange;
|
484
|
+
}
|
485
|
+
|
486
|
+
.BTT-Exit {
|
487
|
+
animation-duration: 0.25s;
|
488
|
+
animation-fill-mode: both;
|
489
|
+
animation-name: opacityrestore;
|
490
|
+
}
|
491
|
+
|
492
|
+
.prompt-tip {
|
493
|
+
@include prompt(var(--md-sys-color-tip), var(--md-sys-color-on-tip) ,"tips_and_updates", var(--md-sys-color-on-tip), "Material Symbols Rounded" );
|
494
|
+
}
|
495
|
+
|
496
|
+
.prompt-info {
|
497
|
+
@include prompt(var(--md-sys-color-info), var(--md-sys-color-on-info) ,"info", var(--md-sys-color-on-info), "Material Symbols Rounded" );
|
498
|
+
}
|
499
|
+
|
500
|
+
.prompt-warning {
|
501
|
+
@include prompt(var(--md-sys-color-warning), var(--md-sys-color-on-warning) ,"warning", var(--md-sys-color-on-warning), "Material Symbols Rounded" );
|
502
|
+
}
|
503
|
+
|
504
|
+
.prompt-danger {
|
505
|
+
@include prompt(var(--md-sys-color-danger), var(--md-sys-color-on-danger) ,"dangerous", var(--md-sys-color-on-danger), "Material Symbols Rounded" );
|
506
|
+
}
|
507
|
+
|
508
|
+
.video-container {
|
509
|
+
position: relative;
|
510
|
+
padding-bottom: 56.25%;
|
511
|
+
margin-top: 36px;
|
512
|
+
margin-bottom: 36px;
|
513
|
+
}
|
514
|
+
|
515
|
+
.video-container iframe {
|
516
|
+
@include shape-medium;
|
517
|
+
position: absolute;
|
518
|
+
top: 0;
|
519
|
+
left: 0;
|
520
|
+
width: 100%;
|
521
|
+
height: 100%;
|
522
|
+
}
|
523
|
+
|
524
|
+
|
525
|
+
|