Added new modules and updated existing logic
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
/* date-header — modern date column header */
|
||||
|
||||
.date-header-root {
|
||||
width: var(--cell-width);
|
||||
min-width: var(--cell-width);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
height: var(--h-dates);
|
||||
border-right: 1px solid var(--border-color-light);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
background: var(--background-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.date-header-root:hover {
|
||||
background: var(--hover-bg);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.date-header-bg-weekend {
|
||||
background-color: var(--background-tertiary) !important;
|
||||
}
|
||||
.date-header-text-sat {
|
||||
color: var(--success-color) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
.date-header-text-sun {
|
||||
color: var(--danger-color) !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
|
||||
.date-header-reading-active {
|
||||
background-color: rgba(255, 249, 196, 0.9) !important;
|
||||
border-bottom: 2px solid var(--warning-color);
|
||||
box-shadow: inset 0 -2px 0 var(--warning-color);
|
||||
}
|
||||
|
||||
.date-header-col-hovered {
|
||||
background-color: var(--highlight-bg) !important;
|
||||
box-shadow: inset 1px 0 0 var(--highlight-border), inset -1px 0 0 var(--highlight-border);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.date-header-hover-trigger .date-header-highlight-btn {
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
.date-header-hover-trigger:hover .date-header-highlight-btn,
|
||||
.date-header-highlight-btn.date-header-is-active {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.date-header-active-bar {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--primary-color), var(--info-color));
|
||||
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
|
||||
animation: active-bar-pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes active-bar-pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
.date-header-day {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
line-height: 1;
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.date-header-month {
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.date-header-weekday {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-tertiary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.date-header-today {
|
||||
background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1)) !important;
|
||||
border: 1px solid rgba(79, 70, 229, 0.2) !important;
|
||||
box-shadow: 0 2px 6px -1px rgba(79, 70, 229, 0.2) !important;
|
||||
}
|
||||
|
||||
.date-header-today .date-header-day {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.date-header-today .date-header-month {
|
||||
color: var(--primary-dark) !important;
|
||||
}
|
||||
|
||||
.date-header-today .date-header-weekday {
|
||||
color: var(--info-color) !important;
|
||||
}
|
||||
|
||||
.date-header-highlight-btn {
|
||||
position: absolute;
|
||||
top: var(--spacing-xs);
|
||||
right: var(--spacing-xs);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: var(--radius-rounded);
|
||||
background: var(--background-primary);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
z-index: 15;
|
||||
}
|
||||
.date-header-highlight-btn:hover {
|
||||
background: var(--primary-light);
|
||||
color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.date-header-highlight-btn.date-header-is-active {
|
||||
background: var(--warning-color);
|
||||
color: var(--text-white);
|
||||
border-color: var(--warning-color);
|
||||
}
|
||||
|
||||
/* Mobile optimizations */
|
||||
@media (max-width: 599px) {
|
||||
.date-header-root {
|
||||
height: calc(var(--h-dates) - 8px);
|
||||
}
|
||||
|
||||
.date-header-day {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.date-header-month {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.date-header-weekday {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user