diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7f33807f..43de23ac 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -185,6 +185,10 @@ "message": "Options", "description": "Heading for options section on manage page." }, + "popupStylesFirst": { + "message": "List styles before commands in the toolbar button menu", + "description": "Label for the checkbox controlling section order in the toolbar button menu." + }, "prefShowBadge": { "message": "Show number of styles active for the current site on the toolbar button", "description": "Label for the checkbox controlling toolbar badge text." diff --git a/manage.html b/manage.html index 23fe8e1a..150cf5a2 100644 --- a/manage.html +++ b/manage.html @@ -91,6 +91,7 @@ .update-done .check-update { display: none; } + .hidden {display: none} @media(max-width:675px) { #header { @@ -143,6 +144,7 @@

+
diff --git a/manage.js b/manage.js index 8d0bfb98..5bad7721 100644 --- a/manage.js +++ b/manage.js @@ -348,6 +348,7 @@ tE("show-badge-label", "prefShowBadge"); tE("manage.onlyEnabled-label", "manageOnlyEnabled"); tE("manage.onlyEdited-label", "manageOnlyEdited"); tE("filters", "manageFilters"); +tE("stylesFirst-label", "popupStylesFirst"); document.getElementById("check-all-updates").addEventListener("click", checkUpdateAll, false); @@ -363,3 +364,5 @@ function initFilter(className, node) { } initFilter("enabled-only", document.getElementById("manage.onlyEnabled")); initFilter("edited-only", document.getElementById("manage.onlyEdited")); + +loadPrefs({"popup.stylesFirst": true}); diff --git a/popup.html b/popup.html index 15c799a4..611e0c2f 100644 --- a/popup.html +++ b/popup.html @@ -21,17 +21,47 @@ a, a:visited { color: black; } + .entry { - padding-bottom: 0.5em; - margin-bottom: 0.5em; + padding: 0.5em 0; border-bottom: 1px solid black; } + .entry:first-child { + padding-top: 0; + } + .entry:last-child { + border-bottom: none; + } + body > DIV { + border-bottom: 1px solid black; + } + body > DIV:last-of-type, + body.blocked > DIV { + border-bottom: none; + } + #installed { + margin-top: 0.5em; + } + body > .actions { + margin-top: 0.5em; + } + .actions > div, #unavailable { margin-bottom: 0.75em; } + #unavailable { + border: none; + } + #unavailable:empty { display: none; } + body.blocked #installed, + body.blocked #find-styles, + body.blocked #write-style { + display: none; + } + /* Never shown, but can be enabled with a style */ .enable, .disable { display: none; diff --git a/popup.js b/popup.js index c1cbf02d..63ecb5a0 100644 --- a/popup.js +++ b/popup.js @@ -4,15 +4,16 @@ styleTemplate.innerHTML = "