-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed bad `}` in TimeSystemAxis.vue. - Removed `.u-contents` from line 129 of ganttChart.e2e.spec.js. - Removed `event-handle` element; not needed. - Changed `__event-wrapper` to not set height explicitly; uses absolute positioning. - Added :before element to event-wrapper for better hit area. - Improved hover styling. - $colorEvent* style constants added to theme constant SCSS files.
- Loading branch information
1 parent
3829295
commit 3d3f093
Showing
13 changed files
with
90 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,51 @@ | ||
.c-events-tsv { | ||
overflow: hidden; | ||
div.c-events-tsv__event-wrapper { | ||
cursor: pointer; | ||
position: absolute; | ||
top: 0; | ||
display: flex; | ||
z-index: 1; | ||
margin-top: 5px; | ||
&:hover { | ||
z-index: 2; | ||
|
||
[class*='__event-handle'] { | ||
background-color: $colorBodyFg; | ||
&__event-wrapper { | ||
// Wraps an individual event line | ||
// Also holds the hover flyout element | ||
$c: $colorEventLine; | ||
$lineW: 2px; | ||
$hitAreaW: 6px; | ||
$m: $interiorMargin; | ||
background-color: rgba($c, 0.6); | ||
cursor: pointer; | ||
position: absolute; | ||
display: flex; | ||
top: $m; bottom: $m; | ||
width: $lineW; | ||
z-index: 1; | ||
|
||
&:before { | ||
// Extend hit area | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
top: 0; bottom: 0; | ||
z-index: 0; | ||
width: $hitAreaW; | ||
transform: translateX(($hitAreaW - $lineW) * -0.5); | ||
} | ||
} | ||
} | ||
|
||
&__no-items { | ||
fill: $colorBodyFg !important; | ||
&:hover { | ||
z-index: 2; | ||
background-color: $c; | ||
|
||
&:before { | ||
background-color: rgba($c, 0.4); | ||
} | ||
} | ||
} | ||
|
||
&__event-handle { | ||
background-color: rgba($colorBodyFg, 0.5); | ||
&__no-items { | ||
fill: $colorBodyFg !important; | ||
} | ||
} | ||
} | ||
|
||
.c-events-canvas { | ||
.c-events-canvas { | ||
pointer-events: auto; // This allows the event element to receive a browser-level context click | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
z-index: 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters