---
-## Rounded Elements
+## Rounded & Bordered
-These `.rounded` classes helps to make an element round its corners. This will help you quickly style the borders of an element. Mostly used in buttons, images, cards and more
+These `.rounded` & `.bordered` classes helps to make an element round its corners and give light borders respectively. This will help you quickly style the borders of an element. Mostly used in buttons, images, cards, tables and many more
#### Buttons
```html_example
-<button type="button" class="button rounded primary">Primary</button>
-<button type="button" class="button rounded secondary">Secondary</button>
-<button type="button" class="button rounded success">Success</button>
-<button type="button" class="button rounded alert">Alert</button>
-<button type="button" class="button rounded warning">Warning</button>
+<button type="button" class="button rounded bordered primary">Primary</button>
+<button type="button" class="button rounded bordered secondary">Secondary</button>
+<button type="button" class="button rounded bordered success">Success</button>
+<button type="button" class="button rounded bordered alert">Alert</button>
+<button type="button" class="button rounded bordered warning">Warning</button>
```
#### Images
#### Cards
```html
-<div class="rounded card">
+<div class="rounded bordered card">
<img src="assets/img/generic/rectangle-1.jpg">
<div class="card-divider">
- This is a Middle section
+ Rounded Card
</div>
<div class="card-section">
<h4>This is a card.</h4>
<div class="docs-code-live">
<div class="row">
<div class="small-4 columns">
- <div class="rounded card">
+ <div class="rounded bordered card">
<img src="assets/img/generic/rectangle-1.jpg">
<div class="card-divider">
Rounded Card
</div>
</div>
<div class="small-4 columns">
- <div class="rounded card">
+ <div class="rounded bordered card">
<img src="assets/img/generic/rectangle-1.jpg">
<div class="card-divider">
Rounded Card
</div>
</div>
<div class="small-4 columns">
- <div class="rounded card">
+ <div class="rounded bordered card">
<img src="assets/img/generic/rectangle-1.jpg">
<div class="card-divider">
Rounded Card
</div>
</div>
+#### Tables
+
+```html
+<table class="rounded bordered">
+ <!-- My Table goes here -->
+</table>
+```
+
+<div class="docs-code-live">
+ <table class="rounded bordered">
+ <thead>
+ <tr>
+ <th width="200">Table Header</th>
+ <th>Table Header</th>
+ <th width="150">Table Header</th>
+ <th width="150">Table Header</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
---
## Font Styling
--- /dev/null
+// Foundation for Sites by ZURB
+// foundation.zurb.com
+// Licensed under MIT Open Source
+
+////
+/// @group prototype-bordered
+////
+
+/// Responsive breakpoints for bordered utility.
+/// @type Boolean
+$prototype-bordered-breakpoints: $global-prototype-breakpoints !default;
+
+/// Default value for `prototype-border-width`
+/// @type Number
+$prototype-border-width: rem-calc(1px) !default;
+
+/// Default value for `prototype-border-type`
+/// @type String
+$prototype-border-type: solid !default;
+
+/// Default value for `prototype-border-color` defaulted to `medium-gray`
+/// @type Color
+$prototype-border-color: $medium-gray !default;
+
+@mixin bordered {
+ border: $prototype-border-width $prototype-border-type $prototype-border-color;
+}
+
+@mixin foundation-prototype-bordered {
+ .bordered {
+ @include bordered;
+ }
+
+ @if ($prototype-bordered-breakpoints) {
+ // Loop through Responsive Breakpoints
+ @each $size in $breakpoint-classes {
+ @include breakpoint($size) {
+ @if $size != $-zf-zero-breakpoint {
+ .#{$size}-bordered {
+ @include bordered;
+ }
+ }
+ }
+ }
+ }
+}
// Rounded Utility
@import 'rounded';
+// Bordered Utility
+@import 'bordered';
+
// Overflow helper classes
@import 'overflow';
@include foundation-prototype-font-styling;
@include foundation-prototype-list-style-type;
@include foundation-prototype-rounded;
+ @include foundation-prototype-bordered;
@include foundation-prototype-overflow;
@include foundation-prototype-display;
@include foundation-prototype-position;
@include border-left-radius;
}
.rounded-circle {
- @include rounded-circle
+ @include rounded-circle;
}
@if ($prototype-rounded-breakpoints) {
@include border-left-radius;
}
.#{$size}-rounded-circle {
- @include rounded-circle
+ @include rounded-circle;
}
}
}
--- /dev/null
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <title>Foundation for Sites Testing</title>
+ <link href="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
+ <link href="../assets/css/foundation-prototype.css" rel="stylesheet" />
+
+ </head>
+ <body>
+ <div class="row column">
+ <h2 class="m-t-20">Buttons</h2>
+ <button type="button" class="button rounded bordered primary">Primary</button>
+ <button type="button" class="button rounded bordered secondary">Secondary</button>
+ <button type="button" class="button rounded bordered success">Success</button>
+ <button type="button" class="button rounded bordered alert">Alert</button>
+ <button type="button" class="button rounded bordered warning">Warning</button>
+ </div>
+ <div class="row column">
+ <h2 class="m-t-20">Images</h2>
+ <img src="http://placehold.it/100x100" class="rounded m-r-10">
+ <img src="http://placehold.it/100x100" class="rounded-circle m-r-10">
+ <img src="http://placehold.it/100x100" class="rounded-top m-r-10">
+ <img src="http://placehold.it/100x100" class="rounded-right m-r-10">
+ <img src="http://placehold.it/100x100" class="rounded-bottom m-r-10">
+ <img src="http://placehold.it/100x100" class="rounded-left m-r-10">
+ </div>
+ <div class="row column">
+ <h2 class="m-t-20">Cards</h2>
+ <div class="rounded bordered card" style="width: 300px;">
+ <img src="../assets/img/generic/rectangle-1.jpg">
+ <div class="card-divider">
+ Rounded Card
+ </div>
+ <div class="card-section">
+ <h4>This is a card.</h4>
+ <p>It has an easy to override visual style, and is appropriately subdued.</p>
+ </div>
+ </div>
+ </div>
+ <div class="row column">
+ <h2 class="m-t-20">Tables</h2>
+ <table class="rounded bordered">
+ <thead>
+ <tr>
+ <th width="200">Table Header</th>
+ <th>Table Header</th>
+ <th width="150">Table Header</th>
+ <th width="150">Table Header</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer content Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ <tr>
+ <td>Content Goes Here</td>
+ <td>This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.</td>
+ <td>Content Goes Here</td>
+ <td>Content Goes Here</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <p class="m-y-20"> </p>
+
+ <script src="../assets/js/vendor.js"></script>
+ <script src="../assets/js/foundation.js"></script>
+ <script>
+ $(document).foundation();
+ </script>
+ </body>
+</html>
+++ /dev/null
-<!doctype html>
-<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
-<html class="no-js" lang="en" dir="ltr">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Foundation for Sites Testing</title>
- <link href="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
- <link href="../assets/css/foundation-prototype.css" rel="stylesheet" />
-
- </head>
- <body>
- <div class="row column">
- <h2 class="m-t-20">Rounded Buttons</h2>
- <button type="button" class="button rounded primary">Primary</button>
- <button type="button" class="button rounded secondary">Secondary</button>
- <button type="button" class="button rounded success">Success</button>
- <button type="button" class="button rounded alert">Alert</button>
- <button type="button" class="button rounded warning">Warning</button>
- </div>
- <div class="row column">
- <h2 class="m-t-20">Rounded Images</h2>
- <img src="http://placehold.it/100x100" class="rounded m-r-10">
- <img src="http://placehold.it/100x100" class="rounded-circle m-r-10">
- <img src="http://placehold.it/100x100" class="rounded-top m-r-10">
- <img src="http://placehold.it/100x100" class="rounded-right m-r-10">
- <img src="http://placehold.it/100x100" class="rounded-bottom m-r-10">
- <img src="http://placehold.it/100x100" class="rounded-left m-r-10">
- </div>
- <div class="row column">
- <h2 class="m-t-20">Rounded Cards</h2>
- <div class="rounded card" style="width: 300px;">
- <img src="../assets/img/generic/rectangle-1.jpg">
- <div class="card-divider">
- Rounded Card
- </div>
- <div class="card-section">
- <h4>This is a card.</h4>
- <p>It has an easy to override visual style, and is appropriately subdued.</p>
- </div>
- </div>
- </div>
-
- <script src="../assets/js/vendor.js"></script>
- <script src="../assets/js/foundation.js"></script>
- <script>
- $(document).foundation();
- </script>
- </body>
-</html>