Skip to content

Commit

Permalink
adds small-expanded css
Browse files Browse the repository at this point in the history
  • Loading branch information
RafiBomb committed Jun 8, 2016
1 parent 3ee7511 commit 92528bf
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
25 changes: 24 additions & 1 deletion scss/components/_media-query.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
display: inline-block !important;
}

&.vertical, &.small-vertical {
&.vertical,
&.small-vertical {
td,
th {
display: block !important;
Expand All @@ -113,5 +114,27 @@
table.menu[align="center"] {
width: auto !important;
}


// expands buttons for small only
table.button.small-expand,
table.button.small-expanded {
width: 100% !important;

table {
width: 100%;

a {
text-align: center !important;
width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
}

center {
min-width: 0;
}
}
}

18 changes: 18 additions & 0 deletions test/visual/pages/button-inky.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
}
</style>
<container>
<a href="https://litmus.com/checklist/emails/public/52b6fb8">Test Results - Passing 6/8/1016</a>
<row>
<columns small="12" large="12">
<center>
Expand Down Expand Up @@ -53,6 +54,23 @@
</row>
<row>
<columns small="12" large="12">
Expand small only with center tag
<center>
<button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
</center>
</columns>
</row>
<row>
<columns small="12" large="12">
Expand small only
<center>
<button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
</center>
</columns>
</row>
<row>
<columns small="12" large="12">
<center>
<button href="http://zurb.com" href="http://zurb.com" class="expand">I expand and have lots of text</button>
</columns>
</row>
Expand Down

0 comments on commit 92528bf

Please sign in to comment.