mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
updated colors and style
This commit is contained in:
1 parent
d529c99a02
commit
f99450a58b
1 file changed
+171
-113
@@ -12,7 +12,7 @@ table.cal td {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Container Box */
|
/* Container Box Base */
|
||||||
.appointment-block {
|
.appointment-block {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -20,8 +20,8 @@ table.cal td {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
padding: 3px 4px 3px 0;
|
padding: 3px 4px 3px 0;
|
||||||
background: #edf4ff;
|
background: #e8f8ff;
|
||||||
border: 1px solid #c5d8f3;
|
border: 1px solid #91e2ff;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
@@ -36,19 +36,19 @@ table.cal td {
|
|||||||
/* Hover Cue */
|
/* Hover Cue */
|
||||||
.appointment-block:hover {
|
.appointment-block:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Left Indicator Bar */
|
/* Left Indicator Bar Base */
|
||||||
.appointment-block .appointment-bar {
|
.appointment-block .appointment-bar {
|
||||||
width: 4px;
|
width: 5px;
|
||||||
background-color: #3c78d8;
|
background-color: #1fc0ff;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-right: 4px;
|
margin-right: 5px;
|
||||||
border-radius: 1px;
|
border-radius: 2px 0 0 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Card Content Area (Flex Column Layout) */
|
/* Card Content Area */
|
||||||
.appointment-card {
|
.appointment-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -74,7 +74,6 @@ table.cal td {
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Multi-line wrapping for titles */
|
|
||||||
.appointment-card .appointment-title {
|
.appointment-card .appointment-title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
@@ -85,7 +84,7 @@ table.cal td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.appointment-link {
|
.appointment-link {
|
||||||
color: #111;
|
color: #000000;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,7 +95,7 @@ table.cal td {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
color: #444;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
.appointment-time,
|
.appointment-time,
|
||||||
@@ -107,15 +106,15 @@ table.cal td {
|
|||||||
/* Horizontal Dividers */
|
/* Horizontal Dividers */
|
||||||
.appointment-card .appointment-divider {
|
.appointment-card .appointment-divider {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: 1px solid #c5d8f3;
|
border-top: 1px solid #91e2ff;
|
||||||
margin: 3px 0;
|
margin: 3px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Row 3: Multi-line wrapping for details */
|
/* Row 3: Details */
|
||||||
.appointment-detail {
|
.appointment-detail {
|
||||||
color: #555;
|
color: #000000;
|
||||||
font-size: 0.85em;
|
font-size: 1em;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
@@ -127,14 +126,17 @@ table.cal td {
|
|||||||
z-index: 1000 !important;
|
z-index: 1000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Redmine Tooltip Popover */
|
/* Redmine Tooltip Popover Base - Fixed Positioning Overriding JS Inline Coordinates */
|
||||||
.appointment-block .tip,
|
.appointment-block .tip {
|
||||||
.appointment-block:hover .tip {
|
|
||||||
display: none !important;
|
display: none !important;
|
||||||
position: absolute;
|
position: absolute !important;
|
||||||
top: 100%;
|
top: 100% !important;
|
||||||
left: 0;
|
left: 0 !important;
|
||||||
width: 320px;
|
right: auto !important;
|
||||||
|
bottom: auto !important;
|
||||||
|
transform: none !important;
|
||||||
|
margin: 4px 0 0 0 !important;
|
||||||
|
width: 320px !important;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
@@ -147,13 +149,12 @@ table.cal td {
|
|||||||
|
|
||||||
/* Align tooltips to the right on Friday/Saturday columns */
|
/* Align tooltips to the right on Friday/Saturday columns */
|
||||||
table.cal td:nth-child(n+6) .appointment-block .tip {
|
table.cal td:nth-child(n+6) .appointment-block .tip {
|
||||||
left: auto;
|
left: auto !important;
|
||||||
right: 0;
|
right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display Tooltip ONLY on Click (.open class) */
|
/* Display Tooltip ONLY on Click (.open class) */
|
||||||
.appointment-block.open .tip,
|
.appointment-block.open .tip {
|
||||||
.appointment-block.open:hover .tip {
|
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +168,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
.appointment-block .tip .subtitle {
|
.appointment-block .tip .subtitle {
|
||||||
margin: 0 0 8px 0;
|
margin: 0 0 8px 0;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #666;
|
color: #555;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,7 +182,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
.appointment-block .tip table.attributes th {
|
.appointment-block .tip table.attributes th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 3px 6px 3px 0;
|
padding: 3px 6px 3px 0;
|
||||||
color: #555;
|
color: #444;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
width: 35%;
|
width: 35%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
@@ -189,7 +190,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
|
|
||||||
.appointment-block .tip table.attributes td {
|
.appointment-block .tip table.attributes td {
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
color: #222;
|
color: #111;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,7 +201,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
|
|
||||||
.appointment-block .tip hr {
|
.appointment-block .tip hr {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: 1px solid #e0e0e0;
|
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,7 +209,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
max-height: 120px;
|
max-height: 120px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #444;
|
color: #333;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,7 +234,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.calendar-badge .month {
|
.calendar-badge .month {
|
||||||
background-color: #c22b2b;
|
background-color: #d92626;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -243,7 +244,7 @@ table.cal td:nth-child(n+6) .appointment-block .tip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.calendar-badge .day {
|
.calendar-badge .day {
|
||||||
color: #333333;
|
color: #222222;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 4px 0 3px 0;
|
padding: 4px 0 3px 0;
|
||||||
@@ -255,58 +256,124 @@ h2 .appointment-title {
|
|||||||
|
|
||||||
.appointment-dates {
|
.appointment-dates {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
color: #666;
|
color: #555;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calendar Card Status Colors, Borders, and Divider Lines */
|
/* ==========================================================================
|
||||||
|
Custom High-Vibrancy Hex Status Themes & Tinted Tooltips
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
/* Scheduled - Blue */
|
/* Scheduled - #1FC0FF */
|
||||||
.appointment-block.scheduled .appointment-bar { background-color: #1f77d0; }
|
.appointment-block.scheduled,
|
||||||
.appointment-block.scheduled { background: #edf4ff; border-color: #c5d8f3; }
|
.appointment-block.scheduled:hover,
|
||||||
.appointment-block.scheduled .appointment-divider { border-top-color: #c5d8f3; }
|
.appointment-block.scheduled.open { background: #e8f8ff !important; border-color: #91e2ff !important; }
|
||||||
|
.appointment-block.scheduled .appointment-bar { background-color: #1fc0ff !important; }
|
||||||
|
.appointment-block.scheduled .appointment-divider { border-top-color: #b3ebff !important; }
|
||||||
|
.appointment-block.scheduled .tip,
|
||||||
|
.appointment-block.scheduled:hover .tip,
|
||||||
|
.appointment-block.scheduled.open .tip { background: #f2faff !important; border-color: #70d6ff !important; }
|
||||||
|
|
||||||
/* CheckedIn - Purple */
|
/* Ready - #1FFF1F */
|
||||||
.appointment-block.checked-in .appointment-bar,
|
.appointment-block.ready,
|
||||||
.appointment-block.checkedin .appointment-bar,
|
.appointment-block.ready:hover,
|
||||||
.appointment-block.checked_in .appointment-bar { background-color: #8e44ad; }
|
.appointment-block.ready.open { background: #e8ffe8 !important; border-color: #8bff8b !important; }
|
||||||
|
.appointment-block.ready .appointment-bar { background-color: #1fff1f !important; }
|
||||||
|
.appointment-block.ready .appointment-divider { border-top-color: #b5ffb5 !important; }
|
||||||
|
.appointment-block.ready .tip,
|
||||||
|
.appointment-block.ready:hover .tip,
|
||||||
|
.appointment-block.ready.open .tip { background: #f2fff2 !important; border-color: #66ff66 !important; }
|
||||||
|
|
||||||
|
/* CheckedIn - #CE1FFF */
|
||||||
.appointment-block.checked-in,
|
.appointment-block.checked-in,
|
||||||
.appointment-block.checkedin,
|
.appointment-block.checkedin,
|
||||||
.appointment-block.checked_in { background: #f6f0fa; border-color: #e2d0fb; }
|
.appointment-block.checked_in,
|
||||||
|
.appointment-block.checked-in:hover,
|
||||||
|
.appointment-block.checkedin:hover,
|
||||||
|
.appointment-block.checked_in:hover,
|
||||||
|
.appointment-block.checked-in.open,
|
||||||
|
.appointment-block.checkedin.open,
|
||||||
|
.appointment-block.checked_in.open { background: #f8e8ff !important; border-color: #e891ff !important; }
|
||||||
|
|
||||||
|
.appointment-block.checked-in .appointment-bar,
|
||||||
|
.appointment-block.checkedin .appointment-bar,
|
||||||
|
.appointment-block.checked_in .appointment-bar { background-color: #ce1fff !important; }
|
||||||
|
|
||||||
.appointment-block.checked-in .appointment-divider,
|
.appointment-block.checked-in .appointment-divider,
|
||||||
.appointment-block.checkedin .appointment-divider,
|
.appointment-block.checkedin .appointment-divider,
|
||||||
.appointment-block.checked_in .appointment-divider { border-top-color: #e2d0fb; }
|
.appointment-block.checked_in .appointment-divider { border-top-color: #f0b3ff !important; }
|
||||||
|
|
||||||
/* InProgress - Orange */
|
.appointment-block.checked-in .tip,
|
||||||
.appointment-block.in-progress .appointment-bar,
|
.appointment-block.checkedin .tip,
|
||||||
.appointment-block.inprogress .appointment-bar,
|
.appointment-block.checked_in .tip,
|
||||||
.appointment-block.in_progress .appointment-bar { background-color: #e68a00; }
|
.appointment-block.checked-in:hover .tip,
|
||||||
|
.appointment-block.checkedin:hover .tip,
|
||||||
|
.appointment-block.checked_in:hover .tip,
|
||||||
|
.appointment-block.checked-in.open .tip,
|
||||||
|
.appointment-block.checkedin.open .tip,
|
||||||
|
.appointment-block.checked_in.open .tip { background: #fcf2ff !important; border-color: #df70ff !important; }
|
||||||
|
|
||||||
|
/* InProgress - #FF5E1F */
|
||||||
.appointment-block.in-progress,
|
.appointment-block.in-progress,
|
||||||
.appointment-block.inprogress,
|
.appointment-block.inprogress,
|
||||||
.appointment-block.in_progress { background: #fff4df; border-color: #fce2b6; }
|
.appointment-block.in_progress,
|
||||||
|
.appointment-block.in-progress:hover,
|
||||||
|
.appointment-block.inprogress:hover,
|
||||||
|
.appointment-block.in_progress:hover,
|
||||||
|
.appointment-block.in-progress.open,
|
||||||
|
.appointment-block.inprogress.open,
|
||||||
|
.appointment-block.in_progress.open { background: #fff0e8 !important; border-color: #ffb391 !important; }
|
||||||
|
|
||||||
|
.appointment-block.in-progress .appointment-bar,
|
||||||
|
.appointment-block.inprogress .appointment-bar,
|
||||||
|
.appointment-block.in_progress .appointment-bar { background-color: #ff5e1f !important; }
|
||||||
|
|
||||||
.appointment-block.in-progress .appointment-divider,
|
.appointment-block.in-progress .appointment-divider,
|
||||||
.appointment-block.inprogress .appointment-divider,
|
.appointment-block.inprogress .appointment-divider,
|
||||||
.appointment-block.in_progress .appointment-divider { border-top-color: #fce2b6; }
|
.appointment-block.in_progress .appointment-divider { border-top-color: #ffccb3 !important; }
|
||||||
|
|
||||||
/* Ready - Teal */
|
.appointment-block.in-progress .tip,
|
||||||
.appointment-block.ready .appointment-bar { background-color: #16a085; }
|
.appointment-block.inprogress .tip,
|
||||||
.appointment-block.ready { background: #e8f8f5; border-color: #a3e4d7; }
|
.appointment-block.in_progress .tip,
|
||||||
.appointment-block.ready .appointment-divider { border-top-color: #a3e4d7; }
|
.appointment-block.in-progress:hover .tip,
|
||||||
|
.appointment-block.inprogress:hover .tip,
|
||||||
|
.appointment-block.in_progress:hover .tip,
|
||||||
|
.appointment-block.in-progress.open .tip,
|
||||||
|
.appointment-block.inprogress.open .tip,
|
||||||
|
.appointment-block.in_progress.open .tip { background: #fff6f2 !important; border-color: #ff9970 !important; }
|
||||||
|
|
||||||
/* Completed - Green */
|
/* Completed - #008000 */
|
||||||
.appointment-block.completed .appointment-bar { background-color: #2d8a34; }
|
.appointment-block.completed,
|
||||||
.appointment-block.completed { background: #edf9ee; border-color: #c7eecb; }
|
.appointment-block.completed:hover,
|
||||||
.appointment-block.completed .appointment-divider { border-top-color: #c7eecb; }
|
.appointment-block.completed.open { background: #e6f5e6 !important; border-color: #80c080 !important; }
|
||||||
|
.appointment-block.completed .appointment-bar { background-color: #008000 !important; }
|
||||||
|
.appointment-block.completed .appointment-divider { border-top-color: #a3d9a3 !important; }
|
||||||
|
.appointment-block.completed .tip,
|
||||||
|
.appointment-block.completed:hover .tip,
|
||||||
|
.appointment-block.completed.open .tip { background: #f0fcf0 !important; border-color: #66b366 !important; }
|
||||||
|
|
||||||
/* Cancelled - Red & Strikethrough Subject */
|
/* Cancelled - #FF1F1F & Strikethrough */
|
||||||
.appointment-block.cancelled .appointment-bar,
|
|
||||||
.appointment-block.canceled .appointment-bar { background-color: #d9534f; }
|
|
||||||
.appointment-block.cancelled,
|
.appointment-block.cancelled,
|
||||||
.appointment-block.canceled { background: #fdf2f2; border-color: #f8c8c8; }
|
.appointment-block.canceled,
|
||||||
|
.appointment-block.cancelled:hover,
|
||||||
|
.appointment-block.canceled:hover,
|
||||||
|
.appointment-block.cancelled.open,
|
||||||
|
.appointment-block.canceled.open { background: #ffe8e8 !important; border-color: #ff9191 !important; }
|
||||||
|
|
||||||
|
.appointment-block.cancelled .appointment-bar,
|
||||||
|
.appointment-block.canceled .appointment-bar { background-color: #ff1f1f !important; }
|
||||||
|
|
||||||
.appointment-block.cancelled .appointment-divider,
|
.appointment-block.cancelled .appointment-divider,
|
||||||
.appointment-block.canceled .appointment-divider { border-top-color: #f8c8c8; }
|
.appointment-block.canceled .appointment-divider { border-top-color: #ffb3b3 !important; }
|
||||||
|
|
||||||
|
.appointment-block.cancelled .tip,
|
||||||
|
.appointment-block.canceled .tip,
|
||||||
|
.appointment-block.cancelled:hover .tip,
|
||||||
|
.appointment-block.canceled:hover .tip,
|
||||||
|
.appointment-block.cancelled.open .tip,
|
||||||
|
.appointment-block.canceled.open .tip { background: #fff2f2 !important; border-color: #ff7070 !important; }
|
||||||
|
|
||||||
.appointment-block.cancelled .appointment-title,
|
.appointment-block.cancelled .appointment-title,
|
||||||
.appointment-block.cancelled .appointment-link,
|
.appointment-block.cancelled .appointment-link,
|
||||||
@@ -337,22 +404,22 @@ table.appointments td.status {
|
|||||||
|
|
||||||
.quick-action-label {
|
.quick-action-label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #555;
|
color: #333;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Shared Badge & Quick-Status Button Base Styling */
|
/* Shared Badge Base */
|
||||||
.status-badge,
|
.status-badge,
|
||||||
.quick-status-btn {
|
.quick-status-btn {
|
||||||
display: inline-flex !important;
|
display: inline-flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
padding: 3px 10px;
|
padding: 4px 11px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
line-height: 1.2 !important;
|
line-height: 1.2 !important;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
@@ -363,67 +430,68 @@ table.appointments td.status {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.quick-status-btn:hover {
|
.quick-status-btn:hover {
|
||||||
opacity: 0.85;
|
opacity: 0.88;
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Status Badges Colors */
|
/* ==========================================================================
|
||||||
|
Badges & Quick Action Buttons
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
/* Scheduled - Blue */
|
/* Scheduled - #1FC0FF */
|
||||||
.status-scheduled {
|
.status-scheduled {
|
||||||
background-color: #edf4ff !important;
|
background-color: #e8f8ff !important;
|
||||||
border-color: #c5d8f3 !important;
|
border-color: #91e2ff !important;
|
||||||
color: #1f77d0 !important;
|
color: #0077a3 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CheckedIn - Purple */
|
/* Ready - #1FFF1F */
|
||||||
|
.status-ready {
|
||||||
|
background-color: #e8ffe8 !important;
|
||||||
|
border-color: #8bff8b !important;
|
||||||
|
color: #008f00 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CheckedIn - #CE1FFF */
|
||||||
.status-checked-in,
|
.status-checked-in,
|
||||||
.status-checkedin,
|
.status-checkedin,
|
||||||
.status-checked_in {
|
.status-checked_in {
|
||||||
background-color: #f6f0fa !important;
|
background-color: #f8e8ff !important;
|
||||||
border-color: #e2d0fb !important;
|
border-color: #e891ff !important;
|
||||||
color: #8e44ad !important;
|
color: #8300ad !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* InProgress - Orange */
|
/* InProgress - #FF5E1F */
|
||||||
.status-in-progress,
|
.status-in-progress,
|
||||||
.status-inprogress,
|
.status-inprogress,
|
||||||
.status-in_progress {
|
.status-in_progress {
|
||||||
background-color: #fff4df !important;
|
background-color: #fff0e8 !important;
|
||||||
border-color: #fce2b6 !important;
|
border-color: #ffb391 !important;
|
||||||
color: #e68a00 !important;
|
color: #b33000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ready - Teal */
|
/* Completed - #008000 */
|
||||||
.status-ready {
|
|
||||||
background-color: #e8f8f5 !important;
|
|
||||||
border-color: #a3e4d7 !important;
|
|
||||||
color: #16a085 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Completed - Green */
|
|
||||||
.status-completed {
|
.status-completed {
|
||||||
background-color: #edf9ee !important;
|
background-color: #e6f5e6 !important;
|
||||||
border-color: #c7eecb !important;
|
border-color: #80c080 !important;
|
||||||
color: #2d8a34 !important;
|
color: #005200 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cancelled - Red */
|
/* Cancelled - #FF1F1F */
|
||||||
.status-cancelled,
|
.status-cancelled,
|
||||||
.status-canceled {
|
.status-canceled {
|
||||||
background-color: #fdf2f2 !important;
|
background-color: #ffe8e8 !important;
|
||||||
border-color: #f8c8c8 !important;
|
border-color: #ff9191 !important;
|
||||||
color: #d9534f !important;
|
color: #b30000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Redefine grid column proportions for the calendar layout */
|
/* Redefine grid column proportions for the calendar layout */
|
||||||
ul.cal {
|
ul.cal {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* Col 1: Week # (fits content automatically) | Col 2: Sun (50%) | Cols 3-7: Mon-Fri (100%) | Col 8: Sat (50%) */
|
|
||||||
grid-template-columns: max-content 0.5fr repeat(5, 1fr) 0.5fr !important;
|
grid-template-columns: max-content 0.5fr repeat(5, 1fr) 0.5fr !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optional: Compress content and dim non-working weekend cells */
|
/* Compress content and dim non-working weekend cells */
|
||||||
ul.cal li.nwday,
|
ul.cal li.nwday,
|
||||||
ul.cal li.sunday,
|
ul.cal li.sunday,
|
||||||
ul.cal li.saturday {
|
ul.cal li.saturday {
|
||||||
@@ -431,22 +499,18 @@ ul.cal li.saturday {
|
|||||||
padding: 2px !important;
|
padding: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide non-essential metadata on narrow weekend cells to avoid vertical stretching */
|
/* Hide non-essential metadata on narrow weekend cells */
|
||||||
ul.cal li.nwday .icon-user,
|
ul.cal li.nwday .icon-user,
|
||||||
ul.cal li.nwday .buttons {
|
ul.cal li.nwday .buttons {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
/* ==========================================================================
|
|
||||||
Responsive Mobile View: Single-Column Stacked Calendar (Screens <= 768px)
|
|
||||||
========================================================================== */
|
|
||||||
|
|
||||||
|
/* Responsive Mobile View */
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
/* 1. Hide the horizontal week header (Sun-Sat column headers) */
|
|
||||||
table.cal thead {
|
table.cal thead {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2. Convert table structures into block elements to stack days vertically */
|
|
||||||
table.cal,
|
table.cal,
|
||||||
table.cal tbody,
|
table.cal tbody,
|
||||||
table.cal tr,
|
table.cal tr,
|
||||||
@@ -457,7 +521,6 @@ ul.cal li.nwday .buttons {
|
|||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 3. Style each day cell as a full-width vertical card */
|
|
||||||
table.cal td {
|
table.cal td {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
@@ -468,7 +531,6 @@ ul.cal li.nwday .buttons {
|
|||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 4. Single-column layout for CSS Grid implementation (ul.cal) */
|
|
||||||
ul.cal {
|
ul.cal {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
@@ -483,15 +545,12 @@ ul.cal li.nwday .buttons {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 5. Ensure appointment blocks span full width in the single column */
|
|
||||||
.appointment-block {
|
.appointment-block {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 6. Center popover tooltips on mobile view */
|
|
||||||
.appointment-block .tip,
|
.appointment-block .tip,
|
||||||
.appointment-block:hover .tip,
|
|
||||||
.appointment-block.open .tip {
|
.appointment-block.open .tip {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
top: 50% !important;
|
top: 50% !important;
|
||||||
@@ -504,7 +563,6 @@ ul.cal li.nwday .buttons {
|
|||||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset Friday/Saturday tooltip overrides for single-column mobile view */
|
|
||||||
table.cal td:nth-child(n+6) .appointment-block .tip {
|
table.cal td:nth-child(n+6) .appointment-block .tip {
|
||||||
left: 50% !important;
|
left: 50% !important;
|
||||||
right: auto !important;
|
right: auto !important;
|
||||||
|
|||||||
Reference in new issue
Block a user