SCSS: Fix import ordering of the custom root folders

This commit is contained in:
Molkobain
2021-05-22 23:00:05 +02:00
committed by Eric
parent dd26b40f12
commit 4379e49f3b
12 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,60 @@
/*!
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
// IMPORTANT: We have to cancel the panel padding because the tab-container already has its own.
// - As the tab-container can be used outside a panel in another type of block, we can't remove it from its partial (_tab-container.scss)
// - This kind of file is the place where *integrations* like this are supposed to be done, keep this in mind when integrating others blocks
// Note: This might not be named well, maybe "tab-container-within-panel" would have been better?
$ibo-panel-with-tab-container--padding-top: -1 * ($ibo-panel--body--padding-top - $ibo-panel--highlight--height) !default;
$ibo-panel-with-tab-container--margin-x: -1 * $ibo-panel--body--padding-x !default;
// Note: We use the child ">" selector to ensure this applies only the child tab container, not another one that would be nested
.ibo-panel {
> .ibo-panel--body {
> .ibo-tab-container {
margin-top: $ibo-panel-with-tab-container--padding-top;
margin-left: $ibo-panel-with-tab-container--margin-x;
margin-right: $ibo-panel-with-tab-container--margin-x;
> .ibo-tab-container--tab-container-list {
height: 100%;
overflow-y: auto;
flex-grow: 1;
}
&.ibo-is-vertical {
display: flex;
flex-direction: row;
> .ibo-tab-container--tabs-list {
padding-top: 50px;
flex-direction: column;
height: auto;
padding-left: unset;
margin-right: unset;
min-width: calc(32px + 90px + 32px);
> .ibo-tab-container--tab-header {
height: 50px;
width: 100%;
justify-content: left;
> .ibo-tab-container--tab-toggler {
width: 100%;
justify-content: left;
}
}
}
> .ibo-tab-container--tab-container {
flex-grow: 1;
margin-left: unset;
}
}
}
}
}