изменение текущего времени, тест 4

This commit is contained in:
2026-05-25 14:13:06 +03:00
parent 3ff7c95018
commit 64cd3891ea
2 changed files with 59 additions and 89 deletions

View File

@@ -2353,91 +2353,91 @@ body:not(.edit-mode-on) .referee-search {
outline-offset: 2px;
}
/* ===== Редактирование текущего времени ===== */
.timer-box-clickable {
cursor: pointer;
transition: 0.2s;
transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.timer-box-clickable:hover {
opacity: 0.85;
transform: translateY(-1px);
border-color: rgba(79, 140, 255, 0.55);
box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}
.clock-editor-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
backdrop-filter: blur(3px);
#clockEditorModal {
z-index: 5000;
}
.clock-editor-content {
width: 340px;
background: #1b1b1b;
border: 1px solid #333;
border-radius: 14px;
#clockEditorModal .formation-modal-backdrop {
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(4px);
}
.clock-editor-modal-content {
width: min(460px, 94vw);
margin: 12vh auto 0;
padding: 22px;
box-shadow: 0 10px 40px rgba(0,0,0,.5);
color: #fff;
font-family: Arial, sans-serif;
background:
linear-gradient(180deg, rgba(31, 36, 46, 0.98), rgba(18, 21, 27, 0.98));
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 18px;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
color: var(--text);
}
.clock-editor-title {
font-size: 20px;
.clock-editor-modal-content .formation-modal-title {
color: var(--text);
}
.clock-editor-modal-content .formation-modal-subtitle {
color: var(--muted);
}
.clock-editor-body {
display: flex;
flex-direction: column;
gap: 10px;
}
.clock-editor-label {
font-size: 13px;
font-weight: 700;
margin-bottom: 16px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.4px;
}
.clock-editor-input {
width: 100%;
height: 56px;
background: #101010;
border: 1px solid #444;
border-radius: 10px;
color: #fff;
font-size: 32px;
height: 74px;
background: #0b0d12;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 16px;
color: #ffffff;
font-size: 40px;
font-weight: 800;
letter-spacing: 2px;
text-align: center;
outline: none;
margin-bottom: 18px;
font-family: Arial, sans-serif;
}
.clock-editor-input:focus {
border-color: #4da3ff;
box-shadow: 0 0 0 3px rgba(77,163,255,.2);
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}
.clock-editor-buttons {
display: flex;
gap: 10px;
.clock-editor-note {
font-size: 13px;
color: var(--muted);
}
.clock-editor-btn {
flex: 1;
height: 44px;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: .2s;
#clockEditorModal .formation-modal-footer {
margin-top: 20px;
}
.clock-editor-btn.apply {
background: #2d7dff;
color: white;
}
.clock-editor-btn.apply:hover {
background: #5193ff;
}
.clock-editor-btn.cancel {
background: #2a2a2a;
color: #ddd;
}
.clock-editor-btn.cancel:hover {
background: #3a3a3a;
#clockEditorModal .btn-primary {
box-shadow: 0 10px 24px rgba(79, 140, 255, 0.25);
}

View File

@@ -1115,36 +1115,6 @@ data-role="{{ p.position or '' }}"
};
</script>
<div id="clockEditorModal" class="clock-editor-modal" style="display:none;">
<div class="clock-editor-content">
<div class="clock-editor-title">
Редактировать время
</div>
<input
id="clockEditorInput"
class="clock-editor-input"
type="text"
placeholder="00:00"
/>
<div class="clock-editor-buttons">
<button
class="clock-editor-btn cancel"
onclick="closeClockEditor()"
>
Отмена
</button>
<button
class="clock-editor-btn apply"
onclick="applyClockEditor()"
>
Применить
</button>
</div>
</div>
</div>
<div class="formation-modal" id="clockEditorModal">
<div class="formation-modal-backdrop" onclick="closeClockEditor()"></div>
<div class="formation-modal-content clock-editor-modal-content">