## Expanded
-To create an expanded button (full width of it's container), add the class `.expand` to the outer `<table>` of the button, and wrap a `<center>` tag around the `<a>`.
+To create an expanded button (full width of it's container), add the class `.expanded` to the outer `<table>` of the button, and wrap a `<center>` tag around the `<a>`.
-In Inky HTML, add the `.expand` class to the `<button>` tag.
+In Inky HTML, add the `.expanded` class to the `<button>` tag.
```inky_example
-<button href="zurb.com" class="expand">Expanded Button</button>
+<row>
+ <column>
+ <button href="zurb.com" class="expand">Expanded Button</button>
+ </column>
+</row>
```
---
}
}
-table.expand,
-table.expanded {
+table.button.expand,
+table.button.expanded {
width: 100% !important;
table {
a {
text-align: center;
+ width: 100%;
+ padding-left: 0;
+ padding-right: 0;
}
}
}
}
-
-// expanded buttons anchor width
-// @for $i from 1 through $grid-column-count {
-// td.large-#{$i} table.expand table a,
-// th.large-#{$i} table.expand table a,
-// td.large-#{$i} table.expanded table a,
-// th.large-#{$i} table.expanded table a {
-// width: -zf-grid-calc-px($i, $grid-column-count, $global-width) !important;
-// }
-// }
-
-
-
table.button:hover,
table.button:visited,
table.button:active {
table.menu[align="center"] {
width: auto !important;
}
-
-// Rules for the Center Tag
- // @for $i from 1 through ($grid-column-count - 1 ) {
- // .body .columns td.small-#{$i},
- // .body .column td.small-#{$i},
- // td.small-#{$i} center,
-
- // .body .columns th.small-#{$i},
- // .body .column th.small-#{$i},
- // th.small-#{$i} center {
- // display: inline-block !important;
- // width: -zf-grid-calc-pct($i, $grid-column-count) !important;
- // }
- // }
-
- // expanded buttons anchor width
- @for $i from 1 through $grid-column-count {
- td.small-#{$i} table.expand table a,
- th.small-#{$i} table.expand table a,
- td.small-#{$i} table.expanded table a,
- th.small-#{$i} table.expanded table a {
- width: -zf-grid-calc-pct($i, $grid-column-count) !important;
- }
- }
}
<p>on small, should work the same</p>
<row>
<columns small="12" large="6">
- <button href="#" class="expand">button</button>
+ <button href="#" class="expanded">button</button>
</columns>
<columns small="12" large="6">
- <button href="#" class="expand">example text 2</button>
+ <button href="#" class="expanded">example text 2</button>
</columns>
</row>
<row>
<columns small="6" large="6">
- <button href="#" class="expand">button</button>
+ <button href="#" class="expanded">button</button>
</columns>
<columns small="6" large="6">
- <button href="#" class="expand">example text 2</button>
+ <button href="#" class="expanded">example text 2</button>
</columns>
</row>
<row>
<columns small="12" large="3">
- <button href="#" class="expand">button</button>
+ <button href="#" class="expanded">button</button>
</columns>
<columns small="12" large="9">
- <button href="#" class="expand">example text 2</button>
+ <button href="#" class="expanded">example text 2</button>
</columns>
</row>
<row>
<columns small="12" large="4">
- <button href="#" class="expand">button</button>
+ <button href="#" class="expanded">button</button>
</columns>
<columns small="12" large="8">
- <button href="#" class="expand">example text 2</button>
+ <button href="#" class="expanded">example text 2</button>
</columns>
</row>
<row>
<columns small="4" large="4">
- <button href="#" class="small expand">button</button>
+ <button href="#" class="small expanded">button</button>
</columns>
<columns small="6" large="8">
- <button href="#" class="small expand">example text 2</button>
+ <button href="#" class="small expanded">example text 2</button>
</columns>
</row>
<row>
<columns large="6">
<h5>Connect With Us:</h5>
- <button class="facebook expand" href="http://zurb.com">Facebook</button>
- <button class="twitter expand" href="http://zurb.com">Twitter</button>
- <button class="google expand" href="http://zurb.com">Google+</button>
+ <button class="facebook expanded" href="http://zurb.com">Facebook</button>
+ <button class="twitter expanded" href="http://zurb.com">Twitter</button>
+ <button class="google expanded" href="http://zurb.com">Google+</button>
</columns>
<columns large="6">
<h5>Contact Info:</h5>