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

Defines CSS variables, to set background-color and provide reliable inheritance. #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jackemerson
Copy link

@jackemerson jackemerson commented Jun 24, 2021

An implementation of the feature suggestion I posted - #20 Store background-color value in a CSS variable, for responsive styling.

Intends to allow a tab's child elements to be styled more responsively to a tab's background colour.

CSS variables added:

  • Hue, --tst-color-tabs-bg-hue
  • Saturation, --tst-color-tabs-bg-saturation
  • Lightness, --tst-color-tabs-bg-lightness
  • Background-color, --tst-color-tabs-bg-color

Allows a tab's child elements to be styled responsive to its colour.

CSS variables added:
* Hue,              --tst-color-tabs-bg-hue
* Saturation,       --tst-color-tabs-bg-saturation
* Lightness,        --tst-color-tabs-bg-lightness
* Background-color, --tst-color-tabs-bg-color
@ELLIOTTCABLE
Copy link

This looks pretty cool. Could you provide a quick example of how you're using it, in practice?

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