Files
kawai-focus-v2/client/src/views/TimerUpdate/TimerUpdate.css
2026-06-05 14:58:22 +03:00

270 lines
4.5 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.timer-update-container {
background-color: #f5f5f5;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.page-header {
background-color: #ffffff;
padding: 16px;
border-bottom: 1px solid #e0e0e0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.back-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
width: auto;
min-height: 44px;
padding: 0 16px;
border-radius: 999px;
border: 2px solid #f44336;
background-color: transparent;
color: #f44336;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
margin-bottom: 8px;
}
.back-button:hover {
background-color: rgba(244, 67, 54, 0.10);
}
.page-header h1 {
font-size: 28px;
font-weight: 400;
color: #212121;
letter-spacing: -0.5px;
}
.page-header p {
font-size: 13px;
color: #757575;
margin-top: 4px;
}
.form-shell {
max-width: 860px;
margin: 0 auto;
padding: 16px;
}
.state-card {
background-color: #ffffff;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
color: #212121;
}
.state-card.error {
color: #c62828;
}
.timer-form {
display: flex;
flex-direction: column;
gap: 12px;
}
.field-card {
background-color: #ffffff;
border-radius: 12px;
padding: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.field-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
margin-bottom: 10px;
}
.field-label {
font-size: 14px;
font-weight: 600;
color: #212121;
}
.field-caption {
font-size: 12px;
color: #757575;
}
.field-card input[type="text"] {
width: 100%;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 12px 14px;
font-size: 15px;
color: #212121;
background-color: #fff;
}
.field-error {
margin-top: 6px;
color: #d32f2f;
font-size: 12px;
line-height: 1.4;
}
.title-input--error {
border-color: #d32f2f !important;
box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.12) !important;
}
.field-card input[type="text"]:focus,
.title-input:focus,
.title-input:focus-visible {
outline: none;
border-color: #f44336;
box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.12);
}
.title-input:hover {
border-color: #f44336;
}
.tomato-card {
display: flex;
flex-direction: column;
gap: 8px;
}
.tomato-stage {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.tomato-display {
width: 92px;
height: 92px;
border-radius: 50%;
display: grid;
place-items: center;
text-align: center;
background: radial-gradient(circle at 30% 30%, #ff6b6b 0%, #f44336 65%, #d32f2f 100%);
color: #ffffff;
box-shadow: 0 8px 18px rgba(244, 67, 54, 0.22);
}
.tomato-display strong {
font-size: 24px;
line-height: 1;
}
.tomato-emoji {
font-size: 18px;
line-height: 1;
}
.slider-card .slider-wrap {
display: flex;
align-items: center;
gap: 12px;
}
.value-pill {
width: 78px;
height: 78px;
border-radius: 50%;
display: grid;
place-items: center;
text-align: center;
background: linear-gradient(145deg, #f44336, #ff7043);
color: #ffffff;
font-size: 18px;
font-weight: 700;
box-shadow: 0 6px 14px rgba(244, 67, 54, 0.25);
flex-shrink: 0;
border: 1px solid rgba(255, 255, 255, 0.35);
}
.value-pill small {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.9;
}
.slider-card input[type="range"] {
flex: 1;
accent-color: #f44336;
}
.slider-card input[type="range"]::-webkit-slider-thumb {
background: #f44336;
}
.slider-card input[type="range"]::-moz-range-thumb {
background: #f44336;
}
.range-note {
margin-top: 8px;
color: #757575;
font-size: 12px;
}
.save-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
min-height: 44px;
border: 2px solid #4caf50;
border-radius: 999px;
background-color: transparent;
color: #4caf50;
padding: 0 16px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.save-button:hover {
background-color: rgba(76, 175, 80, 0.10);
}
@media (max-width: 600px) {
.page-header {
padding: 12px;
}
.page-header h1 {
font-size: 24px;
}
.form-shell {
padding: 12px;
}
.slider-card .slider-wrap {
flex-direction: column;
align-items: stretch;
}
.value-pill {
width: 68px;
height: 68px;
margin: 0 auto;
}
}