question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS Bug if $card-border-width: 0;

See original GitHub issue

Hey 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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
florianlacreusecommented, May 31, 2019

Try with $card-border-width: 0px as a workaround.

0reactions
aditya1906commented, Jun 3, 2019

does if else in scss solve the problem?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found