From db666735e4edb4af69b51f352df25013e5119fb6 Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Wed, 5 Jan 2022 15:59:13 -0500 Subject: [PATCH] a better, more compact extension UI --- Extensions/combined/content-style.css | 12 +++--- Extensions/combined/popup.css | 24 ++++++++--- Extensions/combined/popup.html | 61 +++++++++++++++++---------- Extensions/combined/ryd.background.js | 2 + 4 files changed, 64 insertions(+), 35 deletions(-) diff --git a/Extensions/combined/content-style.css b/Extensions/combined/content-style.css index 808199d..e2e5fa2 100644 --- a/Extensions/combined/content-style.css +++ b/Extensions/combined/content-style.css @@ -1,15 +1,15 @@ -/* :root { - --yt-spec-icon-disabled: #f44 !important; - --yt-spec-text-primary: #4f4 !important; - --yt-spec-general-background-a: #000 !important; +:root { + /* --yt-spec-icon-disabled: #f44 !important; + --yt-spec-text-primary: #4f4 !important; */ + /* --yt-spec-general-background-a: #000 !important; --yt-spec-general-background-b: #000 !important; --yt-spec-general-background-c: #000 !important; --yt-spec-brand-background-solid: #000 !important; --yt-spec-brand-background-primary: #000 !important; - --yt-spec-brand-background-secondary: #000 !important; + --yt-spec-brand-background-secondary: #000 !important; */ } -html:not(.style-scope)[dark], :not(.style-scope)[dark] { +/* html:not(.style-scope)[dark], :not(.style-scope)[dark] { --yt-spec-general-background-a: #000 !important; --yt-spec-general-background-b: #000 !important; --yt-spec-general-background-c: #000 !important; diff --git a/Extensions/combined/popup.css b/Extensions/combined/popup.css index 8aae769..b56ca6a 100644 --- a/Extensions/combined/popup.css +++ b/Extensions/combined/popup.css @@ -33,8 +33,8 @@ button { border: none; border-radius: 4px; font-weight: 500; - box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), - 0 1px 10px 0 rgb(0 0 0 / 12%); + /* box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), + 0 1px 10px 0 rgb(0 0 0 / 12%); */ transition: 0.4s; } @@ -42,12 +42,23 @@ button:hover { background: #444; } +#ext-version { + z-index: 69; + position: fixed; + margin: 0; + bottom: 1.15rem; + right: 1.15rem; + background: var(--secondary); + border-radius: .25rem; + padding: .25rem .5rem; +} + #advancedToggle { position: fixed; background: none; box-shadow: none; color: var(--lightGrey); - top: 22px; right: 22px; + top: 26px; right: 26px; padding: 2px; z-index: 69; height: 2rem; @@ -65,14 +76,15 @@ button:hover { #advancedSettings { opacity: 0; + pointer-events: none; transition-duration: .15s; transition-timing-function: ease-in-out; transform: scale(1.1); position: fixed; background: var(--background); - top: 4px; right: 9px; - width: calc(100% - 55px); - height: calc(100% - 48px); + top: 10px; right: 14px; + width: calc(100% - 65px); + height: calc(100% - 58px); border: 2px solid var(--secondary); border-radius: 0.5rem; padding: 1rem; diff --git a/Extensions/combined/popup.html b/Extensions/combined/popup.html index 653144f..e45c915 100644 --- a/Extensions/combined/popup.html +++ b/Extensions/combined/popup.html @@ -13,38 +13,44 @@
- - -

API Status:

-

by Dmitrii Selivanov & Community

-

- -

Return YouTube Dislike

-

by Dmitrii Selivanov & Community

- +

Return YouTube Dislike

+

by Dmitrii Selivanov & Community

+ - +
- - + + + +

+

API Status:

+ + +
+
+ + +

+ +
Settings @@ -53,23 +59,32 @@ Disable like/dislike submission + + - 5-star Rating Bar
- -
diff --git a/Extensions/combined/ryd.background.js b/Extensions/combined/ryd.background.js index e332d8d..3954e72 100644 --- a/Extensions/combined/ryd.background.js +++ b/Extensions/combined/ryd.background.js @@ -6,6 +6,8 @@ let api; /** stores extension's global config */ let extConfig = { disableVoteSubmission: false + // coloredThumbs: false, + // coloredBar: false, } if (isChrome()) api = chrome;