mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
💄 适应游戏样式变更 ui
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @file assets index.css
|
* @file assets/index.css
|
||||||
* @description 全局样式文件
|
* @description 全局样式文件
|
||||||
* @author BTMuli <bt-muli@outlook.com>
|
* @since Beta v0.3.5
|
||||||
* @since Beta v0.3.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import "fonts/index.css";
|
@import "fonts/index.css";
|
||||||
@@ -36,6 +35,7 @@
|
|||||||
--tgc-red-1: #e06c63; /* Mys bbs color */
|
--tgc-red-1: #e06c63; /* Mys bbs color */
|
||||||
--tgc-yellow-1: #ffcd0c; /* Genshin btn bg */
|
--tgc-yellow-1: #ffcd0c; /* Genshin btn bg */
|
||||||
--tgc-yellow-2: #f4d8a8; /* Genshin confirm text */
|
--tgc-yellow-2: #f4d8a8; /* Genshin confirm text */
|
||||||
|
--tgc-yellow-3: #e0c06b; /* Genshin btn border */
|
||||||
|
|
||||||
/* some css same in dark and default theme */
|
/* some css same in dark and default theme */
|
||||||
--tgc-btn-1: var(--tgc-dark-7); /* button bg */
|
--tgc-btn-1: var(--tgc-dark-7); /* button bg */
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
<div v-show="show || showOuter" class="confirm-overlay" @click.self.prevent="handleOuter">
|
<div v-show="show || showOuter" class="confirm-overlay" @click.self.prevent="handleOuter">
|
||||||
<transition name="func-confirm-inner">
|
<transition name="func-confirm-inner">
|
||||||
<div v-show="showInner" class="confirm-box">
|
<div v-show="showInner" class="confirm-box">
|
||||||
<div class="confirm-title">
|
<div class="confirm-title">{{ data.title }}</div>
|
||||||
{{ data.title }}
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-show="data?.text !== '' && data.mode === 'confirm'"
|
v-show="data?.text !== '' && data.mode === 'confirm'"
|
||||||
class="confirm-subtitle"
|
class="confirm-subtitle"
|
||||||
@@ -14,22 +12,12 @@
|
|||||||
{{ data.text }}
|
{{ data.text }}
|
||||||
</div>
|
</div>
|
||||||
<div v-show="data?.text !== '' && data.mode === 'input'" class="confirm-input">
|
<div v-show="data?.text !== '' && data.mode === 'input'" class="confirm-input">
|
||||||
<div class="confirm-input-label">
|
<div class="confirm-input-label">{{ data.text }}</div>
|
||||||
{{ data.text }}
|
|
||||||
</div>
|
|
||||||
<input v-model="inputVal" class="confirm-input-box" />
|
<input v-model="inputVal" class="confirm-input-box" />
|
||||||
</div>
|
</div>
|
||||||
<div class="confirm-btn-box">
|
<div class="confirm-btn-box">
|
||||||
<button class="confirm-btn" @click="handleClick(false)">取消</button>
|
<button class="confirm-btn no-btn" @click="handleClick(false)">取消</button>
|
||||||
<button
|
<button class="confirm-btn ok-btn" @click="handleClick(true)">确定</button>
|
||||||
class="confirm-btn"
|
|
||||||
:style="{
|
|
||||||
backgroundColor: 'var(--tgc-dark-2)',
|
|
||||||
}"
|
|
||||||
@click="handleClick(true)"
|
|
||||||
>
|
|
||||||
确定
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
@@ -178,7 +166,16 @@ defineExpose({
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
background: var(--common-shadow-t-1);
|
|
||||||
|
/* 颜色变量 */
|
||||||
|
--confirm-title: var(--tgc-dark-7);
|
||||||
|
--confirm-bg: var(--tgc-white-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 深色模式 */
|
||||||
|
.dark .confirm-overlay {
|
||||||
|
--confirm-title: var(--tgc-white-1);
|
||||||
|
--confirm-bg: var(--tgc-dark-7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-box {
|
.confirm-box {
|
||||||
@@ -190,14 +187,16 @@ defineExpose({
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 1px solid var(--common-shadow-1);
|
border: 1px solid var(--common-shadow-1);
|
||||||
border-radius: 5px;
|
border-radius: 15px;
|
||||||
background: var(--box-bg-4);
|
background: var(--confirm-bg);
|
||||||
color: var(--box-text-1);
|
box-shadow: 0 0 10px var(--common-shadow-t-1);
|
||||||
|
color: var(--tgc-yellow-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-title {
|
.confirm-title {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 1px solid var(--common-shadow-4);
|
border-bottom: 1px solid var(--confirm-title);
|
||||||
|
color: var(--confirm-title);
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -206,7 +205,6 @@ defineExpose({
|
|||||||
.confirm-subtitle {
|
.confirm-subtitle {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: var(--box-text-4);
|
|
||||||
font-family: var(--font-text);
|
font-family: var(--font-text);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -229,10 +227,10 @@ defineExpose({
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid var(--common-shadow-4);
|
border: 1px solid var(--confirm-title);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: inherit;
|
background: inherit;
|
||||||
color: var(--box-text-1);
|
color: var(--confirm-title);
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn-box {
|
.confirm-btn-box {
|
||||||
@@ -249,11 +247,17 @@ defineExpose({
|
|||||||
height: 60px;
|
height: 60px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid var(--common-shadow-4);
|
border-radius: 15px;
|
||||||
border-radius: 5px;
|
|
||||||
color: var(--btn-text);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-btn {
|
||||||
|
border: 1px solid var(--tgc-yellow-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ok-btn {
|
||||||
|
background: var(--confirm-title);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user