From 3242b7deaf14d786148a9687c9ed3c2022d60661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nil=C3=A9ane?= Date: Sun, 17 Dec 2023 16:20:27 +0100 Subject: [PATCH] Styling for sensitive media overlay --- TangerineUI-cherry.css | 29 ++++++++++++++++++++++++++++- TangerineUI-purple.css | 29 ++++++++++++++++++++++++++++- TangerineUI.css | 29 ++++++++++++++++++++++++++++- 3 files changed, 84 insertions(+), 3 deletions(-) diff --git a/TangerineUI-cherry.css b/TangerineUI-cherry.css index ec457a3..ab450b1 100644 --- a/TangerineUI-cherry.css +++ b/TangerineUI-cherry.css @@ -1934,8 +1934,35 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu } .app-body .media-gallery__preview, .app-body .video-player { - background-color: var(--color-content-bg); + background-color: var(--color-content-secondary-bg); } +.app-body .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.05); + outline-offset: -1px; + height: calc(100% - 1px); + border-radius: 8px; + transition: all .2s; +} +.app-body .spoiler-button:hover + .media-gallery__item > .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.15); +} +.app-body .spoiler-button__overlay__label, +.app-body .spoiler-button__overlay__label:is(:focus, :hover), +.app-body .spoiler-button__overlay:is(:focus, :hover) .spoiler-button__overlay__label { + backdrop-filter: none; + -webkit-backdrop-filter: none; + background-color: transparent; + color: var(--color-content-fg); +} +.app-body .spoiler-button__overlay__label > span:first-child { + font-weight: bold; +} + +.app-body .media-gallery__gifv__label { + background-color: rgba(0, 0, 0, .1); + border-radius: 6px; +} + /* 📊 Polls */ .app-body .poll__chart, diff --git a/TangerineUI-purple.css b/TangerineUI-purple.css index f35ceec..67af3f6 100644 --- a/TangerineUI-purple.css +++ b/TangerineUI-purple.css @@ -1933,8 +1933,35 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu } .app-body .media-gallery__preview, .app-body .video-player { - background-color: var(--color-content-bg); + background-color: var(--color-content-secondary-bg); } +.app-body .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.05); + outline-offset: -1px; + height: calc(100% - 1px); + border-radius: 8px; + transition: all .2s; +} +.app-body .spoiler-button:hover + .media-gallery__item > .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.15); +} +.app-body .spoiler-button__overlay__label, +.app-body .spoiler-button__overlay__label:is(:focus, :hover), +.app-body .spoiler-button__overlay:is(:focus, :hover) .spoiler-button__overlay__label { + backdrop-filter: none; + -webkit-backdrop-filter: none; + background-color: transparent; + color: var(--color-content-fg); +} +.app-body .spoiler-button__overlay__label > span:first-child { + font-weight: bold; +} + +.app-body .media-gallery__gifv__label { + background-color: rgba(0, 0, 0, .1); + border-radius: 6px; +} + /* 📊 Polls */ .app-body .poll__chart, diff --git a/TangerineUI.css b/TangerineUI.css index f6f8f96..67326f1 100644 --- a/TangerineUI.css +++ b/TangerineUI.css @@ -1933,8 +1933,35 @@ div[tabindex="-1"] + div[tabindex="-1"] > .status__wrapper > .status-reply.statu } .app-body .media-gallery__preview, .app-body .video-player { - background-color: var(--color-content-bg); + background-color: var(--color-content-secondary-bg); } +.app-body .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.05); + outline-offset: -1px; + height: calc(100% - 1px); + border-radius: 8px; + transition: all .2s; +} +.app-body .spoiler-button:hover + .media-gallery__item > .media-gallery__preview { + outline: 1px solid rgba(0, 0, 0, 0.15); +} +.app-body .spoiler-button__overlay__label, +.app-body .spoiler-button__overlay__label:is(:focus, :hover), +.app-body .spoiler-button__overlay:is(:focus, :hover) .spoiler-button__overlay__label { + backdrop-filter: none; + -webkit-backdrop-filter: none; + background-color: transparent; + color: var(--color-content-fg); +} +.app-body .spoiler-button__overlay__label > span:first-child { + font-weight: bold; +} + +.app-body .media-gallery__gifv__label { + background-color: rgba(0, 0, 0, .1); + border-radius: 6px; +} + /* 📊 Polls */ .app-body .poll__chart,