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. |
Steve-Mcl
left a comment
There was a problem hiding this comment.
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. |
Steve-Mcl
left a comment
There was a problem hiding this comment.
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
gruntto verify the unit tests pass