mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 14:37:36 -07:00
いい感じにやった
This commit is contained in:
parent
55fa76d211
commit
e1ffa35525
6 changed files with 53 additions and 35 deletions
|
@ -188,6 +188,16 @@ const elements = [
|
|||
};
|
||||
},
|
||||
|
||||
// label
|
||||
code => {
|
||||
if (code[0] != '@') return null;
|
||||
const label = code.match(/^@([a-zA-Z_-]+?)\n/)[0];
|
||||
return {
|
||||
html: `<span class="label">${label}</span>`,
|
||||
next: label.length
|
||||
};
|
||||
},
|
||||
|
||||
// extract vars
|
||||
(code, i, source, vars) => {
|
||||
const prev = source[i - 1];
|
||||
|
|
|
@ -107,7 +107,10 @@ a
|
|||
*
|
||||
cursor pointer
|
||||
|
||||
pre > code
|
||||
pre
|
||||
overflow auto
|
||||
|
||||
> code
|
||||
font-family Consolas, 'Courier New', Courier, Monaco, monospace
|
||||
tab-size 2
|
||||
|
||||
|
@ -148,6 +151,9 @@ pre > code
|
|||
.property
|
||||
color #a71d5d
|
||||
|
||||
.label
|
||||
color #e9003f
|
||||
|
||||
mk-locker
|
||||
display block
|
||||
position fixed
|
||||
|
|
|
@ -91,9 +91,9 @@
|
|||
font-size 1.1em
|
||||
color #717171
|
||||
|
||||
|
||||
|
||||
|
||||
pre
|
||||
max-height 120px
|
||||
font-size 80%
|
||||
|
||||
</style>
|
||||
</mk-timeline-post-sub>
|
||||
|
|
|
@ -233,7 +233,6 @@
|
|||
|
||||
pre
|
||||
padding 16px
|
||||
overflow auto
|
||||
font-size 80%
|
||||
color #525252
|
||||
background #f8f8f8
|
||||
|
|
|
@ -91,6 +91,10 @@
|
|||
font-size 1.1em
|
||||
color #717171
|
||||
|
||||
pre
|
||||
max-height 120px
|
||||
font-size 80%
|
||||
|
||||
</style>
|
||||
<script>@post = @opts.post</script>
|
||||
</mk-timeline-post-sub>
|
||||
|
|
|
@ -212,7 +212,6 @@
|
|||
|
||||
pre
|
||||
padding 16px
|
||||
overflow auto
|
||||
font-size 80%
|
||||
color #525252
|
||||
background #f8f8f8
|
||||
|
|
Loading…
Reference in a new issue