120 lines
2.2 KiB
CSS
120 lines
2.2 KiB
CSS
/* ==========================================================================
|
|
Page: Datum (datetime.html)
|
|
========================================================================== */
|
|
|
|
.page-datetime .container {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.page-datetime .intro {
|
|
text-align: center;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.page-datetime .intro p {
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
/* Calendar card ----------------------------------------------------------- */
|
|
|
|
.calendar-card {
|
|
background: var(--color-white);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-soft);
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.calendar-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.month-label {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
color: var(--color-rose-dark);
|
|
}
|
|
|
|
.month-nav-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: var(--color-rose-light);
|
|
color: var(--color-rose-dark);
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.month-nav-btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.weekday-row,
|
|
.day-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.weekday-row {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.weekday-row span {
|
|
text-align: center;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.day-cell {
|
|
position: relative;
|
|
aspect-ratio: 1 / 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
font-family: var(--font-body);
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
|
|
}
|
|
|
|
.day-cell:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.day-cell.is-empty {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-cell.is-disabled {
|
|
color: #d9c3cb;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-cell.is-today {
|
|
box-shadow: inset 0 0 0 2px var(--color-rose);
|
|
}
|
|
|
|
.day-cell.is-selected {
|
|
background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
|
|
color: var(--color-white);
|
|
box-shadow: var(--shadow-strong);
|
|
}
|