diff --git a/public/img/logos/nyancat.gif b/public/img/logos/nyancat.gif new file mode 100644 index 0000000..bf0314f Binary files /dev/null and b/public/img/logos/nyancat.gif differ diff --git a/src/assets/css/slider.css b/src/assets/css/slider.css index 58e197d..706c79e 100644 --- a/src/assets/css/slider.css +++ b/src/assets/css/slider.css @@ -62,3 +62,40 @@ .volume-control:hover .vue-slider-process { background-color: #335eea; } + +/* nyancat */ + +.nyancat .vue-slider-rail { + background-color: rgba(128, 128, 128, 0.18); + padding: 2.5px 0px; + border-radius: 0; +} + +.nyancat .vue-slider-process { + padding: 0px 1px; + top: -2px; + border-radius: 0; + background: -webkit-gradient( + linear, + left top, + left bottom, + color-stop(0, #f00), + color-stop(17%, #f90), + color-stop(33%, #ff0), + color-stop(50%, #3f0), + color-stop(67%, #09f), + color-stop(83%, #63f) + ); +} + +.nyancat .vue-slider-dot-handle { + background: url("/img/logos/nyancat.gif"); + background-size: 36px; + width: 36px; + height: 24px; + margin-top: -6px; + box-shadow: none; + border-radius: 0; + box-sizing: border-box; + visibility: visible; +} diff --git a/src/components/Player.vue b/src/components/Player.vue index 11f2d5a..34f8130 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -1,6 +1,6 @@ @@ -174,6 +190,18 @@ export default { }); }, }, + nyancatStyle: { + get() { + if (this.settings.nyancatStyle === undefined) return false; + return this.settings.nyancatStyle; + }, + set(value) { + this.$store.commit("updateSettings", { + key: "nyancatStyle", + value, + }); + }, + }, }, methods: { logout() {