Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependency] Fix compatibility issue with less >= 3.5 due to math changes #97

Merged
merged 1 commit into from
Aug 20, 2018
Merged

[Dependency] Fix compatibility issue with less >= 3.5 due to math changes #97

merged 1 commit into from
Aug 20, 2018

Conversation

ColinFrick
Copy link
Member

Replaces all tilde string escaping with explicit function calls.
This was tested with [email protected] and [email protected]

Reported in Semantic-Org/Semantic-UI#6512

…s for calc

Replaces all tilde string escaping with explicit function calls.
This was tested with [email protected] and [email protected]

Reported in Semantic-Org/Semantic-UI#6512
@ColinFrick ColinFrick added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS type/build Anything related to the build process labels Aug 20, 2018
@ColinFrick ColinFrick added this to the 2.5 milestone Aug 20, 2018
@ColinFrick ColinFrick changed the title fix(less): Use string escaping (e) and string formatting (%) functions for calc [Dependency] Fix compatibility issue with less >= 3.5 due to math changes Aug 20, 2018
@@ -1112,12 +1112,12 @@
.ui.relaxed[class*="vertically divided"].grid > .row:before {
margin-left: (@relaxedGutterWidth / 2);
margin-right: (@relaxedGutterWidth / 2);
width: ~"calc(100% - "@relaxedGutterWidth~")";
width: e(%("calc(100%% - %d)", @relaxedGutterWidth));
Copy link
Contributor

@prudho prudho Aug 20, 2018

Choose a reason for hiding this comment

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

100%% ? This might not be correct.

EDIT: (happen 18 times in the code)

Copy link
Member Author

Choose a reason for hiding this comment

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

It is:

If you need to print the percentage symbol, escape it by another percentage %%.

% format
http://lesscss.org/functions/#string-functions

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh yeah I see, sorry !

@lubber-de
Copy link
Member

This als fixes
Semantic-Org/Semantic-UI#6650

@lubber-de
Copy link
Member

This is save for LESS 3.8 aswell and also fixes
Semantic-Org/Semantic-UI#6678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug type/build Anything related to the build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants