Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap 3 border-radius less mixin gone

Bootstrap's .border-radius() mixin is no longer there in version 3.

I am working on converting my codebase and thought of this omission as rather strange. Has .border-radius been replaced by some other mixin? Is its use discouraged, and if so why?

like image 263
mkoryak Avatar asked Aug 30 '13 18:08

mkoryak


People also ask

Why border-radius is not working?

If there are contents within the div that has the curved corners, you have to set overflow: hidden because otherwise the child div's overflow can give the impression that the border-radius isn't working. This answer worked for me.

How remove rounded corners bootstrap?

Just go to http://getbootstrap.com/customize/ Find all "radius" and modify them as you wish. Click "Compile and Download" and enjoy your own version of Bootstrap.

How do I make a rounded bootstrap card?

You can just add the same rule border-radius: 20% to the card element.

Which of these would give a block element rounded corners?

With the CSS border-radius property, you can give any element "rounded corners".


1 Answers

Aha! I have located the answer...

Remove .border-radius() and .border-*-*-radius mixins. As only Android 2.1, iOS 3.2, and older desktop browsers require a prefixed version, we've removed the base mixin. Since we no longer require prefixes for independent corners, we've dropped those mixins as well. Mixins for a single side, like .border-left-radius, are still available.

From TWBS Pull 6342, specifically under LESS changes.

like image 77
brbcoding Avatar answered Sep 20 '22 15:09

brbcoding