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

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

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

Loading…
Cancel
Save