Be unnecessarily clever

This commit is contained in:
Ray Schamp 2015-08-06 19:57:24 -04:00
parent 15a0756608
commit e7ea7f8e3e
2 changed files with 12 additions and 15 deletions

View file

@ -1029,13 +1029,14 @@ body #home {
display: block; } display: block; }
.modal dialog { .modal dialog {
float: left; width: 50%; }
margin-right: 12px; .modal dialog:not(:only-child) {
width: 49%; } float: left;
.modal dialog:last-child { display: block;
margin-right: auto; } margin-right: 2.53165%;
.modal dialog:only-child { width: 48.73418%; }
float: none; } .modal dialog:not(:only-child):last-child {
margin-right: 0; }
.extension-file section:first-child { .extension-file section:first-child {
/* Add a border equal to the number of featured extensions - 1 */ /* Add a border equal to the number of featured extensions - 1 */

View file

@ -63,17 +63,13 @@ body {
.modal dialog { .modal dialog {
float: left;
margin-right: $gutter;
width: 49%;
&:last-child { width: 50%;
margin-right: auto;
&:not(:only-child) {
@include span-columns(3 of 6);
} }
&:only-child {
float: none;
}
} }