mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°3123 - Refactor Directories
This commit is contained in:
9
css/backoffice/base/components/dashlet/_all.scss
Normal file
9
css/backoffice/base/components/dashlet/_all.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
@import "dashlet";
|
||||
@import "dashlet-badge";
|
||||
@import "dashlet-header-static";
|
||||
@import "dashlet-header-dynamic";
|
||||
76
css/backoffice/base/components/dashlet/_dashlet-badge.scss
Normal file
76
css/backoffice/base/components/dashlet/_dashlet-badge.scss
Normal file
@@ -0,0 +1,76 @@
|
||||
/*!
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-dashlet-badge--padding-x: 16px !default;
|
||||
$ibo-dashlet-badge--padding-y: 16px !default;
|
||||
$ibo-dashlet-badge--min-width: 200px !default;
|
||||
$ibo-dashlet-badge--background-color: $ibo-color-white-100 !default;
|
||||
$ibo-dashlet-badge--border: 1px solid $ibo-color-grey-400 !default;
|
||||
$ibo-dashlet-badge--border-radius: $ibo-border-radius-500 !default;
|
||||
|
||||
$ibo-dashlet-badge--action-list--text-color: inherit !default;
|
||||
$ibo-dashlet-badge--action-list-count--margin-right: 8px !default;
|
||||
$ibo-dashlet-badge--action-list-label--max-width: 150px !default;
|
||||
|
||||
$ibo-dashlet-badge--icon-container--margin-right: 16px !default;
|
||||
$ibo-dashlet-badge--icon--size: 48px !default;
|
||||
|
||||
$ibo-dashlet-badge--action-icon--margin-right: 6px !default;
|
||||
|
||||
/* Rules */
|
||||
.ibo-dashlet-badge{
|
||||
//min-width: $ibo-dashlet-badge--min-width;
|
||||
flex-basis: $ibo-dashlet-badge--min-width;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
padding: $ibo-dashlet-badge--padding-y $ibo-dashlet-badge--padding-x;
|
||||
background-color: $ibo-dashlet-badge--background-color;
|
||||
border: $ibo-dashlet-badge--border;
|
||||
border-radius: $ibo-dashlet-badge--border-radius;
|
||||
}
|
||||
.ibo-dashlet-badge--body{
|
||||
display: flex;
|
||||
justify-items: left;
|
||||
align-items: center;
|
||||
}
|
||||
.ibo-dashlet-badge--icon-container{
|
||||
margin-right: $ibo-dashlet-badge--icon-container--margin-right;
|
||||
}
|
||||
.ibo-dashlet-badge--icon{
|
||||
width: $ibo-dashlet-badge--icon--size;
|
||||
min-width: $ibo-dashlet-badge--icon--size; /* To avoid image being shrinked when container is too small */
|
||||
max-height: $ibo-dashlet-badge--icon--size;
|
||||
}
|
||||
|
||||
.ibo-dashlet-badge--actions{
|
||||
|
||||
}
|
||||
.ibo-dashlet-badge--action-list{
|
||||
@extend %ibo-vertically-centered-content;
|
||||
color: $ibo-dashlet-badge--action-list--text-color;
|
||||
@extend %ibo-font-ral-med-250;
|
||||
|
||||
&:hover,
|
||||
&:active{
|
||||
@extend %ibo-hyperlink-inherited-colors;
|
||||
}
|
||||
}
|
||||
.ibo-dashlet-badge--action-list-count{
|
||||
margin-right: $ibo-dashlet-badge--action-list-count--margin-right;
|
||||
@extend %ibo-font-ral-bol-450;
|
||||
}
|
||||
.ibo-dashlet-badge--action-list-label{
|
||||
display: inline-block;
|
||||
max-width: $ibo-dashlet-badge--action-list-label--max-width;
|
||||
@extend %ibo-text-truncated-with-ellipsis;
|
||||
}
|
||||
.ibo-dashlet-badge--action-create{
|
||||
@extend %ibo-baseline-centered-content;
|
||||
@extend %ibo-font-ral-med-150;
|
||||
}
|
||||
.ibo-dashlet-badge--action-create-icon{
|
||||
margin-right: $ibo-dashlet-badge--action-icon--margin-right;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-dashlet-header-dynamic--count--margin-right: 10px !default;
|
||||
|
||||
/* Rules */
|
||||
.ibo-dashlet-header-dynamic--container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-dynamic--count {
|
||||
@extend %ibo-font-ral-bol-200;
|
||||
margin-right: $ibo-dashlet-header-dynamic--count--margin-right;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-dynamic--label {
|
||||
@extend %ibo-font-ral-med-100;
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/*!
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-dashlet-header-static--padding-x: 16px !default;
|
||||
$ibo-dashlet-header-static--padding-y: 16px !default;
|
||||
$ibo-dashlet-header-static--min-width: 200px !default;
|
||||
$ibo-dashlet-header-static--background-color: $ibo-color-white-100 !default;
|
||||
$ibo-dashlet-header-static--border: 1px solid $ibo-color-grey-400 !default;
|
||||
$ibo-dashlet-header-static--border-radius: $ibo-border-radius-500 !default;
|
||||
|
||||
$ibo-dashlet-header-static--title--text-color: inherit !default;
|
||||
$ibo-dashlet-header-static--title--margin-right: 8px !default;
|
||||
|
||||
$ibo-dashlet-header-static--text--text-color: inherit !default;
|
||||
|
||||
$ibo-dashlet-header-static--icon-container--margin-right: 16px !default;
|
||||
$ibo-dashlet-header-static--icon--size: 48px !default;
|
||||
|
||||
|
||||
/* Rules */
|
||||
.ibo-dashlet-header-static {
|
||||
//min-width: $ibo-dashlet-header-static--min-width;
|
||||
flex-basis: $ibo-dashlet-header-static--min-width;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
padding: $ibo-dashlet-header-static--padding-y $ibo-dashlet-header-static--padding-x;
|
||||
background-color: $ibo-dashlet-header-static--background-color;
|
||||
border: $ibo-dashlet-header-static--border;
|
||||
border-radius: $ibo-dashlet-header-static--border-radius;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-static--body {
|
||||
display: flex;
|
||||
justify-items: left;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-static--icon-container {
|
||||
margin-right: $ibo-dashlet-header-static--icon-container--margin-right;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-static--icon {
|
||||
width: $ibo-dashlet-header-static--icon--size;
|
||||
min-width: $ibo-dashlet-header-static--icon--size; /* To avoid image being shrinked when container is too small */
|
||||
max-height: $ibo-dashlet-header-static--icon--size;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-static--title {
|
||||
@extend %ibo-font-ral-med-250;
|
||||
color: $ibo-dashlet-header-static--title--text-color;
|
||||
margin-right: $ibo-dashlet-header-static--title--margin-right;
|
||||
}
|
||||
|
||||
.ibo-dashlet-header-static--text {
|
||||
@extend %ibo-font-ral-nor-200;
|
||||
flex-grow: 1;
|
||||
color: $ibo-dashlet-header-static--text--text-color;
|
||||
}
|
||||
23
css/backoffice/base/components/dashlet/_dashlet.scss
Normal file
23
css/backoffice/base/components/dashlet/_dashlet.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-dashlet--width: 100% !default;
|
||||
$ibo-dashlet--width--is-inline: auto !default;
|
||||
$ibo-dashlet--elements-spacing-x: 24px !default;
|
||||
$ibo-dashlet--elements-spacing-y: 24px !default;
|
||||
|
||||
/* Rules */
|
||||
.ibo-dashlet{
|
||||
width: $ibo-dashlet--width;
|
||||
margin: calc(#{$ibo-dashlet--elements-spacing-y} / 2) calc(#{$ibo-dashlet--elements-spacing-x} / 2);
|
||||
|
||||
&.dashlet-selected {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.ibo-dashlet--is-inline{
|
||||
width: $ibo-dashlet--width--is-inline;
|
||||
}
|
||||
Reference in New Issue
Block a user