mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +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 {
|
||||
|
||||
Reference in New Issue
Block a user