Files
iTop/css/backoffice/layout/activity-panel/_caselog-entry.scss

62 lines
2.0 KiB
SCSS

/*!
* Copyright (C) 2013-2020 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--decoration--width: 3px !default;
/* Main information */
.ibo-caselog-entry{
.ibo-activity-entry--main-information::before{
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: $ibo-caselog-entry--main-information--decoration--width;
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{
left: initial;
right: 0;
border-radius: 0 $ibo-activity-entry--main-information--border-radius $ibo-activity-entry--main-information--border-radius 0;
}
&:last-child{
.ibo-activity-entry--main-information::before{
border-bottom-right-radius: $ibo-activity-entry--main-information--border-radius--for-tip;
}
}
}
}
/* - Specific decoration regarding the case log rank */
@for $iIdx from 1 through 5 {
.ibo-caselog-entry--entry-for-caselog-#{$iIdx}{
.ibo-activity-entry--main-information::before{
background-color: nth($ibo-caselog-entry--highlight-colors, $iIdx);
}
}
}