From 606b0e176953d9ff48beb56f7e2bf064ee2c3ef2 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 19 Feb 2022 06:33:20 +0300 Subject: [PATCH] actions as icons in manager --- edit.html | 2 +- edit/base.js | 5 ++- edit/edit.css | 2 +- edit/settings.css | 3 -- global-dark.css | 4 +- manage.html | 103 +++++++++++++++++++++------------------------- manage/manage.css | 84 ++++++++++++++++++------------------- popup.html | 5 +++ popup/popup.css | 36 +++++++++------- 9 files changed, 123 insertions(+), 121 deletions(-) diff --git a/edit.html b/edit.html index 0a0ec89e..9a2bdeda 100644 --- a/edit.html +++ b/edit.html @@ -491,5 +491,5 @@ - + diff --git a/edit/base.js b/edit/base.js index 778c9d51..ec5203ae 100644 --- a/edit/base.js +++ b/edit/base.js @@ -90,7 +90,10 @@ const baseInit = (() => { ], }; // switching the mode here to show the correct page ASAP, usually before DOMContentLoaded - const isUC = Boolean(style.usercssData || !id && prefs.get('newStyleAsUsercss')); + const isUC = Boolean(style.usercssData) || !id && ( + params.get('uc') === '1' || + !params.has('uc') && prefs.get('newStyleAsUsercss') + ); Object.assign(editor, /** @namespace Editor */ { style, isUsercss: isUC, diff --git a/edit/edit.css b/edit/edit.css index 9fe32b74..fcc4ec46 100644 --- a/edit/edit.css +++ b/edit/edit.css @@ -39,7 +39,7 @@ html.is-new-style #publish, .hidden { display: none !important; } -html.is-new-style #heading::after { +html.is-new-style #heading::before { content: attr(data-add); } html:not(.is-new-style) #heading::before { diff --git a/edit/settings.css b/edit/settings.css index 8ab5d8b0..bb092059 100644 --- a/edit/settings.css +++ b/edit/settings.css @@ -42,6 +42,3 @@ display: inline-flex; padding: 0 .8em 0 0; } -a[data-cmd=note] { - vertical-align: text-bottom; -} diff --git a/global-dark.css b/global-dark.css index e9c7a036..1bba8d3c 100644 --- a/global-dark.css +++ b/global-dark.css @@ -20,8 +20,8 @@ /* min/max are exposed in case we want to use an overdrive color for emphasis */ --cmin: hsl(0, 0%, 100%); --cmax: hsl(0, 0%, 0%); - --accent-1: hsl(180, 100%, 95%); - --accent-3: hsl(180, 30%, 18%); + --accent-1: hsl(180, 100%, 90%); + --accent-3: hsl(180, 30%, 25%); --input-bg: var(--c95); } textarea, diff --git a/manage.html b/manage.html index d1ccede7..028805eb 100644 --- a/manage.html +++ b/manage.html @@ -75,9 +75,7 @@