link regex reject more invalid characters, revert to old spoilers andimprove spoiler appearance

merge-requests/208/head
fatchan 5 years ago
parent ede2593118
commit 6a51b69420
  1. 28
      gulp/res/css/style.css
  2. 2
      helpers/markdown.js
  3. 6
      views/includes/stickynav.pug

@ -141,14 +141,16 @@ object {
} }
.spoiler { .spoiler {
color: transparent; background: black;
text-shadow: 0 0 5px rgba(0,0,0,1); color: black;
transition: color 0.2s, text-shadow 0.2s;
} }
.spoiler:hover { .spoiler:hover {
color: white;
}
.spoiler:not(:hover) * {
color: black; color: black;
text-shadow: none;
} }
.mode { .mode {
@ -196,7 +198,7 @@ object {
} }
pre a, a:hover { pre a, a:hover {
color: #d00!important; color: #d00;
} }
.thread, .action-wrapper, .form-wrapper, .table-container { .thread, .action-wrapper, .form-wrapper, .table-container {
@ -306,6 +308,7 @@ td, th {
text-shadow: #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px; text-shadow: #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px;
color: white; color: white;
padding: 0px 2px; padding: 0px 2px;
border: 1px solid rgba(0, 0, 0, 0.4);
} }
.post-check { .post-check {
@ -316,7 +319,7 @@ td, th {
.post-files { .post-files {
float: left; float: left;
margin-right: 10px; margin: 5px 10px 0 0;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
align-items: start; align-items: start;
@ -444,12 +447,9 @@ input textarea {
font-weight: bold; font-weight: bold;
} }
.post-container.op .post-info, .catalog-tile-content .post-info {
background: none;
}
.post-info { .post-info {
background-color: #00000010;
border-bottom: 1px solid #00000010;
margin: -5px; margin: -5px;
padding: 5px; padding: 5px;
padding-left: 3px; padding-left: 3px;
@ -460,6 +460,11 @@ input textarea {
margin-top: -2px; margin-top: -2px;
} }
.post-container.op .post-info, .catalog-tile .post-info {
background: none;
border: none;
}
.nav-item { .nav-item {
line-height: 38px; line-height: 38px;
text-decoration: none; text-decoration: none;
@ -604,6 +609,7 @@ hr {
} }
.post-container { .post-container {
box-shadow: none;
width: 100%; width: 100%;
} }

@ -6,7 +6,7 @@ const Posts = require(__dirname+'/../db/posts.js')
, boldRegex = /""(.+)""/gm , boldRegex = /""(.+)""/gm
, titleRegex = /==(.+)==/gm , titleRegex = /==(.+)==/gm
, italicRegex = /__(.+)__/gm , italicRegex = /__(.+)__/gm
, linkRegex = /https?\:\/\/[^\s]+/g , linkRegex = /https?\:\/\/[^\s<>\[\]{}|\\^]+/g
, spoilerRegex = /\|\|(.+)\|\|/gm , spoilerRegex = /\|\|(.+)\|\|/gm
, detectedRegex = /(\(\(\(.+\)\)\))/gm , detectedRegex = /(\(\(\(.+\)\)\))/gm
, codeRegex = /^```\s([\s\S]+)\s```/gm; , codeRegex = /^```\s([\s\S]+)\s```/gm;

@ -1,4 +1,4 @@
nav.stickynav nav.stickynav
a(href='#bottom') &#9660; a(href='#bottom') [&#9660;]
| |
a(href='#top') &#9650; a(href='#top') [&#9650;]

Loading…
Cancel
Save