Files
kawai-focus-v2/client/src/views/Timer/Timer.css
2026-06-05 15:06:21 +03:00

261 lines
4.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.timer-page-container {
background-color: #f5f5f5;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', Arial, sans-serif;
display: flex;
flex-direction: column;
}
.page-header {
background-color: #ffffff;
padding: 16px;
border-bottom: 1px solid #e0e0e0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
width: 100%;
min-height: 72px;
position: relative;
}
.page-header h1 {
font-size: 32px;
font-weight: 400;
color: #212121;
letter-spacing: -0.5px;
margin: 0;
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
}
.timer-screen {
padding: 24px 16px;
width: 100%;
max-width: 500px;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
flex: 1;
justify-content: center;
}
.confirm-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.35);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 1000;
}
.confirm-card {
width: 100%;
max-width: 380px;
background: #ffffff;
border-radius: 16px;
padding: 18px;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.confirm-card h3 {
font-size: 18px;
color: #212121;
margin-bottom: 8px;
}
.confirm-card p {
font-size: 14px;
color: #666;
margin-bottom: 16px;
}
.confirm-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.timer-display-card {
background-color: #ffffff;
border-radius: 16px;
padding: 28px 24px 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
width: 100%;
}
.timer-card-labels {
display: flex;
justify-content: space-between;
width: 100%;
}
.label-left,
.label-right {
font-size: 13px;
color: #9e9e9e;
font-weight: 400;
letter-spacing: 0.3px;
}
.timer-time {
width: 100%;
text-align: center;
}
.time-text {
font-size: 56px;
font-weight: 400;
color: #212121;
letter-spacing: 2px;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.timer-progress-bar {
width: 100%;
height: 2px;
background-color: #e0e0e0;
border-radius: 2px;
overflow: hidden;
}
.timer-progress-fill {
height: 100%;
background-color: #1976d2;
border-radius: 2px;
transition: width 1s linear;
}
.timer-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
width: 100%;
height: 48px;
}
.btn-back {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 40px;
min-width: 96px;
padding: 0 14px;
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
border-radius: 999px;
border: 2px solid #f44336;
background-color: transparent;
color: #f44336;
font-size: 13px;
font-weight: 500;
cursor: pointer;
}
.btn-back:hover {
background-color: rgba(244, 67, 54, 0.10);
}
.btn-timer {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 120px;
height: 44px;
flex-shrink: 0; /* запрет на сжатие */
background-color: transparent;
font-size: 14px;
font-weight: 500;
border-radius: 50px;
cursor: pointer;
letter-spacing: 0.5px;
border: 2px solid;
}
.btn-timer ion-icon {
font-size: 17px;
}
.btn-timer-start {
border-color: #4caf50;
color: #4caf50;
}
.btn-timer-start:hover {
background-color: rgba(76, 175, 80, 0.10);
}
.btn-timer-start:active {
background-color: rgba(76, 175, 80, 0.22);
}
.btn-timer-stop {
border-color: #f44336;
color: #f44336;
}
.btn-timer-stop:hover {
background-color: rgba(244, 67, 54, 0.10);
}
.btn-timer-stop:active {
background-color: rgba(244, 67, 54, 0.22);
}
.btn-timer-pause {
border-color: #ffc107;
color: #f9a825;
}
.btn-timer-pause:hover {
background-color: rgba(255, 193, 7, 0.10);
}
.btn-timer-pause:active {
background-color: rgba(255, 193, 7, 0.22);
}
.btn-timer {
transition: all 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}
.btn-timer.hidden {
display: none;
}
@media (max-width: 600px) {
.timer-display-card {
padding: 20px 16px;
border-radius: 12px;
gap: 16px;
}
.time-text {
font-size: 44px;
}
.btn-timer {
padding: 8px 16px;
font-size: 13px;
}
}