Vertically center compact switches

This commit is contained in:
Joyce Chen
2020-08-11 02:21:03 -04:00
parent 7dcff4a52e
commit 8904ec13a2
3 changed files with 3 additions and 2 deletions

View File

@@ -192,6 +192,7 @@ table {
display: inline-block;
width: 60px;
height: 34px;
margin: 0;
}
.switch input {
opacity: 0;

View File

@@ -9,7 +9,7 @@
</span>
</div>
<div style="flex: 1; text-align: center;">
<div style="flex: 1; text-align: center; margin-top: auto; margin-bottom: auto;">
<label class="switch">
<input type="checkbox" id="originalCompact" onClick="toggleOriginalCompact(false)">
<span class="slider round">

View File

@@ -9,7 +9,7 @@
</span>
</div>
<div style="flex: 1; text-align: center;">
<div style="flex: 1; text-align: center; margin-top: auto; margin-bottom: auto;">
<label class="switch">
<input type="checkbox" id="royalCompact" onClick="toggleRoyalCompact(false)">
<span class="slider round">