Move white_base CSS to a mixin
What does this MR do and why?
This is a preparation step for Move CSS compilation to Vite Ruby (!152044 - merged).
SASS doesn't allow parent selector (&
) to be used on a top-level. That is the case with app/assets/stylesheets/highlight/white_base.scss
, which is in fact used as a mixin but SASS doesn't know about that. That causes SASS to produce an error during compilation with Vite Ruby.
This MR fixes the issue by:
- Wrapping all the CSS in that file with a new mixin called
white-base
. - Rewriting how the
white_base
is used in thewhite.scss
stylesheet. - Prefixing the
white_base
file name with_
to indicate that it's a dependency of another SASS file, not the actual stylesheet.
No visual change expected.
How to set up and validate locally
- Ensure you have white code theme selected in your preferences
- Go to any merge request with changes
- Observe no change
Edited by Stanislav Lashmanov