mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
Added border-radius mixins to set single corner radius and single side border radius
This commit is contained in:
@@ -202,6 +202,46 @@
|
|||||||
border-radius: @radius;
|
border-radius: @radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Single Corner Border Radius
|
||||||
|
.border-top-left-radius(@radius) {
|
||||||
|
-webkit-border-top-left-radius: @radius;
|
||||||
|
-moz-border-radius-topleft: @radius;
|
||||||
|
border-top-left-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-top-right-radius(@radius) {
|
||||||
|
-webkit-border-top-right-radius: @radius;
|
||||||
|
-moz-border-radius-topright: @radius;
|
||||||
|
border-top-right-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-left-radius(@radius) {
|
||||||
|
-webkit-border-bottom-left-radius: @radius;
|
||||||
|
-moz-border-radius-bottomleft: @radius;
|
||||||
|
border-bottom-left-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-right-radius(@radius) {
|
||||||
|
-webkit-border-bottom-right-radius: @radius;
|
||||||
|
-moz-border-radius-bottomright: @radius;
|
||||||
|
border-bottom-right-radius: @radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single Side Border Radius
|
||||||
|
.border-bottom-radius(@radius) {
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-top-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-left-radius(@radius) {
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-right-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
}
|
||||||
|
|
||||||
// Drop shadows
|
// Drop shadows
|
||||||
.box-shadow(@shadow) {
|
.box-shadow(@shadow) {
|
||||||
-webkit-box-shadow: @shadow;
|
-webkit-box-shadow: @shadow;
|
||||||
|
Reference in New Issue
Block a user