Skip to content

Commit 92528bf

Browse files
author
RafiBomb
committed
adds small-expanded css
1 parent 3ee7511 commit 92528bf

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

scss/components/_media-query.scss

+24-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
display: inline-block !important;
102102
}
103103

104-
&.vertical, &.small-vertical {
104+
&.vertical,
105+
&.small-vertical {
105106
td,
106107
th {
107108
display: block !important;
@@ -113,5 +114,27 @@
113114
table.menu[align="center"] {
114115
width: auto !important;
115116
}
117+
118+
119+
// expands buttons for small only
120+
table.button.small-expand,
121+
table.button.small-expanded {
122+
width: 100% !important;
123+
124+
table {
125+
width: 100%;
126+
127+
a {
128+
text-align: center !important;
129+
width: 100% !important;
130+
padding-left: 0 !important;
131+
padding-right: 0 !important;
132+
}
133+
}
134+
135+
center {
136+
min-width: 0;
137+
}
138+
}
116139
}
117140

test/visual/pages/button-inky.html

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
}
55
</style>
66
<container>
7+
<a href="https://litmus.com/checklist/emails/public/52b6fb8">Test Results - Passing 6/8/1016</a>
78
<row>
89
<columns small="12" large="12">
910
<center>
@@ -53,6 +54,23 @@
5354
</row>
5455
<row>
5556
<columns small="12" large="12">
57+
Expand small only with center tag
58+
<center>
59+
<button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
60+
</center>
61+
</columns>
62+
</row>
63+
<row>
64+
<columns small="12" large="12">
65+
Expand small only
66+
<center>
67+
<button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
68+
</center>
69+
</columns>
70+
</row>
71+
<row>
72+
<columns small="12" large="12">
73+
<center>
5674
<button href="http://zurb.com" href="http://zurb.com" class="expand">I expand and have lots of text</button>
5775
</columns>
5876
</row>

0 commit comments

Comments
 (0)