N°3581 - Dashlet: Rework header static look to match tabs separator

This commit is contained in:
Molkobain
2021-03-18 15:47:38 +01:00
parent 7a67218ad1
commit 8137bc0ca9
3 changed files with 63 additions and 28 deletions

View File

@@ -3,9 +3,10 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
@import "dashlet-within-dashboard";
@import "add-to-dashboard";
@import "caselog-entry-form-within-activity-panel";
@import "panel-with-tab-container";
@import "panel-with-datatable";
@import "object-details-with-tab-container";
@import "medallion-with-blocklist";
@import "add-to-dashboard";

View File

@@ -0,0 +1,23 @@
/*!
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
$ibo-dashlet-within-dashboard--dashlet-header-static--margin-top--is-first-dashlet: 0 !default;
$ibo-dashlet-within-dashboard--dashlet-header-static--margin-top--is-not-first-dashlet: 12px !default;
.ibo-dashboard--grid-row{
// Margin on top to have a better visual separation like with fieldsets
.ibo-dashlet-header-static{
margin-top: $ibo-dashlet-within-dashboard--dashlet-header-static--margin-top--is-not-first-dashlet;
}
// When the ibo-dashlet-header-static is the first dashlet of the dashboard, it must not have margin on top
&:first-child{
.ibo-dashlet:first-child{
.ibo-dashlet-header-static{
margin-top: $ibo-dashlet-within-dashboard--dashlet-header-static--margin-top--is-first-dashlet;
}
}
}
}