mirror of https://github.com/JoeBiellik/paste
parent
c3e8534157
commit
3d5b2f17a1
File diff suppressed because it is too large
Load Diff
@ -1,58 +1,50 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block head
|
block head
|
||||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/prism/1.5.1/themes/prism-coy.css')
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/themes/prism-coy.css')
|
||||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/prism/1.6.0/plugins/toolbar/prism-toolbar.css')
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/plugins/toolbar/prism-toolbar.css')
|
||||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/prism/1.5.1/plugins/line-numbers/prism-line-numbers.css')
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/plugins/line-numbers/prism-line-numbers.css')
|
||||||
style.
|
style.
|
||||||
html, body {
|
html, body, .code-toolbar, pre, code {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
html, body, code, pre {
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
pre[class*="language-"] {
|
pre[class*="language-"] {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
box-shadow: none;
|
|
||||||
max-height: none;
|
|
||||||
border-left: none;
|
|
||||||
}
|
}
|
||||||
pre[class*="language-"]::before, pre[class*="language-"]::after {
|
pre[class*="language-"]::before, pre[class*="language-"]::after {
|
||||||
box-shadow: none;
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
pre.code-toolbar > .toolbar {
|
.code-toolbar > .toolbar {
|
||||||
top: 20px;
|
top: 1rem;
|
||||||
right: 20px;
|
right: 1rem;
|
||||||
opacity: .5;
|
opacity: 1;
|
||||||
|
}
|
||||||
|
pre[class*="language-"] > code {
|
||||||
|
border-left: none;
|
||||||
}
|
}
|
||||||
pre.code-toolbar > .toolbar a,
|
.code-toolbar > .toolbar a, .code-toolbar > .toolbar button, .code-toolbar > .toolbar span {
|
||||||
pre.code-toolbar > .toolbar button,
|
padding: 0.25rem 1rem 0.5rem;
|
||||||
pre.code-toolbar > .toolbar span {
|
font-size: 1.2rem;
|
||||||
padding: .5rem 1rem;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #0275d8;
|
background-color: #0275d8;
|
||||||
border-color: #0275d8;
|
border-color: #0275d8;
|
||||||
border-radius: .3rem;
|
border-radius: .3rem;
|
||||||
|
opacity: 0.5;
|
||||||
|
transition: opacity 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
pre.code-toolbar > .toolbar a:hover,
|
.code-toolbar > .toolbar a:hover, .code-toolbar > .toolbar a:focus, .code-toolbar > .toolbar button:hover, .code-toolbar > .toolbar button:focus, .code-toolbar > .toolbar span:hover, .code-toolbar > .toolbar span:focus {
|
||||||
pre.code-toolbar > .toolbar a:focus,
|
|
||||||
pre.code-toolbar > .toolbar button:hover,
|
|
||||||
pre.code-toolbar > .toolbar button:focus,
|
|
||||||
pre.code-toolbar > .toolbar span:hover,
|
|
||||||
pre.code-toolbar > .toolbar span:focus {
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #025aa5;
|
background-color: #025aa5;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
block content
|
block content
|
||||||
pre.line-numbers
|
pre.line-numbers
|
||||||
code(class='language-' + lang)
|
code(class='language-' + lang)
|
||||||
| #{paste}
|
| #{paste}
|
||||||
script(src='https://cdn.jsdelivr.net/prism/1.6.0/prism.js')
|
script(src='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/prism.js')
|
||||||
script(src='https://cdn.jsdelivr.net/prism/1.6.0/components/prism-' + lang + '.min.js')
|
script(src='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/components/prism-' + lang + '.min.js')
|
||||||
script(src='https://cdn.jsdelivr.net/prism/1.6.0/plugins/toolbar/prism-toolbar.min.js')
|
script(src='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/plugins/toolbar/prism-toolbar.min.js')
|
||||||
script(src='https://cdn.jsdelivr.net/prism/1.6.0/plugins/line-numbers/prism-line-numbers.min.js')
|
script(src='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/plugins/line-numbers/prism-line-numbers.min.js')
|
||||||
script(src='https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js')
|
script(src='https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js')
|
||||||
script(src='https://cdn.jsdelivr.net/prism/1.6.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js')
|
script(src='https://cdn.jsdelivr.net/npm/prismjs@1.15.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js')
|
||||||
|
Loading…
Reference in New Issue