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

Commit 6e69669

Browse files
committed
preparing for version 0.7.2.0
1 parent 51c8412 commit 6e69669

File tree

13 files changed

+898
-583
lines changed

13 files changed

+898
-583
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ HTTP Switchboard (FOSS) put you in FULL control of where your browser is allowed
4747

4848
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.
4949

50-
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.
50+
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.
5151

52-
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.
52+
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.
5353

5454
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.
5555

css/fonts.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,12 @@
3434
font-weight: normal;
3535
font-style: normal;
3636
}
37+
.fa {
38+
font-family: FontAwesome;
39+
font-style: normal;
40+
font-weight: normal;
41+
line-height: 1;
42+
vertical-align: baseline;
43+
display: inline-block;
44+
}
3745

css/popup.css

Lines changed: 93 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
.fa {
2-
font-family: FontAwesome;
3-
font-style: normal;
4-
font-weight: normal;
5-
line-height: 1;
6-
vertical-align: baseline;
7-
display: inline-block;
8-
}
9-
101
body {
112
margin: 0;
123
border: 0;
@@ -16,53 +7,117 @@ body {
167
min-width: 32em;
178
min-height: 15em;
189
}
10+
*:focus {
11+
outline: none;
12+
}
1913

2014
.paneHead {
2115
padding: 2px;
2216
position: fixed;
2317
top: 0;
18+
height: 5.5em;
2419
left:0;
2520
right: 0;
2621
background-color: white;
2722
z-index: 10;
2823
}
24+
.paneContent {
25+
padding-top: 5.5em;
26+
}
2927

30-
#toolbar {
31-
padding-bottom:1.5em;
28+
.toolbar {
29+
padding-bottom: 0.5em;
30+
display: inline-block;
31+
vertical-align: top;
3232
}
33-
#toolbar button {
33+
.toolbar button {
3434
margin: 0;
3535
border: 0;
3636
padding: 4px;
37-
font-size: 1.75em;
38-
min-width: 1.3em;
39-
opacity: 0.7;
37+
font: inherit;
38+
background-color: white;
39+
opacity: 0.9;
40+
cursor: pointer;
4041
}
41-
#toolbar button:hover {
42+
.toolbar button:hover {
43+
background-color: #eee;
4244
opacity: 1;
4345
}
44-
.btn-group.pull-right > .btn {
45-
float: left;
46+
.toolbar button.fa {
47+
font: 1.75em 'FontAwesome';
48+
min-width: 1.3em;
4649
}
4750

48-
body #scopePersist {
51+
.pullright {
52+
float: right;
53+
}
54+
55+
.dropdown-menu {
56+
margin: 0;
57+
border: 0;
58+
padding: 3px 0 0 0;
59+
position: absolute;
60+
z-index: 20;
61+
font-size: 110%;
62+
display: none;
63+
}
64+
.dropdown-menu.pullright {
65+
right: 0;
66+
}
67+
.dropdown-menu > ul {
68+
margin: 0;
69+
border: 0;
70+
border: 1px solid #ccc;
71+
border-radius: 4px;
72+
padding: 3px 0;
73+
background-color: white;
74+
list-style-type: none;
75+
}
76+
.dropdown-menu > ul > li.dropdown-menu-entry {
77+
margin: 0;
78+
border: 0;
79+
padding: 4px 0.5em;
80+
color: black;
81+
cursor: pointer;
82+
}
83+
.dropdown-menu > ul > li.dropdown-menu-entry:hover {
84+
background: #eee;
85+
}
86+
.dropdown-menu > ul > li.dropdown-menu-entry-divider {
87+
margin: 0.5em 0;
88+
border-top: 1px solid #ccc;
89+
}
90+
.dropdown-menu > ul > li.dropdown-menu-entry > .fa {
91+
margin-right: 0.5em;
92+
font-size: 110%;
93+
color: #aaa;
94+
}
95+
.dropdown-menu-button ~ .dropdown-menu {
96+
display: none;
97+
}
98+
.dropdown-menu-button:focus ~ .dropdown-menu {
99+
display: block;
100+
}
101+
102+
body #buttonRevert {
49103
margin-right: 1em;
50104
}
51-
body.tScopeGlobal #scopePersist {
105+
body.tScopeGlobal #buttonPersist {
52106
color: #000;
53107
}
54-
body.tScopeDomain #scopePersist {
108+
body.tScopeDomain #buttonPersist {
55109
color: #24c;
56110
}
57-
body.tScopeSite #scopePersist {
111+
body.tScopeSite #buttonPersist {
58112
color: #48c;
59113
}
60-
body.powerOff #scopePersist {
114+
body.powerOff #buttonPersist {
61115
visibility: hidden;
62116
}
63117
body.powerOff #buttonRevert {
64118
visibility: hidden;
65119
}
120+
66121
.dropdown-menu > li > a > i {
67122
padding: 0 6px;
68123
font-size: 1.2em;
@@ -74,23 +129,25 @@ body.powerOff #buttonPower i {
74129
color: #c00;
75130
}
76131

77-
body #scopeMenu {
78-
margin: 0 0 1em 0;
132+
body #toolbarScope {
133+
margin: 0;
79134
border: 0;
80135
padding: 0;
81136
display: inline-block;
82137
box-sizing: content-box;
83138
position: relative;
84139
}
85-
body.powerOff #scopeMenu {
140+
body.powerOff #toolbarScope {
86141
visibility: hidden;
87142
}
88-
body #scopeCell {
143+
144+
body .toolbar button#scopeCell {
89145
margin: 0;
90146
border: 1px dotted rgba(0,0,0,0.2);
91147
padding: 6px 1px 3px 1px;
92148
box-sizing: content-box;
93149
width: 18em;
150+
height: 1.5em;
94151
white-space: nowrap;
95152
text-align: right;
96153
line-height: 100%;
@@ -116,43 +173,14 @@ body.pScopeDomain #scopeCell {
116173
body.pScopeSite #scopeCell {
117174
background-image: url('/img/permanent-scope-site.png');
118175
}
176+
119177
body #scopeKeys {
120-
position: absolute;
121-
z-index: 20;
122-
display: none;
123-
}
124-
body #scopeKeys > div {
125-
margin: 0;
126-
border: 0;
127-
padding-top: 3px;
128-
}
129-
body #scopeKeys > div > div {
130-
margin: 0;
131-
border: 0;
132-
border: 1px solid #ccc;
133-
border-radius: 4px;
134-
padding: 3px 0;
135-
background-color: white;
136-
}
137-
body #scopeKeys > div > div > div {
138-
margin: 0;
139-
border: 0;
140178
padding: 6px 1px 3px 1px;
141-
box-sizing: content-box;
142-
width: 18em;
179+
left: 0;
180+
right: 0;
143181
text-align: right;
144-
cursor: pointer;
145-
}
146-
body #scopeKeys > div > div > div:hover {
147-
background: #eee;
148-
}
149-
body #scopeCell:focus ~ #scopeKeys {
150-
display: block;
151182
}
152183

153-
.paneContent {
154-
padding-top: 5em;
155-
}
156184
.matrix {
157185
text-align: left;
158186
}
@@ -171,6 +199,11 @@ body #scopeCell:focus ~ #scopeKeys {
171199
line-height: 100%;
172200
position: relative;
173201
}
202+
203+
.paneHead #matHead {
204+
position: absolute;
205+
bottom: 3px;
206+
}
174207
.paneHead .matCell:nth-child(2) {
175208
letter-spacing: -0.3px;
176209
}
@@ -233,7 +266,7 @@ body #scopeCell:focus ~ #scopeKeys {
233266
margin: 0;
234267
padding: 0;
235268
border: 0;
236-
height: 9px;
269+
height: 3px;
237270
background: url('/img/matrix-group-hide.png') no-repeat center top 0,
238271
url('/img/matrix-group-hline.png') repeat-x center top 3px;
239272
opacity: 0.2;

0 commit comments

Comments
 (0)