mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
parent
40677bd2c6
commit
84bd36197b
@ -52,7 +52,7 @@
|
|||||||
}
|
}
|
||||||
button.addEventListener("click", action.callback.bind(undefined, data));
|
button.addEventListener("click", action.callback.bind(undefined, data));
|
||||||
container.appendChild(button);
|
container.appendChild(button);
|
||||||
if (horizontal || i % 3 === 2){
|
if (horizontal){
|
||||||
container.appendChild(document.createElement("br"));
|
container.appendChild(document.createElement("br"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
16
pageAction/pageAction-dark.css
Normal file
16
pageAction/pageAction-dark.css
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
body {
|
||||||
|
background-color: rgb(74, 74, 79);
|
||||||
|
color: rgb(249, 249, 250);
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapsible .collapser {
|
||||||
|
color: rgb(120, 145, 255);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions {
|
||||||
|
color: rgb(182, 194, 245);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions:hover, .hasHiddenActions .actions {
|
||||||
|
background-color: rgb(92, 92, 97);
|
||||||
|
}
|
16
pageAction/pageAction-default.css
Normal file
16
pageAction/pageAction-default.css
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
body {
|
||||||
|
color: rgb(60, 62, 60);
|
||||||
|
background-color: rgb(249, 250, 249);
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapsible .collapser {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions {
|
||||||
|
color: darkblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions:hover, .hasHiddenActions .actions {
|
||||||
|
background-color: rgb(236, 237, 236);
|
||||||
|
}
|
16
pageAction/pageAction-light.css
Normal file
16
pageAction/pageAction-light.css
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
body {
|
||||||
|
color: rgb(12, 12, 13);
|
||||||
|
background-color: rgb(255, 255, 255);
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapsible .collapser {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions {
|
||||||
|
color: darkblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hasHiddenActions:hover, .hasHiddenActions .actions {
|
||||||
|
background-color: rgb(240, 240, 240);
|
||||||
|
}
|
@ -8,7 +8,6 @@ body {
|
|||||||
padding-right: 23px;
|
padding-right: 23px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#prints {
|
#prints {
|
||||||
@ -36,12 +35,10 @@ button.action img {
|
|||||||
.hasHiddenActions {
|
.hasHiddenActions {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: darkblue;
|
|
||||||
}
|
}
|
||||||
.hasHiddenActions:hover {
|
.hasHiddenActions:hover {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
margin: -3px;
|
margin: -3px;
|
||||||
background-color: #f6f6f6;
|
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
.hasHiddenActions .actions {
|
.hasHiddenActions .actions {
|
||||||
@ -50,9 +47,9 @@ button.action img {
|
|||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
background-color: #f6f6f6;
|
|
||||||
padding: 2px 1px 1px 1px;
|
padding: 2px 1px 1px 1px;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.hasHiddenActions:hover .actions{
|
.hasHiddenActions:hover .actions{
|
||||||
display: block;
|
display: block;
|
||||||
@ -97,7 +94,6 @@ button.action img {
|
|||||||
}
|
}
|
||||||
.collapsible .collapser {
|
.collapsible .collapser {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: blue;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
.collapsible .collapser .more {
|
.collapsible .collapser .more {
|
||||||
|
@ -18,6 +18,16 @@
|
|||||||
browser.tabs.query({active: true, currentWindow: true}),
|
browser.tabs.query({active: true, currentWindow: true}),
|
||||||
settings.loaded
|
settings.loaded
|
||||||
]).then(function(values){
|
]).then(function(values){
|
||||||
|
// load theme
|
||||||
|
var themeLink = document.createElement("link");
|
||||||
|
themeLink.href = `pageAction-${settings.theme}.css`;
|
||||||
|
themeLink.rel = "stylesheet";
|
||||||
|
themeLink.type = "text/css";
|
||||||
|
document.head.appendChild(themeLink);
|
||||||
|
settings.on("theme", function(){
|
||||||
|
themeLink.href = `pageAction-${settings.theme}.css`;
|
||||||
|
});
|
||||||
|
|
||||||
const tabs = values[0];
|
const tabs = values[0];
|
||||||
|
|
||||||
notice("create global action buttons");
|
notice("create global action buttons");
|
||||||
|
@ -9,7 +9,7 @@ Version 0.5.3:
|
|||||||
- added option "Don't show again on update." for options page
|
- added option "Don't show again on update." for options page
|
||||||
- added option to highlight page action icon
|
- added option to highlight page action icon
|
||||||
- added option to control browser action icon on notifications
|
- added option to control browser action icon on notifications
|
||||||
- added theme for browser action popup
|
- added theme for browser and page action popup
|
||||||
- added badge
|
- added badge
|
||||||
- added option to ignore APIs
|
- added option to ignore APIs
|
||||||
- added protection for history length
|
- added protection for history length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user