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

View File

@@ -1115,36 +1115,6 @@ data-role="{{ p.position or '' }}"
}; };
</script> </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" id="clockEditorModal">
<div class="formation-modal-backdrop" onclick="closeClockEditor()"></div> <div class="formation-modal-backdrop" onclick="closeClockEditor()"></div>
<div class="formation-modal-content clock-editor-modal-content"> <div class="formation-modal-content clock-editor-modal-content">