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

Removed left overs from SASS to Myth conversion #5507

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

lukaszklis
Copy link
Contributor

As fixer mentioned on Slack (also was mentioned in a comment), for some reason Firefox didn't show styles for ::-moz-selection. I've checked the code and it turned out that during SASS to Myth conversion (390c017), lighten function from SASS has not been removed and browsers were ignoring property for which's value the function was used.

Current state of master:

screenshot 2015-07-01 22 52 22
screenshot 2015-07-01 22 52 26
screenshot 2015-07-01 22 52 32

After applied changes:

screenshot 2015-07-03 07 50 18
screenshot 2015-07-03 07 49 46
screenshot 2015-07-03 07 50 02

--darkgrey: rgb(var(--rgb-darkgrey));
--midgrey: rgb(var(--rgb-midgrey));
--lightgrey: rgb(var(--rgb-lightgrey));
--superlightgrey: rgb(--rgb-superlightgrey);

This comment was marked as abuse.

@JohnONolan
Copy link
Member

Right idea, but not quite the right approach. We've replaced lighten() with color(x lightness()) throughout the rest of the codebase, so this should probably follow the same pattern.

Definitely don't want to introduce RGB vars (confusing) -- and no need for a variable at all for the "superlightgrey" colour - it's only used once

@lukaszklis
Copy link
Contributor Author

@JohnONolan thanks for the comment. I'll update the PR later today.

Refs TryGhost#5314
- replaced SASS's `lighten` with Myth's `color(x lightness())`
@lukaszklis
Copy link
Contributor Author

@JohnONolan I've updated the PR. Somehow I've missed the lightness() feature. :/ Sorry about that.

@lukaszklis
Copy link
Contributor Author

👍 / 👎 ? ;)

JohnONolan added a commit that referenced this pull request Jul 6, 2015
Removed left overs from SASS to Myth conversion
@JohnONolan JohnONolan merged commit 067f2b1 into TryGhost:master Jul 6, 2015
@lukaszklis lukaszklis deleted the colour-fixes branch May 29, 2020 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants