Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Now generated css files contain wrong indent in some places, here is an example:
@media (min-width: 48em) {
.toolbar-tray-open:not(.toolbar-vertical) .layout-container,
body:not(.toolbar-tray-open) .layout-container {
margin-left: var(--gin-spacing-xl);
margin-right: var(--gin-spacing-xl);
}
}
The right indent should be like this:
@media (min-width: 48em) {
.toolbar-tray-open:not(.toolbar-vertical) .layout-container,
body:not(.toolbar-tray-open) .layout-container {
margin-left: var(--gin-spacing-xl);
margin-right: var(--gin-spacing-xl);
}
}
And if I regenerate css via yarn build
- all indents comes to normal.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork gin-3322187
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
MurzI've created an MR with fixes for indents, please review.
Comment #4
saschaeggi@Murz this won't work as the next time we compile it will be changed again.
Comment #5
MurzBut I've just compiled them using
yarn install; yarn build
command and they become normal. Why should the next compilation break them back?Comment #6
saschaeggiWe use
npm
and notyarn
for this project, see README. With the given environment I don't see any changes.So the "issue" might be caused by different packages versions.
Comment #7
saschaeggiIf you can figure out which packages we need to update to fix this, I'm happy to merge.
Comment #8
MurzYeah, for npm lock file contains old version of
sass
module, updating it resolves the problem! I've updated my MR.Comment #10
saschaeggiGreat, thanks @Murz!