-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaceauth.css
144 lines (128 loc) · 2.81 KB
/
faceauth.css
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
/* General container styling for Face Authentication */
#faceAuth {
text-align: center;
margin: 0 auto;
padding: 20px;
max-width: 500px;
display: flex;
flex-direction: column;
align-items: center;
}
/* Capture Button Styling */
#captureButton {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Buttons for Retry and Submit */
#retryButton, #submitButton {
display: none;
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Video Element Styling */
#video, #imagePreview {
width: 100%;
max-width: 400px;
margin: 10px auto;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Image Preview Styling */
#imagePreview {
display: none; /* Hide preview initially */
}
/* Button Styling */
button {
margin: 10px;
padding: 12px 24px;
font-size: 16px;
font-weight: bold;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Button Hover State */
button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
/* Button Focus State */
button:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}
/* Disabled Button State */
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/* Loader Styling */
#loader {
margin: 10px;
font-size: 16px;
color: #666;
font-style: italic;
display: none; /* Hide loader initially */
}
/* Message Box Styling */
.message {
margin: 15px auto;
padding: 12px 20px;
border-radius: 8px;
display: inline-block;
font-size: 15px;
font-weight: bold;
text-align: center;
max-width: 400px;
width: 100%;
}
/* Info Message */
.message.info {
background-color: #f0f0f0;
color: #000;
border: 1px solid #ccc;
}
/* Success Message */
.message.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
/* Error Message */
.message.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Responsive Styling for Smaller Screens */
@media (max-width: 480px) {
/* Video and Image Preview Adjustment */
#video, #imagePreview {
max-width: 100%;
}
/* Button Resizing for Mobile Devices */
button {
width: 100%;
margin: 10px 0;
}
/* Message Box Responsive Adjustment */
.message {
width: 90%;
}
}