mirror of https://github.com/tycrek/ass
parent
b882866863
commit
180383ffc5
@ -0,0 +1,5 @@
|
||||
img, video {
|
||||
border-left-width: 4px;
|
||||
border-left-style: solid;
|
||||
border-radius: 4px;
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
#container {
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#content {
|
||||
background-color: #151515;
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
font-size-adjust: 0.3;
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
img, video {
|
||||
max-height: 50vh;
|
||||
}
|
||||
|
||||
figcaption strong {
|
||||
font-weight: bold;
|
||||
}
|
@ -1,18 +1,16 @@
|
||||
meta(name='viewport' content='width=device-width, initial-scale=1.0, viewport-fit=cover')
|
||||
|
||||
//- Markdown stylesheet & Highlight.js theme
|
||||
style: include css/modest.css
|
||||
style: include css/dracula.highlight.js.css
|
||||
|
||||
//- DarkReader for easy dark modes & Highlight.js for codeblocks
|
||||
script(src='https://cdn.jsdelivr.net/npm/darkreader@4/darkreader.min.js')
|
||||
script(src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js')
|
||||
script.
|
||||
// Dark mode with Dark Reader
|
||||
DarkReader.setFetchMethod(window.fetch);
|
||||
DarkReader.enable({
|
||||
brightness: 100,
|
||||
contrast: 100,
|
||||
sepia: 0
|
||||
});
|
||||
DarkReader.enable({}, { css: '#content { background-color: #121212 !important; }' }); // Fix the card colour
|
||||
|
||||
// Highlight code blocks
|
||||
hljs.highlightAll();
|
||||
|
@ -0,0 +1,25 @@
|
||||
html
|
||||
head
|
||||
title!=title
|
||||
include head
|
||||
style: include css/font.css
|
||||
style: include css/view.css
|
||||
if color !== null
|
||||
style: include css/img.css
|
||||
style.
|
||||
img, video { border-color: #{color}; }
|
||||
body
|
||||
#container
|
||||
#content
|
||||
h4!=title
|
||||
figure
|
||||
if isVideo
|
||||
video#media(controls loop muted playsinline preload='metadata')&attributes(resourceAttr)
|
||||
else
|
||||
img#media(decoding='async')&attributes(resourceAttr)
|
||||
figcaption
|
||||
br
|
||||
span Uploaded by #[strong!=uploader]
|
||||
br
|
||||
small #{timestamp} (#{size})
|
||||
#footer: p Image hosted by #[a(href='https://github.com/tycrek/ass' target='_blank'): strong ass], the superior self-hosted ShareX server
|
Loading…
Reference in new issue