🎨 Rename flexible size class

This commit is contained in:
simurai
2015-01-31 11:05:00 +09:00
parent dc7bcfa8f2
commit efe2b5dcfc

View File

@@ -36,14 +36,17 @@
min-width: @size + @padding*2;
padding: @padding round(@padding*1.5);
}
.badge-size();
.badge-size(); // default
// Fixed size
&.badge-large { .badge-size(18px); }
&.badge-medium { .badge-size(14px); }
&.badge-small { .badge-size(10px); }
// TODO: un-dry this, no rouding of badge-size()
// adjusts to parent element, best used for larger sizes
&.badge-parent {
// Flexible size
// The size changes depending on the parent element
// Best used for larger sizes, since em's can cause rounding errors
&.badge-flexible {
@size: .8em;
@padding: @size/2;
font-size: @size;