Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Add WebExtension port of this add-on
Browse files Browse the repository at this point in the history
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
ntninja committed Jan 9, 2017
1 parent ea99168 commit 977b9b0
Show file tree
Hide file tree
Showing 12 changed files with 1,133 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
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
1 change: 1 addition & 0 deletions webextension/deps/public-suffix-list
Submodule public-suffix-list added at 1fd781
51 changes: 51 additions & 0 deletions webextension/deps/wext-options/options.css
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;
}
Loading

0 comments on commit 977b9b0

Please sign in to comment.