Skip to content

refactor: parseNestedCSS function#4208

Merged
alexander-akait merged 1 commit intomasterfrom
refactor-parse-nested-CSS
Apr 13, 2018
Merged

refactor: parseNestedCSS function#4208
alexander-akait merged 1 commit intomasterfrom
refactor-parse-nested-CSS

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

Improve speed and fix places where we can break code

.Keep(4px) !important;
.Keep() when (@Keep=Keep);
.Keep() when (@Keep=12px);
.Keep() when (@Keep=12PX);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In last LESS version value case sensitivity, let's output as is

}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */ ; /* comment 4 */
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */; /* comment 4 */
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better output comments in value properties

.desktop-and-old-ie({
background-color: red;
});
.desktop-and-old-ie({background-color: red;});
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use postcss-selector-parser and it is can break code. We should use postcss-value-parser for this. I can do this in other PR.

@alexander-akait alexander-akait force-pushed the refactor-parse-nested-CSS branch from 952ee57 to 32c565c Compare March 29, 2018 09:48
@alexander-akait
Copy link
Copy Markdown
Member Author

/cc @lydell @j-f1

@alexander-akait alexander-akait merged commit 7c0dee6 into master Apr 13, 2018
@alexander-akait alexander-akait deleted the refactor-parse-nested-CSS branch April 13, 2018 19:13
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 12, 2018
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants