Trying more with new toggles, looking better

This commit is contained in:
Falkvinge
2016-11-13 15:08:00 +01:00
parent 3337e8dd1b
commit cf6ef8f505
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -259,7 +259,7 @@
<h2><span class="spanModalEditingPersonName">PERSONNAME</span>: <asp:Label ID="MasterLabelEditPersonHeaderSecurityProvisioning" runat="server" /></h2>
<div class="entryFields">
<input type="button" id="masterPersonEditButtonResetPassword" onclick="masterPersonEditorConfirmResetPassword(); return false;" value="#SendResetMail#" />&#8203;<br/>
<label for="MasterCheckEditPersonEnable2FA"><asp:Label ID="MasterLabelEditPersonSecurity2FA" runat="server" Text="Bitcoin Cold"/></label><div class="MasterToggles toggle-iphone"><input type="checkbox" rel="MasterPersonEdit2FA" class="EditCheck" id="MasterCheckEditPersonEnable2FA"/></div><br/>
<label for="MasterCheckEditPersonEnable2FA"><asp:Label ID="MasterLabelEditPersonSecurity2FA" runat="server" Text="Bitcoin Cold"/></label><div class="MasterToggles toggle-padding toggle-iphone"><input type="checkbox" rel="MasterPersonEdit2FA" class="EditCheck" id="MasterCheckEditPersonEnable2FA"/></div><br/>
</div>
<div class="entryLabels">
+19 -1
View File
@@ -1,4 +1,18 @@
.toggle-slide {
.toggle-padding {
padding-top: 8px;
padding-right: 8px;
float: right;
height: 25px;
width: 80px;
}
body.rtl .toggle-padding {
padding-right: inherit;
padding-left: 8px;
float: left;
}
.toggle-slide {
overflow: hidden;
cursor: pointer;
-webkit-user-select: none;
@@ -12,11 +26,15 @@ div.disabled > .toggle-slide {
opacity: 0.7;
pointer-events: none;
}
.toggle-slide .toggle-on,
.toggle-slide .toggle-off,
.toggle-slide .toggle-blob {
float: left;
}
.toggle-slide .toggle-blob {
position: relative;
z-index: 99;