|
@@ -7,51 +7,76 @@
|
|
|
<hr class="section-horizontal-rule" />
|
|
|
|
|
|
<p class="control is-expanded checkbox-control">
|
|
|
- <input type="checkbox" id="nightmode" v-model="localNightmode" />
|
|
|
+ <label class="switch">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="nightmode"
|
|
|
+ v-model="localNightmode"
|
|
|
+ />
|
|
|
+ <span class="slider round"></span>
|
|
|
+ </label>
|
|
|
+
|
|
|
<label for="nightmode">
|
|
|
- <span></span>
|
|
|
<p>Use nightmode</p>
|
|
|
</label>
|
|
|
</p>
|
|
|
+
|
|
|
<p class="control is-expanded checkbox-control">
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- id="autoSkipDisliked"
|
|
|
- v-model="localAutoSkipDisliked"
|
|
|
- />
|
|
|
+ <label class="switch">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="autoSkipDisliked"
|
|
|
+ v-model="localAutoSkipDisliked"
|
|
|
+ />
|
|
|
+ <span class="slider round"></span>
|
|
|
+ </label>
|
|
|
+
|
|
|
<label for="autoSkipDisliked">
|
|
|
- <span></span>
|
|
|
<p>Automatically vote to skip disliked songs</p>
|
|
|
</label>
|
|
|
</p>
|
|
|
+
|
|
|
<p class="control is-expanded checkbox-control">
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- id="activityLogPublic"
|
|
|
- v-model="localActivityLogPublic"
|
|
|
- />
|
|
|
+ <label class="switch">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="activityLogPublic"
|
|
|
+ v-model="localActivityLogPublic"
|
|
|
+ />
|
|
|
+ <span class="slider round"></span>
|
|
|
+ </label>
|
|
|
+
|
|
|
<label for="activityLogPublic">
|
|
|
- <span></span>
|
|
|
<p>Allow my activity log to be viewed publicly</p>
|
|
|
</label>
|
|
|
</p>
|
|
|
+
|
|
|
<p class="control is-expanded checkbox-control">
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- id="anonymousSongRequests"
|
|
|
- v-model="localAnonymousSongRequests"
|
|
|
- />
|
|
|
+ <label class="switch">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="anonymousSongRequests"
|
|
|
+ v-model="localAnonymousSongRequests"
|
|
|
+ />
|
|
|
+ <span class="slider round"></span>
|
|
|
+ </label>
|
|
|
+
|
|
|
<label for="anonymousSongRequests">
|
|
|
<span></span>
|
|
|
<p>Request songs anonymously</p>
|
|
|
</label>
|
|
|
</p>
|
|
|
+
|
|
|
<p class="control is-expanded checkbox-control">
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- id="activityWatch"
|
|
|
- v-model="localActivityWatch"
|
|
|
- />
|
|
|
+ <label class="switch">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="activityWatch"
|
|
|
+ v-model="localActivityWatch"
|
|
|
+ />
|
|
|
+ <span class="slider round"></span>
|
|
|
+ </label>
|
|
|
+
|
|
|
<label for="activityWatch">
|
|
|
<span></span>
|
|
|
<p>Use ActivityWatch integration (requires extension)</p>
|
|
@@ -169,41 +194,62 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.checkbox-control {
|
|
|
- input[type="checkbox"] {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ p {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .switch {
|
|
|
+ position: relative;
|
|
|
+ display: inline-block;
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 40px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .switch input {
|
|
|
opacity: 0;
|
|
|
- position: absolute;
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
}
|
|
|
|
|
|
- label {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- span {
|
|
|
- cursor: pointer;
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background-color: var(--white);
|
|
|
- display: inline-block;
|
|
|
- border: 1px solid var(--dark-grey-2);
|
|
|
- position: relative;
|
|
|
- border-radius: 3px;
|
|
|
- }
|
|
|
-
|
|
|
- p {
|
|
|
- margin-left: 10px;
|
|
|
- }
|
|
|
+ .slider {
|
|
|
+ position: absolute;
|
|
|
+ cursor: pointer;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ background-color: #ccc;
|
|
|
+ transition: 0.2s;
|
|
|
+ border-radius: 34px;
|
|
|
}
|
|
|
|
|
|
- input[type="checkbox"]:checked + label span::after {
|
|
|
+ .slider:before {
|
|
|
+ position: absolute;
|
|
|
content: "";
|
|
|
- width: 18px;
|
|
|
- height: 18px;
|
|
|
- left: 2px;
|
|
|
- top: 2px;
|
|
|
- border-radius: 3px;
|
|
|
+ height: 16px;
|
|
|
+ width: 16px;
|
|
|
+ left: 4px;
|
|
|
+ bottom: 4px;
|
|
|
+ background-color: white;
|
|
|
+ transition: 0.2s;
|
|
|
+ border-radius: 50%;
|
|
|
+ }
|
|
|
+
|
|
|
+ input:checked + .slider {
|
|
|
background-color: var(--primary-color);
|
|
|
- position: absolute;
|
|
|
+ }
|
|
|
+
|
|
|
+ input:focus + .slider {
|
|
|
+ box-shadow: 0 0 1px var(--primary-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ input:checked + .slider:before {
|
|
|
+ transform: translateX(16px);
|
|
|
}
|
|
|
}
|
|
|
</style>
|