Ver código fonte

replaced options page with embedded options page

Gildas 7 anos atrás
pai
commit
a95fe1c45a
3 arquivos alterados com 8 adições e 18 exclusões
  1. 4 15
      extension/ui/pages/options.css
  2. 0 2
      extension/ui/pages/options.html
  3. 4 1
      manifest.json

+ 4 - 15
extension/ui/pages/options.css

@@ -1,22 +1,12 @@
 body {
-	background-color: #eee;
+	background-color: #fff;
 }
 
 body>div {
 	margin-left: auto;
-	margin-right: auto;
-	width: 350px;
-	background-color: #fff;
+	margin-right: auto;	
 	font-family: sans-serif;
-	margin-bottom: 10px;
-	border-width: 1px;
-	border-style: solid;
-	border-radius: 8px;
-	padding-left: 10px;
-	padding-right: 10px;
-	padding-bottom: 5px;
 	text-align: justify;
-	box-shadow: #888 2px 2px 2px;
 }
 
 #icon {
@@ -25,12 +15,11 @@ body>div {
 }
 
 button {
-	background: -webkit-gradient(linear, left bottom, left top, color-stop(0.12, rgb(201
-		, 201, 201) ), color-stop(0.79, rgb(247, 247, 247) ) );
+	background: white;
 	border-color: rgb(191, 191, 191);
 	border-style: solid;
 	height: 25px;
-	border-radius: 4px;
+	border-radius: 2px;
 }
 
 button:active {

+ 0 - 2
extension/ui/pages/options.html

@@ -9,8 +9,6 @@
 
 <body>
 	<div>
-		<h2>SingleFile</h2>
-		<hr>
 		<div id="popupContent">
 			<h4>Options</h4>
 			<div class="option">

+ 4 - 1
manifest.json

@@ -16,7 +16,10 @@
             "extension/ui/scripts/bg/ui.js"
         ]
     },
-    "options_page": "extension/ui/pages/options.html",
+    "options_ui": {
+        "page": "extension/ui/pages/options.html",
+        "open_in_tab": false
+    },
     "browser_action": {
         "default_icon": "extension/ui/resources/icon_19.png",
         "default_title": "Process this page with SingleFile"