Skip to content

Commit

Permalink
timeline event inset styling
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Mar 14, 2019
1 parent 931582b commit ef56b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/timegrid/TimeGridEventRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ export default class TimeGridEventRenderer extends FgEventRenderer {
for (let seg of segs) {
applyStyle(seg.el, this.generateSegCss(seg))

if (seg.level > 0) {
seg.el.classList.add('fc-time-grid-event-inset')
}

// if the event is short that the title will be cut off,
// attach a className that condenses the title into the time area.
if (seg.eventRange.def.title && seg.bottom - seg.top < 30) {
Expand Down
5 changes: 5 additions & 0 deletions src/timegrid/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ be a descendant of the grid when it is being dragged.
margin-bottom: 1px;
}

.fc-time-grid-event-inset {
-webkit-box-shadow: 0px 0px 0px 1px #fff;
box-shadow: 0px 0px 0px 1px #fff;
}

.fc-time-grid-event.fc-not-start { /* events that are continuing from another day */
/* replace space made by the top border with padding */
border-top-width: 0;
Expand Down

0 comments on commit ef56b4c

Please sign in to comment.