2025-08-15 08:26:11 +01:00

465 lines
7.3 KiB
CSS

body {
margin: 0;
padding: 0;
font-family:Tahoma,Verdana,STHeiTi,simsun,sans-serif;
}
div.debug {
position: absolute;
left: 5px;
bottom: 5px;
width: 80%;
height: 50%;
border-radius: 10px;
border: 2px dashed rgba(50, 255, 50, 0.5);
background-color: rgba(0, 50, 0, 0.7);
padding: 1rem;
color: #fff;
font-size: 12px;
word-break: break-all;
}
.hidden {
display: none !important;
}
video.preview {
object-fit: cover;
position: fixed;
top: -1%;
left: -1%;
width: 102%;
height: 102%;
z-index: -1000;
border: 1px solid yellow;
box-sizing: border-box;
}
div.debug canvas {
display: inline-block;
width: 100px;
height: 100px;
}
div.bottomfixed {
position: absolute;
width: 100%;
bottom: 0;
height: 90px;
background-color: #171616;
text-align: center;
border-top: 1px solid #ef4823;
}
.play.button {
display: inline-block;
padding: 0.1rem 1.2rem 0.1rem 1.4rem;
margin-right: 0.2rem;
border-radius: 6px;
background-color: #707070;
color: #444;
}
div.bottomfixed .action.highlight .play.button {
background-color: #ccc;
}
div.bottomfixed .action img {
height: 14px;
width: 36px;
}
div.bottomfixed .action {
margin-top: 20px;
font-size: 1rem;
color: #707070;
width: 49%;
display: inline-block;
}
div.bottomfixed .action.highlight {
color: #ccc;
}
div.camoverlay {
position: fixed;
top: 0;
clear: both;
font-size: 0;
width: 100%;
aspect-ratio: 1;
top: 18vw;
}
div.camoverlay img.qrmarkers {
position: absolute;
left: 0;
margin: 0;
width: 100%;
height: 100%;
}
div.lower.text {
top: 4%;
text-align: center;
}
div.progress {
width: 70%;
margin: 0.2rem 0 0 0;
height: 20px;
border-radius: 10px;
background-color: #eee;
font-size: 18px;
color: black;
display: inline-block;
position: relative;
overflow: hidden;
}
div.progress-text {
color: #333;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
div.progress-bar {
border-radius: 10px;
background-color: #ef4823;
width: 0%;
height: 100%;
top: 0;
}
div.upper.overlay {
position: relative;
height: 100vmin;
text-align: center;
}
div.lower.overlay {
position: relative;
width: 100%;
text-align: center;
}
div.debug .buttons {
margin: 0 0 0.3rem 0;
}
div.debug .buttons button {
height: 2rem;
margin: 0 5px 5px 0;
}
div#loading {
width: 100%;
height: 100%;
position: absolute;
background-color: white;
z-index: 10000;
text-align: center;
padding-top: 30%;
}
canvas#output_img {
position: absolute;
right: 5px;
top: 5px;
}
div.bordered {
padding: 0.2rem;
border: 1px dashed yellow;
border-radius: 4px;
margin: 0.2rem 0;
}
div.output {
position: relative;
}
.tooltip {
position: absolute;
width: 100vmin;
display: block;
margin: 0 auto;
animation: bounce 1s ease-in-out infinite; /* Adjust the duration as needed */
top: -60px;
}
.tooltip .tooltiptext {
display: block;
margin: 0 auto;
width: 110px;
background-color: #ef4823;
color: #fff;
padding: 12px 0;
border-radius: 10px;
z-index: 1;
opacity: 0.75;
}
.tooltip:hover .tooltiptext {
}
.tooltip .tooltiptext::after {
content: " ";
position: absolute;
top: 100%; /* At the bottom of the tooltip */
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #ef4823 transparent transparent transparent;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(10px); /* Adjust the bounce height as needed */
}
}
.modal {
display: block;
width: 100%;
height: 100%;
position: fixed;
background-color: rgba(0, 0, 0, 0.9);
z-index: 100;
}
.modal .panel {
position: relative;
width: 80vmin;
height: 80%;
margin: 10vmin auto;
background-image: linear-gradient(0deg, #8b8986 0%, #414141 36%, #414141 92%, #515151 100%);
border-radius: 20px;
}
.modal .actions {
position: absolute;
display: block;
width: 100%;
height: 100px;
bottom: 0;
text-align: center;
}
.actions button {
display: inline-block;
width: 35%;
border-radius: 10px;
box-sizing: border-box;
font-size: 0.8rem;
border-radius: 20rpx;
padding: 0.4rem 1.5rem;
}
button.service {
margin-right: 0.5rem;
border: 1px solid #676767;
background-color: #858585;
color: #a7a7a7;
}
button.back {
border: 1px solid rgba(239, 72, 35, 0.7);
color: rgba(239, 72, 35, 0.7);
margin-left: 0.5rem;
}
button.back img.return {
width: 10px;
height: 10px;
}
.serviceqr {
position: relative;
width: 100%;
padding-top: 80px;
}
.serviceqr .imgbox {
display: block;
margin: auto;
width: 60vmin;
height: 60vmin;
padding: 3vmin;
background-color: #eee;
border-radius: 10px;
}
.serviceqr .title {
position: absolute;
display: inline-block;
width: 100%;
color: #eee;
margin: 30px auto;
text-align: center;
padding: 0;
}
.serviceqr img {
width: 100%;
height: 100%;
}
.verifyfailed {
text-align: center;
color: #eee;
}
.verifyfailed .title {
font-size: 1.1rem;
}
.verifyfailed .hints {
margin-top: 80px;
color: #ccc;
}
.verifyfailed .hints div {
margin-bottom: 0.3rem;
}
.verifyfailed .circle {
height: 20vmin;
width: 20vmin;
color: #666;
font-size: 15vmin;
margin: 10vmin auto 1rem;;
background-color: #ddd;
border-radius: 50%;
display: inline-block;
}
.verifyspin {
position: absolute;
overflow: hidden;
z-index: 101;
width: 100vmin;
height: 100vmax;
background-color: rgba(0, 0, 0, 0.9);
}
.verifyspin .spinner {
position: absolute; /* Position the image absolutely */
width: 100vmin;
height: 100vmin;
margin: 0 auto;
text-align: center;
display: block;
}
.verifyspin img {
display: block;
width: 100%;
height: 100%;
}
.spin-and-shrink {
animation: spin-and-shrink 3s linear forwards;
}
@keyframes spin-and-shrink {
0% {
transform: rotate(-90deg) scale(5.5)
}
10% {
transform: rotate(0deg) scale(2.0)
}
33% {
transform: rotate(90deg) scale(1.0);
}
66% {
transform: rotate(2000deg) scale(0.5);
}
99% {
transform: rotate(3600deg) scale(0.2);
}
100% {
transform: rotate(3600deg) scale(0.2);
}
}
.spin-only {
animation: spin-only 0.3s linear infinite;
}
@keyframes spin-only {
0% {
transform: rotate(0deg) scale(0.2);
}
100% {
transform: rotate(360deg) scale(0.2);
}
}
.verifyspin .loading {
color: #ccc;
font-size: 1.4rem;
display: block;
width: 100%;
margin: 110vmin auto;
text-align: center;
}
div.scanguide {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#hint {
display: inline-block;
margin: 10px auto;
padding: 12px 40px;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: #eee;
font-size: 20px;
}
div.qrarc {
position: absolute;
box-sizing: border-box;
width: 46vw;
height: 46vw;
margin: 35vw 27vw;
animation: qrarc-anime 1.2s ease-in-out infinite;
}
div.qrarc img.arc {
position: absolute;
width: 15%;
height: 15%;
opacity: 0.9;
display: block;
}
div.qrarc img.arc.topright {
right: 0;
transform: rotate(90deg);
}
div.qrarc img.arc.bottomleft {
bottom: 0;
transform: rotate(-90deg);
}
div.qrarc img.arc.bottomright {
bottom: 0;
right: 0;
transform: rotate(180deg);
}
@keyframes qrarc-anime {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}