mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-04 04:40:43 -04:00
249 lines
5.6 KiB
CSS
249 lines
5.6 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; /* Matches Redmine calendar default text size */
|
|
line-height: 1.3;
|
|
overflow: visible !important; /* Allows tooltip popover to extend outside */
|
|
width: 100%;
|
|
max-width: 100%;
|
|
min-width: 0; /* Prevents long flex children from expanding parent width */
|
|
cursor: pointer; /* Cue for clickability */
|
|
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;
|
|
}
|
|
|
|
/* Status Colors */
|
|
.appointment-block.scheduled .appointment-bar { background-color: #1f77d0; }
|
|
.appointment-block.scheduled { background: #edf4ff; border-color: #c5d8f3; }
|
|
|
|
.appointment-block.in-progress .appointment-bar { background-color: #e68a00; }
|
|
.appointment-block.in-progress { background: #fff4df; border-color: #fce2b6; }
|
|
|
|
.appointment-block.completed .appointment-bar { background-color: #2d8a34; }
|
|
.appointment-block.completed { background: #edf9ee; border-color: #c7eecb; }
|
|
|
|
.appointment-block.cancelled .appointment-bar { background-color: #d9534f; }
|
|
.appointment-block.cancelled { background: #fdf2f2; border-color: #f8c8c8; }
|
|
|
|
/* Card Content Area */
|
|
.appointment-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.appointment-header {
|
|
display: flex;
|
|
align-items: flex-start; /* Aligns avatar and hours nicely with wrapped top lines */
|
|
gap: 4px;
|
|
font-weight: bold;
|
|
min-width: 0;
|
|
}
|
|
|
|
.appointment-avatar {
|
|
flex-shrink: 0;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Option B: Multi-line wrapping for titles */
|
|
.appointment-title {
|
|
flex-grow: 1;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
min-width: 0;
|
|
}
|
|
|
|
.appointment-link {
|
|
color: #111;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.appointment-hours {
|
|
flex-shrink: 0;
|
|
color: #444;
|
|
font-size: 0.85em; /* Slightly smaller than main text to keep layout balanced */
|
|
font-weight: bold;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Option B: Multi-line wrapping for details */
|
|
.appointment-detail {
|
|
color: #555;
|
|
font-size: 0.9em; /* Matches calendar item body text */
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
margin-top: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Elevated Stack Order When Opened */
|
|
.appointment-block.open {
|
|
z-index: 1000 !important;
|
|
}
|
|
|
|
/* Redmine Tooltip Popover (Hidden by Default & on Hover) */
|
|
.appointment-block .tip,
|
|
.appointment-block:hover .tip {
|
|
display: none !important; /* Overrides built-in hover triggers */
|
|
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;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.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; /* Redmine primary red tone */
|
|
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;
|
|
}
|
|
|
|
.appointment-title {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.appointment-dates {
|
|
font-size: 70%;
|
|
color: #666;
|
|
margin-left: 8px;
|
|
font-weight: normal;
|
|
vertical-align: middle;
|
|
} |