Files
redmine_qbo_calendar/assets/stylesheets/customer_appointments.css
T

417 lines
9.7 KiB
CSS

/* Table & Grid Column Constraints */
table.cal {
table-layout: fixed !important;
width: 100% !important;
max-width: 100% !important;
}
table.cal th,
table.cal td {
width: 14.28% !important;
box-sizing: border-box;
overflow: hidden;
}
/* Container Box */
.appointment-block {
position: relative;
display: flex;
align-items: stretch;
box-sizing: border-box;
margin: 2px 0;
padding: 3px 4px 3px 0;
background: #edf4ff;
border: 1px solid #c5d8f3;
border-radius: 3px;
font-size: 0.9em;
line-height: 1.3;
overflow: visible !important;
width: 100%;
max-width: 100%;
min-width: 0;
cursor: pointer;
transition: transform 0.1s ease, box-shadow 0.1s ease;
}
/* Hover Cue */
.appointment-block:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
/* Left Indicator Bar */
.appointment-block .appointment-bar {
width: 4px;
background-color: #3c78d8;
flex-shrink: 0;
margin-right: 4px;
border-radius: 1px;
}
/* Card Content Area (Flex Column Layout) */
.appointment-card {
display: flex;
flex-direction: column;
flex-grow: 1;
min-width: 0;
overflow: hidden;
}
/* Row 1: Header (Avatar + Title) */
.appointment-header {
display: flex;
align-items: center;
gap: 4px;
font-weight: bold;
min-width: 0;
}
.appointment-avatar {
flex-shrink: 0;
width: 20px;
height: 20px;
border-radius: 3px;
object-fit: cover;
}
/* Multi-line wrapping for titles */
.appointment-card .appointment-title {
flex-grow: 1;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
min-width: 0;
vertical-align: middle;
}
.appointment-link {
color: #111;
text-decoration: none;
}
/* Row 2: Meta Bar (Time + Hours) */
.appointment-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
font-size: 0.85em;
color: #444;
}
.appointment-time,
.appointment-hours {
flex-shrink: 0;
}
/* Horizontal Dividers */
.appointment-card .appointment-divider {
border: 0;
border-top: 1px solid #c5d8f3;
margin: 3px 0;
width: 100%;
}
/* Row 3: Multi-line wrapping for details */
.appointment-detail {
color: #555;
font-size: 0.85em;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
min-width: 0;
}
/* Elevated Stack Order When Opened */
.appointment-block.open {
z-index: 1000 !important;
}
/* Redmine Tooltip Popover */
.appointment-block .tip,
.appointment-block:hover .tip {
display: none !important;
position: absolute;
top: 100%;
left: 0;
width: 320px;
padding: 10px;
background: #ffffff;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
white-space: normal;
z-index: 10000 !important;
cursor: default;
}
/* Align tooltips to the right on Friday/Saturday columns */
table.cal td:nth-child(n+6) .appointment-block .tip {
left: auto;
right: 0;
}
/* Display Tooltip ONLY on Click (.open class) */
.appointment-block.open .tip,
.appointment-block.open:hover .tip {
display: block !important;
}
/* Inner Tooltip Formatting */
.appointment-block .tip h3 {
margin: 0 0 4px 0;
font-size: 13px;
line-height: 1.3;
}
.appointment-block .tip .subtitle {
margin: 0 0 8px 0;
font-size: 11px;
color: #666;
text-transform: capitalize;
}
.appointment-block .tip table.attributes {
width: 100%;
border-collapse: collapse;
font-size: 11px;
margin-bottom: 4px;
}
.appointment-block .tip table.attributes th {
text-align: left;
padding: 3px 6px 3px 0;
color: #555;
font-weight: bold;
width: 35%;
vertical-align: top;
}
.appointment-block .tip table.attributes td {
padding: 3px 0;
color: #222;
vertical-align: top;
}
.appointment-block .tip table.attributes img.gravatar {
vertical-align: middle;
margin-right: 4px;
}
.appointment-block .tip hr {
border: 0;
border-top: 1px solid #e0e0e0;
margin: 8px 0;
}
.appointment-block .tip .description {
max-height: 120px;
overflow-y: auto;
font-size: 11px;
color: #444;
line-height: 1.4;
}
.appointment-block .tip .buttons {
margin: 0;
text-align: right;
}
/* Show View Header Elements */
.calendar-badge {
display: inline-block;
width: 38px;
border: 1px solid #b8c0c8;
border-radius: 4px;
overflow: hidden;
text-align: center;
vertical-align: middle;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-right: 8px;
line-height: 1;
background: #fff;
}
.calendar-badge .month {
background-color: #c22b2b;
color: #ffffff;
font-size: 9px;
font-weight: bold;
padding: 3px 0 2px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.calendar-badge .day {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 4px 0 3px 0;
}
h2 .appointment-title {
vertical-align: middle;
}
.appointment-dates {
font-size: 70%;
color: #666;
margin-left: 8px;
font-weight: normal;
vertical-align: middle;
}
/* Calendar Card Status Colors, Borders, and Divider Lines */
/* Scheduled - Blue */
.appointment-block.scheduled .appointment-bar { background-color: #1f77d0; }
.appointment-block.scheduled { background: #edf4ff; border-color: #c5d8f3; }
.appointment-block.scheduled .appointment-divider { border-top-color: #c5d8f3; }
/* CheckedIn - Purple */
.appointment-block.checked-in .appointment-bar,
.appointment-block.checkedin .appointment-bar,
.appointment-block.checked_in .appointment-bar { background-color: #8e44ad; }
.appointment-block.checked-in,
.appointment-block.checkedin,
.appointment-block.checked_in { background: #f6f0fa; border-color: #e2d0fb; }
.appointment-block.checked-in .appointment-divider,
.appointment-block.checkedin .appointment-divider,
.appointment-block.checked_in .appointment-divider { border-top-color: #e2d0fb; }
/* InProgress - Orange */
.appointment-block.in-progress .appointment-bar,
.appointment-block.inprogress .appointment-bar,
.appointment-block.in_progress .appointment-bar { background-color: #e68a00; }
.appointment-block.in-progress,
.appointment-block.inprogress,
.appointment-block.in_progress { background: #fff4df; border-color: #fce2b6; }
.appointment-block.in-progress .appointment-divider,
.appointment-block.inprogress .appointment-divider,
.appointment-block.in_progress .appointment-divider { border-top-color: #fce2b6; }
/* Ready - Teal */
.appointment-block.ready .appointment-bar { background-color: #16a085; }
.appointment-block.ready { background: #e8f8f5; border-color: #a3e4d7; }
.appointment-block.ready .appointment-divider { border-top-color: #a3e4d7; }
/* Completed - Green */
.appointment-block.completed .appointment-bar { background-color: #2d8a34; }
.appointment-block.completed { background: #edf9ee; border-color: #c7eecb; }
.appointment-block.completed .appointment-divider { border-top-color: #c7eecb; }
/* Cancelled - Red & Strikethrough Subject */
.appointment-block.cancelled .appointment-bar,
.appointment-block.canceled .appointment-bar { background-color: #d9534f; }
.appointment-block.cancelled,
.appointment-block.canceled { background: #fdf2f2; border-color: #f8c8c8; }
.appointment-block.cancelled .appointment-divider,
.appointment-block.canceled .appointment-divider { border-top-color: #f8c8c8; }
.appointment-block.cancelled .appointment-title,
.appointment-block.cancelled .appointment-link,
.appointment-block.canceled .appointment-title,
.appointment-block.canceled .appointment-link {
text-decoration: line-through;
}
/* Table List Alignment */
table.appointments td,
table.appointments th {
vertical-align: middle !important;
}
table.appointments th.status,
table.appointments td.status {
text-align: center !important;
}
/* Quick Status Bar Container */
.appointment-quick-actions {
display: flex;
align-items: center;
gap: 6px;
margin: 12px 0 16px 0;
flex-wrap: wrap;
}
.quick-action-label {
font-weight: bold;
color: #555;
font-size: 0.85em;
margin-right: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Shared Badge & Quick-Status Button Base Styling */
.status-badge,
.quick-status-btn {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 3px 10px;
font-size: 11px;
font-weight: 600;
line-height: 1.2 !important;
border-radius: 12px;
border: 1px solid transparent;
text-decoration: none !important;
white-space: nowrap;
box-sizing: border-box;
transition: opacity 0.15s ease, transform 0.1s ease;
}
.quick-status-btn:hover {
opacity: 0.85;
transform: translateY(-1px);
}
/* Status Badges Colors */
/* Scheduled - Blue */
.status-scheduled {
background-color: #edf4ff !important;
border-color: #c5d8f3 !important;
color: #1f77d0 !important;
}
/* CheckedIn - Purple */
.status-checked-in,
.status-checkedin,
.status-checked_in {
background-color: #f6f0fa !important;
border-color: #e2d0fb !important;
color: #8e44ad !important;
}
/* InProgress - Orange */
.status-in-progress,
.status-inprogress,
.status-in_progress {
background-color: #fff4df !important;
border-color: #fce2b6 !important;
color: #e68a00 !important;
}
/* Ready - Teal */
.status-ready {
background-color: #e8f8f5 !important;
border-color: #a3e4d7 !important;
color: #16a085 !important;
}
/* Completed - Green */
.status-completed {
background-color: #edf9ee !important;
border-color: #c7eecb !important;
color: #2d8a34 !important;
}
/* Cancelled - Red */
.status-cancelled,
.status-canceled {
background-color: #fdf2f2 !important;
border-color: #f8c8c8 !important;
color: #d9534f !important;
}