Fix gutless span/offset

This commit is contained in:
Vincent Fiduccia 2017-02-13 14:27:02 -07:00
parent 143fa0684e
commit c7fc9ff3c4
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@ RUN mkdir /source
WORKDIR /source
COPY package.json bower.json ./
COPY scripts ./scripts
RUN npm install && npm install -g bower && bower --allow-root install && npm cache clean && bower --allow-root cache clean
RUN npm install && npm install -g bower phantomjs && bower --allow-root install && npm cache clean && bower --allow-root cache clean
COPY . /source
RUN npm test
CMD ["npm","start","--","--ssl=false"]

View File

@ -44,7 +44,7 @@ $GUTTER: 1.5%;
.span-#{$span}#{$suffix} { width: decimal-round( (((100 - ($GUTTER * ($cols - 1))) / $cols) * $span) + (($span - 1) * $GUTTER) , 3, 'floor'); }
// Gutterless column
.gutless .span-#{$span}#{$suffix} { margin: 0; width: decimal-round( $span / $cols * 100%, 3, 'floor'); }
.gutless .span-#{$span}#{$suffix} { margin-left: 0; width: decimal-round( $span / $cols * 100%, 3, 'floor'); }
// Offsets
.offset-#{$span}#{$suffix} {
@ -52,7 +52,7 @@ $GUTTER: 1.5%;
}
// Gutterless offset
.gutless .offset-#{$span}#{$suffix} { margin: decimal-round( ($span/$cols*100%), 3, 'floor' ); }
.gutless .offset-#{$span}#{$suffix} { margin-left: decimal-round( ($span/$cols*100%), 3, 'floor' ); }
$span: $span - 1;
}