reuse radio-wrapper for visual uniformity
This commit is contained in:
parent
944c44ffb8
commit
1721bad7d8
|
@ -20,9 +20,6 @@
|
||||||
.style-settings > :last-child {
|
.style-settings > :last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.style-settings input[type=radio] {
|
|
||||||
margin: 0 .3em 0 0;
|
|
||||||
}
|
|
||||||
.style-settings input:disabled ~ label {
|
.style-settings input:disabled ~ label {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
@ -44,10 +41,8 @@
|
||||||
.style-settings textarea:not(:placeholder-shown) {
|
.style-settings textarea:not(:placeholder-shown) {
|
||||||
min-width: 50vw;
|
min-width: 50vw;
|
||||||
}
|
}
|
||||||
.ss-radio {
|
.style-settings .radio-wrapper {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
|
||||||
line-height: 2;
|
|
||||||
padding: 0 .8em 0 0;
|
padding: 0 .8em 0 0;
|
||||||
}
|
}
|
||||||
a[data-cmd=note] {
|
a[data-cmd=note] {
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
<div i18n-text="preferScheme">
|
<div i18n-text="preferScheme">
|
||||||
<div><small id="ss-scheme-off" i18n-text="preferSchemeAlways" hidden></small></div>
|
<div><small id="ss-scheme-off" i18n-text="preferSchemeAlways" hidden></small></div>
|
||||||
</div>
|
</div>
|
||||||
<label i18n-text-append="preferSchemeNone" class="ss-radio">
|
<label i18n-text-append="preferSchemeNone" class="radio-wrapper">
|
||||||
<input name="ss-scheme" type="radio" value="none">
|
<input name="ss-scheme" type="radio" value="none">
|
||||||
</label>
|
</label>
|
||||||
<label i18n-text-append="preferSchemeDark" class="ss-radio">
|
<label i18n-text-append="preferSchemeDark" class="radio-wrapper">
|
||||||
<input name="ss-scheme" type="radio" value="dark">
|
<input name="ss-scheme" type="radio" value="dark">
|
||||||
</label>
|
</label>
|
||||||
<label i18n-text-append="preferSchemeLight" class="ss-radio">
|
<label i18n-text-append="preferSchemeLight" class="radio-wrapper">
|
||||||
<input name="ss-scheme" type="radio" value="light">
|
<input name="ss-scheme" type="radio" value="light">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -237,8 +237,8 @@ input[type="radio"] {
|
||||||
height: 13px;
|
height: 13px;
|
||||||
width: 13px;
|
width: 13px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin: 0 4px 1px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"]:after {
|
input[type="radio"]:after {
|
||||||
content: '';
|
content: '';
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
@ -252,11 +252,15 @@ input[type="radio"]:after {
|
||||||
top: 2px;
|
top: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"]:checked:after {
|
input[type="radio"]:checked:after {
|
||||||
background-color: var(--c30);
|
background-color: var(--c30);
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
.radio-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
/* restore disabled state dimming */
|
/* restore disabled state dimming */
|
||||||
button:disabled,
|
button:disabled,
|
||||||
|
|
|
@ -382,9 +382,6 @@ li {
|
||||||
#header {
|
#header {
|
||||||
height: 100% !important; /* overrides user resize */
|
height: 100% !important; /* overrides user resize */
|
||||||
}
|
}
|
||||||
#ss-scheme > label {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.w100-full {
|
.w100-full {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: var(--child-gap);
|
margin-top: var(--child-gap);
|
||||||
|
|
27
options.html
27
options.html
|
@ -51,33 +51,24 @@
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h1 i18n-text="stylePreferSchemeLabel"></h1>
|
<h1 i18n-text="stylePreferSchemeLabel"></h1>
|
||||||
<div class="items no-stretch">
|
<div class="items no-stretch">
|
||||||
<label>
|
<label class="radio-wrapper" i18n-text-append="preferSchemeDark">
|
||||||
<span i18n-text-append="preferSchemeDark">
|
|
||||||
<input type="radio" value="dark" name="schemeSwitcher.enabled">
|
<input type="radio" value="dark" name="schemeSwitcher.enabled">
|
||||||
</span>
|
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label class="radio-wrapper" i18n-text-append="preferSchemeLight">
|
||||||
<span i18n-text-append="preferSchemeLight">
|
|
||||||
<input type="radio" value="light" name="schemeSwitcher.enabled">
|
<input type="radio" value="light" name="schemeSwitcher.enabled">
|
||||||
</span>
|
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label class="radio-wrapper" i18n-text-append="optionsAdvancedAutoSwitchSchemeBySystem">
|
||||||
<span i18n-text-append="optionsAdvancedAutoSwitchSchemeBySystem">
|
|
||||||
<input type="radio" value="system" name="schemeSwitcher.enabled">
|
<input type="radio" value="system" name="schemeSwitcher.enabled">
|
||||||
</span>
|
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label class="radio-wrapper">
|
||||||
<span i18n-text-append="optionsAdvancedAutoSwitchSchemeByTime">
|
|
||||||
<input type="radio" value="time" name="schemeSwitcher.enabled">
|
<input type="radio" value="time" name="schemeSwitcher.enabled">
|
||||||
</span>
|
<span i18n-text="optionsAdvancedAutoSwitchSchemeByTime"></span>
|
||||||
<input type="time" required id="schemeSwitcher.nightStart">
|
<input type="time" required id="schemeSwitcher.nightStart">
|
||||||
~
|
~
|
||||||
<input type="time" required id="schemeSwitcher.nightEnd">
|
<input type="time" required id="schemeSwitcher.nightEnd">
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label class="radio-wrapper" i18n-text-append="optionsAdvancedAutoSwitchSchemeNever">
|
||||||
<span i18n-text-append="optionsAdvancedAutoSwitchSchemeNever">
|
|
||||||
<input type="radio" value="never" name="schemeSwitcher.enabled">
|
<input type="radio" value="never" name="schemeSwitcher.enabled">
|
||||||
</span>
|
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -86,12 +77,12 @@
|
||||||
<h1 i18n-text="optionsCustomizeIcon"></h1>
|
<h1 i18n-text="optionsCustomizeIcon"></h1>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<label>
|
<label>
|
||||||
<span i18n-text-append="optionsIconAuto">
|
<span class="radio-wrapper" i18n-text-append="optionsIconAuto">
|
||||||
<input type="radio" name="iconset" value="-1" data-value-type="number">
|
<input type="radio" name="iconset" value="-1" data-value-type="number">
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<span i18n-text-append="optionsIconDark">
|
<span class="radio-wrapper" i18n-text-append="optionsIconDark">
|
||||||
<input type="radio" name="iconset" value="0" data-value-type="number">
|
<input type="radio" name="iconset" value="0" data-value-type="number">
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
|
@ -101,7 +92,7 @@
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<span i18n-text-append="optionsIconLight">
|
<span class="radio-wrapper" i18n-text-append="optionsIconLight">
|
||||||
<input type="radio" name="iconset" value="1" data-value-type="number">
|
<input type="radio" name="iconset" value="1" data-value-type="number">
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -200,11 +200,6 @@ input[type=time] {
|
||||||
max-width: 7em; /* TODO: remove when strict_min_version >= 57 */
|
max-width: 7em; /* TODO: remove when strict_min_version >= 57 */
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
|
||||||
margin-top: 0;
|
|
||||||
vertical-align: text-top;
|
|
||||||
}
|
|
||||||
|
|
||||||
#actions {
|
#actions {
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user