From ccc1f4cad104a169b175ec1b9088a93bf8cd6a1c Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Tue, 3 May 2022 00:05:04 -0400 Subject: [PATCH] popup.css organization in topological order --- public/popup.css | 521 +++++++++++++++++++--------------------------- public/popup.html | 2 +- 2 files changed, 213 insertions(+), 310 deletions(-) diff --git a/public/popup.css b/public/popup.css index f4d15c9b..2c2a28bf 100644 --- a/public/popup.css +++ b/public/popup.css @@ -1,48 +1,52 @@ :root { --sb-main-font-family: "Source Sans Pro", sans-serif; - --sb-main-bg-color: #212121; + --sb-main-bg-color: #222; --sb-main-fg-color: #fff; --sb-grey-bg-color: #333; --sb-grey-fg-color: #999; --sb-red-bg-color: #cc1717; } +/* + * Generic utilities + */ .grey-text { color: var(--sb-grey-fg-color); } .white-text { color: var(--sb-main-fg-color); } - -/* - * Container when popup displayed in-page - */ - -#sponsorBlockPopupContainer { +.sbHeader { + font-size: 20px; + font-weight: bold; + text-align: left; + margin: 0; +} +#sponsorBlockPopupBody .u-mZ { + margin: 0 !important; position: relative; - margin-bottom: 16px; +} + +#sponsorBlockPopupBody .hidden { + display: none !important; } /* - * Disable popup max height when displayed in-page + *