mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°2847 - Activity panel: Add highlight color on case log entries
This commit is contained in:
61
css/backoffice/layout/activity-panel/_caselog-entry.scss
Normal file
61
css/backoffice/layout/activity-panel/_caselog-entry.scss
Normal file
@@ -0,0 +1,61 @@
|
||||
/*!
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user