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

340 lines
5.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.timers-container {
background-color: #f5f5f5;
min-height: 100vh;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.page-header {
background-color: #ffffff;
padding: 16px 16px;
border-bottom: 1px solid #e0e0e0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.page-header h1 {
font-size: 32px;
font-weight: 400;
color: #212121;
letter-spacing: -0.5px;
}
.timers-list {
padding: 16px;
max-width: 800px;
margin: 0 auto;
}
.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;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
padding: 18px;
}
.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;
}
.loading,
.error-message,
.empty-state {
background-color: #ffffff;
border-radius: 4px;
padding: 24px;
text-align: center;
margin-bottom: 16px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.loading p,
.empty-state p {
color: #666;
font-size: 14px;
}
.error-message {
background-color: #ffebee;
border-left: 4px solid #f44336;
}
.error-message p {
color: #c62828;
}
.timer-cards {
display: flex;
flex-direction: column;
gap: 8px;
}
.timer-card {
background-color: #ffffff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.timer-card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.timer-card.expanded {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.card-header {
display: flex;
align-items: center;
padding: 16px;
cursor: pointer;
user-select: none;
transition: background-color 0.2s ease;
}
.card-header:hover {
background-color: #fafafa;
}
.timer-icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
margin-right: 16px;
color: #1976d2;
font-size: 24px;
}
.timer-info {
flex: 1;
}
.timer-title {
font-size: 16px;
font-weight: 500;
color: #212121;
margin: 0 0 4px 0;
line-height: 1.4;
}
.timer-subtitle {
font-size: 13px;
color: #757575;
margin: 0;
line-height: 1.4;
}
.expand-icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
color: #999;
font-size: 24px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.timer-card.expanded .expand-icon {
transform: rotate(180deg);
}
.card-content {
border-top: 1px solid #e0e0e0;
padding: 16px;
background-color: #fafafa;
animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
from {
opacity: 0;
max-height: 0;
}
to {
opacity: 1;
max-height: 500px;
}
}
.timer-details {
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #e0e0e0;
}
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
font-size: 14px;
}
.detail-label {
color: #666;
font-weight: 500;
}
.detail-value {
color: #212121;
font-weight: 400;
}
.add-timer-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
min-height: 48px;
margin-bottom: 12px;
border: 2px solid #1976d2;
border-radius: 999px;
background-color: transparent;
color: #1976d2;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.add-timer-button:hover {
background-color: rgba(25, 118, 210, 0.10);
}
.card-actions {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 8px;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 12px;
border: 2px solid transparent;
border-radius: 999px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
min-height: 36px;
}
.btn ion-icon {
font-size: 18px;
}
.btn-primary {
background-color: transparent;
color: #4caf50;
border: 2px solid #4caf50;
}
.btn-primary:hover {
background-color: rgba(76, 175, 80, 0.10);
box-shadow: 0 4px 8px rgba(76, 175, 80, 0.18);
}
.btn-primary:active {
background-color: rgba(76, 175, 80, 0.20);
}
.btn-secondary {
background-color: transparent;
color: #f9a825;
border: 2px solid #f9a825;
}
.btn-secondary:hover {
background-color: rgba(249, 168, 37, 0.10);
}
.btn-secondary:active {
background-color: rgba(249, 168, 37, 0.20);
}
.btn-danger {
background-color: transparent;
color: #f44336;
border: 2px solid #f44336;
}
.btn-danger:hover {
background-color: rgba(244, 67, 54, 0.10);
}
.btn-danger:active {
background-color: rgba(244, 67, 54, 0.20);
}
@media (max-width: 600px) {
.page-header {
padding: 12px 16px;
}
.page-header h1 {
font-size: 24px;
}
.timers-list {
padding: 8px;
}
.card-header {
padding: 12px;
}
.timer-icon {
width: 36px;
height: 36px;
margin-right: 12px;
}
.card-content {
padding: 12px;
}
.card-actions {
grid-template-columns: 1fr 1fr;
}
.btn {
padding: 8px 10px;
font-size: 12px;
}
}