mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2847 - Restore components/layouts SCSS files to keep matching SCSS conventions
This commit is contained in:
214
css/backoffice/layout/activity-panel/_activity-entry.scss
Normal file
214
css/backoffice/layout/activity-panel/_activity-entry.scss
Normal file
@@ -0,0 +1,214 @@
|
||||
/*!
|
||||
* 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 */
|
||||
/* - Entry group */
|
||||
$ibo-activity-panel--entry-group--margin-bottom: 24px !default;
|
||||
|
||||
/* - Entry */
|
||||
$ibo-activity-entry--medallion--margin-with-information: 8px !default;
|
||||
$ibo-activity-entry--medallion--margin-bottom: 18px !default;
|
||||
$ibo-activity-entry--medallion--diameter: 32px !default;
|
||||
$ibo-activity-entry--medallion--border-radius: $ibo-border-radius-full !default;
|
||||
$ibo-activity-entry--medallion--has-image--background-color: $ibo-color-blue-100 !default;
|
||||
$ibo-activity-entry--medallion--has-image--box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.25) !default;
|
||||
$ibo-activity-entry--medallion--has-no-image--background-color: $ibo-color-blue-grey-600 !default;
|
||||
$ibo-activity-entry--medallion--has-no-image--text-color: $ibo-color-white-100 !default;
|
||||
$ibo-activity-entry--medallion--has-no-image--border: 1px solid $ibo-color-grey-200 !default;
|
||||
|
||||
$ibo-activity-entry--information--margin-to-other-side: $ibo-activity-entry--medallion--diameter + $ibo-activity-entry--medallion--margin-with-information !default;
|
||||
|
||||
$ibo-activity-entry--main-information--padding-x: 16px !default;
|
||||
$ibo-activity-entry--main-information--padding-y: 12px !default;
|
||||
$ibo-activity-entry--main-information--text-color: $ibo-color-grey-800 !default;
|
||||
$ibo-activity-entry--main-information--background-color: $ibo-color-grey-200 !default;
|
||||
$ibo-activity-entry--main-information--border-radius: $ibo-border-radius-500 !default;
|
||||
$ibo-activity-entry--main-information--border-radius--for-tip: 0 !default;
|
||||
$ibo-activity-entry--main-information--elements-spacing: $ibo-activity-entry--main-information--padding-x !default;
|
||||
$ibo-activity-entry--main-information-accent-strip--width: 2px !default;
|
||||
$ibo-activity-entry--main-information-hyperlink--text-color: $ibo-color-blue-700 !default;
|
||||
$ibo-activity-entry--main-information-hyperlink--on-hover--text-color: $ibo-color-blue-900 !default;
|
||||
$ibo-activity-entry--main-information-hyperlink--on-active--text-color: $ibo-activity-entry--main-information-hyperlink--on-hover--text-color !default;
|
||||
$ibo-activity-entry--main-information--is-current-user--background-color: $ibo-color-blue-100 !default;
|
||||
$ibo-activity-entry--main-information--is-closed--max-height: 48px !default;
|
||||
$ibo-activity-entry--main-information--is-closed--placeholder-top: 30px !default;
|
||||
$ibo-activity-entry--main-information--is-closed--placeholder-padding-left: $ibo-activity-entry--main-information--padding-x !default;
|
||||
|
||||
$ibo-activity-entry--main-information-icon--text-color: $ibo-color-grey-700 !default;
|
||||
$ibo-activity-entry--main-information-icon--font-size: 16px !default;
|
||||
|
||||
$ibo-activity-entry--sub-information--margin-top: 4px !default;
|
||||
$ibo-activity-entry--sub-information--margin-bottom: $ibo-activity-entry--sub-information--margin-top !default;
|
||||
$ibo-activity-entry--sub-information--text-color: $ibo-color-grey-700 !default;
|
||||
|
||||
/* Entry group */
|
||||
.ibo-activity-panel--entry-group{
|
||||
&:not(:last-child){
|
||||
margin-bottom: $ibo-activity-panel--entry-group--margin-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
/* Entry */
|
||||
.ibo-activity-entry{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
|
||||
/* Last entry */
|
||||
&:not(:last-child){
|
||||
.ibo-activity-entry--medallion{
|
||||
visibility: hidden; /* Show only medallion on the last entry */
|
||||
}
|
||||
.ibo-activity-entry--sub-information{
|
||||
margin-bottom: $ibo-activity-entry--sub-information--margin-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
/* Current or not user specificities */
|
||||
&.ibo-is-current-user{
|
||||
flex-direction: row-reverse;
|
||||
|
||||
.ibo-activity-entry--medallion{
|
||||
margin-right: initial;
|
||||
margin-left: $ibo-activity-entry--medallion--margin-with-information;
|
||||
}
|
||||
.ibo-activity-entry--information{
|
||||
margin-right: 0;
|
||||
margin-left: $ibo-activity-entry--information--margin-to-other-side;
|
||||
}
|
||||
.ibo-activity-entry--main-information{
|
||||
background-color: $ibo-activity-entry--main-information--is-current-user--background-color;
|
||||
}
|
||||
.ibo-activity-entry--sub-information{
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Bubble tip on the right for last entry of the group */
|
||||
&:last-child{
|
||||
.ibo-activity-entry--main-information{
|
||||
border-bottom-right-radius: $ibo-activity-entry--main-information--border-radius--for-tip;
|
||||
border-bottom-left-radius: $ibo-activity-entry--main-information--border-radius;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:not(.ibo-is-current-user){
|
||||
.ibo-activity-entry--information{
|
||||
margin-right: $ibo-activity-entry--information--margin-to-other-side;
|
||||
margin-left: 0;
|
||||
}
|
||||
/* Bubble tip on the left for last entry of the group */
|
||||
&:last-child{
|
||||
.ibo-activity-entry--main-information{
|
||||
border-bottom-right-radius: $ibo-activity-entry--main-information--border-radius;
|
||||
border-bottom-left-radius: $ibo-activity-entry--main-information--border-radius--for-tip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.ibo-is-closed{
|
||||
.ibo-activity-entry--main-information{
|
||||
max-height: $ibo-activity-entry--main-information--is-closed--max-height;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
|
||||
&::after{
|
||||
content: "...";
|
||||
position: absolute;
|
||||
top: $ibo-activity-entry--main-information--is-closed--placeholder-top;
|
||||
left: 0;
|
||||
padding-left: $ibo-activity-entry--main-information--is-closed--placeholder-padding-left;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-activity-entry--medallion{
|
||||
margin-right: $ibo-activity-entry--medallion--margin-with-information;
|
||||
margin-bottom: $ibo-activity-entry--medallion--margin-bottom;
|
||||
min-width: $ibo-activity-entry--medallion--diameter; /* We have to set a min-width, otherwise the medallion will be compressed when sibling element is too large */
|
||||
width: $ibo-activity-entry--medallion--diameter;
|
||||
min-height: $ibo-activity-entry--medallion--diameter;
|
||||
height: $ibo-activity-entry--medallion--diameter;
|
||||
overflow: hidden;
|
||||
|
||||
@extend %ibo-fully-centered-content;
|
||||
|
||||
border-radius: $ibo-activity-entry--medallion--border-radius;
|
||||
|
||||
@extend %ibo-font-ral-nor-150;
|
||||
|
||||
&.ibo-has-image{
|
||||
background-color: $ibo-activity-entry--medallion--has-image--background-color;
|
||||
box-shadow: $ibo-activity-entry--medallion--has-image--box-shadow;
|
||||
}
|
||||
&:not(.ibo-has-image){
|
||||
background-color: $ibo-activity-entry--medallion--has-no-image--background-color;
|
||||
color: $ibo-activity-entry--medallion--has-no-image--text-color;
|
||||
border: $ibo-activity-entry--medallion--has-no-image--border;
|
||||
}
|
||||
|
||||
.ibo-activity-entry--author-picture{
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
.ibo-activity-entry--main-information{
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
|
||||
padding: $ibo-activity-entry--main-information--padding-y $ibo-activity-entry--main-information--padding-x;
|
||||
color: $ibo-activity-entry--main-information--text-color;
|
||||
background-color: $ibo-activity-entry--main-information--background-color;
|
||||
border-radius: $ibo-activity-entry--main-information--border-radius;
|
||||
|
||||
/* Avoid pre (code snippets) to overflow outside the entry */
|
||||
pre{
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* Specific hyperlink color */
|
||||
a{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--text-color;
|
||||
|
||||
&:hover{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-hover--text-color;
|
||||
}
|
||||
&:active,
|
||||
&:focus{
|
||||
color: $ibo-activity-entry--main-information-hyperlink--on-active--text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-activity-entry--main-information-icon{
|
||||
margin-right: $ibo-activity-entry--main-information--elements-spacing;
|
||||
color: $ibo-activity-entry--main-information-icon--text-color;
|
||||
font-size: $ibo-activity-entry--main-information-icon--font-size;
|
||||
}
|
||||
.ibo-activity-entry--main-information-content{
|
||||
|
||||
}
|
||||
.ibo-activity-entry--sub-information{
|
||||
margin-top: $ibo-activity-entry--sub-information--margin-top;
|
||||
text-align: left;
|
||||
color: $ibo-activity-entry--sub-information--text-color;
|
||||
|
||||
@extend %ibo-font-ral-nor-50;
|
||||
}
|
||||
252
css/backoffice/layout/activity-panel/_activity-panel.scss
Normal file
252
css/backoffice/layout/activity-panel/_activity-panel.scss
Normal file
@@ -0,0 +1,252 @@
|
||||
/*!
|
||||
* 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-activity-panel--width: 460px !default;
|
||||
/* TODO: This should be changed when responsive breakpoints are defined and used */
|
||||
$ibo-activity-panel--is-expanded--width: 60vw !default;
|
||||
$ibo-activity-panel--padding-x: 16px !default;
|
||||
$ibo-activity-panel--padding-y: 0 !default;
|
||||
|
||||
/* - Header */
|
||||
$ibo-activity-panel--header--background-color: $ibo-color-grey-100 !default;
|
||||
|
||||
$ibo-activity-panel--size-toggler--color: $ibo-color-grey-600 !default;
|
||||
$ibo-activity-panel--size-toggler--on-hover--color: $ibo-color-grey-800 !default;
|
||||
|
||||
/* - Tabs togglers*/
|
||||
$ibo-activity-panel--tabs-togglers--padding-x: $ibo-activity-panel--padding-x * 3 !default; /* We need to increase this so the size toggler which will be set in abs. pos. can overlap it nicely */
|
||||
|
||||
/* - Tab toggler */
|
||||
$ibo-activity-panel--tab-toggler--caselog-highlight-colors: $ibo-caselog-highlight-colors !default;
|
||||
$ibo-activity-panel--tab-toggler--is-active--background-color: $ibo-color-grey-200 !default;
|
||||
|
||||
/* - Tab title */
|
||||
$ibo-activity-panel--tab-title--padding-x: 16px !default;
|
||||
$ibo-activity-panel--tab-title--padding-y: 8px !default;
|
||||
$ibo-activity-panel--tab-title--on-hover--background-color: $ibo-activity-panel--tab-toggler--is-active--background-color !default;
|
||||
$ibo-activity-panel--tab-title--is-active--background-color: $ibo-activity-panel--tab-toggler--is-active--background-color !default;
|
||||
|
||||
$ibo-activity-panel--tab-title-decoration--width: 12px !default;
|
||||
$ibo-activity-panel--tab-title-decoration--height: $ibo-activity-panel--tab-title-decoration--width !default;
|
||||
$ibo-activity-panel--tab-title-decoration--margin-right: 8px !default;
|
||||
$ibo-activity-panel--tab-title-decoration--border-radius: $ibo-border-radius-300 !default;
|
||||
|
||||
$ibo-activity-panel--tab-title-text--max-width: 100px !default;
|
||||
|
||||
/* - Tab toolbar */
|
||||
$ibo-activity-panel--tab-toolbar--padding-x: $ibo-activity-panel--padding-x !default;
|
||||
$ibo-activity-panel--tab-toolbar--text-color: $ibo-color-grey-800 !default;
|
||||
$ibo-activity-panel--tab-toolbar--background-color: $ibo-activity-panel--tab-toggler--is-active--background-color !default;
|
||||
|
||||
$ibo-activity-panel--tab-toolbar-actions--height: 32px !default;
|
||||
|
||||
$ibo-activity-panel--tab-toolbar-for-caselog--elements-spacing: 16px !default;
|
||||
$ibo-activity-panel--tab-toolbar-for-caselog--icon-margin-left: 8px !default;
|
||||
$ibo-activity-panel--tab-toolbar-for-caselog--icons-separator-content: "-" !default;
|
||||
$ibo-activity-panel--tab-toolbar-for-caselog--icons-separator-margin-x: 8px !default;
|
||||
|
||||
$ibo-activity-panel--tab-toolbar-for-activity--elements-spacing: 36px !default;
|
||||
$ibo-activity-panel--tab-toolbar-for-activity--checkbox-margin-right: 8px !default;
|
||||
|
||||
/* - Body */
|
||||
$ibo-activity-panel--body--padding-top: $ibo-activity-panel--padding-x !default;
|
||||
$ibo-activity-panel--body--padding-x: $ibo-activity-panel--padding-x !default;
|
||||
|
||||
$ibo-activity-panel--body--placeholder--margin-top: 16px !default;
|
||||
$ibo-activity-panel--body--placeholder-image--width: 250px !default;
|
||||
$ibo-activity-panel--body--placeholder-hint--margin-top: 16px !default;
|
||||
$ibo-activity-panel--body--placeholder-hint--color: $ibo-color-grey-800 !default;
|
||||
|
||||
/* Whole layout */
|
||||
.ibo-activity-panel{
|
||||
width: $ibo-activity-panel--width;
|
||||
transition: width 0.2s ease-in-out;
|
||||
|
||||
&.ibo-is-expanded{
|
||||
width: $ibo-activity-panel--is-expanded--width;
|
||||
|
||||
.ibo-activity-panel--expand-icon{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&:not(.ibo-is-expanded){
|
||||
.ibo-activity-panel--collapse-icon{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.ibo-activity-panel--header{
|
||||
position: relative;
|
||||
background-color: $ibo-activity-panel--header--background-color;
|
||||
|
||||
/* Remove hyperlinks default color */
|
||||
a{
|
||||
color: $ibo-activity-panel--tab-toolbar--text-color;
|
||||
}
|
||||
}
|
||||
/* Size toggler */
|
||||
.ibo-activity-panel--size-toggler{
|
||||
position: absolute;
|
||||
right: $ibo-activity-panel--padding-x;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@extend %ibo-fully-centered-content;
|
||||
color: $ibo-activity-panel--size-toggler--color;
|
||||
|
||||
&:hover{
|
||||
color: $ibo-activity-panel--size-toggler--on-hover--color;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tabs togglers */
|
||||
.ibo-activity-panel--tabs-togglers{
|
||||
position: relative; /* For size toggler */
|
||||
padding-left: $ibo-activity-panel--tabs-togglers--padding-x;
|
||||
padding-right: $ibo-activity-panel--tabs-togglers--padding-x;
|
||||
@extend %ibo-fully-centered-content;
|
||||
}
|
||||
.ibo-activity-panel--tab-toggler{
|
||||
&.ibo-is-active{
|
||||
.ibo-activity-panel--tab-title{
|
||||
background-color: $ibo-activity-panel--tab-title--is-active--background-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* - Specific decoration regarding the case log rank */
|
||||
@each $sColor in $ibo-activity-panel--tab-toggler--caselog-highlight-colors {
|
||||
.ibo-activity-panel--tab-toggler-for-caselog-#{index($ibo-activity-panel--tab-toggler--caselog-highlight-colors, $sColor)}{
|
||||
.ibo-activity-panel--tab-title-decoration{
|
||||
background-color: $sColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Tab title */
|
||||
.ibo-activity-panel--tab-title{
|
||||
padding: $ibo-activity-panel--tab-title--padding-y $ibo-activity-panel--tab-title--padding-x;
|
||||
@extend %ibo-fully-centered-content;
|
||||
|
||||
&:hover{
|
||||
background-color: $ibo-activity-panel--tab-title--on-hover--background-color;
|
||||
}
|
||||
}
|
||||
.ibo-activity-panel--tab-title-decoration{
|
||||
display: inline-flex;
|
||||
margin-right: $ibo-activity-panel--tab-title-decoration--margin-right;
|
||||
width: $ibo-activity-panel--tab-title-decoration--width;
|
||||
height: $ibo-activity-panel--tab-title-decoration--height;
|
||||
border-radius: $ibo-activity-panel--tab-title-decoration--border-radius;
|
||||
@extend %ibo-depression-100;
|
||||
}
|
||||
.ibo-activity-panel--tab-title-text{
|
||||
max-width: $ibo-activity-panel--tab-title-text--max-width;
|
||||
@extend %ibo-text-truncated-with-ellipsis;
|
||||
}
|
||||
|
||||
/* Tab toolbar */
|
||||
.ibo-activity-panel--tab-toolbar{
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
padding-left: $ibo-activity-panel--tab-toolbar--padding-x;
|
||||
padding-right: $ibo-activity-panel--tab-toolbar--padding-x;
|
||||
background-color: $ibo-activity-panel--tab-toolbar--background-color;
|
||||
|
||||
&.ibo-is-active{
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-actions{
|
||||
@extend %ibo-fully-centered-content;
|
||||
flex-wrap: wrap;
|
||||
height: $ibo-activity-panel--tab-toolbar-actions--height;
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-left-actions,
|
||||
.ibo-activity-panel--tab-toolbar-middle-actions,
|
||||
.ibo-activity-panel--tab-toolbar-right-actions{
|
||||
@extend %ibo-vertically-centered-content;
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-action{
|
||||
@extend %ibo-fully-centered-content;
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-for-caselog{
|
||||
.ibo-activity-panel--tab-toolbar-actions{
|
||||
justify-content: space-between;
|
||||
|
||||
.ibo-activity-panel--tab-toolbar-action{
|
||||
&:not(:first-child){
|
||||
&::before{
|
||||
content: $ibo-activity-panel--tab-toolbar-for-caselog--icons-separator-content;
|
||||
margin: 0 $ibo-activity-panel--tab-toolbar-for-caselog--icons-separator-margin-x;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-info{
|
||||
> .ibo-activity-panel--tab-toolbar-info-icon{
|
||||
margin-left: $ibo-activity-panel--tab-toolbar-for-caselog--icon-margin-left;
|
||||
}
|
||||
|
||||
&:not(:first-child){
|
||||
margin-left: $ibo-activity-panel--tab-toolbar-for-caselog--elements-spacing;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ibo-activity-panel--tab-toolbar-for-activity{
|
||||
.ibo-activity-panel--tab-toolbar-actions{
|
||||
justify-content: center;
|
||||
|
||||
.ibo-activity-panel--tab-toolbar-action{
|
||||
> input{
|
||||
margin-right: $ibo-activity-panel--tab-toolbar-for-activity--checkbox-margin-right;
|
||||
}
|
||||
|
||||
&:not(:first-child){
|
||||
margin-left: $ibo-activity-panel--tab-toolbar-for-activity--elements-spacing;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Body */
|
||||
.ibo-activity-panel--body{
|
||||
padding-top: $ibo-activity-panel--body--padding-top;
|
||||
padding-left: $ibo-activity-panel--body--padding-x;
|
||||
padding-right: $ibo-activity-panel--body--padding-x;
|
||||
}
|
||||
|
||||
.ibo-activity-panel--body--placeholder{
|
||||
margin-top: $ibo-activity-panel--body--placeholder--margin-top;
|
||||
}
|
||||
.ibo-activity-panel--body--placeholder-image{
|
||||
@extend %ibo-fully-centered-content;
|
||||
|
||||
> svg {
|
||||
width: $ibo-activity-panel--body--placeholder-image--width;
|
||||
height: inherit;
|
||||
}
|
||||
}
|
||||
.ibo-activity-panel--body--placeholder-hint{
|
||||
margin-top: $ibo-activity-panel--body--placeholder-hint--margin-top;
|
||||
color: $ibo-activity-panel--body--placeholder-hint--color;
|
||||
|
||||
@extend %ibo-font-ral-ita-100;
|
||||
@extend %ibo-fully-centered-content;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*!
|
||||
* copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$ibo-caselog-entry-form--width: 100% !default;
|
||||
$ibo-caselog-entry-form--background-color: $ibo-activity-panel--tab-toolbar--background-color !default;
|
||||
|
||||
$ibo-caselog-entry-form--actions--margin-top: 6px !default;
|
||||
$ibo-caselog-entry-form--actions--margin-bottom: 8px !default;
|
||||
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--right: 4px !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--margin-top: calc(#{$ibo-activity-panel--tab-toolbar-actions--height} + 4px) !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--diameter: 36px !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--background-color: $ibo-color-primary-600 !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--color: $ibo-color-white-100 !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--border-radius: $ibo-border-radius-full !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--box-shadow: $ibo-elevation-100 !default;
|
||||
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--height: 100% !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--width: $ibo-activity-panel--body--add-caselog-entry--toggler--icon--height !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--font-size: 16px !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--line-height: 33px !default;
|
||||
.ibo-caselog-entry-form{
|
||||
display: block;
|
||||
width: 100%;
|
||||
background-color: $ibo-caselog-entry-form--background-color;
|
||||
|
||||
&.ibo-is-closed{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ibo-caselog-entry-form--actions{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: $ibo-caselog-entry-form--actions--margin-top;
|
||||
margin-bottom: $ibo-caselog-entry-form--actions--margin-bottom;
|
||||
}
|
||||
|
||||
.ibo-activity-panel--body--add-caselog-entry--toggler{
|
||||
@extend %ibo-baseline-centered-content;
|
||||
position: absolute;
|
||||
right: $ibo-activity-panel--body--add-caselog-entry--toggler--right;
|
||||
margin-top: $ibo-activity-panel--body--add-caselog-entry--toggler--margin-top;
|
||||
|
||||
width: $ibo-activity-panel--body--add-caselog-entry--toggler--diameter;
|
||||
height: $ibo-activity-panel--body--add-caselog-entry--toggler--diameter;
|
||||
|
||||
background-color: $ibo-activity-panel--body--add-caselog-entry--toggler--background-color;
|
||||
color: $ibo-activity-panel--body--add-caselog-entry--toggler--color;
|
||||
|
||||
border-radius: $ibo-activity-panel--body--add-caselog-entry--toggler--border-radius;
|
||||
box-shadow: $ibo-activity-panel--body--add-caselog-entry--toggler--box-shadow;
|
||||
> i{
|
||||
text-align: center;
|
||||
height: $ibo-activity-panel--body--add-caselog-entry--toggler--icon--height;
|
||||
width: $ibo-activity-panel--body--add-caselog-entry--toggler--icon--width;
|
||||
font-size: $ibo-activity-panel--body--add-caselog-entry--toggler--icon--font-size;
|
||||
line-height: $ibo-activity-panel--body--add-caselog-entry--toggler--icon--line-height;
|
||||
}
|
||||
&:hover {
|
||||
color: $ibo-activity-panel--body--add-caselog-entry--toggler--color;
|
||||
}
|
||||
&.ibo-is-hidden{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ibo-caselog-entry-form--action-buttons--main-actions > .ibo-popover-menu{
|
||||
z-index: 1;
|
||||
}
|
||||
88
css/backoffice/layout/activity-panel/_caselog-entry.scss
Normal file
88
css/backoffice/layout/activity-panel/_caselog-entry.scss
Normal file
@@ -0,0 +1,88 @@
|
||||
/*!
|
||||
* 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--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;
|
||||
}
|
||||
}
|
||||
}
|
||||
48
css/backoffice/layout/activity-panel/_edits-entry.scss
Normal file
48
css/backoffice/layout/activity-panel/_edits-entry.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
/*!
|
||||
* 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-edits-entry--short-description--text-color: inherit !default;
|
||||
$ibo-edits-entry--long-description-toggler-icon--margin-left: 12px !default;
|
||||
$ibo-edits-entry--long-description--margin-top: 8px !default;
|
||||
|
||||
/* CSS rules */
|
||||
/* - Long description */
|
||||
a.ibo-edits-entry--short-description {
|
||||
color: $ibo-edits-entry--short-description--text-color;
|
||||
}
|
||||
.ibo-edits-entry--long-description-toggler-icon{
|
||||
margin-left: $ibo-edits-entry--long-description-toggler-icon--margin-left;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.ibo-edits-entry--long-description{
|
||||
display: none;
|
||||
margin-top: $ibo-edits-entry--long-description--margin-top;
|
||||
list-style: inside;
|
||||
}
|
||||
/* - Long desc. opened */
|
||||
.ibo-edits-entry{
|
||||
&.ibo-is-opened{
|
||||
.ibo-edits-entry--long-description-toggler-icon{
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
.ibo-edits-entry--long-description{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
27
css/backoffice/layout/activity-panel/_transition-entry.scss
Normal file
27
css/backoffice/layout/activity-panel/_transition-entry.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* 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-transition-entry--original-state-label--text-color: $ibo-color-grey-800 !default;
|
||||
$ibo-transition-entry--original-state-label--text-decoration: line-through !default;
|
||||
|
||||
/* Main information */
|
||||
.ibo-transition-entry--original-state-label{
|
||||
color: $ibo-transition-entry--original-state-label--text-color;
|
||||
text-decoration: $ibo-transition-entry--original-state-label--text-decoration;
|
||||
}
|
||||
Reference in New Issue
Block a user