-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Move all colours to CSS variables #3692
Conversation
@bonanitech I am in the process or reviewing this PR - are there any more changes expected from you? |
No more changes planned to this PR Only if you find issues during the review 🙂 |
Hi @bonanitech - looks good. Regarding ...
I guess you are talking about the :root {
----red-ui-tab-background-inactive: 240, 240, 240;
}
.class-name {
background-image: linear-gradient(to right, rgba(var(--red-ui-tab-background-inactive), 0.1), rgba(var(--red-ui-tab-background-inactive), 1));
} however, since Regarding ...
These are what they are and will be corrected at some time regardless of this work (i.e. they are not really of consequence) Lastly, I have tested a theme (forge-light) and even though it has not been changed to a simple bunch of @knolleary - i am happy with a first pass and local testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally, this works.
Some consolidation of variables might be good but that can be iterated.
Thanks for the feedback @Steve-Mcl
I tried this solution too but found it just as ugly as the one I used. Although I think I should make a small change to keep those variables kind of in sync. $tab-background-active: $secondary-background;
- $tab-background-active-alpha: rgba($secondary-background, 0.001);
+ $tab-background-active-alpha: rgba($tab-background-active, 0.001);
... |
What do you suggest? |
For a later time. All good for now. |
There are a couple merge conflicts to resolve before we can get this in. |
Those conflicts are resolved. I also added a small commit to the PR. Please review it again if possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mauricio, I have been running this today. Functionally, it works and I don't see any graphical artefacts. So as far as I'm concerned, it passes.
Move colors left behind in #3692 to CSS variables
Proposed changes
I know you were not keen on getting this in for 3.0, but I had it done and thought it best to get it PR'd ready for when you are.
I changed all colors (SASS variables) to CSS variables, except for a few hard-coded colors in
editor.scss
.I wish I had found a better solution for the colors in
.red-ui-tabs-fade
. It works, but it's not an elegant solution.Please review the changes in this PR and let me know if there is anything else to do.
Checklist
grunt
to verify the unit tests pass