generated from justuser-31/mrl_v1_license
CSS для прогресс-бара и мелкие доработки.
This commit is contained in:
parent
c9508f479a
commit
0adc4ea0e7
@ -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>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user