102 lines
1.9 KiB
CSS
102 lines
1.9 KiB
CSS
/* --- Video and Camera Controls --- */
|
|
.video-container {
|
|
position: relative;
|
|
background: #2c2c2c;
|
|
/* Darker background */
|
|
border: 2px solid #ddd;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
max-height: 60vh;
|
|
/* A bit more height is ok now */
|
|
margin: 0 auto;
|
|
aspect-ratio: 1 / 1;
|
|
cursor: pointer;
|
|
/* Indicate it's clickable */
|
|
}
|
|
|
|
#alp-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* --- The New Viewfinder Overlay --- */
|
|
#alp-viewfinder-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
padding: 20px;
|
|
transition: background-color 0.3s ease;
|
|
/* Prevent text selection on rapid taps */
|
|
-webkit-user-select: none;
|
|
/* Safari */
|
|
-ms-user-select: none;
|
|
/* IE 10+ */
|
|
user-select: none;
|
|
/* Standard syntax */
|
|
}
|
|
|
|
#alp-viewfinder-overlay:hover {
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Spinner for loading states */
|
|
.spinner {
|
|
border: 8px solid #f3f3f3;
|
|
border-top: 8px solid #3498db;
|
|
border-radius: 50%;
|
|
width: 60px;
|
|
height: 60px;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
#alp-photos-container {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.photo-thumb {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.photo-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.photo-thumb .delete-photo-btn {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
line-height: 1;
|
|
padding: 2px 5px;
|
|
font-size: 12px;
|
|
} |