From 6cf85280bda9320dc8aaa50089f0418e1f407a2e Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Sat, 20 May 2023 23:17:46 +0800 Subject: [PATCH] settings panel style --- .../setting-panel/KUNGalgameSettingPanel.vue | 49 ++----------------- .../setting-panel/components/Background.vue | 4 +- .../setting-panel/components/Loli.vue | 3 +- 3 files changed, 7 insertions(+), 49 deletions(-) diff --git a/src/components/setting-panel/KUNGalgameSettingPanel.vue b/src/components/setting-panel/KUNGalgameSettingPanel.vue index 813a1f3e..f0b669b6 100644 --- a/src/components/setting-panel/KUNGalgameSettingPanel.vue +++ b/src/components/setting-panel/KUNGalgameSettingPanel.vue @@ -48,9 +48,6 @@ const handleClose = () => {
设置面板 -
@@ -71,6 +68,9 @@ const handleClose = () => {
+
+ 语言设置 +
主页页面宽度设置 @@ -82,10 +82,7 @@ const handleClose = () => {
-
- - 语言设置 -
+
@@ -177,46 +174,10 @@ const handleClose = () => { } /* 固定看板娘 */ .fix-loli { - margin-top: 50px; + margin-bottom: 20px; display: flex; justify-content: space-between; } -.switch-input { - height: 0; - width: 0; - visibility: hidden; -} - -.switch-label { - cursor: pointer; - text-indent: -9999px; - width: 50px; - height: 27px; - background: @kungalgame-trans-blue-2; - display: block; - border-radius: 100px; - position: relative; - &:after { - content: ''; - position: absolute; - top: 2px; - left: 2px; - width: 23px; - height: 23px; - background: @kungalgame-white; - border-radius: 15px; - transition: 0.3s; - } -} - -.switch-input:checked + .switch-label { - background: @kungalgame-blue-4; -} - -.switch-input:checked + .switch-label:after { - left: calc(100% - 2px); - transform: translateX(-100%); -} .reset { font-size: 15px; cursor: pointer; diff --git a/src/components/setting-panel/components/Background.vue b/src/components/setting-panel/components/Background.vue index 62b7135f..533e16c1 100644 --- a/src/components/setting-panel/components/Background.vue +++ b/src/components/setting-panel/components/Background.vue @@ -45,9 +45,7 @@ const settingsStore = useSettingsPanelStore() .kungalgame-background-container { display: block; /* 背景菜单的高度 */ - height: 300px; - top: 100%; - left: 0%; + height: 100%; font-size: 15px; font-weight: normal; color: @kungalgame-font-color-3; diff --git a/src/components/setting-panel/components/Loli.vue b/src/components/setting-panel/components/Loli.vue index 4a25114c..06976fbc 100644 --- a/src/components/setting-panel/components/Loli.vue +++ b/src/components/setting-panel/components/Loli.vue @@ -33,8 +33,7 @@ import {