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; }
.modal dialog {
float: left;
margin-right: 12px;
width: 49%; }
.modal dialog:last-child {
margin-right: auto; }
.modal dialog:only-child {
float: none; }
width: 50%; }
.modal dialog:not(:only-child) {
float: left;
display: block;
margin-right: 2.53165%;
width: 48.73418%; }
.modal dialog:not(:only-child):last-child {
margin-right: 0; }
.extension-file section:first-child {
/* Add a border equal to the number of featured extensions - 1 */

View file

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