This repository has been archived by the owner on Dec 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebExtension port of this add-on
Most stuff was rewritten and (if possible) simplified, the only truely original piece of code is the policy engine that processes the whitelist entries. Also contains a newly "designed" logo that is used for the toolbar icon requested #27.
- Loading branch information
Showing
12 changed files
with
1,133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "webextension/deps/public-suffix-list"] | ||
path = webextension/deps/public-suffix-list | ||
url = https://github.com/wrangr/psl.git |
Submodule public-suffix-list
added at
1fd781
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
body { | ||
/* Make font look similar to the add-on page's native style */ | ||
font: message-box; | ||
font-size: 1.25rem; | ||
text-rendering: optimizeLegibility; | ||
text-shadow: 0 1px 1px #fefffe; | ||
|
||
/* Prevent text from being selected as if this was a web page */ | ||
-moz-user-select: none; | ||
} | ||
|
||
/** | ||
* Simple gird layout for option entries (very similar to the JetPack option page) | ||
*/ | ||
form > *[data-option] { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
align-content: stretch; | ||
|
||
min-height: 35px; | ||
border-top: 1px solid #c1c1c1; | ||
} | ||
form > *[data-option]:first-child { | ||
border-top: 0; | ||
} | ||
form > *[data-option].hidden { | ||
display: none; | ||
} | ||
|
||
form > *[data-option] > label, | ||
form > *[data-option] > .label { | ||
width: 37%; | ||
|
||
font-size: 1.125em; | ||
} | ||
|
||
form > *[data-option] > .label.description > span { | ||
display: block; | ||
margin: 0 0.5em 0 2em; | ||
|
||
font-size: 90.9%; | ||
color: graytext; | ||
} | ||
|
||
form > *[data-option] > input, | ||
form > *[data-option] > select, | ||
form > *[data-option] > .value { | ||
flex-grow: 1; | ||
margin: 3px 0; | ||
} |
Oops, something went wrong.