From 114d234c87269225499d92fc3c4bc269a75f3163 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Jul 2019 19:58:06 -0700 Subject: [PATCH] Rename site.selectors.relative to site.selectors.highlightable --- src/css/spooky.css | 12 ++++++------ src/css/style.css | 20 ++++++++++---------- src/css/tomorrow.css | 12 ++++++------ src/site/SW.tinyboard.coffee | 8 ++++---- src/site/SW.yotsuba.coffee | 8 ++++---- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/css/spooky.css b/src/css/spooky.css index f3e11afb9..0b698b178 100644 --- a/src/css/spooky.css +++ b/src/css/spooky.css @@ -67,16 +67,16 @@ :root.spooky .qphl { outline: 2px solid rgba(145, 182, 214, .8); } -:root.spooky.highlight-you .quotesYou$site$relative$opHighlight, -:root.spooky.highlight-you .quotesYou$site$relative$replyHighlight { +:root.spooky.highlight-you .quotesYou$site$highlightable$op, +:root.spooky.highlight-you .quotesYou$site$highlightable$reply { border-left: 3px solid rgba(145, 182, 214, .8); } -:root.spooky.highlight-own .yourPost$site$relative$opHighlight, -:root.spooky.highlight-own .yourPost$site$relative$replyHighlight { +:root.spooky.highlight-own .yourPost$site$highlightable$op, +:root.spooky.highlight-own .yourPost$site$highlightable$reply { border-left: 3px dashed rgba(145, 182, 214, .8); } -:root.spooky .filter-highlight$site$relative$opHighlight, -:root.spooky .filter-highlight$site$relative$replyHighlight { +:root.spooky .filter-highlight$site$highlightable$op, +:root.spooky .filter-highlight$site$highlightable$reply { box-shadow: inset 5px 0 rgba(145, 182, 214, .5); } :root.spooky.highlight-own .yourPost > $site$sideArrows, diff --git a/src/css/style.css b/src/css/style.css index 9147806b8..a86d8c0e2 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1440,16 +1440,16 @@ input[name="Default Volume"] { .qphl { outline: 2px solid rgba(216, 94, 49, .8); } -:root.highlight-you .quotesYou$site$relative$opHighlight, -:root.highlight-you .quotesYou$site$relative$replyHighlight { +:root.highlight-you .quotesYou$site$highlightable$op, +:root.highlight-you .quotesYou$site$highlightable$reply { border-left: 3px solid rgba(221, 0, 0, .8); } -:root.highlight-own .yourPost$site$relative$opHighlight, -:root.highlight-own .yourPost$site$relative$replyHighlight { +:root.highlight-own .yourPost$site$highlightable$op, +:root.highlight-own .yourPost$site$highlightable$reply { border-left: 3px dashed rgba(221, 0, 0, .8); } -.filter-highlight$site$relative$opHighlight, -.filter-highlight$site$relative$replyHighlight { +.filter-highlight$site$highlightable$op, +.filter-highlight$site$highlightable$reply { box-shadow: inset 5px 0 rgba(221, 0, 0, .5); } :root.highlight-own .yourPost > $site$sideArrows, @@ -1457,9 +1457,9 @@ input[name="Default Volume"] { .filter-highlight > $site$sideArrows { color: rgba(221, 0, 0, .8); } -:root.highlight-own .yourPost$site$relative$opHighlight::after, -:root.highlight-you .quotesYou$site$relative$opHighlight::after, -.filter-highlight$site$relative$opHighlight::after { +:root.highlight-own .yourPost$site$highlightable$op::after, +:root.highlight-you .quotesYou$site$highlightable$op::after, +.filter-highlight$site$highlightable$op::after { content: ""; display: block; clear: both; @@ -1468,7 +1468,7 @@ input[name="Default Volume"] { :root.werkTyme .catalog-thread.filter-highlight:not(:hover), :root.werkTyme:not(.catalog-hover-expand) .catalog-thread.filter-highlight, :root.werkTyme.catalog-hover-expand .catalog-thread.filter-highlight > .catalog-container:hover > .catalog-post, -:root.catalog $site$catalog$thread.filter-highlight$site$relative$catalogHighlight { +:root.catalog $site$catalog$thread.filter-highlight$site$highlightable$catalog { box-shadow: 0 0 3px 3px rgba(255, 0, 0, .5); } :root:not(.werkTyme) .catalog-thread.watched .catalog-thumb, diff --git a/src/css/tomorrow.css b/src/css/tomorrow.css index 3220cc5eb..8a1b8b675 100644 --- a/src/css/tomorrow.css +++ b/src/css/tomorrow.css @@ -63,16 +63,16 @@ :root.tomorrow .qphl { outline: 2px solid rgba(145, 182, 214, .8); } -:root.tomorrow.highlight-you .quotesYou$site$relative$opHighlight, -:root.tomorrow.highlight-you .quotesYou$site$relative$replyHighlight { +:root.tomorrow.highlight-you .quotesYou$site$highlightable$op, +:root.tomorrow.highlight-you .quotesYou$site$highlightable$reply { border-left: 3px solid rgba(145, 182, 214, .8); } -:root.tomorrow.highlight-own .yourPost$site$relative$opHighlight, -:root.tomorrow.highlight-own .yourPost$site$relative$replyHighlight { +:root.tomorrow.highlight-own .yourPost$site$highlightable$op, +:root.tomorrow.highlight-own .yourPost$site$highlightable$reply { border-left: 3px dashed rgba(145, 182, 214, .8); } -:root.tomorrow .filter-highlight$site$relative$opHighlight, -:root.tomorrow .filter-highlight$site$relative$replyHighlight { +:root.tomorrow .filter-highlight$site$highlightable$op, +:root.tomorrow .filter-highlight$site$highlightable$reply { box-shadow: inset 5px 0 rgba(145, 182, 214, .5); } :root.tomorrow.highlight-own .yourPost > $site$sideArrows, diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index 3ceb60060..948a7729c 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -91,10 +91,10 @@ SW.tinyboard = thumb: 'a > .post-image' thumbLink: '.file > a' multifile: '.files > .file' - relative: - opHighlight: ' > .op' - replyHighlight: '.reply' - catalogHighlight: ' > .thread' + highlightable: + op: ' > .op' + reply: '.reply' + catalog: ' > .thread' comment: '.body' spoiler: '.spoiler' quotelink: 'a[onclick^="highlightReply("]' diff --git a/src/site/SW.yotsuba.coffee b/src/site/SW.yotsuba.coffee index 331527677..2cc8160d0 100644 --- a/src/site/SW.yotsuba.coffee +++ b/src/site/SW.yotsuba.coffee @@ -54,10 +54,10 @@ SW.yotsuba = link: '.fileText > a' thumb: 'a.fileThumb > [data-md5]' thumbLink: 'a.fileThumb' - relative: - opHighlight: '.opContainer' - replyHighlight: ' > .reply' - catalogHighlight: '' + highlightable: + op: '.opContainer' + reply: ' > .reply' + catalog: '' comment: '.postMessage' spoiler: 's' quotelink: ':not(pre) > .quotelink' # XXX https://github.com/4chan/4chan-JS/issues/77: 4chan currently creates quote links inside [code] tags; ignore them