From 6340b60d8cdc522e7a3b0720d935922bce059748 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 5 Sep 2021 17:04:45 +0000 Subject: Fix "more content" z-index --- static/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index 4e1ddce..cd7e98c 100644 --- a/static/style.css +++ b/static/style.css @@ -482,7 +482,6 @@ img.emoji { .more-container { position: relative; display: inline-block; - z-index: 1; } .more-content { @@ -491,6 +490,7 @@ img.emoji { background-color: #d2d2d2; padding: 2px 4px; border: 1px solid #aaaaaa; + z-index: 1; } .more-container:hover .more-content { -- cgit v1.2.3 From 21ef7a66106958bd61534e5d0603b447e6fe306d Mon Sep 17 00:00:00 2001 From: r Date: Sun, 2 Jan 2022 08:55:21 +0000 Subject: Fix image preview position on load event --- static/fluoride.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/fluoride.js b/static/fluoride.js index f44801b..917ffff 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -233,17 +233,21 @@ function setPos(el, cx, cy, mw, mh) { } var imgPrev = null; +var imgX = 0; +var imgY = 0; function handleImgPreview(a) { a.onmouseenter = function(e) { var mw = document.documentElement.clientWidth; var mh = document.documentElement.clientHeight - 24; + imgX = e.clientX; + imgY = e.clientY; var img = document.createElement("img"); img.id = "img-preview"; img.src = e.target.getAttribute("href"); img.style["max-width"] = mw + "px"; img.style["max-height"] = mh + "px"; img.onload = function(e2) { - setPos(e2.target, e.clientX, e.clientY, mw, mh); + setPos(imgPrev, imgX, imgY, mw, mh); } document.body.appendChild(img); imgPrev = img; @@ -259,7 +263,9 @@ function handleImgPreview(a) { return; var mw = document.documentElement.clientWidth; var mh = document.documentElement.clientHeight - 24; - setPos(imgPrev, e.clientX, e.clientY, mw, mh); + imgX = e.clientX; + imgY = e.clientY; + setPos(imgPrev, imgX, imgY, mw, mh); } } -- cgit v1.2.3 From b8bab6fcf337e6c48437d45cf192e085e19cdf49 Mon Sep 17 00:00:00 2001 From: r Date: Thu, 27 Jan 2022 10:53:18 +0000 Subject: Highlight quotes --- static/style.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static') diff --git a/static/style.css b/static/style.css index cd7e98c..96c842f 100644 --- a/static/style.css +++ b/static/style.css @@ -575,6 +575,10 @@ kbd { position: fixed; } +.quote { + color: #789922; +} + .dark { background-color: #222222; background-image: none; -- cgit v1.2.3 From 0b004efffab6775223c7921b099bd50b6e060f3b Mon Sep 17 00:00:00 2001 From: r Date: Thu, 27 Jan 2022 11:50:54 +0000 Subject: Add refresh button on timeline page --- static/style.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index 96c842f..4e2a196 100644 --- a/static/style.css +++ b/static/style.css @@ -517,16 +517,16 @@ img.emoji { margin-top: 6px; } -.notification-title-container { +.page-title-container { margin: 8px 0; } -.notification-text { - vertical-align: middle; +.page-refresh { + margin-right: 8px; } -.notification-refresh { - margin-right: 8px; +.notification-text { + vertical-align: middle; } .notification-read { -- cgit v1.2.3 From 4ef5e0daf285f41850c9ac53b0322d85fbf5eaec Mon Sep 17 00:00:00 2001 From: r Date: Thu, 27 Jan 2022 11:52:47 +0000 Subject: Fix null imgPrev in setPos --- static/fluoride.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/fluoride.js b/static/fluoride.js index 917ffff..6f14f86 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -246,11 +246,11 @@ function handleImgPreview(a) { img.src = e.target.getAttribute("href"); img.style["max-width"] = mw + "px"; img.style["max-height"] = mh + "px"; + imgPrev = img; img.onload = function(e2) { setPos(imgPrev, imgX, imgY, mw, mh); } document.body.appendChild(img); - imgPrev = img; } a.onmouseleave = function(e) { var img = document.getElementById("img-preview"); -- cgit v1.2.3