change "x" button for .close to be × (multiplication symbol), looks better.

jschan
Thomas Lynch 3 years ago
parent cb2a7f9a25
commit 1245306d6d
No known key found for this signature in database
GPG Key ID: 36A72F7C62CF8480
  1. 7
      gulp/res/css/style.css
  2. 1
      gulp/res/js/localstorage.js
  3. 4
      gulp/res/js/pugfilters.js
  4. 6
      gulp/res/js/titlescroll.js
  5. 2
      gulp/res/js/uploaditem.js
  6. 2
      gulp/res/js/watchedthread.js
  7. 4
      views/includes/postform.pug
  8. 2
      views/mixins/filters.pug
  9. 2
      views/mixins/modal.pug
  10. 2
      views/mixins/uploaditem.pug
  11. 2
      views/mixins/watchedthread.pug

@ -456,6 +456,7 @@ p {
margin-left: auto;
width: 25px;
cursor: pointer;
font-size: initial;
}
.reports {
@ -1210,10 +1211,14 @@ input[type="file"] {
}
.watched-thread a {
width: unset;
margin-right: 5px;
}
.watched-thread .close {
margin-left: 0px;
width: 1em;
}
.watched-thread[data-unread]::after {
content: "(" attr(data-unread) ")";
font-weight: bold;

@ -48,6 +48,7 @@ setDefaultLocalStorage('notifications', settings.notificationsEnabled);
setDefaultLocalStorage('notification-yous-only', settings.notificationsYousOnly);
setDefaultLocalStorage('yous-setting', settings.showYous);
setDefaultLocalStorage('threadwatcher', settings.threadWatcher);
setDefaultLocalStorage('threadwatcher-minimise', false);
setDefaultLocalStorage('disableboardcss', false);
setDefaultLocalStorage('filters1', '[]');

@ -14,14 +14,14 @@ if (filterArr.length > 0) {
if ('number' == typeof $$obj.length) {
for (var pug_index0 = 0, $$l = $$obj.length; pug_index0 < $$l; pug_index0++) {
var filter = $$obj[pug_index0];
pug_html = pug_html + "\u003Ctr\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filterTypeMap[filter.type]) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filter.val.toString()) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Cinput" + (pug_attr("disabled", true, true, false)+" type=\"checkbox\""+pug_attr("checked", filter.type.endsWith('r'), true, false)) + "\u002F\u003E\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Ca" + (" class=\"right close\""+pug_attr("data-type", filter.type, true, false)+pug_attr("data-data", filter.val, true, false)) + "\u003EX\u003C\u002Fa\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E";
pug_html = pug_html + "\u003Ctr\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filterTypeMap[filter.type]) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filter.val.toString()) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Cinput" + (pug_attr("disabled", true, true, false)+" type=\"checkbox\""+pug_attr("checked", filter.type.endsWith('r'), true, false)) + "\u002F\u003E\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Ca" + (" class=\"right close\""+pug_attr("data-type", filter.type, true, false)+pug_attr("data-data", filter.val, true, false)) + "\u003E×\u003C\u002Fa\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E";
}
} else {
var $$l = 0;
for (var pug_index0 in $$obj) {
$$l++;
var filter = $$obj[pug_index0];
pug_html = pug_html + "\u003Ctr\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filterTypeMap[filter.type]) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filter.val.toString()) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Cinput" + (pug_attr("disabled", true, true, false)+" type=\"checkbox\""+pug_attr("checked", filter.type.endsWith('r'), true, false)) + "\u002F\u003E\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Ca" + (" class=\"right close\""+pug_attr("data-type", filter.type, true, false)+pug_attr("data-data", filter.val, true, false)) + "\u003EX\u003C\u002Fa\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E";
pug_html = pug_html + "\u003Ctr\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filterTypeMap[filter.type]) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E" + (pug_escape(null == (pug_interp = filter.val.toString()) ? "" : pug_interp)) + "\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Cinput" + (pug_attr("disabled", true, true, false)+" type=\"checkbox\""+pug_attr("checked", filter.type.endsWith('r'), true, false)) + "\u002F\u003E\u003C\u002Ftd\u003E\u003Ctd\u003E\u003Ca" + (" class=\"right close\""+pug_attr("data-type", filter.type, true, false)+pug_attr("data-data", filter.val, true, false)) + "\u003E×\u003C\u002Fa\u003E\u003C\u002Ftd\u003E\u003C\u002Ftr\u003E";
}
}
}).call(this);

@ -24,10 +24,8 @@ window.addEventListener('DOMContentLoaded', (event) => {
const updateTitle = () => {
if (unread.length === 0) {
document.title = originalTitle;
// changeFavicon('/favicon.ico');
} else {
document.title = `(${unread.length}) ${originalTitle}`;
// changeFavicon('/file/favicon2.ico');
}
}
@ -49,8 +47,8 @@ window.addEventListener('DOMContentLoaded', (event) => {
}
}
window.onfocus = focusChange;
window.onblur = focusChange;
window.addEventListener('focus', focusChange);
window.addEventListener('blur', focusChange);
window.addEventListener('scroll', updateVisible);
window.addEventListener('addPost', function(e) {

@ -6,7 +6,7 @@ var pug_match_html=/["&<>]/;function uploaditem(locals) {var pug_html = "", pug_
(function (uploaditem) {
pug_mixins["uploaditem"] = pug_interp = function(item){
var block = (this && this.block), attributes = (this && this.attributes) || {};
pug_html = pug_html + "\u003Cdiv\u003E\u003Cdiv class=\"upload-item\"\u003E\u003Cimg" + (" class=\"upload-thumb\""+pug_attr("src", item.url, true, false)) + "\u002F\u003E\u003Cp\u003E" + (pug_escape(null == (pug_interp = item.name) ? "" : pug_interp)) + "\u003C\u002Fp\u003E\u003Ca class=\"close\"\u003EX\u003C\u002Fa\u003E\u003C\u002Fdiv\u003E";
pug_html = pug_html + "\u003Cdiv\u003E\u003Cdiv class=\"upload-item\"\u003E\u003Cimg" + (" class=\"upload-thumb\""+pug_attr("src", item.url, true, false)) + "\u002F\u003E\u003Cp\u003E" + (pug_escape(null == (pug_interp = item.name) ? "" : pug_interp)) + "\u003C\u002Fp\u003E\u003Ca class=\"close\"\u003E×\u003C\u002Fa\u003E\u003C\u002Fdiv\u003E";
if (item.hash) {
pug_html = pug_html + "\u003Cdiv class=\"row sb\"\u003E";
if (item.spoilers) {

@ -6,7 +6,7 @@ var pug_match_html=/["&<>]/;function watchedthread(locals) {var pug_html = "", p
(function (watchedthread) {
pug_mixins["watchedthread"] = pug_interp = function(thread){
var block = (this && this.block), attributes = (this && this.attributes) || {};
pug_html = pug_html + "\u003Cdiv" + (" class=\"row watched-thread\""+pug_attr("data-id", `${thread.board}-${thread.postId}`, true, false)+pug_attr("data-unread", (thread.unread||null), true, false)) + "\u003E\u003Ca class=\"close\"\u003EX\u003C\u002Fa\u003E";
pug_html = pug_html + "\u003Cdiv" + (" class=\"row watched-thread\""+pug_attr("data-id", `${thread.board}-${thread.postId}`, true, false)+pug_attr("data-unread", (thread.unread||null), true, false)) + "\u003E\u003Ca class=\"close\"\u003E×\u003C\u002Fa\u003E";
const watchedThreadLink = `/${thread.board}/thread/${thread.postId}.html`;
pug_html = pug_html + "\u003Ca" + (pug_attr("href", watchedThreadLink, true, false)) + "\u003E\u002F" + (pug_escape(null == (pug_interp = thread.board) ? "" : pug_interp)) + "\u002F - " + (pug_escape(null == (pug_interp = thread.subject || 'No subject') ? "" : pug_interp)) + "\u003C\u002Fa\u003E\u003Ca" + (pug_attr("href", `${watchedThreadLink}#bottom`, true, false)) + "\u003E[▼]\u003C\u002Fa\u003E\u003C\u002Fdiv\u003E";
};

@ -15,13 +15,13 @@ section.form-wrapper.flex-center
.label Sage
label.postform-style.ph-5
input(type='checkbox', name='email', value='sage')
a.close.postform-style(href='#!') X
a.close.postform-style(href='#!') ×
include ./subjectfield.pug
else
section.row
.label Name
input.mr-1(type='text', name='name', placeholder=board.settings.defaultName maxlength=globalLimits.fieldLength.name)
a.close.postform-style(href='#!') X
a.close.postform-style(href='#!') ×
if board.settings.sageOnlyEmail
section.row
.label Sage

@ -6,6 +6,6 @@ mixin filters(filterArr)
td #{filterTypeMap[filter.type]}
td #{filter.val.toString()}
td: input(disabled type='checkbox' checked=filter.type.endsWith('r'))
td: a.right.close(data-type=filter.type data-data=filter.val) X
td: a.right.close(data-type=filter.type data-data=filter.val) ×
else
td(colspan=4) No Filters

@ -3,7 +3,7 @@ mixin modal(data)
.modal(id=(data.settings ? 'settingsmodal' : '') style=data.hidden?'display:none':'')
.row
p.bold #{data.title}
a.close.postform-style#modalclose X
a.close.postform-style#modalclose ×
if data.message || data.messages || data.error || data.errors
.row
ul.nomarks

@ -3,7 +3,7 @@ mixin uploaditem(item)
.upload-item
img.upload-thumb(src=item.url)
p #{item.name}
a.close X
a.close ×
if item.hash
.row.sb
if item.spoilers

@ -1,6 +1,6 @@
mixin watchedthread(thread)
.row.watched-thread(data-id=`${thread.board}-${thread.postId}` data-unread=(thread.unread||null))
a.close X
a.close ×
- const watchedThreadLink = `/${thread.board}/thread/${thread.postId}.html`;
a(href=watchedThreadLink) /#{thread.board}/ - #{thread.subject || 'No subject'}
a(href=`${watchedThreadLink}#bottom`) [▼]

Loading…
Cancel
Save