346 lines
7.2 KiB
CSS
346 lines
7.2 KiB
CSS
/* Admin specific styles for ON Booking Plugin */
|
|
|
|
/* Base Variables - Default to LIGHT Mode */
|
|
:root {
|
|
--on-bg: #ffffff;
|
|
--on-text: #1d2327;
|
|
/* WP Default dark gray */
|
|
--on-border: #c3c4c7;
|
|
/* WP Default gray border */
|
|
--on-blue: #0061ff;
|
|
--on-muted: #646970;
|
|
--on-modal-bg: #fff;
|
|
--on-modal-overlay: rgba(0, 0, 0, 0.7);
|
|
--on-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
--on-today-bg: rgba(0, 97, 255, 0.1);
|
|
|
|
/* Kanban Vars */
|
|
--on-kanban-col-bg: #f0f0f1;
|
|
--on-kanban-card-bg: #fff;
|
|
}
|
|
|
|
/* Mixin-like block for Dark Theme Values */
|
|
/* We apply this to :root in media query AND to .on-theme-dark class */
|
|
.on-theme-dark-vars {
|
|
--on-bg: #111111;
|
|
--on-text: #f0f0f1;
|
|
--on-border: #333333;
|
|
--on-muted: #a7aaad;
|
|
--on-modal-bg: #1f1f1f;
|
|
--on-modal-overlay: rgba(0, 0, 0, 0.85);
|
|
--on-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
--on-kanban-col-bg: #2c2c2c;
|
|
--on-kanban-card-bg: #1f1f1f;
|
|
}
|
|
|
|
/* 1. AUTO Mode (Default) - Uses Media Query */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
/* Copy of Dark Theme Values */
|
|
--on-bg: #111111;
|
|
--on-text: #f0f0f1;
|
|
--on-border: #333333;
|
|
--on-muted: #a7aaad;
|
|
--on-modal-bg: #1f1f1f;
|
|
--on-modal-overlay: rgba(0, 0, 0, 0.85);
|
|
--on-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
--on-kanban-col-bg: #2c2c2c;
|
|
--on-kanban-card-bg: #1f1f1f;
|
|
}
|
|
}
|
|
|
|
/* 2. FORCED LIGHT Mode */
|
|
.on-theme-light {
|
|
--on-bg: #ffffff;
|
|
--on-text: #1d2327;
|
|
--on-border: #c3c4c7;
|
|
--on-muted: #646970;
|
|
--on-modal-bg: #fff;
|
|
--on-modal-overlay: rgba(0, 0, 0, 0.7);
|
|
--on-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
--on-kanban-col-bg: #f0f0f1;
|
|
--on-kanban-card-bg: #fff;
|
|
}
|
|
|
|
/* 3. FORCED DARK Mode (Overrides Auto Light) */
|
|
.on-theme-dark {
|
|
--on-bg: #111111;
|
|
--on-text: #f0f0f1;
|
|
--on-border: #333333;
|
|
--on-muted: #a7aaad;
|
|
--on-modal-bg: #1f1f1f;
|
|
--on-modal-overlay: rgba(0, 0, 0, 0.85);
|
|
--on-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
--on-kanban-col-bg: #2c2c2c;
|
|
--on-kanban-card-bg: #1f1f1f;
|
|
}
|
|
|
|
|
|
#on-admin-calendar-wrapper,
|
|
.wrap {
|
|
font-family: 'Montserrat', sans-serif;
|
|
}
|
|
|
|
/* Calendar Container */
|
|
#on-admin-calendar {
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
font-family: 'Montserrat', sans-serif;
|
|
background: var(--on-bg);
|
|
color: var(--on-text);
|
|
border: 1px solid var(--on-border);
|
|
border-radius: 4px;
|
|
box-shadow: var(--on-card-shadow);
|
|
padding: 20px;
|
|
}
|
|
|
|
/* FullCalendar Overrides */
|
|
.fc-theme-standard td,
|
|
.fc-theme-standard th,
|
|
.fc-theme-standard .fc-scrollgrid {
|
|
border-color: var(--on-border);
|
|
}
|
|
|
|
.fc .fc-toolbar-title {
|
|
color: var(--on-text);
|
|
text-transform: uppercase;
|
|
font-style: italic;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.fc .fc-button-primary {
|
|
background-color: transparent;
|
|
border: 1px solid var(--on-blue);
|
|
color: var(--on-blue);
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.fc .fc-button-primary:hover,
|
|
.fc .fc-button-primary:not(:disabled).fc-button-active {
|
|
background-color: var(--on-blue);
|
|
border-color: var(--on-blue);
|
|
color: #fff;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.fc .fc-button-primary:disabled {
|
|
border-color: var(--on-border);
|
|
color: var(--on-muted);
|
|
}
|
|
|
|
.fc .fc-col-header-cell-cushion {
|
|
color: var(--on-text);
|
|
text-transform: uppercase;
|
|
font-size: 0.8rem;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.fc .fc-daygrid-day-number {
|
|
color: var(--on-text);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.fc-day-today {
|
|
background-color: var(--on-today-bg) !important;
|
|
}
|
|
|
|
.fc-event {
|
|
cursor: pointer;
|
|
border: none;
|
|
border-radius: 2px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.fc-h-event .fc-event-main {
|
|
color: #fff;
|
|
font-weight: 600;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
|
|
/* MODAL STYLES */
|
|
.on-modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--on-modal-overlay);
|
|
backdrop-filter: blur(5px);
|
|
z-index: 10001;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.on-modal-overlay.is-open {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.on-modal-content {
|
|
background-color: var(--on-modal-bg);
|
|
width: 100%;
|
|
max-width: 600px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
border-left: 5px solid var(--on-blue);
|
|
padding: 30px;
|
|
position: relative;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
|
|
transform: translateY(20px);
|
|
transition: transform 0.3s ease;
|
|
color: var(--on-text);
|
|
font-family: 'Montserrat', sans-serif;
|
|
}
|
|
|
|
.on-modal-overlay.is-open .on-modal-content {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Close Button (X) */
|
|
.on-close-btn {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 20px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--on-muted);
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.on-close-btn:hover {
|
|
color: var(--on-blue);
|
|
}
|
|
|
|
/* Modal Typography */
|
|
.on-modal-content h3 {
|
|
text-transform: uppercase;
|
|
font-weight: 800;
|
|
font-style: italic;
|
|
margin: 0 0 20px 0;
|
|
color: var(--on-text);
|
|
font-size: 1.5rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.on-modal-content h3 span {
|
|
color: var(--on-blue);
|
|
}
|
|
|
|
.on-modal-content strong {
|
|
color: var(--on-muted);
|
|
}
|
|
|
|
.on-modal-content a {
|
|
color: var(--on-blue);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.on-modal-content a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* KANBAN STYLES */
|
|
.on-kanban-board {
|
|
display: flex;
|
|
gap: 20px;
|
|
padding: 20px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.on-kanban-column {
|
|
flex: 1;
|
|
min-width: 250px;
|
|
background: var(--on-kanban-col-bg);
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.on-kanban-header {
|
|
text-transform: uppercase;
|
|
font-weight: 800;
|
|
color: var(--on-text);
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.on-kanban-header .count {
|
|
background: var(--on-blue);
|
|
color: #fff;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.on-kanban-items {
|
|
min-height: 100px;
|
|
/* Drop target area */
|
|
}
|
|
|
|
.on-kanban-card {
|
|
background: var(--on-kanban-card-bg);
|
|
border: 1px solid var(--on-border);
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
border-radius: 4px;
|
|
cursor: move;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.on-kanban-card:hover {
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-2px);
|
|
border-color: var(--on-blue);
|
|
}
|
|
|
|
.on-drop-hover {
|
|
background: rgba(0, 97, 255, 0.05);
|
|
border: 2px dashed var(--on-blue);
|
|
}
|
|
|
|
.card-title {
|
|
font-weight: 700;
|
|
color: var(--on-text);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.card-meta {
|
|
font-size: 0.85rem;
|
|
color: var(--on-muted);
|
|
}
|
|
|
|
/* Status-based Card Colors */
|
|
.on-kanban-card[data-status="waiting"] {
|
|
border-left: 4px solid #0061ff;
|
|
/* Blue */
|
|
}
|
|
|
|
.on-kanban-card[data-status="in_progress"] {
|
|
border-left: 4px solid #ff9500;
|
|
/* Orange */
|
|
}
|
|
|
|
.on-kanban-card[data-status="done"] {
|
|
border-left: 4px solid #34c759;
|
|
/* Green */
|
|
} |