CSS Bug if $card-border-width: 0;
See original GitHub issueHey there,
if I set the $card-border-width to “0”,
the output will look like this and ends in an error (at least Chrome):
.card-img { border-radius: calc(0.25rem - 0); }
As a workaround I also had to change:
$card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width});
to
$card-inner-border-radius: $card-border-radius;
Maybe it’s possible to fix this (small) issue. 😃
Kind regards André
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
css calc invalid property value - Stack Overflow
I just came across this error because one SCSS variable was set to zero: WRONG: $ ...
Read more >border-width - CSS: Cascading Style Sheets - MDN Web Docs
border-top-width : the absolute length or 0 if border-top-style is none or hidden. Animation type, as each of the properties of the shorthand:....
Read more >Borders · Bootstrap v5.2
Use border utilities to quickly style the border and border-radius of an element. Great for images, buttons, or any other element.
Read more >CSS, SCSS, and Less support in Visual Studio Code
Note: If your build fails or you see an error message such as "An output directory must be specified when compiling a directory",...
Read more >CSS-Tricks - Tips, Tricks, and Techniques on using Cascading ...
Daily articles about CSS, HTML, JavaScript, and all things related to web design and development.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Try with
$card-border-width: 0pxas a workaround.does if else in scss solve the problem?