I am attempting to build a status bar in CSS. The bar shows a percentage completed/remaining, and has tall end bars like this: |=========------------- ...
I am attempting to build a status bar in CSS. The bar shows a percentage completed/remaining, and has tall end bars like this: |=========------------- ...
I want to get the height of an element and pass it into a css variable. The issue im having is when i try to pass that number into the navHeight varia ...
I'm implementing a websites style. For legacy support reasons, I need to support IE11, at least for a while. For workflow and my sanity reasons, I wou ...
I want to create some tests checking the styles of elements. We use these custom CSS vars. Is there any way to get these in cypress instead of check ...
I'm using PHP to loop through data received from a DB and trying to dynamically affect the width of objects through CSS variables. My prototype worked ...
Please see this example on codepen I am using a CSS var as the fill prop for the SVG, but I've purposefully left off the closing parenthesis. The col ...
The @property CSS rule is a new addition in the CSS world, which is not yet supported in Firefox and some other browsers. I am trying to create a doug ...
Is there a way to modify a previously-declared CSS variable inside a media query with just vanilla CSS? What I'm after would look like this (which of ...
I have found a way to import scss variables into ts and js using this article Basically the approach is: Create a modular scss file containing your s ...
UPDATE: I figured out what was happening and there was no way for anyone to answer because a lot of missing information - like where were the light an ...
Given the <style> I wrote, I expected the 1st <h1> and 2nd <h1> to have same font-size, but it is not true: :root { --def ...
Is there a way, using pure CSS to fetch the numeric value without pulling back the unit too? e.g. say I have a CSS variable defined as :root {--maxWid ...
On my site, I am adding the possibility to switch between a dark mode and a light mode. And so I have a service that allows me to make this switch wit ...
Let's say I have a CSS variable: And I would like to check what is inside this variable and do something based on this. For example: ...
Here is the example main.css mobo.css styleguide.css (Where all CSS variables are mentioned) Can I use them in main.css and mobo.css ??? ...
I have an application that uses css variables for most styling, such as font-size. I need to create a component that change change that root variab ...
I've created a global.css file and I've declared css variables in the :root element. Now I'd like to style my page modularly and to do that, I need to ...
You can use CSS Animations over CSS Custom Properties (aka CSS Variables). But is there any way to use custom properties with CSS Transitions? And if ...
How can I refresh the background color of dataset. I would like to change the colors when I switch to dark mode. I thought I can do it with update(), ...
I have a variable in my Card.module.scss and use this code to export it make it available to my React components: I import this and the rest of the ...