## Component Styling
-These `.radius`, `.rounded`, `.bordered` & `.shadow` classes can be used independently or together to style the component by rounding its corners, giving light borders, and creating shadow to it respectively. Mostly used in buttons, cards, tables, images and many more
+These `.radius`, `.rounded`, `.bordered` & `.shadow` classes can be used independently or together to style the component by rounding its corners, giving light borders, and creating shadow to it respectively. Mostly used in buttons, cards, tables, images and many more.
<div class="primary callout">
**Sass Tip**: You can use [Shadow](#shadow) mixin to create something like `shadow-hover-focus`. [Codepen example](http://codepen.io/IamManchanda/pen/XMRMwo)
```html
<img src="http://placehold.it/100x100" class="radius">
-<img src="http://placehold.it/100x100" class="circle">
```
<div class="docs-code-live margin-bottom-1">
<img src="http://placehold.it/100x100" class="radius margin-right-1">
- <img src="http://placehold.it/100x100" class="circle">
</div>
---
border-radius: $radius;
}
-/// Circle utility (all corners): Rounds all corners to an element by default to make a cirlce.
-@mixin circle {
- border-radius: 50% !important;
-}
-
/// Rounded square utility or rectangle utility (all corners): Rounds all corners to an element by default to make a pill shape.
@mixin border-rounded {
border-radius: 5000px !important;
}
@mixin foundation-prototype-rounded {
- .circle {
- @include circle;
- }
-
.rounded {
@include border-rounded;
}
@include breakpoint($size) {
@if $size != $-zf-zero-breakpoint {
.#{$size}-rounded {
- @include border-radius;
+ @include border-rounded;
}
- .#{$size}-rounded-circle {
- @include rounded-circle;
+ .#{$size}-radius {
+ @include rounded-radius;
}
}
}