mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
* Rebase onto develop * Use exit condition instead of englobing condition * Add informative modals that can be called from modal toolbox * Refactor "apply_modify" and "apply_new" into own controller, handle ajax requests with a json response and handle these responses in linkset creation/edition * Fix merge issues * Remove inverted condition * Move linkset create button to a better place, still needs to fix duplicate "New" button caused by a refactor * Handle "Cancel" button in modals * Do not display relations when editing an object in a modal * More elegant way to add "New" button to relations lists * Factorize vertical highlights in alerts and modal in a single mixin * Replace button name with dict entry code * Change route name to snake case * More elegant way to add "Create in modal" button to relations lists * Replace triple if with in_array * Move listener to body * Rename variable to match boolean rules * Rename event * Rename extra param * Add phpdoc * Revert changes * Check indirect linkset rights before allowing creation in modal
48 lines
1.8 KiB
SCSS
48 lines
1.8 KiB
SCSS
/*
|
|
* @copyright Copyright (C) 2010-2023 Combodo SARL
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
/* SCSS variables */
|
|
$ibo-modal-option--do-not-show-again--margin-top: $ibo-spacing-500 !default;
|
|
|
|
$ibo-modal--is-informative--min-width: $ibo-size-700 !default;
|
|
$ibo-modal--is-informative--min-height: $ibo-size-300 !default;
|
|
$ibo-modal--is-informative--is-error--highlight--background-color: $ibo-color-red-600 !default;
|
|
$ibo-modal--is-informative--is-warning--highlight--background-color: $ibo-color-orange-600 !default;
|
|
$ibo-modal--is-informative--is-information--highlight--background-color: $ibo-color-blue-600 !default;
|
|
$ibo-modal--is-informative--is-success--highlight--background-color: $ibo-color-green-600 !default;
|
|
|
|
// Modal Option - Do not show again
|
|
.ibo-modal-option--do-not-show-again{
|
|
margin-top: $ibo-modal-option--do-not-show-again--margin-top;
|
|
|
|
.ibo-modal-option--do-not-show-again--checkbox{
|
|
height: auto;
|
|
display: inline-block;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.ibo-modal.ibo-is-informative{
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: $ibo-modal--is-informative--min-width;
|
|
min-height: $ibo-modal--is-informative--min-height !important; // !important in order to overload jQueryUI CSS rule that's put directly on the element
|
|
|
|
&::before {
|
|
@include ibo-vertical-highlight;
|
|
}
|
|
&.ibo-is-error::before {
|
|
background-color: $ibo-modal--is-informative--is-error--highlight--background-color;
|
|
}
|
|
&.ibo-is-warning::before {
|
|
background-color: $ibo-modal--is-informative--is-warning--highlight--background-color;
|
|
}
|
|
&.ibo-is-information::before {
|
|
background-color: $ibo-modal--is-informative--is-information--highlight--background-color;
|
|
}
|
|
&.ibo-is-success::before {
|
|
background-color: $ibo-modal--is-informative--is-success--highlight--background-color;
|
|
}
|
|
} |