links are now FANCY WHAT

pull/29/head
tycrek 3 years ago
parent d35c665bc9
commit 4f4edd935b
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -38,6 +38,7 @@ router.get('/', (req, res, next) => data.get(req.ass.resourceId).then((fileData)
res.render('view', {
fileIs: fileData.is,
title: escape(fileData.originalname),
mimetype: fileData.mimetype,
uploader: users[fileData.token].username,
timestamp: formatTimestamp(fileData.timestamp),
size: formatBytes(fileData.size),

@ -21,3 +21,16 @@ body {
body, button { text-shadow: 1px 1px 1px black; }
code { color: #EEE !important; }
pre { border-radius: 16px; }
/* Remove styles and colors from links */
a, a:hover, a:active, a:visited { text-decoration: none; }
a, a:visited {
color: var(--color-primary) !important;
border-bottom: 2px solid;
border-bottom-color: transparent;
border-radius: 2px;
transition: color 150ms linear, border-bottom-color 150ms linear;
}
a:hover { color: var(--color-link-hover) !important; border-bottom-color: var(--color-primary-dim); }
a:active { color: var(--color-link-active) !important; }

@ -39,3 +39,4 @@ html
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
#footer: p Image hosted by #[a#footer-link(href='https://github.com/tycrek/ass' target='_blank'): strong ass], the superior self-hosted ShareX server

Loading…
Cancel
Save