From 4b207f3dd4b18de50a48ea5daec1c25bd1dd8272 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 10 Dec 2017 04:03:04 +0300 Subject: [PATCH] basic tweaks/fixes for inline search --- global.css | 4 + js/prefs.js | 1 + popup.html | 54 +++--- popup/popup.css | 5 + popup/popup.js | 2 + popup/search-results.css | 197 +++++++++---------- popup/search-results.js | 405 ++++++++++++++++++--------------------- 7 files changed, 325 insertions(+), 343 deletions(-) diff --git a/global.css b/global.css index f2887c7b..bf870f58 100644 --- a/global.css +++ b/global.css @@ -1,3 +1,7 @@ +.hidden { + display: none !important; +} + button { -webkit-appearance: none; -moz-appearance: none; diff --git a/js/prefs.js b/js/prefs.js index 5e8314d5..d9f0d3c4 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -19,6 +19,7 @@ var prefs = new function Prefs() { 'popup.enabledFirst': true, // display enabled styles before disabled styles 'popup.stylesFirst': true, // display enabled styles before disabled styles 'popup.borders': false, // add white borders on the sides + 'popup.findStylesInline': true, // use the inline style search 'manage.onlyEnabled': false, // display only enabled styles 'manage.onlyLocal': false, // display only styles created locally diff --git a/popup.html b/popup.html index d994f05b..a1a306be 100644 --- a/popup.html +++ b/popup.html @@ -87,7 +87,7 @@
- +
@@ -96,28 +96,23 @@ i18n-title="configureStyleOnHomepage">
-
- : - -
-
-
-
- - - -
-
+
+ + +
- : +
- : +
+
+
+
@@ -184,7 +179,7 @@