mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_timeline: Overflow text, add hover colors
When an item label does not fit in its date-range box, overflow according to https://visjs.github.io/vis-timeline/examples/timeline/items/rangeOverflowItem.html Previous CSS code was already trying to do that, but was selecting `.vis-item.vis-item-content` instead of `.vis-item .vis-item-content`. Displaying overflow text brings up layout issues solved by removing the forced-100% width instruction. This change also adds highlight when hovering a box, which is useful on text that has overflown (as it has no borders).
This commit is contained in:
committed by
Carlos Lopez
parent
97d02aa2ee
commit
0e325c7126
@@ -1,3 +1,4 @@
|
||||
$vis-hover-background-color: linen;
|
||||
$vis-weekend-background-color: #dcdcdc;
|
||||
$vis-item-content-padding: 0 3px !important;
|
||||
|
||||
@@ -10,16 +11,18 @@ $vis-item-content-padding: 0 3px !important;
|
||||
}
|
||||
|
||||
.vis-item {
|
||||
&.vis-box:hover {
|
||||
&:hover {
|
||||
background-color: $vis-hover-background-color !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
&.vis-item-overflow {
|
||||
.vis-item-overflow {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.vis-item-content {
|
||||
width: 100%;
|
||||
padding: $vis-item-content-padding;
|
||||
&:hover {
|
||||
background-color: $vis-hover-background-color !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user