theme change

merge-requests/208/head
fatchan 5 years ago
parent f2e105dddc
commit 3b59af8987
  1. 126
      gulp/res/css/style.css
  2. 10
      helpers/captcha/captchagenerate.js
  3. 2
      models/forms/actionhandler.js
  4. 2
      views/custompages/faq.pug
  5. 2
      views/includes/bannersheader.pug
  6. 2
      views/includes/boardheader.pug
  7. 2
      views/includes/catalogheader.pug
  8. 2
      views/includes/logheader.pug
  9. 2
      views/pages/captcha.pug

@ -1,55 +1,91 @@
/*tomorrow*/
/*
:root {
--background-top: #d6daf0;
--background-rest: #eef2ff;
--post-color: #D6DAF0;
--post-outline-color: #B7C5D9;
--label-color: #98E;
--box-border-color: #000;
--background-top: #1d1f21;
--background-rest: #1d1f21;
--post-color: #282a2e;
--post-outline-color: #111;
--label-color: #282a2e;
--box-border-color: #111;
--darken: #00000010;
--highlighted-post-color: #d6bad0;
--highlighted-post-outline-color: #ba9dbf;
--board-title: #af0a0f;
--hr: lightgray;
--font-color: black;
--name-color: #117743;
--highlighted-post-color: #ff000010;
--highlighted-post-outline-color: #111;
--board-title: #c5c8c6;
--hr: #282a2e;
--font-color: #c5c8c6;
--name-color: #c5c8c6;
--capcode-color: #f00;
--subject-color: #0F0C5D;
--link-color: #34345C;
--post-link-color: #d00;
--link-hover: #d00;
--input-borders: #a9a9a9;
--input-color: #000;
--input-background: white;
--subject-color: #b294bb;
--link-color: #5f89ac;
--post-link-color: #5f89ac;
--link-hover: #81a2be;
--input-borders: #111;
--input-color: #c5c8c6;
--input-background: #282a2e;
--dice-color: darkorange;
--title-color: #d70000;
--greentext-color: green;
}
*/
/*yotsuba b*/
/*
:root {
--background-top: #1d1f21;
--background-rest: #1d1f21;
--post-color: #282a2e;
--post-outline-color: #111;
--label-color: #282a2e;
--box-border-color: #111;
--darken: #00000010;
--highlighted-post-color: #ff000010;
--highlighted-post-outline-color: #111;
--board-title: #c5c8c6;
--hr: #282a2e;
--font-color: #c5c8c6;
--name-color: #c5c8c6;
--capcode-color: #f00;
--subject-color: #b294bb;
--link-color: #5f89ac;
--post-link-color: #5f89ac;
--link-hover: #81a2be;
--input-borders: #111;
--input-color: #c5c8c6;
--input-background: #282a2e;
--dice-color: darkorange;
--title-color: #d70000;
--background-top: #d6daf0;
--background-rest: #eef2ff;
--post-color: #D6DAF0;
--post-outline-color: #B7C5D9;
--label-color: #98E;
--box-border-color: #000;
--darken: #00000010;
--highlighted-post-color: #d6bad0;
--highlighted-post-outline-color: #ba9dbf;
--board-title: #af0a0f;
--hr: lightgray;
--font-color: black;
--name-color: #117743;
--capcode-color: #f00;
--subject-color: #0F0C5D;
--link-color: #34345C;
--post-link-color: #d00;
--link-hover: #d00;
--input-borders: #a9a9a9;
--input-color: #000;
--input-background: white;
--dice-color: darkorange;
--title-color: #d70000;
--greentext-color: green;
}
*/
/*lainchan*/
:root {
--background-top: #1E1E1E;
--background-rest: #1E1E1E;
--post-color: #333333;
--post-outline-color: #555555;
--label-color: #333333;
--box-border-color: #666666;
--darken: #00000050;
--highlighted-post-color: #32DD7220;
--highlighted-post-outline-color: #32DD7250;
--board-title: #32DD72;
--hr: #333333;
--font-color: #bbbbbb;
--name-color: #32DD72;
--capcode-color: #f00;
--subject-color: #b294bb;
--link-color: #fff;
--post-link-color: #fff;
--link-hover: #32DD72;
--input-borders: #666666;
--input-color: #CCCCCC;
--input-background: #333333;
--dice-color: darkorange;
--title-color: #d70000;
--greentext-color: #B8D962;
}
html {
scroll-behavior: smooth;
}
@ -309,7 +345,7 @@ p {
}
.greentext {
color: green;
color: var(--greentext-color);
}
a .post-name:hover, a:hover {
@ -545,7 +581,7 @@ textarea {
.post-container, .ban {
box-sizing: border-box;
padding: 5px;
padding: .5em;
max-width: 100%;
}
@ -620,7 +656,7 @@ textarea {
}
.nav-item:hover {
box-shadow: inset 0 0 100px 100px rgba(255,255,255,.25);
/*box-shadow: inset 0 0 100px 100px rgba(255,255,255,.25);*/
}
.footer {

@ -20,8 +20,8 @@ module.exports = (text, captchaId) => {
{x:destx,y:desty} //dest
]);
}
const x = gm(width,height, '#282a2e')
.fill('#c5c8c6')
const x = gm(width,height, '#333333')
.fill('#bbbbbb')
.fontSize(65)
let lastx = 7;
for (let i = 0; i <6; i++) {
@ -29,8 +29,8 @@ module.exports = (text, captchaId) => {
switch (text[i]) {
case 'w':
case 'm':
lastx += 45;
break;
lastx += 45;
break;
case 'i':
case 'f':
case 'l':
@ -46,7 +46,7 @@ module.exports = (text, captchaId) => {
//.drawText(5, 60, text)
x.drawRectangle(5, recy, 195, recy+4)
.distort(distorts, 'Shepards')
//.quality(30)
//.quality(10)
.write(`./static/captcha/${captchaId}.jpg`, (err) => {
if (err) {
return reject(err);

@ -244,7 +244,7 @@ module.exports = async (req, res, next) => {
//insert the modlog docs
await Modlogs.insertMany(modlogDocuments);
for (let i = 0; i < threadBoards.length; i++) {
const board = buildsBoards[threadBoards[i]];
const board = buildBoards[threadBoards[i]];
parallelPromises.push(buildModLog(board));
parallelPromises.push(buildModLogList(board));
}

@ -51,7 +51,7 @@ block content
b Format
p
| Names should be input like:
input(spellcheck='false' type='text' value='Name##Tripcode## Capcode')
input(disabled='true' spellcheck='false' type='text' value='Name##Tripcode## Capcode')
| . Tripcode and capcode are optional components. Tripcodes and capcodes may not contain "##" and the whitespace before capcodes is significant.
p Valid examples:
ol.mv-0

@ -1,4 +1,4 @@
section.board-header
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100' alt='banner image')
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100')
br
h1.board-title Banners (#[a.no-decoration(href=`/${board._id}/index.html`) /#{board._id}/])

@ -1,5 +1,5 @@
section.board-header
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100' alt='banner image')
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100')
br
a.no-decoration(href=`/${board._id}/index.html`)
h1.board-title /#{board._id}/ - #{board.settings.name}

@ -1,4 +1,4 @@
section.board-header
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100' alt='banner image')
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100')
br
h1.board-title Catalog (#[a.no-decoration(href=`/${board._id}/index.html`) /#{board._id}/])

@ -1,4 +1,4 @@
section.board-header
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100' alt='banner image')
img.board-banner(src=`/randombanner?board=${board._id}` width='300' height='100')
br
h1.board-title Logs (#[a.no-decoration(href=`/${board._id}/index.html`) /#{board._id}/])

@ -2,7 +2,7 @@ doctype html
html
head
link(rel='stylesheet', href='/css/style.css')
body(style='margin:0;padding:0;background:#282a2e;')
body(style='margin:0;padding:0;background:#333333')
img(src='/captcha', style='width:200px;height:80px;margin:0 auto;')
form(action='/forms/newcaptcha', method='POST')
input(style='position:fixed;left:-1px;bottom:-1px;opacity:0.9;' type='submit' value='🗘')

Loading…
Cancel
Save