mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°3685 Optimize CSS size: .ibo-button is extended at multiple places, reducing its use in loops when possible greatly improves compiled selectors
This commit is contained in:
committed by
Molkobain
parent
61f3d3aeda
commit
1fb2ff355d
@@ -48,8 +48,10 @@ $ibo-button-group--elements-separator--border-left: 1px solid transparent !defau
|
||||
border-left: $ibo-button-group--elements-separator--border-left;
|
||||
}
|
||||
|
||||
/* Note: Selector cannot be simplified in the one above as the "::before" must be after the different classes */
|
||||
.ibo-button + .ibo-button {
|
||||
/* Note: Selector cannot be simplified in the one above as the "::before" must be after the different classes.
|
||||
* A more precise selector could be .ibo-button + .ibo-button, however .ibo-button is extended by multiple element and in a multiple loop it creates heavy selectors.
|
||||
*/
|
||||
> * + * {
|
||||
@each $sType, $aColors in $ibo-button-colors {
|
||||
@each $sColor, $aPseudoclasses in $aColors {
|
||||
@each $sPseudoclass, $aAttributes in $aPseudoclasses {
|
||||
|
||||
@@ -471,7 +471,7 @@ $ibo-button-colors: (
|
||||
white-space: nowrap; /* To force sub elements to be on 1 line */
|
||||
@extend %ibo-font-ral-sembol-100;
|
||||
|
||||
& ~ .ibo-button {
|
||||
& + .ibo-button {
|
||||
margin-left: $ibo-button--sibling-spacing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user