put "[x] as Usercss" option next to "Write new style" button

This commit is contained in:
tophf 2017-11-22 17:05:28 +03:00
parent 44c0f3d076
commit 62aec5c359
4 changed files with 31 additions and 7 deletions

View File

@ -529,6 +529,10 @@
"message": "Installed Styles", "message": "Installed Styles",
"description": "Heading for the manage page" "description": "Heading for the manage page"
}, },
"manageNewStyleAsUsercss": {
"message": "as Usercss",
"description": "VERY SHORT label for the checkbox next to the 'Write new style' button in the style manager"
},
"manageOnlyEnabled": { "manageOnlyEnabled": {
"message": "Only enabled styles", "message": "Only enabled styles",
"description": "Checkbox to show only enabled styles" "description": "Checkbox to show only enabled styles"
@ -549,6 +553,14 @@
"message": "(the styles not installed through a userstyles.org page)", "message": "(the styles not installed through a userstyles.org page)",
"description": "Tooltip for the checkbox to show only locally created styles i.e. non-updatable" "description": "Tooltip for the checkbox to show only locally created styles i.e. non-updatable"
}, },
"manageOnlyNonUsercss": {
"message": "Only non-Usercss styles",
"description": "Checkbox to show only non-Usercss (standard) styles"
},
"manageOnlyUsercss": {
"message": "Only Usercss styles",
"description": "Checkbox to show only Usercss styles"
},
"manageOnlyUpdates": { "manageOnlyUpdates": {
"message": "Only with updates or issues", "message": "Only with updates or issues",
"description": "Checkbox to show only styles that have updates after check-all-styles-for-updates was performed" "description": "Checkbox to show only styles that have updates after check-all-styles-for-updates was performed"

View File

@ -207,6 +207,11 @@
<p> <p>
<a href="edit.html"> <a href="edit.html">
<button id="add-style-label" i18n-text="addStyleLabel"></button> <button id="add-style-label" i18n-text="addStyleLabel"></button>
<label class="nobreak"
i18n-text-append="manageNewStyleAsUsercss"
i18n-title="optionsAdvancedNewStyleAsUsercss">
<input type="checkbox" id="newStyleAsUsercss">
</label>
</a> </a>
</p> </p>
<div id="options"> <div id="options">

View File

@ -55,6 +55,20 @@ select {
text-decoration: none; text-decoration: none;
} }
#add-style-label {
margin-right: .25em;
margin-bottom: .25em;
}
.nobreak {
white-space: nowrap;
}
label.nobreak input {
vertical-align: middle;
margin: 0;
}
.firefox .chromium-only { .firefox .chromium-only {
display: none; display: none;
} }

View File

@ -125,13 +125,6 @@
</h1> </h1>
</div> </div>
<div class="items"> <div class="items">
<label>
<span i18n-text="optionsAdvancedNewStyleAsUsercss"></span>
<span class="onoffswitch">
<input type="checkbox" id="newStyleAsUsercss">
<span></span>
</span>
</label>
<label> <label>
<span i18n-text="optionsAdvancedExposeIframes"> <sup>2</sup></span> <span i18n-text="optionsAdvancedExposeIframes"> <sup>2</sup></span>
<span class="onoffswitch"> <span class="onoffswitch">