[Pkg-mozext-commits] [requestpolicy] 09/100: Update policy table styling. Rule text colour is either green or red based on the rule type.
David Prévot
taffit at moszumanska.debian.org
Fri Dec 12 22:56:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 32b1c7dc54a3710d00ae9aae1e5dc37b2efaefce
Author: Christopher Bura <christopher.bura at gmail.com>
Date: Tue Sep 2 06:00:08 2014 -0400
Update policy table styling. Rule text colour is either green or red based on the rule type.
---
src/content/settings/settings.css | 23 ++++++++++-------------
src/content/settings/yourpolicy.html | 7 -------
src/content/settings/yourpolicy.js | 14 +-------------
3 files changed, 11 insertions(+), 33 deletions(-)
diff --git a/src/content/settings/settings.css b/src/content/settings/settings.css
index 1c87ab7..e7c0a30 100644
--- a/src/content/settings/settings.css
+++ b/src/content/settings/settings.css
@@ -232,34 +232,31 @@ a.deleterule {
color: rgba(255, 255, 255, 0);
text-decoration: none;
font-weight: bold;
- font-size: 0.95em;
+ font-size: 1.2em;
outline: none;
}
-#policy-user tbody tr:hover {
- background-color: #EAF2FC;
-}
-
#policy-user tr:hover a.deleterule {
display: inline;
- color: #aaa;
+ color: #EA3556;
}
#policy-user tr:hover a.deleterule:hover {
color: #000;
}
-.policy-table-options {
- padding: 10px;
- color: #A6B2A9;
+#policy-user tbody tr:nth-child(odd) {
+ background-color: #FAFAFA;
+}
+
+#policy-user tbody tr:hover {
+ background-color: #B9D3EE;
}
-.allow.highlight {
- background-color: #CCE6C2;
+.allow {
color: #007F00;
}
-.block.highlight {
- background-color: #EBCCCC;
+.block {
color: #7F0000;
}
diff --git a/src/content/settings/yourpolicy.html b/src/content/settings/yourpolicy.html
index c007d57..93c0127 100644
--- a/src/content/settings/yourpolicy.html
+++ b/src/content/settings/yourpolicy.html
@@ -67,13 +67,6 @@
</div>
</div>
- <div class="policy-table-options">
- <form>
- <label for="highlight_rows" data-string="highlightRules"></label>
- <input type="checkbox" id="highlight_rows">
- </form>
- </div>
-
<style>
#addrule {
margin-top: 20px;
diff --git a/src/content/settings/yourpolicy.js b/src/content/settings/yourpolicy.js
index 527121e..f424a2b 100644
--- a/src/content/settings/yourpolicy.js
+++ b/src/content/settings/yourpolicy.js
@@ -26,18 +26,6 @@ $(function () {
$('[name=desthost]').prop('placeholder', _('host'));
$('[name=originport]').prop('placeholder', _('port'));
$('[name=destport]').prop('placeholder', _('port'));
-
- var rows_highlighted = false;
-
- $('#highlight_rows').change(function () {
- rows_highlighted = !rows_highlighted;
- if (rows_highlighted) {
- $('#policy-user tr').addClass('highlight');
- } else {
- $('#policy-user tr').removeClass('highlight');
- }
- });
-
});
const SEARCH_DELAY = 100;
@@ -114,7 +102,7 @@ function addPolicyTableRow(table, type, origin, dest, ruleData, source) {
);
var anchor = $('<a>');
- anchor.text('X').addClass('deleterule');
+ anchor.text('x').addClass('deleterule');
anchor.click(function () {
if (type == 'allow') {
rpService.removeAllowRule(ruleData);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list