From bd0e8273c198673e72bf05ee8e20e0fb0cfde4ac Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 21 Feb 2022 00:02:42 +0300 Subject: [PATCH] add USA/USW/US/GF splitter to Find styles --- _locales/en/messages.json | 12 --- edit/settings.css | 3 - global.css | 6 ++ js/prefs.js | 1 - popup.html | 29 +++--- popup/popup.css | 29 ++++-- popup/popup.js | 19 ++-- popup/search.js | 201 +++++++++++++++++++------------------- 8 files changed, 151 insertions(+), 149 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 8ca3a34e..1bf29a7c 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -451,18 +451,6 @@ "message": "Find styles", "description": "Text for a link that gets a list of styles for the current site" }, - "findStylesForSite": { - "message": "Find more styles for this site", - "description": "Text for a link that gets a list of styles for the current site" - }, - "findStylesInline": { - "message": "Inline", - "description": "Text for a checkbox that opens search results 'inline' (within the Stylus popup window)" - }, - "findStylesInlineTooltip": { - "message": "Display search results inside this window.", - "description": "Text for a checkbox that displays search results within the Stylus popup." - }, "genericAdd": { "message": "Add", "description": "Used in various places for an action that adds something" diff --git a/edit/settings.css b/edit/settings.css index ffa9acf0..8ab5d8b0 100644 --- a/edit/settings.css +++ b/edit/settings.css @@ -23,9 +23,6 @@ .style-settings input:disabled ~ label { opacity: .5; } -.style-settings .rel { - position: relative; -} .style-settings .w100 { display: block; width: 100%; diff --git a/global.css b/global.css index 926fa86f..4237fe22 100644 --- a/global.css +++ b/global.css @@ -297,6 +297,12 @@ summary { .hidden { display: none !important; } +.rel { + position: relative; +} +.abs { + position: absolute; +} :focus, .CodeMirror-focused, diff --git a/js/prefs.js b/js/prefs.js index e47e827b..454bdb10 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -42,7 +42,6 @@ 'popup.stylesFirst': true, // display enabled styles before disabled styles 'popup.autoResort': false, // auto resort styles after toggling 'popup.borders': false, // add white borders on the sides - 'popup.findStylesInline': true, // use the inline style search /** @type {'n' | 'u' | 't' | 'w' | 'r'} see IndexEntry */ 'popup.findSort': 'u', // the inline style search sort order diff --git a/popup.html b/popup.html index 1f0edfb5..bded0f35 100644 --- a/popup.html +++ b/popup.html @@ -196,15 +196,6 @@ -
- - -
@@ -212,15 +203,25 @@