go-captcha-uni-beta
Version:
验证码,UniApp 验证码,GoCaptcha 验证码,行为验证码,点选验证码,滑动验证码,旋转验证码,拼图滑块验证码,拼图拖放验证码,图像旋转验证码,点击验证码
336 lines (303 loc) • 6.81 kB
CSS
.go-captcha.gc-wrapper {
position: relative;
padding: 12px 16px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
box-sizing: border-box
}
.go-captcha.gc-theme {
border: 1px solid rgba(206, 223, 254, .5);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
box-shadow: 0 0 20px #6464641a;
-webkit-box-shadow: 0 0 20px rgba(100, 100, 100, .1);
-moz-box-shadow: 0 0 20px rgba(100, 100, 100, .1)
}
.go-captcha.gc-theme.gc-wrapper {
background-color: #ffffff;
}
.go-captcha .gc-header {
height: 36px;
width: 100%;
font-size: 15px;
color: #333333;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.go-captcha .gc-header .gc-text {
flex: 1;
padding-right: 5px
}
.go-captcha .gc-header .gc-text-em {
padding: 0 3px;
font-weight: 700;
color: #3e7cff;
font-style: normal
}
.go-captcha .gc-body {
position: relative;
width: 100%;
margin-top: 10px;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
background: #34383e;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
overflow: hidden
}
.go-captcha .gc-body .gc-body-inner {
position: relative;
background: #34383e;
}
.go-captcha .gc-picture {
position: relative;
z-index: 2;
width: 100%
}
.go-captcha .gc-hide {
visibility: hidden
}
.go-captcha .gc-loading {
position: absolute;
z-index: 1;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin-left: -8px;
margin-top: -8px;
line-height: 16px;
text-align: center;
display: flex;
align-content: center;
justify-content: center
}
.go-captcha .gc-loading .gc-loading-icon {
width: 16px;
height: 16px;
background: #3e7cff;
border-radius: 100%;
animation: gc-loading 1.3s infinite;
-moz-animation: gc-loading 1.3s infinite;
-webkit-animation: gc-loading 1.3s infinite;
animation-delay: 2s;
-moz-animation-delay: 2s;
-webkit-animation-delay: 2s
}
.go-captcha .gc-loading svg, .go-captcha .gc-loading circle {
color: #3e7cff;
fill: #3e7cff;
}
.go-captcha .gc-footer {
width: 100%;
height: 50px;
color: #34383e;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center;
padding-top: 10px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.go-captcha .gc-footer .gc-icon-block {
flex: 1;
}
.go-captcha .gc-icon-block {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center
}
.go-captcha .gc-icon-block svg {
color: #3C3C3C;
fill: #3C3C3C;
margin: 0 5px;
cursor: pointer
}
.go-captcha .gc-icon-block .gc-icon {
color: #3C3C3C;
font-size: 24px;
margin: 0 5px;
cursor: pointer;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
justify-content: center;
justify-items: center
}
.go-captcha .gc-icon-block img {
margin: 0 5px;
cursor: pointer
}
.go-captcha .gc-button-block {
width: 120px;
height: 40px
}
.go-captcha .gc-button-block .gc-button {
width: 100%;
height: 40px;
text-align: center;
padding: 9px 15px;
font-size: 15px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
white-space: nowrap;
cursor: pointer;
color: #ffffff;
background-color: #4e87ff;
border: 1px solid #4e87ff;
-webkit-appearance: none;
box-sizing: border-box;
outline: none;
margin: 0;
transition: .1s;
font-weight: 500;
-moz-user-select: none;
-webkit-user-select: none;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
justify-content: center;
justify-items: center
}
.go-captcha .gc-button-block .gc-button::after{
border: none ;
}
.go-captcha .gc-button-block .gc-button.disabled {
pointer-events: none;
background-color: #749ff9;
border-color: #749ff9;
}
.go-captcha .gc-drag-slide-bar {
width: 100%;
height: 100%;
position: relative;
touch-action: none
}
.go-captcha .gc-drag-line {
position: absolute;
height: 14px;
background-color: #e0e0e0;
left: 0;
right: 0;
top: 50%;
margin-top: -7px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-radius: 7px
}
.go-captcha .gc-drag-block {
position: absolute;
left: 0;
top: 50%;
margin-top: -20px;
width: 82px;
height: 40px;
z-index: 2;
background-color: #3e7cff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-border-radius: 24px;
-moz-border-radius: 24px;
border-radius: 24px;
box-shadow: 0 0 20px #64646459;
-webkit-box-shadow: 0 0 20px rgba(100, 100, 100, .35);
-moz-box-shadow: 0 0 20px rgba(100, 100, 100, .35);
color: #ffffff;
fill: #ffffff;
}
.go-captcha .gc-drag-block img {
height: 22px
}
.go-captcha .gc-drag-block.disabled {
pointer-events: none;
border-color: #749ff9;
background-color: #749ff9;
}
.go-captcha .gc-drag-block-inline {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center
}
@keyframes gc-loading {
0% {
margin-top: 0;
}
25% {
margin-top: -25px;
}
50% {
margin-top: 0px;
}
75% {
margin-top: 25px;
}
to {
margin-top: 0px;
}
}
@-webkit-keyframes gc-loading {
0% {
margin-top: 0;
}
25% {
margin-top: -25px;
}
50% {
margin-top: 0px;
}
75% {
margin-top: 25px;
}
to {
margin-top: 0px;
}
}