1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

Options page fine tuning

This commit is contained in:
kkapsner 2018-09-19 23:56:34 +02:00
parent 5513bcbb61
commit 70b8d50c56
4 changed files with 18 additions and 3 deletions

View File

@ -140,6 +140,11 @@
"description": ""
},
"hideSetting": {
"message": "Hier klicken, um diese Einstellung zu verbergen.",
"description": ""
},
"displayHiddenSettings_title": {
"message": "Versteckte Einstellungen anzeigen",
"description": ""

View File

@ -140,6 +140,11 @@
"description": ""
},
"hideSetting": {
"message": "Click here to hide this setting.",
"description": ""
},
"displayHiddenSettings_title": {
"message": "Display hidden settings",
"description": ""

View File

@ -177,12 +177,17 @@ td.hideColumn {
width: 45px;
}
.hideContent {
cursor: pointer;
}
.content.hideContent {
position: relative;
}
.content .hide, .displayHidden {
opacity: 0;
position: absolute;
cursor: pointer;
}
.content .hide ~ .display, .displayHidden ~ .display {
display: inline-block;
@ -218,9 +223,7 @@ td.hideColumn {
#search {
box-sizing: border-box;
width: 100%;
border: none;
background-color: transparent;
width: calc(100% - 10px);
}
.searching .settingRow {
display: none;

View File

@ -335,6 +335,7 @@
function createHide(setting){
var label = document.createElement("label");
label.className = "content hideContent";
label.title = browser.i18n.getMessage("hideSetting");
var input = document.createElement("input");
input.type = "checkbox";
input.className = "hide";
@ -382,6 +383,7 @@
hideHeadCell.className = "hideColumn";
hideHeadCell.title = browser.i18n.getMessage(displayHidden.name + "_description");
const label = document.createElement("label");
label.className = "hideContent";
const input = createInput(displayHidden);
input.className = "displayHidden";
label.appendChild(input);