Skip to content

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

Open
jackemerson wants to merge 2 commits intoMurzNN:masterfrom
jackemerson:master
Open

Defines CSS variables, to set background-color and provide reliable inheritance.#22
jackemerson wants to merge 2 commits intoMurzNN:masterfrom
jackemerson:master

Conversation

@jackemerson
Copy link
Copy Markdown

@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
Copy Markdown

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