511 lines
13 KiB
CSS
511 lines
13 KiB
CSS
.page-admin {
|
|
background: #f8f4ec;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.admin-shell {
|
|
width: min(100% - 32px, 720px);
|
|
margin: 0 auto;
|
|
padding: 40px 0 56px;
|
|
}
|
|
|
|
.login-view {
|
|
width: min(100%, 400px);
|
|
margin: 12vh auto 0;
|
|
padding: 32px;
|
|
background: var(--color-white);
|
|
border: 1px solid #eaded1;
|
|
border-radius: 8px;
|
|
box-shadow: 0 12px 30px rgba(74, 44, 61, 0.12);
|
|
}
|
|
|
|
.eyebrow {
|
|
margin-bottom: 6px;
|
|
color: #8c6d52;
|
|
font-family: var(--font-heading);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.login-copy,
|
|
.section-heading p {
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.login-form,
|
|
.date-form {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.login-form label,
|
|
.date-form > label,
|
|
.type-selector legend {
|
|
color: var(--color-text);
|
|
font-family: var(--font-heading);
|
|
font-size: 0.92rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.login-form input,
|
|
.date-form > input {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 10px 12px;
|
|
border: 1px solid #cfbba9;
|
|
border-radius: 6px;
|
|
background: #fffefa;
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
}
|
|
|
|
.login-form input:focus,
|
|
.date-form > input:focus,
|
|
.date-type-select:focus {
|
|
outline: 3px solid rgba(224, 87, 126, 0.28);
|
|
outline-offset: 1px;
|
|
border-color: var(--color-rose);
|
|
}
|
|
|
|
.login-form .btn,
|
|
.date-form .btn {
|
|
min-height: 48px;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-message {
|
|
min-height: 1.5em;
|
|
margin: 12px 0 0;
|
|
color: var(--color-rose-dark);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.form-message.is-success {
|
|
color: #287540;
|
|
}
|
|
|
|
.admin-view {
|
|
display: grid;
|
|
gap: 32px;
|
|
}
|
|
|
|
.admin-nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid #dfcdbd;
|
|
}
|
|
|
|
.admin-nav-btn {
|
|
padding: 10px 16px;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--color-text-light);
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-nav-btn.is-active,
|
|
.admin-nav-btn:hover { border-color: #cfbba9; background: #fffefa; color: var(--color-rose-dark); }
|
|
|
|
.admin-panel { display: grid; gap: 32px; }
|
|
|
|
.admin-header,
|
|
.dates-heading {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
|
|
.admin-header h1 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.text-action {
|
|
padding: 8px 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--color-rose-dark);
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.admin-section {
|
|
padding-top: 24px;
|
|
border-top: 1px solid #dfcdbd;
|
|
}
|
|
|
|
.section-heading h2 {
|
|
margin-bottom: 4px;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.section-heading p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.type-selector {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 4px 0 2px;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.type-selector legend {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.type-selector label {
|
|
flex: 1;
|
|
}
|
|
|
|
.type-selector input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.type-selector span {
|
|
display: block;
|
|
padding: 10px 12px;
|
|
border: 1px solid #cfbba9;
|
|
border-radius: 6px;
|
|
background: #fffefa;
|
|
color: var(--color-text-light);
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.type-selector input:checked + span {
|
|
border-color: var(--color-rose-dark);
|
|
background: var(--color-rose-dark);
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.type-selector input:focus-visible + span {
|
|
outline: 3px solid rgba(224, 87, 126, 0.28);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.dates-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
margin: 18px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.date-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 118px auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #e5d8ce;
|
|
}
|
|
|
|
.date-label {
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.date-type-select {
|
|
min-height: 38px;
|
|
padding: 6px 28px 6px 8px;
|
|
border: 1px solid #cfbba9;
|
|
border-radius: 5px;
|
|
background: #fffefa;
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
}
|
|
|
|
.delete-date-btn {
|
|
min-height: 38px;
|
|
padding: 6px 10px;
|
|
border: 1px solid #c84a62;
|
|
border-radius: 5px;
|
|
background: transparent;
|
|
color: #a83049;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.delete-date-btn:hover,
|
|
.delete-date-btn:focus-visible {
|
|
background: #fff0f2;
|
|
}
|
|
|
|
.delete-date-btn.is-booked,
|
|
.delete-date-btn.is-booked:hover,
|
|
.delete-date-btn.is-booked:focus-visible {
|
|
border-color: #bdb7b2;
|
|
background: #e3e0dd;
|
|
color: #88827d;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.empty-dates {
|
|
margin: 18px 0 0;
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.bookings-list {
|
|
display: grid;
|
|
gap: 14px;
|
|
margin: 18px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.booking-row {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 14px 0;
|
|
border-bottom: 1px solid #e5d8ce;
|
|
}
|
|
|
|
.booking-date {
|
|
font-family: var(--font-heading);
|
|
font-size: 1.08rem;
|
|
}
|
|
|
|
.booking-activities {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 12px;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.booking-activity {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.booking-metadata {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 14px;
|
|
color: var(--color-text-light);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.delete-booking-btn {
|
|
justify-self: start;
|
|
min-height: 36px;
|
|
padding: 6px 10px;
|
|
border: 1px solid #c84a62;
|
|
border-radius: 5px;
|
|
background: transparent;
|
|
color: #a83049;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.delete-booking-btn:hover,
|
|
.delete-booking-btn:focus-visible {
|
|
background: #fff0f2;
|
|
}
|
|
|
|
.delete-booking-btn:disabled {
|
|
opacity: 0.55;
|
|
cursor: wait;
|
|
}
|
|
|
|
.admin-calendar {
|
|
margin-top: 20px;
|
|
padding: 16px;
|
|
background: #fffefa;
|
|
border: 1px solid #eaded1;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.calendar-header,
|
|
.weekday-row,
|
|
.day-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.calendar-header {
|
|
grid-template-columns: 40px 1fr 40px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.month-label {
|
|
margin: 0;
|
|
color: var(--color-rose-dark);
|
|
font-size: 1.05rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.month-nav-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: var(--color-rose-light);
|
|
color: var(--color-rose-dark);
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.month-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
|
|
.weekday-row { margin-bottom: 6px; }
|
|
.weekday-row span { text-align: center; color: var(--color-text-light); font-size: 0.78rem; font-weight: 700; }
|
|
|
|
.day-cell {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
aspect-ratio: 1;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.day-cell.is-empty { pointer-events: none; }
|
|
.day-cell.is-disabled { color: #d9c3cb; cursor: not-allowed; }
|
|
.day-cell.is-today { box-shadow: inset 0 0 0 2px var(--color-rose); }
|
|
.day-cell.is-short { background: linear-gradient(90deg, var(--color-rose) 0 50%, var(--color-rose-light) 50%); color: var(--color-white); }
|
|
.day-cell.is-long { background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%); color: var(--color-white); }
|
|
.day-cell.is-booked { background: #4b9b68; color: var(--color-white); cursor: not-allowed; }
|
|
|
|
.calendar-legend {
|
|
display: flex;
|
|
gap: 18px;
|
|
margin: 12px 0 16px;
|
|
color: var(--color-text-light);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
|
|
.legend-dot { width: 16px; height: 16px; border-radius: 50%; }
|
|
.legend-dot.is-short { background: linear-gradient(90deg, var(--color-rose) 0 50%, var(--color-rose-light) 50%); }
|
|
.legend-dot.is-long { background: var(--color-rose-dark); }
|
|
|
|
.date-type-label { color: var(--color-text-light); font-weight: 700; }
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.admin-shell {
|
|
width: min(100% - 24px, 720px);
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.login-view {
|
|
margin-top: 8vh;
|
|
padding: 24px;
|
|
}
|
|
|
|
.date-row {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.date-type-select {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.delete-date-btn {
|
|
grid-column: 2;
|
|
grid-row: 1 / span 2;
|
|
}
|
|
}
|
|
|
|
.activity-form {
|
|
display: grid;
|
|
gap: 12px;
|
|
max-width: 560px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.activity-form > label:not(.toggle-label),
|
|
.icon-picker legend {
|
|
color: var(--color-text);
|
|
font-family: var(--font-heading);
|
|
font-size: 0.92rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.activity-form > input[type="text"] {
|
|
min-height: 46px;
|
|
padding: 10px 12px;
|
|
border: 1px solid #cfbba9;
|
|
border-radius: 6px;
|
|
background: #fffefa;
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
}
|
|
|
|
.activity-form > input[type="text"]:focus { outline: 3px solid rgba(224, 87, 126, 0.28); outline-offset: 1px; border-color: var(--color-rose); }
|
|
.icon-picker { margin: 4px 0 0; padding: 0; border: 0; }
|
|
.icon-picker legend { margin-bottom: 8px; }
|
|
.icon-options { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.icon-option { width: 42px; height: 42px; padding: 0; border: 1px solid #cfbba9; border-radius: 6px; background: #fffefa; font-size: 1.35rem; cursor: pointer; }
|
|
.icon-option.is-selected { border-color: var(--color-rose-dark); background: var(--color-rose-light); box-shadow: inset 0 0 0 2px var(--color-rose-dark); }
|
|
.toggle-label { display: flex; align-items: center; gap: 8px; margin-top: 4px; cursor: pointer; }
|
|
.toggle-label input { width: 18px; height: 18px; accent-color: var(--color-rose-dark); }
|
|
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
|
|
.btn-secondary { border: 1px solid #cfbba9; background: #fffefa; color: var(--color-text); }
|
|
|
|
.activities-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
|
|
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e5d8ce; }
|
|
.activity-row.is-disabled { opacity: 0.58; }
|
|
.activity-add-row { margin-top: 18px; padding: 10px 0; border-top: 1px dashed #cfbba9; border-bottom: 1px solid #e5d8ce; }
|
|
.activity-add-identity { flex: 1; }
|
|
.activity-name-input { min-width: 0; width: 100%; border: 0; border-bottom: 1px solid #cfbba9; background: transparent; color: var(--color-text); font: inherit; font-family: var(--font-heading); font-weight: 700; outline: 0; }
|
|
.activity-name-input:focus { border-color: var(--color-rose-dark); box-shadow: 0 2px 0 var(--color-rose-light); }
|
|
.activity-name-input::placeholder { color: var(--color-text-light); font-weight: 600; }
|
|
.activity-identity { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 10px; min-width: 0; }
|
|
.activity-row-icon { grid-row: span 2; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--color-text); font-size: 1.5rem; line-height: 1; text-align: center; cursor: pointer; }
|
|
.activity-row-icon:hover, .activity-row-icon:focus-visible { border-color: #cfbba9; background: #fffefa; }
|
|
.activity-row-icon:disabled { cursor: not-allowed; opacity: 0.55; }
|
|
.activity-row-name { font-family: var(--font-heading); font-weight: 700; overflow-wrap: anywhere; }
|
|
.activity-identity small { color: var(--color-text-light); }
|
|
.activity-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
|
|
.row-action { width: 36px; height: 36px; padding: 0; border: 1px solid #cfbba9; border-radius: 5px; background: #fffefa; color: var(--color-text); font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; }
|
|
.row-action:hover, .row-action:focus-visible { border-color: var(--color-rose-dark); color: var(--color-rose-dark); }
|
|
.row-action:disabled { opacity: 0.35; cursor: not-allowed; }
|
|
.type-action { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
|
|
.duration-indicator { display: block; width: 18px; height: 18px; border-radius: 50%; }
|
|
.type-action.is-short .duration-indicator { background: linear-gradient(90deg, var(--color-rose) 0 50%, var(--color-rose-light) 50%); }
|
|
.type-action.is-long .duration-indicator { background: var(--color-rose-dark); }
|
|
.type-action.is-short { color: var(--color-rose); }
|
|
.type-action.is-long { color: var(--color-rose-dark); }
|
|
.row-action.is-danger { border-color: #c84a62; color: #a83049; }
|
|
|
|
.activity-icon-picker { position: absolute; z-index: 5; top: 44px; left: 0; display: grid; grid-template-columns: repeat(6, 48px); gap: 8px; width: 352px; padding: 12px; border: 1px solid #cfbba9; border-radius: 8px; background: #fffefa; box-shadow: 0 12px 24px rgba(74, 44, 61, 0.18); }
|
|
.activity-icon-picker.hidden { display: none; }
|
|
.activity-icon-picker .icon-option { width: 48px; height: 48px; font-size: 1.65rem; }
|
|
.activity-add-picker { top: 52px; }
|
|
|
|
@media (max-width: 560px) {
|
|
.activity-row { align-items: flex-start; flex-direction: column; }
|
|
.activity-actions { justify-content: flex-start; }
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.activity-icon-picker { grid-template-columns: repeat(5, 48px); width: 296px; }
|
|
} |