mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Refactor appointment status styles and enhance tooltip alignment for improved UI consistency
This commit is contained in:
1 parent
3e791a64b6
commit
6077b2cb0b
1 file changed
+42
-17
@@ -48,19 +48,6 @@ table.cal td {
|
|||||||
border-radius: 1px;
|
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 */
|
/* Card Content Area */
|
||||||
.appointment-card {
|
.appointment-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -83,13 +70,14 @@ table.cal td {
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Option B: Multi-line wrapping for titles */
|
/* Multi-line wrapping for titles */
|
||||||
.appointment-title {
|
.appointment-card .appointment-title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.appointment-link {
|
.appointment-link {
|
||||||
@@ -105,7 +93,7 @@ table.cal td {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Option B: Multi-line wrapping for details */
|
/* Multi-line wrapping for details */
|
||||||
.appointment-detail {
|
.appointment-detail {
|
||||||
color: #555;
|
color: #555;
|
||||||
font-size: 0.9em; /* Matches calendar item body text */
|
font-size: 0.9em; /* Matches calendar item body text */
|
||||||
@@ -139,6 +127,12 @@ table.cal td {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Align tooltips to the right on Friday/Saturday columns to prevent viewport overflow */
|
||||||
|
table.cal td:nth-child(n+6) .appointment-block .tip {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* 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 {
|
.appointment-block.open:hover .tip {
|
||||||
@@ -205,6 +199,7 @@ table.cal td {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Show View Header Elements */
|
||||||
.calendar-badge {
|
.calendar-badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 38px;
|
width: 38px;
|
||||||
@@ -236,7 +231,7 @@ table.cal td {
|
|||||||
padding: 4px 0 3px 0;
|
padding: 4px 0 3px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.appointment-title {
|
h2 .appointment-title {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,3 +242,33 @@ table.cal td {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Status Colors & Indicator Bars */
|
||||||
|
|
||||||
|
/* Scheduled - Blue */
|
||||||
|
.appointment-block.scheduled .appointment-bar { background-color: #1f77d0; }
|
||||||
|
.appointment-block.scheduled { background: #edf4ff; border-color: #c5d8f3; }
|
||||||
|
|
||||||
|
/* CheckedIn - Purple */
|
||||||
|
.appointment-block.checked-in .appointment-bar,
|
||||||
|
.appointment-block.checkedin .appointment-bar { background-color: #8e44ad; }
|
||||||
|
.appointment-block.checked-in,
|
||||||
|
.appointment-block.checkedin { background: #f6f0fa; border-color: #e2d0fb; }
|
||||||
|
|
||||||
|
/* InProgress - Orange */
|
||||||
|
.appointment-block.in-progress .appointment-bar,
|
||||||
|
.appointment-block.inprogress .appointment-bar { background-color: #e68a00; }
|
||||||
|
.appointment-block.in-progress,
|
||||||
|
.appointment-block.inprogress { background: #fff4df; border-color: #fce2b6; }
|
||||||
|
|
||||||
|
/* Ready - Teal */
|
||||||
|
.appointment-block.ready .appointment-bar { background-color: #16a085; }
|
||||||
|
.appointment-block.ready { background: #e8f8f5; border-color: #a3e4d7; }
|
||||||
|
|
||||||
|
/* Completed - Green */
|
||||||
|
.appointment-block.completed .appointment-bar { background-color: #2d8a34; }
|
||||||
|
.appointment-block.completed { background: #edf9ee; border-color: #c7eecb; }
|
||||||
|
|
||||||
|
/* Cancelled - Red */
|
||||||
|
.appointment-block.cancelled .appointment-bar { background-color: #d9534f; }
|
||||||
|
.appointment-block.cancelled { background: #fdf2f2; border-color: #f8c8c8; }
|
||||||
Reference in new issue
Block a user