forked from Khoshimjonov/jsCaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
194 lines (170 loc) · 4.11 KB
/
Copy pathstyles.css
File metadata and controls
194 lines (170 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
:root {
--main-bg-color: #efefef;
--main-text-color: #444;
--main-box-shadow: -6px -6px 14px rgba(255, 255, 255, .7), -6px -6px 10px rgba(255, 255, 255, .5), 6px 6px 8px rgba(255, 255, 255, .075), 6px 6px 10px rgba(0, 0, 0, .15);
--main-box-shadow-hover: -2px -2px 6px rgba(255, 255, 255, .6), -2px -2px 4px rgba(255, 255, 255, .4), 2px 2px 2px rgba(255, 255, 255, .05), 2px 2px 4px rgba(0, 0, 0, .1);
--main-textfield-focus-shadow: inset -2px -2px 1px 0px rgba(255, 255, 255, .7), inset -3px -3px 5px rgba(255, 255, 255, .5), inset 3px 3px 4px 0px rgba(255, 255, 255, .075), inset 3px 3px 5px 0px rgba(0, 0, 0, .15);
--main-textfield-enabled-shadow: inset -2px -2px 6px rgba(255, 255, 255, .7), -2px -2px 4px rgba(255, 255, 255, .5), 2px 2px 4px rgba(255, 255, 255, .075), inset 2px 2px 4px rgba(0, 0, 0, .15);
}
html {
display: table;
margin: auto;
}
html,
body {
height: 100%;
}
body {
display: table-cell;
vertical-align: middle;
background-color: var(--main-bg-color);
font-family: Arial, Helvetica, sans-serif;
}
h1 {
color: var(--main-text-color);
margin-left: 40px;
}
.button {
background: var(--main-bg-color);
border: none;
width: auto;
padding: 20px;
border-radius: 45px;
color: var(--main-text-color);
font-size: 1rem;
letter-spacing: .1rem;
text-align: center;
outline: none;
cursor: pointer;
transition: .4s ease-in-out;
box-shadow: var(--main-box-shadow);
font-style: italic;
}
.button:hover {
box-shadow: var(--main-box-shadow-hover);
}
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
}
.captcha_textfield {
border-radius: 10px;
border: none;
background: var(--main-bg-color);
box-shadow: var(--main-textfield-focus-shadow);
margin: 10px 10px 10px 0;
padding: 10px;
color: var(--main-text-color);
font-size: 1rem;
transition: .4s ease-in-out;
}
.captcha_textfield:focus {
box-shadow: var(--main-textfield-enabled-shadow);
outline: none;
}
.verify_button {
background: var(--main-bg-color);
border: none;
width: auto;
padding: 10px;
border-radius: 45px;
color: var(--main-text-color);
font-size: 1rem;
letter-spacing: .1rem;
text-align: center;
outline: none;
cursor: pointer;
transition: .4s ease-in-out;
box-shadow: var(--main-box-shadow);
margin-left: 15px;
}
.verify_button:hover {
box-shadow: var(--main-box-shadow-hover);
}
.modal-content {
position: relative;
background-color: var(--main-bg-color);
margin: auto;
padding: 0;
border: 1px solid #888;
width: 440px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s;
border-radius: 20px;
top: 30%;
}
/* Add Animation */
@-webkit-keyframes animatetop {
from {
top: 1%;
opacity: 0
}
to {
top: 30%;
opacity: 1
}
}
@keyframes animatetop {
from {
top: 1%;
opacity: 0
}
to {
top: 30%;
opacity: 1
}
}
.close_captcha {
color: #ff1323;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
margin-left: 45px;
}
.close_captcha:hover,
.close_captcha:focus {
color: var(--main-text-color);
text-decoration: none;
cursor: pointer;
}
.modal-header {
padding: 2px 16px;
height: 30px;
display: flex;
align-items: center;
background-color: #5cb85c;
color: white;
font-size: small;
border-radius: 20px 20px 0 0;
}
.modal-body {
padding: 5px 15px 5px 15px;
display: flex;
align-items: center;
}
.canvas {
border: 1px var(--main-text-color) solid;
}
#textCanvas {
display: none;
}
.chaptcha_image {
padding-top: 10px;
border: 1px dashed var(--main-text-color);
}
.hidden_label {
display: none;
}