mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°4283 Centralize blocks spacing between each other in block-integration
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-alert--spacing-top--with-same-block: 6px !default;
|
||||
$ibo-alert--spacing-top--with-other-blocks: 16px !default;
|
||||
$ibo-alert--padding-y: 18px !default;
|
||||
$ibo-alert--padding-x: 20px !default;
|
||||
$ibo-alert--min-height: 30px !default;
|
||||
@@ -116,15 +114,6 @@ $ibo-alert-colors: (
|
||||
margin-top: $ibo-alert--body--margin-top;
|
||||
}
|
||||
|
||||
/* Spacing between alert blocks */
|
||||
.ibo-alert + .ibo-alert {
|
||||
margin-top: $ibo-alert--spacing-top--with-same-block;
|
||||
}
|
||||
/* Spacing between an alert block and something else */
|
||||
.ibo-alert + :not(.ibo-alert) {
|
||||
margin-top: $ibo-alert--spacing-top--with-other-blocks;
|
||||
}
|
||||
|
||||
.ibo-alert--action-button{
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -63,11 +63,4 @@ $ibo-button-group--elements-separator--border-left: 1px solid transparent !defau
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Reset siblings spacing */
|
||||
.ibo-button-group + .ibo-button-group,
|
||||
.ibo-button + .ibo-button-group,
|
||||
.ibo-button-group + .ibo-button{
|
||||
margin-left: $ibo-button--sibling-spacing;
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$ibo-button--sibling-spacing: 5px !default;
|
||||
$ibo-button--padding-y: 6px !default;
|
||||
$ibo-button--padding-x: 9px !default;
|
||||
$ibo-button--border: 0 !default;
|
||||
@@ -475,10 +474,7 @@ $ibo-button-colors: (
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap; /* To force sub elements to be on 1 line */
|
||||
@extend %ibo-font-ral-sembol-100;
|
||||
|
||||
& + .ibo-button {
|
||||
margin-left: $ibo-button--sibling-spacing;
|
||||
}
|
||||
|
||||
|
||||
&.ibo-action-button {
|
||||
float: right;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-collapsible-section--margin-top: 3rem !default;
|
||||
$ibo-collapsible-section--title--color: $ibo-panel--title--color !default;
|
||||
$ibo-collapsible-section--body--background-color: $ibo-panel--body--background-color !default;
|
||||
$ibo-collapsible-section--highlight--height: 8px !default;
|
||||
@@ -22,9 +21,6 @@ $ibo-collapsible-section--body--border-color: $ibo-panel--base-border-color !def
|
||||
|
||||
|
||||
/* Rules */
|
||||
.ibo-collapsible-section {
|
||||
margin: $ibo-collapsible-section--margin-top auto;
|
||||
}
|
||||
|
||||
.ibo-collapsible-section--header {
|
||||
display: flex;
|
||||
@@ -64,6 +60,7 @@ $ibo-collapsible-section--body--border-color: $ibo-panel--base-border-color !def
|
||||
}
|
||||
|
||||
.ibo-collapsible-section--action-button {
|
||||
align-self: center;
|
||||
&.ibo-collapsible-section--maximize-button, &.ibo-collapsible-section--minimize-button {
|
||||
color: $ibo-collapsible-section--maximize-minimize-button--color;
|
||||
margin-right: $ibo-collapsible-section--maximize-minimize-button--right;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-field--sibling-spacing: 16px !default;
|
||||
$ibo-field--value--color: $ibo-color-grey-800 !default;
|
||||
|
||||
$ibo-field--label--description--content: "?" !default;
|
||||
@@ -69,10 +68,6 @@ $ibo-field--enable-bulk--checkbox--margin-left: 8px !default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& ~ .ibo-field {
|
||||
margin-top: $ibo-field--sibling-spacing;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large field = Label on top, value below */
|
||||
@@ -255,6 +250,3 @@ $ibo-field--enable-bulk--checkbox--margin-left: 8px !default;
|
||||
margin-left: $ibo-field--enable-bulk--checkbox--margin-left;
|
||||
}
|
||||
|
||||
.form_field ~ .form_field {
|
||||
margin-top: $ibo-field--sibling-spacing;
|
||||
}
|
||||
@@ -39,8 +39,6 @@ $ibo-panel-colors: (
|
||||
) !default;
|
||||
|
||||
/* - Specific variables for the block */
|
||||
$ibo-panel--spacing-top: 24px !default;
|
||||
|
||||
$ibo-panel--highlight--width: 100% !default;
|
||||
$ibo-panel--highlight--height: 8px !default;
|
||||
$ibo-panel--highlight--background-color: 8px !default;
|
||||
@@ -84,14 +82,12 @@ $ibo-panel--title--color: $ibo-color-grey-900 !default;
|
||||
$ibo-panel--subtitle--font-size--is-sticking: $ibo-font-size-100 !default;
|
||||
$ibo-panel--subtitle--color: $ibo-color-grey-800 !default;
|
||||
|
||||
$ibo-panel--collapsible-toggler--margin-right: 8px !default;
|
||||
$ibo-panel--collapsible-toggler--margin-right: $ibo-spacing-300 !default;
|
||||
$ibo-panel--collapsible-toggler--font-size: $ibo-font-size-250 !default;
|
||||
$ibo-panel--collapsible-toggler--color: $ibo-color-grey-700 !default;
|
||||
|
||||
/* Rules */
|
||||
.ibo-panel + .ibo-panel {
|
||||
margin-top: $ibo-panel--spacing-top;
|
||||
}
|
||||
|
||||
|
||||
.ibo-panel {
|
||||
--ibo-main-color: map-get($ibo-panel-colors, 'neutral'); /* --ibo-main-color is to allow overload from custom dynamic value from the DM. The overload will be done through an additional CSS class of a particular DM class or DM attribute */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
/* SCSS variables */
|
||||
$ibo-pill--margin: 4px 8px !default;
|
||||
$ibo-pill--margin-y: 4px !default;
|
||||
$ibo-pill--padding: 6px 10px !default;
|
||||
$ibo-pill--max-width: 240px !default;
|
||||
$ibo-pill--border-radius: $ibo-border-radius-300 !default;
|
||||
@@ -84,7 +84,8 @@ $ibo-pill-states-colors: (
|
||||
|
||||
@extend %ibo-fully-centered-content;
|
||||
max-width: $ibo-pill--max-width;
|
||||
margin: $ibo-pill--margin;
|
||||
margin-top: $ibo-pill--margin-y;
|
||||
margin-bottom: $ibo-pill--margin-y;
|
||||
padding: $ibo-pill--padding;
|
||||
border-radius: $ibo-pill--border-radius;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user