(css) Visually identify attendees with no freebusy

This commit is contained in:
Francis Lachapelle
2015-12-22 21:55:26 -05:00
parent d08c490992
commit d18e80df08
2 changed files with 12 additions and 1 deletions
@@ -41,7 +41,9 @@
</div>
</md-list-item>
<md-list-item ng-repeat="currentAttendee in editor.component.attendees track by currentAttendee.email">
<div class="hour" ng-repeat="hour in ::editor.attendeesEditor.hours">
<div class="hour"
ng-class="{'sg-no-freebusy': !currentAttendee.uid}"
ng-repeat="hour in ::editor.attendeesEditor.hours">
<div class="quarter" ng-class="{event: editor.component.coversFreeBusy(day.getDayString, hour, 0)}">
<div class="busy" ng-show="currentAttendee.freebusy[day.getDayString][hour][0]"><!-- 15 minutes --></div>
</div>
@@ -556,6 +556,15 @@ $block_radius: 3px;
flex-grow: 0;
flex-basis: 17px; // hour's width + hour's border
align-items: stretch;
&.sg-no-freebusy {
background-color: sg-color($sogoPaper, 200);
background-image: repeating-linear-gradient(-45deg,
rgb(255,255,255),
rgb(255,255,255) 2px,
transparent 2px,
transparent 4px);
opacity: 0.5;
}
}
.quarter {
min-width: 4px;