mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
@@ -106,10 +106,14 @@
|
||||
if (scope.block.userState)
|
||||
iElement.addClass('sg-event--' + scope.block.userState);
|
||||
|
||||
// Set background color
|
||||
if (scope.block.component) {
|
||||
// Set background color
|
||||
iElement.addClass('bg-folder' + scope.block.component.pid);
|
||||
iElement.addClass('contrast-bdr-folder' + scope.block.component.pid);
|
||||
|
||||
// Add class for transparency
|
||||
if (scope.block.component.c_isopaque === 0)
|
||||
iElement.addClass('sg-event--transparent');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -61,10 +61,15 @@
|
||||
if (scope.block.userState)
|
||||
iElement.addClass('sg-event--' + scope.block.userState);
|
||||
|
||||
// Set background color
|
||||
if (scope.block.component)
|
||||
if (scope.block.component) {
|
||||
// Set background color
|
||||
iElement.addClass('bg-folder' + scope.block.component.pid);
|
||||
|
||||
// Add class for transparency
|
||||
if (scope.block.component.c_isopaque === 0)
|
||||
iElement.addClass('sg-event--transparent');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,6 +308,29 @@ $quarter_height: 10px;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
// Event is transparent (not opaque)
|
||||
&--transparent {
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-bottom: 0;
|
||||
background-origin: border-box;
|
||||
background-image: linear-gradient(
|
||||
to right bottom,
|
||||
rgba(255, 255, 255, 0),
|
||||
rgba(255, 255, 255, .15) 50%,
|
||||
rgba(255, 255, 255, 0) 50%,
|
||||
rgba(255, 255, 255, 0)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.eventInside {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user