-
-
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
Provide way to specify size to border #31299
Comments
Hi @subrayamallya
|
Fair enough. I was relying on the smart guys in Bootstrap team to make a better call on this than my rudimentary suggestion :-) |
Having a Sass map that provides a few utilities to scale the border quickly could be nice. Suggestions on values to support? |
Any chance I can contribute to this? I have an idea. We can have a mixin on utilities, so it's available to all developers:
With the mixin we can define some default border classes: border-1 border-2 border-3 border-4 border-5 |
Can we do something similar to what you have done for Sass map $display-font-sizes and have the Sass map $border-width-sizes: ( You can even have the size in reverse order if you want to keep the order consistent with $display-font-sizes |
I can do a border-width utility .border-width-1 {
border-width: 1px;
}
.border-width-2 {
border-width: 2px;
}
.border-width-3 {
border-width: 3px;
} ... |
Currently we have border, border-primary, border-success etc all of them seem to only have a 1 pixel thick border with no ability to make the border thicker/wider. The border with 1 pixel gets lost when you have padding, margins or shadow.
Would it be possible to add a border-size attribute?
We can either have
The text was updated successfully, but these errors were encountered: