2015-07-28 21:53:48 +02:00
|
|
|
/// SchedulerUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
2015-04-10 18:32:51 +02:00
|
|
|
$hours_margin: 50px;
|
2015-11-06 21:12:24 +01:00
|
|
|
$block_margin: 2%; // See sgCalendarDayBlock.directive.js
|
2015-11-17 18:22:06 +01:00
|
|
|
$block_radius: 3px;
|
2016-01-26 15:09:25 +01:00
|
|
|
$quarter_height: 10px;
|
2015-09-23 21:19:39 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Affected templates:
|
|
|
|
* - SchedulerUI/UIxCalDayView.wox
|
|
|
|
* - SchedulerUI/UIxCalWeekView.wox
|
|
|
|
* - SchedulerUI/UIxCalDayTable.wox
|
|
|
|
* - SchedulerUI/UIxCalMonthView.wox
|
2015-09-29 20:08:05 +02:00
|
|
|
* - SchedulerUI/UIxCalMulticolumnDayView.wox
|
2015-09-23 21:19:39 +02:00
|
|
|
*/
|
2015-04-10 18:32:51 +02:00
|
|
|
|
2015-09-22 02:56:55 +02:00
|
|
|
[ui-view=calendars] {
|
2015-09-23 21:19:39 +02:00
|
|
|
|
2015-12-02 20:53:06 +01:00
|
|
|
// Decrease width of middle column (list of events and tasks)
|
|
|
|
$listView-width: grid-step(4) !global;
|
|
|
|
$detailView-width: grid-step(10) !global;
|
2015-09-22 15:41:47 +02:00
|
|
|
|
|
|
|
.view-list {
|
|
|
|
min-width: ($listView-width - ($pitch * 2));
|
2015-12-02 20:53:06 +01:00
|
|
|
@include at(sm) {
|
2015-11-30 20:13:15 +01:00
|
|
|
@include flex-col(sm, 6, 1, 1);
|
2015-09-22 15:41:47 +02:00
|
|
|
min-width: ($pitch * 3);
|
|
|
|
}
|
2015-11-30 20:13:15 +01:00
|
|
|
@include from(md) {
|
|
|
|
@include flex-col(md, 5, 1, 0);
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
2015-09-25 22:07:56 +02:00
|
|
|
|
|
|
|
// The color chip is smaller; adjust the "selected" icon accordingly
|
|
|
|
.sg-avatar-selected {
|
|
|
|
&:before {
|
|
|
|
margin-left: -($bl);
|
|
|
|
}
|
|
|
|
&.md-avatar:first-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.view-detail {
|
2015-11-30 20:13:15 +01:00
|
|
|
@include at(sm) {
|
|
|
|
@include flex-col(sm, 10);
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
2015-11-30 20:13:15 +01:00
|
|
|
@include from(md) {
|
2015-12-02 20:53:06 +01:00
|
|
|
flex: 1 1 auto;
|
|
|
|
margin: 0;
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// The calendar view container
|
|
|
|
.calendarView {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2015-08-07 21:32:00 +02:00
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// The days labels appear in the toolbar
|
|
|
|
md-toolbar {
|
2015-09-29 20:08:05 +02:00
|
|
|
&.daysView, &.monthView {
|
2015-10-15 16:50:24 +02:00
|
|
|
background-color: #fff;
|
2015-09-23 21:19:39 +02:00
|
|
|
overflow: hidden;
|
|
|
|
z-index: $z-index-toolbar - 1;
|
|
|
|
.days {
|
|
|
|
margin-left: $hours_margin;
|
2015-11-06 21:12:24 +01:00
|
|
|
overflow-y: scroll;
|
2015-09-23 21:19:39 +02:00
|
|
|
&.dayLabels {
|
|
|
|
.day {
|
|
|
|
padding-left: 1%;
|
2015-11-06 21:12:24 +01:00
|
|
|
div {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-09-23 21:19:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-29 20:08:05 +02:00
|
|
|
&[sg-view$=dayview] {
|
2015-09-23 21:19:39 +02:00
|
|
|
.dayLabels {
|
|
|
|
.day {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2016-01-26 15:09:25 +01:00
|
|
|
&.monthView {
|
|
|
|
> div {
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
}
|
2015-07-28 21:53:48 +02:00
|
|
|
}
|
2015-04-10 18:32:51 +02:00
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// The all-day events appear in the shrinkable toolbar, bellow the days labels
|
|
|
|
.allDaysView {
|
2015-09-22 02:56:55 +02:00
|
|
|
border-bottom: 1px solid sg-color($sogoPaper, 300);
|
2015-09-23 21:19:39 +02:00
|
|
|
max-height: $sg-font-size-4 * 6;
|
|
|
|
|
2015-11-06 21:12:24 +01:00
|
|
|
.day {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
.sg-event {
|
2015-11-06 21:12:24 +01:00
|
|
|
margin: $block_margin;
|
2015-09-23 21:19:39 +02:00
|
|
|
line-height: initial;
|
|
|
|
position: relative;
|
2015-11-06 21:12:24 +01:00
|
|
|
|
|
|
|
&--ghost {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
padding-left: $block_margin;
|
|
|
|
padding-right: $block_margin;
|
|
|
|
&--first {
|
|
|
|
margin-left: $block_margin;
|
|
|
|
padding-left: 0;
|
2015-11-17 18:22:06 +01:00
|
|
|
border-top-left-radius: $block_radius;
|
|
|
|
border-bottom-left-radius: $block_radius;
|
2015-11-06 21:12:24 +01:00
|
|
|
}
|
|
|
|
&--last {
|
|
|
|
margin-right: $block_margin;
|
|
|
|
padding-right: 0;
|
2015-11-17 18:22:06 +01:00
|
|
|
border-top-right-radius: $block_radius;
|
|
|
|
border-bottom-right-radius: $block_radius;
|
2015-11-06 21:12:24 +01:00
|
|
|
}
|
|
|
|
}
|
2015-09-23 21:19:39 +02:00
|
|
|
}
|
|
|
|
|
2015-11-06 21:12:24 +01:00
|
|
|
.text {
|
2015-11-20 19:30:26 +01:00
|
|
|
position: static;
|
|
|
|
padding: 3px 1%;
|
2015-09-23 21:19:39 +02:00
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2015-09-19 03:08:01 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
md-card {
|
|
|
|
// All views wrap a md-card
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
2015-11-11 22:44:26 +01:00
|
|
|
md-content[sg-calendar-scroll-view] {
|
2015-11-06 21:12:24 +01:00
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// Days row
|
2015-09-22 02:56:55 +02:00
|
|
|
.days {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
|
|
|
.day {
|
2015-09-23 21:19:39 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-basis: 0;
|
2015-09-22 02:56:55 +02:00
|
|
|
border-left: 1px solid sg-color($sogoPaper, 300);
|
|
|
|
.clickableHourCell {
|
2016-01-26 15:09:25 +01:00
|
|
|
height: $quarter_height * 4;
|
2015-09-22 02:56:55 +02:00
|
|
|
border-bottom: 1px solid sg-color($sogoPaper, 300);
|
2015-11-06 21:12:24 +01:00
|
|
|
user-select: none;
|
|
|
|
&.outOfDay {
|
|
|
|
background-color: $colorGrey50;
|
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2015-03-30 21:11:20 +02:00
|
|
|
}
|
2015-07-28 21:53:48 +02:00
|
|
|
}
|
2015-03-30 21:11:20 +02:00
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// Header of month tiles
|
2015-09-22 02:56:55 +02:00
|
|
|
.sg-calendar-tile-header {
|
|
|
|
font-size: $sg-font-size-2;
|
2015-10-15 16:50:24 +02:00
|
|
|
min-height: $sg-font-size-2 + 8px;
|
2015-11-06 21:12:24 +01:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 4px;
|
2015-10-15 16:50:24 +02:00
|
|
|
text-align: right;
|
2015-11-06 21:12:24 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2015-09-23 21:19:39 +02:00
|
|
|
//font-weight: $sg-font-light;
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2015-04-01 17:18:19 +02:00
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// The left column of hours
|
2015-09-22 02:56:55 +02:00
|
|
|
.hours {
|
|
|
|
color: sg-color($sogoBlue, 700);
|
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
clear: left;
|
|
|
|
font-weight: $sg-font-light;
|
|
|
|
height: auto;
|
2015-09-18 22:11:31 +02:00
|
|
|
left: 0;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
2015-09-22 02:56:55 +02:00
|
|
|
width: $hours_margin;
|
|
|
|
.hour {
|
|
|
|
border-bottom: 1px solid sg-color($sogoPaper, 300);
|
|
|
|
text-align: right;
|
2016-01-26 15:09:25 +01:00
|
|
|
height: $quarter_height * 4;
|
2015-09-22 02:56:55 +02:00
|
|
|
left: 0;
|
|
|
|
padding: 2px;
|
|
|
|
position: relative;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
2015-09-18 22:11:31 +02:00
|
|
|
}
|
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
// A container for a day-long (column) of hour cells
|
|
|
|
.hourCells {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Events from editable calendars are draggable
|
2015-11-06 21:12:24 +01:00
|
|
|
.sg-draggable-calendar-block,
|
|
|
|
.sg-event--ghost {
|
2015-09-23 21:19:39 +02:00
|
|
|
cursor: move;
|
|
|
|
}
|
|
|
|
|
2015-11-13 21:45:44 +01:00
|
|
|
// The outer event container
|
2015-09-23 21:19:39 +02:00
|
|
|
.sg-event {
|
2015-11-13 21:45:44 +01:00
|
|
|
font-size: $sg-font-size-2;
|
2015-11-14 20:29:21 +01:00
|
|
|
font-weight: $sg-font-medium;
|
2015-11-17 18:22:06 +01:00
|
|
|
border-radius: $block_radius;
|
2015-09-23 21:19:39 +02:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
opacity: 0.9; // When events from a same calendar overlap, it creates a border to help distinguish the events
|
2015-11-06 21:12:24 +01:00
|
|
|
user-select: none;
|
|
|
|
transition: $swift-linear;
|
2015-09-23 21:19:39 +02:00
|
|
|
$i: 0;
|
2016-01-26 15:05:27 +01:00
|
|
|
@while $i <= 96 { // number of 15-minutes blocks in a day
|
2016-01-26 15:09:25 +01:00
|
|
|
&.starts#{$i} { top: $quarter_height * $i; }
|
|
|
|
&.lasts#{$i} { height: $quarter_height * $i; }
|
2015-09-23 21:19:39 +02:00
|
|
|
$i: $i + 1;
|
2015-03-30 21:11:20 +02:00
|
|
|
}
|
2015-11-06 21:12:24 +01:00
|
|
|
|
|
|
|
&--notransition {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--ghost {
|
|
|
|
opacity: 1;
|
|
|
|
left: $block_margin;
|
|
|
|
right: $block_margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--dragging {
|
|
|
|
background-image: repeating-linear-gradient(-45deg,
|
|
|
|
rgba(255,255,255,0.2),
|
|
|
|
rgba(255,255,255,0.2) 2px,
|
|
|
|
transparent 2px,
|
|
|
|
transparent 4px );
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2015-12-02 20:07:29 +01:00
|
|
|
&.lasts1 {
|
|
|
|
.text {
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-23 21:19:39 +02:00
|
|
|
.eventInside {
|
2015-07-28 21:53:48 +02:00
|
|
|
overflow: hidden;
|
2015-09-18 22:11:31 +02:00
|
|
|
}
|
2015-11-06 21:12:24 +01:00
|
|
|
|
2015-11-13 21:45:44 +01:00
|
|
|
.material-icons {
|
|
|
|
font-size: $sg-font-size-2;
|
|
|
|
}
|
|
|
|
|
2015-11-14 20:29:21 +01:00
|
|
|
.icons md-icon {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2015-11-13 21:45:44 +01:00
|
|
|
.secondary { // location in days view, hours in month view
|
|
|
|
font-weight: $sg-font-light;
|
|
|
|
}
|
|
|
|
|
2015-11-17 18:22:06 +01:00
|
|
|
.sg-category {
|
2015-11-17 17:28:10 +01:00
|
|
|
&:first-child {
|
2015-11-17 18:22:06 +01:00
|
|
|
border-top-right-radius: $block_radius;
|
|
|
|
border-bottom-right-radius: $block_radius;
|
2015-11-17 17:28:10 +01:00
|
|
|
}
|
2015-11-14 20:29:21 +01:00
|
|
|
}
|
|
|
|
|
2015-11-06 21:12:24 +01:00
|
|
|
// Event DnD drag grips
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.dragGrip {
|
|
|
|
&-top, &-bottom {
|
|
|
|
display: block;
|
|
|
|
cursor: ns-resize;
|
|
|
|
}
|
|
|
|
&-left, &-right {
|
|
|
|
display: block;
|
|
|
|
cursor: ew-resize;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dragGrip {
|
|
|
|
&-top, &-bottom, &-left, &-right {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-top, &-bottom {
|
|
|
|
left: 1px;
|
|
|
|
right: 1px;
|
2015-12-02 20:07:29 +01:00
|
|
|
height: 8px;
|
2015-11-06 21:12:24 +01:00
|
|
|
line-height: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-top {
|
|
|
|
top: 0;
|
|
|
|
.dragGrip {
|
|
|
|
right: 0;
|
|
|
|
top: -3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
.dragGrip {
|
|
|
|
bottom: -3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-left, &-right {
|
|
|
|
top: 1px;
|
|
|
|
bottom: 1px;
|
2015-12-02 20:07:29 +01:00
|
|
|
width: 8px;
|
2015-11-06 21:12:24 +01:00
|
|
|
line-height: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-left {
|
|
|
|
left: -$block_margin;
|
|
|
|
.dragGrip {
|
|
|
|
bottom: 0;
|
|
|
|
left: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
|
|
|
right: -$block_margin;
|
|
|
|
.dragGrip {
|
|
|
|
right: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dragGrip {
|
|
|
|
background-color: white;
|
|
|
|
border-radius: 50%;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 8px;
|
|
|
|
position: absolute;
|
|
|
|
width: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Event DnD ghost start/end hours
|
|
|
|
|
|
|
|
.ghostStartHour,
|
|
|
|
.ghostEndHour {
|
2016-01-22 02:46:04 +01:00
|
|
|
color: $colorGrey900;
|
|
|
|
font-weight: $sg-font-light;
|
2015-11-06 21:12:24 +01:00
|
|
|
height: 14px;
|
|
|
|
left: 0px;
|
2016-01-22 02:46:04 +01:00
|
|
|
position: absolute;
|
2015-11-06 21:12:24 +01:00
|
|
|
text-align: center;
|
2016-01-22 02:46:04 +01:00
|
|
|
vertical-align: baseline;
|
|
|
|
width: 100%;
|
2015-11-06 21:12:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ghostStartHour {
|
|
|
|
top: -14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ghostEndHour {
|
|
|
|
bottom: -14px;
|
|
|
|
}
|
2015-09-18 22:11:31 +02:00
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
|
2015-09-29 20:08:05 +02:00
|
|
|
// Multicolumn day cell that contains the calendar name
|
|
|
|
.multicolumnDay {
|
2015-10-15 16:50:24 +02:00
|
|
|
color: $colorGrey900;
|
2015-09-29 20:08:05 +02:00
|
|
|
font-size: $subhead-font-size-base;
|
|
|
|
font-weight: $sg-font-light;
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: $subhead-font-size-base * 3;
|
|
|
|
padding-left: 2px;
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
2015-11-20 19:30:26 +01:00
|
|
|
// Styles specific to the month view
|
2015-09-22 02:56:55 +02:00
|
|
|
.monthView {
|
2015-10-15 16:50:24 +02:00
|
|
|
.dayLabels {
|
|
|
|
// Cells of week days of all the same width
|
|
|
|
flex: 1 1 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
md-grid-tile {
|
2015-10-15 16:50:24 +02:00
|
|
|
// Border of month day cell
|
|
|
|
border-right: 1px solid $colorGrey100;
|
|
|
|
border-bottom: 1px solid $colorGrey100;
|
2015-09-22 02:56:55 +02:00
|
|
|
overflow: auto;
|
2015-11-20 19:30:26 +01:00
|
|
|
user-select: none;
|
2015-10-15 16:50:24 +02:00
|
|
|
// Cells of another month
|
2015-09-29 20:08:05 +02:00
|
|
|
&.dayOfAnotherMonth {
|
2015-10-15 16:50:24 +02:00
|
|
|
background-color: $colorGrey50;
|
2015-10-02 21:13:30 +02:00
|
|
|
.sg-calendar-tile-header,
|
|
|
|
.sg-calendar-tile-header > span {
|
2015-10-15 16:50:24 +02:00
|
|
|
color: $colorGrey300 !important;
|
2015-09-29 20:08:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.dayOfToday {
|
|
|
|
.sg-calendar-tile-header {
|
2015-10-02 21:13:30 +02:00
|
|
|
> span {
|
2015-10-15 16:50:24 +02:00
|
|
|
// Circle today's date
|
2015-10-02 21:13:30 +02:00
|
|
|
border-radius: 50%;
|
|
|
|
color: #fff;
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: 600;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: 1px;
|
|
|
|
min-width: $sg-font-size-2 + 4px;
|
|
|
|
min-height: $sg-font-size-2 + 4px;
|
|
|
|
line-height: $sg-font-size-2 + 4px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2015-09-29 20:08:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
md-content {
|
|
|
|
background-color: transparent; // See the grid tile background color
|
2015-11-20 19:30:26 +01:00
|
|
|
height: 100%; // Fix a scrolling issue when dragging blocks
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
2015-09-22 02:56:55 +02:00
|
|
|
}
|
2015-09-18 22:11:31 +02:00
|
|
|
.sg-event {
|
2015-11-20 21:36:24 +01:00
|
|
|
position: relative;
|
2015-11-20 19:30:26 +01:00
|
|
|
padding: 3px 1%;
|
2015-11-06 21:12:24 +01:00
|
|
|
margin: $block_margin;
|
2015-11-20 19:30:26 +01:00
|
|
|
overflow: hidden;
|
|
|
|
&--ghost {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
padding-left: $block_margin;
|
|
|
|
padding-right: $block_margin;
|
|
|
|
&--first {
|
|
|
|
margin-left: $block_margin;
|
|
|
|
padding-left: 0;
|
|
|
|
border-top-left-radius: $block_radius;
|
|
|
|
border-bottom-left-radius: $block_radius;
|
|
|
|
}
|
|
|
|
&--last {
|
|
|
|
margin-right: $block_margin;
|
|
|
|
padding-right: 0;
|
|
|
|
border-top-right-radius: $block_radius;
|
|
|
|
border-bottom-right-radius: $block_radius;
|
|
|
|
}
|
|
|
|
}
|
2015-07-28 21:53:48 +02:00
|
|
|
}
|
|
|
|
}
|
2015-03-30 21:11:20 +02:00
|
|
|
|
2015-09-22 02:56:55 +02:00
|
|
|
.minutes15, .minutes30, .minutes45 {
|
|
|
|
display: block;
|
|
|
|
height: 25%;
|
2015-07-28 21:53:48 +02:00
|
|
|
}
|
2015-09-22 02:56:55 +02:00
|
|
|
|
|
|
|
.minutes30 {
|
|
|
|
border-bottom: 1px dotted sg-color($sogoPaper, 300);
|
|
|
|
}
|
|
|
|
|
2015-11-06 21:12:24 +01:00
|
|
|
.text {
|
2015-09-22 02:56:55 +02:00
|
|
|
position: absolute;
|
2015-11-20 19:30:26 +01:00
|
|
|
top: 3px;
|
|
|
|
left: 1%;
|
|
|
|
right: 1%;
|
|
|
|
bottom: 3px;
|
2015-11-06 21:12:24 +01:00
|
|
|
margin: 0 2px;
|
2015-07-28 21:53:48 +02:00
|
|
|
overflow: hidden;
|
2015-11-06 21:12:24 +01:00
|
|
|
line-height: $sg-font-size-2;
|
2015-07-28 21:53:48 +02:00
|
|
|
}
|
2015-03-30 21:11:20 +02:00
|
|
|
|
2015-09-22 02:56:55 +02:00
|
|
|
.gradient > IMG {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 15px; /* for 15-minute events */
|
|
|
|
width: 100%;
|
2015-09-18 22:11:31 +02:00
|
|
|
}
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
2015-06-04 22:08:45 +02:00
|
|
|
|
2015-09-22 15:41:47 +02:00
|
|
|
/* Attendees Editor */
|
|
|
|
.attendees {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
md-content {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
md-list {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
padding-top: 0;
|
|
|
|
&.day {
|
|
|
|
min-width: 408px;
|
2015-09-22 02:56:55 +02:00
|
|
|
md-list-item {
|
2015-09-22 15:41:47 +02:00
|
|
|
//padding: 0;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
md-list-item {
|
|
|
|
padding-left: 0;
|
2015-11-06 21:12:24 +01:00
|
|
|
padding-right: 0;
|
2015-09-22 15:41:47 +02:00
|
|
|
&:hover {
|
|
|
|
background-color: initial;
|
|
|
|
}
|
2015-09-23 21:19:39 +02:00
|
|
|
// img {
|
|
|
|
// margin-right: $mg/4;
|
|
|
|
// }
|
2015-11-13 16:46:32 +01:00
|
|
|
> .md-avatar {
|
|
|
|
// Overwrite default margin to gain some space and match 48px
|
|
|
|
margin-top: $baseline-grid/2;
|
|
|
|
margin-bottom: $baseline-grid/2;
|
|
|
|
}
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
|
|
|
.md-tile-left {
|
2015-11-13 16:46:32 +01:00
|
|
|
// Use in the top-left empty cell, which is in the first item of the attendees list
|
2015-09-22 15:41:47 +02:00
|
|
|
height: initial;
|
|
|
|
min-height: 48px;
|
|
|
|
width: initial;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
.hours {
|
|
|
|
font-size: 9px;
|
|
|
|
}
|
|
|
|
.hour {
|
|
|
|
display: flex;
|
|
|
|
border-left: 1px solid sg-color($sogoPaper, 100);
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-basis: 17px; // hour's width + hour's border
|
|
|
|
align-items: stretch;
|
2015-12-23 03:55:26 +01:00
|
|
|
&.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;
|
|
|
|
}
|
2015-09-22 15:41:47 +02:00
|
|
|
}
|
|
|
|
.quarter {
|
|
|
|
min-width: 4px;
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
.busy {
|
|
|
|
margin: 8px 0;
|
|
|
|
min-width: 4px;
|
|
|
|
background-color: sg-color($sogoPaper, 600);
|
|
|
|
}
|
|
|
|
&.event {
|
|
|
|
background-color: sg-color($sogoBlue, 300);
|
2015-06-04 22:08:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|