Files
iTop/css/backoffice/layout/activity-panel/_caselog-entry.scss
2021-03-12 18:48:46 +01:00

89 lines
2.9 KiB
SCSS

/*!
* Copyright (C) 2013-2021 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
/* SCSS variables */
$ibo-caselog-entry--highlight-colors: $ibo-caselog-highlight-colors !default;
$ibo-caselog-entry--main-information--padding-y: 12px !default;
$ibo-caselog-entry--main-information--decoration--width: 3px !default;
/* Main information */
.ibo-caselog-entry{
.ibo-activity-entry--main-information{
padding-top: $ibo-caselog-entry--main-information--padding-y;
padding-bottom: $ibo-caselog-entry--main-information--padding-y;
}
.ibo-activity-entry--main-information-icon{
display: none;
}
/* Highlight color */
.ibo-activity-entry--main-information::before{
content: "";
position: absolute;
top: 0;
bottom: 0;
width: $ibo-caselog-entry--main-information--decoration--width;
}
/* - User specific (current or not) */
&:not(.ibo-is-current-user){
.ibo-activity-entry--main-information::before{
left: 0;
border-top-left-radius: $ibo-activity-entry--main-information--border-radius;
border-bottom-left-radius: $ibo-activity-entry--main-information--border-radius;
}
&:last-child{
.ibo-activity-entry--main-information::before{
border-bottom-left-radius: $ibo-activity-entry--main-information--border-radius--for-tip;
}
}
}
&.ibo-is-current-user{
.ibo-activity-entry--main-information::before{
right: 0;
border-top-right-radius: $ibo-activity-entry--main-information--border-radius;
border-bottom-right-radius: $ibo-activity-entry--main-information--border-radius;
}
&:last-child{
.ibo-activity-entry--main-information::before{
border-bottom-right-radius: $ibo-activity-entry--main-information--border-radius--for-tip;
}
}
}
/* - Closed entry placeholder specific */
&.ibo-is-closed{
&.ibo-is-current-user{
.ibo-activity-entry--main-information::after{
width: calc(100% - #{$ibo-caselog-entry--main-information--decoration--width});
}
}
&:not(.ibo-is-current-user){
.ibo-activity-entry--main-information::after{
margin-left: $ibo-caselog-entry--main-information--decoration--width;
}
}
}
}
/* - Specific decoration regarding the case log rank */
@each $sColor in $ibo-caselog-entry--highlight-colors {
.ibo-caselog-entry--entry-for-caselog-#{index($ibo-caselog-entry--highlight-colors, $sColor)}{
.ibo-activity-entry--main-information::before{
background-color: $sColor;
}
}
}