Top "Css-variables" questions

Custom properties (or CSS variables) allow to define stylesheet-wide values identified by a token and usable in all CSS declarations.

CSS Variables (custom properties) in Pseudo-element "content" Property

Example use (what I want) div::after { content: var(--mouse-x) ' / ' var(--mouse-y); } Test case showing it NOT working: …

css pseudo-element css-variables
Using CSS Variables in Chrome 29+

My Chrome browser just switched from version 28 to version 29. Once it switched over, my css3 code stopped working in the …

css google-chrome flags css-variables
Using CSS Variables as Sass function arguments

Is there a way to use CSS variables with Sass functions e.g. lighten? Something like this: :root { --color: #ff00…

css variables sass css-variables
Using negative CSS Custom Properties

In preprocessors, like SASS, you can use negative values like: $margin-md: 10px; .class { margin-bottom: -$margin-md; } How do I do …

css css-variables
Unable to get CSS variables working in Chrome 34

I previously asked a very similar question for an older version of Chrome. However, I am again having a hard …

css google-chrome css-variables
Get all css root variables in array using javascript and change the values

I am using css root variables in my project for dynamically changing the colors of all elements anytime. My css …

javascript jquery css css-selectors css-variables
How to Use calc() to switch between color values?

Is it possible to use calc() function in CSS to manipulate hexadecimal color value? In following CSS snippet I would …

css css-variables css-calc