CSS для прогресс-бара и мелкие доработки.

This commit is contained in:
justuser-31 2026-02-04 22:33:03 +03:00
parent c9508f479a
commit 0adc4ea0e7
2 changed files with 47 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class FileServerHandler(BaseHTTPRequestHandler):
</form>
<!-- Progress Container -->
<div id="progressContainer" style="display:none; margin-top: 10px;">
<div id="progressContainer" style="display:none;">
<label for="uploadProgress">Uploading:</label>
<progress id="uploadProgress" value="0" max="100"></progress>
<span id="percentLabel">0%</span>

View File

@ -331,3 +331,49 @@ p a.back-btn {
margin: 8px 0;
}
}
/* New styles for progress bar */
#progressContainer {
width: 100%;
margin: 20px 0;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: none; /* Hidden by default */
}
#uploadProgress {
width: 100%;
height: 24px;
border-radius: 12px;
background-color: #e9ecef;
overflow: hidden;
border: none;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
#uploadProgress::-webkit-progress-bar {
background-color: #e9ecef;
border-radius: 12px;
}
#uploadProgress::-webkit-progress-value {
background: linear-gradient(to right, #4caf50, #8bc34a);
border-radius: 12px;
transition: width 0.3s ease;
}
#uploadProgress::-moz-progress-bar {
background: linear-gradient(to right, #4caf50, #8bc34a);
border-radius: 12px;
}
#percentLabel {
display: inline-block;
width: 40px;
text-align: right;
font-weight: bold;
color: #333;
margin-left: 10px;
}