blur spoilers instead of black box

merge-requests/208/head
fatchan 5 years ago
parent b3431baadf
commit 0c2f4ae7ec
  1. 7
      gulp/res/css/style.css
  2. 2
      helpers/render.js

@ -137,11 +137,14 @@ object {
}
.spoiler {
background: black;
color: transparent;
text-shadow: 0 0 5px rgba(0,0,0,1);
transition: color 0.2s, text-shadow 0.2s;
}
.spoiler:hover {
color: white;
color: black;
text-shadow: none;
}
.mode {

@ -8,6 +8,6 @@ const configs = require(__dirname+'/../configs/main.json')
, templateDirectory = path.join(__dirname+'/../views/pages/');
module.exports = async (htmlName, templateName, options) => {
const html = pug.renderFile(`${templateDirectory}${templateName}`, { ...options, cache: configs.cacheTemplates, opengraph: configs.openGraph });
const html = pug.renderFile(`${templateDirectory}${templateName}`, { ...options, cache: configs.cacheTemplates, openGraph: configs.openGraph });
return outputFile(`${uploadDirectory}html/${htmlName}`, html);
};

Loading…
Cancel
Save