glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Consider moving our own sass file to native css

Open orthagh opened this issue 1 year ago • 2 comments

With:

  • https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector
  • https://developer.mozilla.org/en-US/docs/Web/CSS/var
  • https://developer.mozilla.org/en-US/docs/Web/CSS/@import

All avaible in baseline (2023) or widely (for the rest), it may already cover all our need for our own sass files. And so we may remove compilation at runtime..

I target 12.0 for the moment, but the required work may be simple to be included in 11.0 So let's discuss about that.

orthagh avatar Feb 01 '25 09:02 orthagh

I don't think this is an easy thing at the moment. There are uses of mixins at least which don't have native alternatives.

cconard96 avatar Feb 07 '25 12:02 cconard96

There are uses of mixins at least which don't have native alternatives.

There is now an official specification for native mixins and functions, see https://drafts.csswg.org/css-mixins-1/

I guess we will have to wait for a few years before being able to use this in GLPI.

cedric-anne avatar Apr 24 '25 12:04 cedric-anne