1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00

Add new border utils

- Move and rename .img-rounded to .rounded, .img-circle to .rounded-circle
- Add new .rounded-{direction} utils
- New docs pages for border utils with TBD comments for the border property
- Removes most image examples for rounding from the content/images docs in favor of new docs page
This commit is contained in:
Mark Otto
2016-09-08 23:21:40 -07:00
parent 618081b86c
commit 91992ac70a
6 changed files with 63 additions and 15 deletions

View File

@@ -9,10 +9,6 @@
@include img-fluid();
}
// Rounded corners
.rounded {
@include border-radius($border-radius-lg);
}
// Image thumbnails
.img-thumbnail {
@@ -27,11 +23,6 @@
@include img-fluid(inline-block);
}
// Perfect circle
.img-circle {
border-radius: 50%;
}
//
// Figures
//

View File

@@ -1,4 +1,5 @@
@import "utilities/background";
@import "utilities/borders";
@import "utilities/clearfix";
@import "utilities/display";
@import "utilities/flex";

View File

@@ -0,0 +1,30 @@
//
// Border-width
//
// TBD...?
//
// Border-radius
//
.rounded {
@include border-radius($border-radius);
}
.rounded-top {
@include border-top-radius($border-radius);
}
.rounded-right {
@include border-right-radius($border-radius);
}
.rounded-bottom {
@include border-bottom-radius($border-radius);
}
.rounded-left {
@include border-left-radius($border-radius);
}
.rounded-circle {
border-radius: 50%;
}