Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
preparing for version 0.7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 30, 2013
1 parent 51c8412 commit 6e69669
Show file tree
Hide file tree
Showing 13 changed files with 898 additions and 583 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ HTTP Switchboard (FOSS) put you in FULL control of where your browser is allowed

You can blacklist/whitelist a single cell, an entire row, a group of rows, an entire column, or the whole matrix with just one click.

HTTP Switchboard matrix uses precedence logic to evaluate what is blocked/allowed according to which cells are blacklisted/whitelisted. For example, this allows the user to whitelist a whole page with one click, without having to repeatedly whitelist whatever new data appear on the page.
HTTP Switchboard matrix uses precedence logic to evaluate what is blocked/allowed according to which cells are blacklisted/whitelisted. For example, this allows you to whitelist a whole page with one click, without having to repeatedly whitelist whatever new data appear on the page.

You can also create scopes for your whitelist/blacklist rules. For example, this allow you to whitelist `facebook.com` ONLY when visiting Facebook web site.
You can also create scopes for your whitelist/blacklist rules. For example, this allows you to whitelist `facebook.com` ONLY when visiting Facebook web site.

The goal of this extension is to make the allowing or blocking of web sites, wholly or partly, as straightforward as possible, so as to not discourage those users who give up easily on good security and privacy habits.

Expand Down
8 changes: 8 additions & 0 deletions css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@
font-weight: normal;
font-style: normal;
}
.fa {
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
vertical-align: baseline;
display: inline-block;
}

153 changes: 93 additions & 60 deletions css/popup.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
.fa {
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
vertical-align: baseline;
display: inline-block;
}

body {
margin: 0;
border: 0;
Expand All @@ -16,53 +7,117 @@ body {
min-width: 32em;
min-height: 15em;
}
*:focus {
outline: none;
}

.paneHead {
padding: 2px;
position: fixed;
top: 0;
height: 5.5em;
left:0;
right: 0;
background-color: white;
z-index: 10;
}
.paneContent {
padding-top: 5.5em;
}

#toolbar {
padding-bottom:1.5em;
.toolbar {
padding-bottom: 0.5em;
display: inline-block;
vertical-align: top;
}
#toolbar button {
.toolbar button {
margin: 0;
border: 0;
padding: 4px;
font-size: 1.75em;
min-width: 1.3em;
opacity: 0.7;
font: inherit;
background-color: white;
opacity: 0.9;
cursor: pointer;
}
#toolbar button:hover {
.toolbar button:hover {
background-color: #eee;
opacity: 1;
}
.btn-group.pull-right > .btn {
float: left;
.toolbar button.fa {
font: 1.75em 'FontAwesome';
min-width: 1.3em;
}

body #scopePersist {
.pullright {
float: right;
}

.dropdown-menu {
margin: 0;
border: 0;
padding: 3px 0 0 0;
position: absolute;
z-index: 20;
font-size: 110%;
display: none;
}
.dropdown-menu.pullright {
right: 0;
}
.dropdown-menu > ul {
margin: 0;
border: 0;
border: 1px solid #ccc;
border-radius: 4px;
padding: 3px 0;
background-color: white;
list-style-type: none;
}
.dropdown-menu > ul > li.dropdown-menu-entry {
margin: 0;
border: 0;
padding: 4px 0.5em;
color: black;
cursor: pointer;
}
.dropdown-menu > ul > li.dropdown-menu-entry:hover {
background: #eee;
}
.dropdown-menu > ul > li.dropdown-menu-entry-divider {
margin: 0.5em 0;
border-top: 1px solid #ccc;
}
.dropdown-menu > ul > li.dropdown-menu-entry > .fa {
margin-right: 0.5em;
font-size: 110%;
color: #aaa;
}
.dropdown-menu-button ~ .dropdown-menu {
display: none;
}
.dropdown-menu-button:focus ~ .dropdown-menu {
display: block;
}

body #buttonRevert {
margin-right: 1em;
}
body.tScopeGlobal #scopePersist {
body.tScopeGlobal #buttonPersist {
color: #000;
}
body.tScopeDomain #scopePersist {
body.tScopeDomain #buttonPersist {
color: #24c;
}
body.tScopeSite #scopePersist {
body.tScopeSite #buttonPersist {
color: #48c;
}
body.powerOff #scopePersist {
body.powerOff #buttonPersist {
visibility: hidden;
}
body.powerOff #buttonRevert {
visibility: hidden;
}

.dropdown-menu > li > a > i {
padding: 0 6px;
font-size: 1.2em;
Expand All @@ -74,23 +129,25 @@ body.powerOff #buttonPower i {
color: #c00;
}

body #scopeMenu {
margin: 0 0 1em 0;
body #toolbarScope {
margin: 0;
border: 0;
padding: 0;
display: inline-block;
box-sizing: content-box;
position: relative;
}
body.powerOff #scopeMenu {
body.powerOff #toolbarScope {
visibility: hidden;
}
body #scopeCell {

body .toolbar button#scopeCell {
margin: 0;
border: 1px dotted rgba(0,0,0,0.2);
padding: 6px 1px 3px 1px;
box-sizing: content-box;
width: 18em;
height: 1.5em;
white-space: nowrap;
text-align: right;
line-height: 100%;
Expand All @@ -116,43 +173,14 @@ body.pScopeDomain #scopeCell {
body.pScopeSite #scopeCell {
background-image: url('/img/permanent-scope-site.png');
}

body #scopeKeys {
position: absolute;
z-index: 20;
display: none;
}
body #scopeKeys > div {
margin: 0;
border: 0;
padding-top: 3px;
}
body #scopeKeys > div > div {
margin: 0;
border: 0;
border: 1px solid #ccc;
border-radius: 4px;
padding: 3px 0;
background-color: white;
}
body #scopeKeys > div > div > div {
margin: 0;
border: 0;
padding: 6px 1px 3px 1px;
box-sizing: content-box;
width: 18em;
left: 0;
right: 0;
text-align: right;
cursor: pointer;
}
body #scopeKeys > div > div > div:hover {
background: #eee;
}
body #scopeCell:focus ~ #scopeKeys {
display: block;
}

.paneContent {
padding-top: 5em;
}
.matrix {
text-align: left;
}
Expand All @@ -171,6 +199,11 @@ body #scopeCell:focus ~ #scopeKeys {
line-height: 100%;
position: relative;
}

.paneHead #matHead {
position: absolute;
bottom: 3px;
}
.paneHead .matCell:nth-child(2) {
letter-spacing: -0.3px;
}
Expand Down Expand Up @@ -233,7 +266,7 @@ body #scopeCell:focus ~ #scopeKeys {
margin: 0;
padding: 0;
border: 0;
height: 9px;
height: 3px;
background: url('/img/matrix-group-hide.png') no-repeat center top 0,
url('/img/matrix-group-hline.png') repeat-x center top 3px;
opacity: 0.2;
Expand Down
Loading

0 comments on commit 6e69669

Please sign in to comment.