mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
♻️ confirm 组件样式调整
This commit is contained in:
@@ -49,7 +49,8 @@
|
||||
--tgc-blue-3: #4b5466; /* Genshin icon bg */
|
||||
--tgc-green-1: #238636; /* Github web btn */
|
||||
--tgc-pink-1: #fb7299; /* Bilibili btn bg */
|
||||
--tgc-yellow: #ffcd0c; /* Genshin btn bg */
|
||||
--tgc-yellow-1: #ffcd0c; /* Genshin btn bg */
|
||||
--tgc-yellow-2: #f4d8a8; /* Genshin confirm text */
|
||||
}
|
||||
|
||||
html {
|
||||
|
||||
@@ -17,12 +17,17 @@ html.dark {
|
||||
--box-bg-1: var(--tgc-dark-5);
|
||||
--box-bg-2: var(--tgc-dark-6);
|
||||
--box-bg-3: var(--tgc-dark-7);
|
||||
--box-bg-4: var(--tgc-dark-7);
|
||||
|
||||
/* box bg transparent */
|
||||
--box-bg-t-4: var(--tgc-white-1);
|
||||
|
||||
/* text */
|
||||
--box-text-1: var(--tgc-white-1);
|
||||
--box-text-2: var(--tgc-white-2);
|
||||
--box-text-3: var(--tgc-blue-1);
|
||||
--box-text-4: var(--tgc-white-8);
|
||||
--box-text-5: var(--tgc-yellow-1);
|
||||
|
||||
/* box-shadow */
|
||||
--common-shadow-1: rgb(255 255 255 / 10%);
|
||||
|
||||
@@ -17,12 +17,17 @@ html.default {
|
||||
--box-bg-1: var(--tgc-white-3);
|
||||
--box-bg-2: var(--tgc-white-7);
|
||||
--box-bg-3: var(--tgc-white-9);
|
||||
--box-bg-4: var(--tgc-white-1);
|
||||
|
||||
/* box bg transparent */
|
||||
--box-bg-t-4: var(--tgc-dark-7);
|
||||
|
||||
/* box text */
|
||||
--box-text-1: var(--tgc-dark-5);
|
||||
--box-text-2: var(--tgc-dark-2);
|
||||
--box-text-3: var(--tgc-blue-2);
|
||||
--box-text-4: var(--tgc-blue-3);
|
||||
--box-text-5: var(--tgc-yellow-2);
|
||||
|
||||
/* box-shadow */
|
||||
--common-shadow-1: rgb(0 0 0 / 10%);
|
||||
|
||||
@@ -16,13 +16,15 @@
|
||||
<input v-model="inputVal" class="confirm-input-box" />
|
||||
</div>
|
||||
<div class="confirm-btn-box">
|
||||
<button class="confirm-btn" @click="handleClick(false)">
|
||||
<img class="btn-icon" src="../../assets/icons/circle-cancel.svg" alt="cancel" />
|
||||
<span class="btn-text"> 取消 </span>
|
||||
</button>
|
||||
<button class="confirm-btn" @click="handleClick(true)">
|
||||
<img class="btn-icon" src="../../assets/icons/circle-check.svg" alt="confirm" />
|
||||
<span class="btn-text"> 确定 </span>
|
||||
<button class="confirm-btn" @click="handleClick(false)">取消</button>
|
||||
<button
|
||||
class="confirm-btn"
|
||||
:style="{
|
||||
backgroundColor: 'var(--box-bg-t-4)',
|
||||
}"
|
||||
@click="handleClick(true)"
|
||||
>
|
||||
确定
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -172,27 +174,27 @@ defineExpose({
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(3px);
|
||||
background: rgb(0 0 0 / 50%);
|
||||
backdrop-filter: blur(10px);
|
||||
background: var(--common-shadow-t-1);
|
||||
}
|
||||
|
||||
.confirm-box {
|
||||
display: flex;
|
||||
width: 40vw;
|
||||
height: 20vh;
|
||||
width: 520px;
|
||||
height: 240px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
background: var(--content-bg-2);
|
||||
box-shadow: 0 0 10px var(--common-shadow-2);
|
||||
border: 1px solid var(--common-shadow-1);
|
||||
border-radius: 5px;
|
||||
background: var(--box-bg-4);
|
||||
color: var(--box-text-1);
|
||||
}
|
||||
|
||||
.confirm-title {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid var(--btn-bg-2);
|
||||
color: var(--content-text-2);
|
||||
border-bottom: 1px solid var(--common-shadow-4);
|
||||
font-family: var(--font-title);
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
@@ -211,9 +213,8 @@ defineExpose({
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--content-text-2);
|
||||
font-family: Genshin-Light, serif;
|
||||
font-size: 20px;
|
||||
font-family: var(--font-text);
|
||||
font-size: 16px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@@ -221,9 +222,10 @@ defineExpose({
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
padding: 5px;
|
||||
border: 1px solid var(--common-shadow-4);
|
||||
border-radius: 5px;
|
||||
background: var(--btn-bg-3);
|
||||
color: var(--btn-text-1);
|
||||
background: inherit;
|
||||
color: var(--box-text-1);
|
||||
}
|
||||
|
||||
.confirm-btn-box {
|
||||
@@ -236,25 +238,15 @@ defineExpose({
|
||||
.confirm-btn {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 30%;
|
||||
min-width: 150px;
|
||||
min-height: 30px;
|
||||
width: 180px;
|
||||
height: 60px;
|
||||
align-items: center;
|
||||
border-radius: 50px;
|
||||
background: var(--btn-bg-2);
|
||||
color: var(--btn-text-1);
|
||||
font-family: var(--font-text);
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--common-shadow-4);
|
||||
border-radius: 5px;
|
||||
color: var(--box-text-5);
|
||||
cursor: pointer;
|
||||
font-family: var(--font-title);
|
||||
font-size: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user