-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing classes rounded-sm
and rounded-lg
#29989
Comments
Yeah, I agree with you on that. Would like to revamp and rename to |
@mdo thank you for your comment, and about the responsivity, IMHO the responsive behaviour of jumbotron (width >= md : rounded + padded, width < md : edged + snapped) can't be copied to other elements without using custom styles, with the responsivity feature added to border-radius, I think it'll be possible with something like this:
And yes, adding new class names would prevent unwanted effects to previous designs. 👍 for that. I would prefer |
For anyone looking for a way to extend current bootstrap 4 rounded functionality, so that you can disable rounded corners at-or-below a certain breakpoint. Give this a try in your custom theme's SCSS:
Will generate the following css:
And then you can combine this with a My immediate use case was for images where on large screens we want some soft corners, but on mobile we want to pull the image outside the left/right gutters and go full edge-to-edge, without any rounded corners.
This code looks horribly confusing, but it does what is intended:
Possibly, a maintainer could use or adapt this code snippet when the refactoring to stop using HTH |
Hello,
I think there might be a cause of misunderstanding, which I experienced now about the
rounded-lg
androunded-sm
classes, because when I sawrounded-lg
, I instantly got the message that the element edges should be rounded when the screen size is greater thanmd
dimensions.How about using
.rounded-lg
,.rounded-md
,.rounded-sm
,.rounded-xl
as they are meant to be as breakpoint definers and add.rounded-1
,.rounded-2
,rounded-3
like size definitions as they are inp-1
,p-2
(padding) definitions?Use case: For example jumbotron uses exactly this, on screens smaller than lg it has no border-radus, and larger than md, it has. Why don't we have something like this for example like the
card-img
? We can addrounded-0 rounded-lg
to achieve this easily.rounded-lg-1
would be delicious too.The text was updated successfully, but these errors were encountered: