Options UI discoverability and other fixes

#34
This commit is contained in:
narcolepticinsomniac 2017-02-28 18:57:03 -05:00 committed by GitHub
parent 47b3036f59
commit 9a2cab60dd
25 changed files with 370 additions and 420 deletions

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "إدارة الأنماط المثبتة.", "message": "إدارة الأنماط المثبتة",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "يمكنك تغيير نمط الويب باستخدام Stylus، وهي أداة لإدارة أنماط المستخدم. وتتيح Stylus لك بسهولة تثبيت المظاهر والأشكال الخارجية لكل من Google، وFacebook وYouTube وOrkut فضلاً عن الكثير جدًا من مواقع الويب الأخرى.", "message": "يمكنك تغيير نمط الويب باستخدام Stylus، وهي أداة لإدارة أنماط المستخدم. وتتيح Stylus لك بسهولة تثبيت المظاهر والأشكال الخارجية لكل من Google، وFacebook وYouTube وOrkut فضلاً عن الكثير جدًا من مواقع الويب الأخرى.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Spravovat nainstalovné styly.", "message": "Spravovat nainstalovné styly",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Přestylujte web pomocí Stylus, manažeru uživatelských stylů. Stylus vám umožní nainstalovat témata a skiny pro mnoho populárních webů.", "message": "Přestylujte web pomocí Stylus, manažeru uživatelských stylů. Stylus vám umožní nainstalovat témata a skiny pro mnoho populárních webů.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Installierte Styles verwalten.", "message": "Installierte Styles verwalten",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Gestalten Sie das Web mit Stylus, einem Manager für Benutzer-Styles, um. Stylus lässt Sie ganz einfach Themes und Skins für viele beliebte Webseiten installieren.", "message": "Gestalten Sie das Web mit Stylus, einem Manager für Benutzer-Styles, um. Stylus lässt Sie ganz einfach Themes und Skins für viele beliebte Webseiten installieren.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Διαχείριση εγκατεστημένων στυλ.", "message": "Διαχείριση εγκατεστημένων στυλ",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Επαναπροσδιορίση του διαδίκτυου με το Stylus, έναν διαχειριστή στυλ. Το Stylus σας επιτρέπει να εγκαταστήσετε εύκολα themes και skins για πολλές δημοφιλείς ιστοσελίδες.", "message": "Επαναπροσδιορίση του διαδίκτυου με το Stylus, έναν διαχειριστή στυλ. Το Stylus σας επιτρέπει να εγκαταστήσετε εύκολα themes και skins για πολλές δημοφιλείς ιστοσελίδες.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -156,6 +156,10 @@
"message": "Goto line (or line:col)", "message": "Goto line (or line:col)",
"description": "Go to line or line:column on Ctrl-G in style code editor" "description": "Go to line or line:column on Ctrl-G in style code editor"
}, },
"editorStylesButton": {
"message": "Find editor styles",
"description": "Find styles for the editor"
},
"editStyleHeading": { "editStyleHeading": {
"message": "Edit Style", "message": "Edit Style",
"description": "Title of the page for editing styles" "description": "Title of the page for editing styles"
@ -262,7 +266,7 @@
"description": "Text displayed when no styles are installed for the current site" "description": "Text displayed when no styles are installed for the current site"
}, },
"openManage": { "openManage": {
"message": "Manage installed styles.", "message": "Manage installed styles",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"openOptionsManage": { "openOptionsManage": {
@ -449,10 +453,10 @@
"description": "Text for link in toolbar pop-up to write a new style for the current URL" "description": "Text for link in toolbar pop-up to write a new style for the current URL"
}, },
"bckpInstStyles": { "bckpInstStyles": {
"message": "Export Styles" "message": "Export styles"
}, },
"retrieveBckp": { "retrieveBckp": {
"message": "Import Styles" "message": "Import styles"
}, },
"optionsBadgeNormal": { "optionsBadgeNormal": {
"message": "Badge background color" "message": "Badge background color"

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Hallitse asennettuja tyylejä.", "message": "Hallitse asennettuja tyylejä",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Uudelleen stailaa netti Stylusillä, käyttäjän tyyli hallintapaneelilla. Stylus antaa sinun helposti asentaa teemoja ja skinejä palvelluille kuten Google, Facebook, YouTube, Orkut, ja monelle, monelle muulle sivustolle.", "message": "Uudelleen stailaa netti Stylusillä, käyttäjän tyyli hallintapaneelilla. Stylus antaa sinun helposti asentaa teemoja ja skinejä palvelluille kuten Google, Facebook, YouTube, Orkut, ja monelle, monelle muulle sivustolle.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -415,11 +415,5 @@
"description": { "description": {
"message": "Changez l'apparence du Web grâce à Stylus, un outil de gestion des styles utilisateur. Stylus vous permet d'installer facilement des thèmes et des habillages pour Google, Facebook, YouTube, orkut et bien d'autres sites encore.", "message": "Changez l'apparence du Web grâce à Stylus, un outil de gestion des styles utilisateur. Stylus vous permet d'installer facilement des thèmes et des habillages pour Google, Facebook, YouTube, orkut et bien d'autres sites encore.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Gestisci gli stili installati.", "message": "Gestisci gli stili installati",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Modifica lo stile del Web con Stylus, un gestore di stili utente. Stylus consente di installare facilmente temi e skin per Google, Facebook, YouTube, Orkut e moltissimi altri siti.", "message": "Modifica lo stile del Web con Stylus, un gestore di stili utente. Stylus consente di installare facilmente temi e skin per Google, Facebook, YouTube, Orkut e moltissimi altri siti.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -415,11 +415,5 @@
"description": { "description": {
"message": "Stylus はユーザー スタイルを管理するツールで、ウェブのスタイルを変更することができます。Stylus を利用すると、Google、Facebook、YouTube、orkut など、さまざまなサイトに対応したテーマやスキンを簡単にインストールできます。", "message": "Stylus はユーザー スタイルを管理するツールで、ウェブのスタイルを変更することができます。Stylus を利用すると、Google、Facebook、YouTube、orkut など、さまざまなサイトに対応したテーマやスキンを簡単にインストールできます。",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Geïnstalleerde stijlen beheren.", "message": "Geïnstalleerde stijlen beheren",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Voorzie het web van een ander uiterlijk met Stylus, een gebruikersstijlbeheerder. Stylus stelt u in staat om eenvoudig thema's en stijlen te installeren voor vele populaire websites.", "message": "Voorzie het web van een ander uiterlijk met Stylus, een gebruikersstijlbeheerder. Stylus stelt u in staat om eenvoudig thema's en stijlen te installeren voor vele populaire websites.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Gerenciar estilos instalados.", "message": "Gerenciar estilos instalados",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Mude o estilo da web com o Stylus, um gerenciador de estilos do usuário. O Stylus permite instalar facilmente temas e skins para Google, Facebook, YouTube, Orkut e muitos, muitos outros sites.", "message": "Mude o estilo da web com o Stylus, um gerenciador de estilos do usuário. O Stylus permite instalar facilmente temas e skins para Google, Facebook, YouTube, Orkut e muitos, muitos outros sites.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Управление установленными стилями.", "message": "Управление установленными стилями",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Настраивайте стили веб-сайтов с помощью менеджера стилей Stylus. Он позволяет легко установить темы и изменить внешний вид сайтов Google, Facebook, YouTube, Orkut и множества других веб-страниц.", "message": "Настраивайте стили веб-сайтов с помощью менеджера стилей Stylus. Он позволяет легко установить темы и изменить внешний вид сайтов Google, Facebook, YouTube, Orkut и множества других веб-страниц.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Управљај инсталираним стиловима.", "message": "Управљај инсталираним стиловима",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.", "message": "Измените стил интернет мреже управљачем корисничких стилова. Stylus вам омогућава да лако инсталирате теме и скинове за многе популарне сајтове.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Hantera installerade stilar.", "message": "Hantera installerade stilar",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Style:a om webben med Stylus, en användarstils-hanterare. Stylus låter dig enkelt installera teman och skal för många populära sidor.", "message": "Style:a om webben med Stylus, en användarstils-hanterare. Stylus låter dig enkelt installera teman och skal för många populära sidor.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Hantera installerade stilar.", "message": "Hantera installerade stilar",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -418,8 +418,5 @@
}, },
"bckpInstStyles": { "bckpInstStyles": {
"message": "Export Styles" "message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Manage installed styles.", "message": "Manage installed styles",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Restyle the web with Stylus, a user styles manager. Stylus lets you easily install themes and skins for many popular sites.", "message": "Restyle the web with Stylus, a user styles manager. Stylus lets you easily install themes and skins for many popular sites.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "Yüklü stilleri yönet.", "message": "Yüklü stilleri yönet",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Kullanıcı stil yöneticisi Stylus ile Web'in stilini yenileyin. Stylus Google, Facebook, YouTube, Orkut ve diğer pek çok site için temalar ve görünüm yüklemenize imkân tanır.", "message": "Kullanıcı stil yöneticisi Stylus ile Web'in stilini yenileyin. Stylus Google, Facebook, YouTube, Orkut ve diğer pek çok site için temalar ve görünüm yüklemenize imkân tanır.",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -415,11 +415,5 @@
"description": { "description": {
"message": "Stylus一个用户样式管理器帮助您重新定义网页样式。Stylus易于为GoogleFacebookYoutubeOrkut以及其它各类型网站安装样式和主题。", "message": "Stylus一个用户样式管理器帮助您重新定义网页样式。Stylus易于为GoogleFacebookYoutubeOrkut以及其它各类型网站安装样式和主题。",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -264,7 +264,7 @@
"description": "Label for 'applies to' fields on the edit/add screen" "description": "Label for 'applies to' fields on the edit/add screen"
}, },
"openManage": { "openManage": {
"message": "管理已安装的样式", "message": "管理已安装的样式",
"description": "Link to open the manage page." "description": "Link to open the manage page."
}, },
"updateCheckFailBadResponseCode": { "updateCheckFailBadResponseCode": {
@ -415,11 +415,5 @@
"description": { "description": {
"message": "Stylus 是一个调整网页外观的用户样式管理器。它可让您轻松地为许多热门网站网站安装主题和皮肤。", "message": "Stylus 是一个调整网页外观的用户样式管理器。它可让您轻松地为许多热门网站网站安装主题和皮肤。",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -415,11 +415,5 @@
"description": { "description": {
"message": "用Stylus一個用戶樣式管理器重塑網頁。 Stylus 讓你能為诸多主流網站輕鬆的安裝主題和皮膚。", "message": "用Stylus一個用戶樣式管理器重塑網頁。 Stylus 讓你能為诸多主流網站輕鬆的安裝主題和皮膚。",
"description": "Extension description" "description": "Extension description"
},
"bckpInstStyles": {
"message": "Export Styles"
},
"retrieveBckp": {
"message": "Import Styles"
} }
} }

View File

@ -1,4 +1,5 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title i18n-text="manageTitle"></title> <title i18n-text="manageTitle"></title>
@ -7,7 +8,8 @@
margin: 0; margin: 0;
font: 12px arial, sans-serif; font: 12px arial, sans-serif;
} }
a, a:visited { a,
a:visited {
color: #555; color: #555;
-webkit-transition: color 0.5s; -webkit-transition: color 0.5s;
} }
@ -41,7 +43,8 @@
content: ""; content: "";
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; height: 2px; width: 100%;
height: 2px;
background-color: #fff; background-color: #fff;
} }
img[src*="world"] { img[src*="world"] {
@ -53,7 +56,8 @@
.applies-to { .applies-to {
word-break: break-word; word-break: break-word;
} }
.applies-to, .actions { .applies-to,
.actions {
padding-left: 15px; padding-left: 15px;
} }
.applies-to-extra { .applies-to-extra {
@ -71,20 +75,24 @@
.enabled .enable { .enabled .enable {
display: none; display: none;
} }
/* Default, no update buttons */ /* Default, no update buttons */
.update, .check-update {
.update,
.check-update {
display: none; display: none;
} }
/* Check update button for things that can*/ /* Check update button for things that can*/
*[style-update-url] .check-update { *[style-update-url] .check-update {
display: inline; display: inline;
} }
/* Update check in progress */ /* Update check in progress */
.checking-update .check-update { .checking-update .check-update {
display: none; display: none;
} }
/* Updates available */ /* Updates available */
.can-update .update { .can-update .update {
display: inline; display: inline;
} }
@ -92,15 +100,18 @@
display: none; display: none;
} }
/* Updates not available */ /* Updates not available */
.no-update .check-update { .no-update .check-update {
display: none; display: none;
} }
/* Updates done */ /* Updates done */
.update-done .check-update { .update-done .check-update {
display: none; display: none;
} }
.hidden {display: none} .hidden {
display: none
}
@media(max-width:675px) { @media(max-width:675px) {
#header { #header {
height: auto; height: auto;
@ -108,30 +119,26 @@
width: auto; width: auto;
border-right: none; border-right: none;
} }
#installed { #installed {
margin-left: 0; margin-left: 0;
} }
[style-id] { [style-id] {
margin: 0; margin: 0;
} }
} }
#header { #header {
overflow: auto; overflow: auto;
height: calc(100vh - 30px) height: calc(100vh - 30px)
} }
fieldset { fieldset {
border-width: 1px; border-width: 1px;
border-radius: 6px; border-radius: 6px;
margin: 1em 0; margin: 1em 0;
} }
.enabled-only > .disabled, .edited-only > [style-update-url] { .enabled-only > .disabled,
.edited-only > [style-update-url] {
display: none; display: none;
} }
#search { #search {
width: calc(100% - 4px); width: calc(100% - 4px);
margin: 0.25rem 4px 0; margin: 0.25rem 4px 0;
@ -139,7 +146,6 @@
padding-left: 0.25rem; padding-left: 0.25rem;
border-width: 1px; border-width: 1px;
} }
#import ul { #import ul {
margin-left: 0; margin-left: 0;
padding-left: 0; padding-left: 0;
@ -153,7 +159,6 @@
overflow: auto; overflow: auto;
margin: 0 0 .5em 0; margin: 0 0 .5em 0;
} }
</style> </style>
<template data-id="style"> <template data-id="style">
@ -185,36 +190,62 @@
<script src="apply.js"></script> <script src="apply.js"></script>
<script src="manage.js"></script> <script src="manage.js"></script>
</head> </head>
<body id="stylus-manage"> <body id="stylus-manage">
<div id="header"> <div id="header">
<h1 id="manage-heading" i18n-text="manageHeading"></h1> <h1 id="manage-heading" i18n-text="manageHeading"></h1>
<fieldset> <fieldset>
<legend id="filters" i18n-text="manageFilters"></legend> <legend id="filters" i18n-text="manageFilters"></legend>
<div><input id="manage.onlyEnabled" type="checkbox"><label id="manage.onlyEnabled-label" for="manage.onlyEnabled" i18n-text="manageOnlyEnabled"></label></div> <div>
<div><input id="manage.onlyEdited" type="checkbox"><label id="manage.onlyEdited-label" for="manage.onlyEdited" i18n-text="manageOnlyEdited"></label></div> <input id="manage.onlyEnabled" type="checkbox">
<div><input id="search" type="search" i18n-placeholder="searchStyles"></div> <label id="manage.onlyEnabled-label" for="manage.onlyEnabled" i18n-text="manageOnlyEnabled"></label>
</div>
<div>
<input id="manage.onlyEdited" type="checkbox">
<label id="manage.onlyEdited-label" for="manage.onlyEdited" i18n-text="manageOnlyEdited"></label>
</div>
<div>
<input id="search" type="search" i18n-placeholder="searchStyles">
</div>
</fieldset> </fieldset>
<p><button id="check-all-updates" i18n-text="checkAllUpdates"></button></p> <p>
<button id="check-all-updates" i18n-text="checkAllUpdates"></button>
</p>
<p> <p>
<button id="apply-all-updates" class="hidden" i18n-text="applyAllUpdates"></button> <button id="apply-all-updates" class="hidden" i18n-text="applyAllUpdates"></button>
<span id="update-all-no-updates" class="hidden" i18n-text="updateAllCheckSucceededNoUpdate"></span> <span id="update-all-no-updates" class="hidden" i18n-text="updateAllCheckSucceededNoUpdate"></span>
</p> </p>
<p><a href="edit.html"><button id="add-style-label" i18n-text="addStyleLabel"></button></a></p> <p>
<a href="edit.html">
<button id="add-style-label" i18n-text="addStyleLabel"></button>
</a>
</p>
<div id="options"> <div id="options">
<h2 id="options-heading" i18n-text="optionsHeading"></h2> <h2 id="options-heading" i18n-text="optionsHeading"></h2>
<div><input id="show-badge" type="checkbox"><label id="show-badge-label" for="show-badge" i18n-text="prefShowBadge"></label></div> <div>
<div><input id="popup.stylesFirst" type="checkbox"><label id="stylesFirst-label" for="popup.stylesFirst" i18n-text="popupStylesFirst"></label></div> <input id="show-badge" type="checkbox">
<label id="show-badge-label" for="show-badge" i18n-text="prefShowBadge"></label>
</div>
<div>
<input id="popup.stylesFirst" type="checkbox">
<label id="stylesFirst-label" for="popup.stylesFirst" i18n-text="popupStylesFirst"></label>
</div>
<div id="more-options"> <div id="more-options">
<h3 id="options-subheading" i18n-text="optionsSubheading"></h3> <h3 id="options-subheading" i18n-text="optionsSubheading"></h3>
<button id="manage-options-button" i18n-text="openOptionsManage"></button> <button id="manage-options-button" i18n-text="openOptionsManage"></button>
<button id="shortcuts-button" i18n-text="openOptionsShortcuts"></button> <button id="manage-shortcuts-button" i18n-text="openOptionsShortcuts"></button>
<p>
<button id="editor-styles-button" i18n-text="editorStylesButton"></button>
</p>
</div> </div>
</div> </div>
<div id="backup"> <div id="backup">
<h2 id="backup" i18n-text="backupButtons"></h2> <h2 id="backup" i18n-text="backupButtons"></h2>
<span id="backup-message" i18n-text="backupMessage"><br><br></span> <span id="backup-message" i18n-text="backupMessage"></span>
<p>
<button id="file-all-styles" i18n-text="bckpInstStyles"></button> <button id="file-all-styles" i18n-text="bckpInstStyles"></button>
<button id="unfile-all-styles" i18n-text="retrieveBckp"></button> <button id="unfile-all-styles" i18n-text="retrieveBckp"></button>
</p>
</div> </div>
<p id="manage-text" i18n-html="manageText"></p> <p id="manage-text" i18n-html="manageText"></p>
</div> </div>
@ -222,4 +253,5 @@
<script src="openOptions.js"></script> <script src="openOptions.js"></script>
<script src="backup/fileSaveLoad.js"></script> <script src="backup/fileSaveLoad.js"></script>
</body> </body>
</html> </html>

View File

@ -8,8 +8,14 @@ document.querySelector('#manage-options-button').addEventListener("click", funct
} }
}); });
document.querySelector('#shortcuts-button').addEventListener("click", function() { document.querySelector('#manage-shortcuts-button').addEventListener("click", function() {
chrome.tabs.create({ chrome.tabs.create({
'url': 'chrome://extensions/configureCommands' 'url': 'chrome://extensions/configureCommands'
}); });
}); });
document.querySelector('#editor-styles-button').addEventListener("click", function() {
chrome.tabs.create({
'url': 'https://userstyles.org/styles/browse/chrome-extension'
});
});

View File

@ -6,11 +6,17 @@ body {
input[type=checkbox] { input[type=checkbox] {
outline: none; outline: none;
} }
#disable-all-wrapper {
padding: 0.2em 0 0.7em;
}
#disable-all-wrapper .main-controls {
padding-top: 0.1em;
}
#no-styles { #no-styles {
font-style: italic; font-style: italic;
} }
#popup-shortcuts-button { #popup-shortcuts-button {
margin-left: 4px; margin-left: 3px;
} }
.checker { .checker {
display: inline; display: inline;

View File

@ -1,4 +1,5 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="popup.css"> <link rel="stylesheet" href="popup.css">
@ -26,12 +27,13 @@
<script src="messaging.js"></script> <script src="messaging.js"></script>
<script src="apply.js"></script> <script src="apply.js"></script>
</head> </head>
<body id="stylish-popup"> <body id="stylish-popup">
<div id="unavailable">
<div id="unavailable"><div class="main-controls"><span id="unavailable-message" i18n-text="stylishUnavailableForURL"></span></div></div> <div class="main-controls"><span id="unavailable-message" i18n-text="stylishUnavailableForURL"></span>
</div>
</div>
<div id="installed"></div> <div id="installed"></div>
<div class="actions"> <div class="actions">
<div id="disable-all-wrapper"> <div id="disable-all-wrapper">
<div class="left-gutter"> <div class="left-gutter">
@ -43,14 +45,21 @@
</div> </div>
<div class="left-gutter"></div> <div class="left-gutter"></div>
<div class="main-controls"> <div class="main-controls">
<div id="find-styles"><a id="find-styles-link" href="#" i18n-text="findStylesForSite"></a></div> <div id="manage-styles">
<div id="manage-styles"><a id="open-manage-link" href="manage.html" i18n-text="openManage"></a></div> <button id="popup-manage-button" i18n-text="openManage"></button>
<div id="popup-options"><button id="popup-options-button" i18n-text="openOptionsPopup"><button id="popup-shortcuts-button" i18n-text="openShortcutsPopup"></button></div> </div>
<div id="write-style"><span id="write-style-for" i18n-text="writeStyleFor"><br></span></div> <div id="popup-options">
<button id="popup-options-button" i18n-text="openOptionsPopup">
<button id="popup-shortcuts-button" i18n-text="openShortcutsPopup"></button>
</div>
<div id="find-styles">
<a id="find-styles-link" href="#" i18n-text="findStylesForSite"></a>
</div>
<div id="write-style"><span id="write-style-for" i18n-text="writeStyleFor"><br></span>
</div>
</div> </div>
</div> </div>
<script src="popup.js"></script> <script src="popup.js"></script>
</body> </body>
</html> </html>

View File

@ -199,7 +199,7 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
} }
}); });
["find-styles-link", "open-manage-link"].forEach(function(id) { ["find-styles-link"].forEach(function(id) {
document.getElementById(id).addEventListener("click", openLink, false); document.getElementById(id).addEventListener("click", openLink, false);
}); });
@ -208,6 +208,10 @@ document.getElementById("disableAll").addEventListener("change", function(event)
}); });
setupLivePrefs(["disableAll"]); setupLivePrefs(["disableAll"]);
document.querySelector('#popup-manage-button').addEventListener("click", function() {
window.open(chrome.runtime.getURL('manage.html'));
});
document.querySelector('#popup-options-button').addEventListener("click", function() { document.querySelector('#popup-options-button').addEventListener("click", function() {
if (chrome.runtime.openOptionsPage) { if (chrome.runtime.openOptionsPage) {
// Supported (Chrome 42+) // Supported (Chrome 42+)