added styles for error with dont clicked checkbox in payments modal

This commit is contained in:
Kostya
2023-12-21 16:37:16 +03:00
parent 89ba138405
commit d01eda328d
2 changed files with 31 additions and 1 deletions

View File

@@ -195,6 +195,32 @@ input[type="checkbox"]:checked::before {
margin-left: 26px; margin-left: 26px;
} }
.error-checkbox {
position: absolute;
}
.error-checkbox h2 {
font-size: 13px;
font-weight: 400;
color: #c52f2f;
}
.checkbox-styles input:disabled:hover {
animation: shake 0.6s cubic-bezier(.36, .07, .19, .97);
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-4px);
}
20%, 40%, 60%, 80% {
transform: translateX(4px);
}
}
.number-card { .number-card {
margin-top: 15px; margin-top: 15px;
} }

View File

@@ -67,8 +67,11 @@
<h3>Введите номер карты</h3> <h3>Введите номер карты</h3>
<input class="with-input" v-model="card" type="text" /> <input class="with-input" v-model="card" type="text" />
</div> </div>
<div v-if="offAgree" class="error-checkbox">
<h2 v-show="errorAgree">Введите сначало карту</h2>
</div>
<div class="withdraw-checkbox checkbox-styles"> <div class="withdraw-checkbox checkbox-styles">
<input :disabled="offAgree" @click="agreeUser = !agreeUser" type="checkbox"/> <input :disabled="offAgree" @mouseover="errorAgree = true" @mouseleave="errorAgree = false" @click="agreeUser = !agreeUser" type="checkbox"/>
<h3>Я согласен с пользовательским соглашением.</h3> <h3>Я согласен с пользовательским соглашением.</h3>
</div> </div>
<captcha-component @captchatokendata="claimCaptchaToken" :showcaptcha="agreeUser" @captchadata="closeModal"></captcha-component> <captcha-component @captchatokendata="claimCaptchaToken" :showcaptcha="agreeUser" @captchadata="closeModal"></captcha-component>
@@ -105,6 +108,7 @@ export default {
amountWithdraw: 1, amountWithdraw: 1,
amountSave: 1, amountSave: 1,
card: '', card: '',
errorAgree: false,
captchaToken: null, captchaToken: null,
clickedBtn: "", clickedBtn: "",
url: "", url: "",