Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update spec and remove unused code

- Closes #142
  • Loading branch information...
commit 536ccff8275165b775bd4e827f0d310decea963b 1 parent df86ac0
@kaishin kaishin authored
View
7 app/assets/stylesheets/grid/_private.scss
@@ -41,10 +41,3 @@ $layout-direction: nil !default;
@return $display-table;
}
-
-@function get-padding-for-table-layout($columns, $total-columns) {
- $total-padding: flex-gutter($total-columns) * ($columns - 1);
- $padding: $total-padding / $columns;
-
- @return $padding;
-}
View
2  app/assets/stylesheets/grid/_span-columns.scss
@@ -11,9 +11,7 @@
$display-table: is-display-table($container-display-table, $display);
@if $display-table {
- $padding: get-padding-for-table-layout($columns, $container-columns);
display: table-cell;
- padding-#{$direction}: $padding;
width: percentage($columns / $container-columns);
} @else {
float: #{$opposite-direction};
View
4 spec/neat/columns_spec.rb
@@ -42,8 +42,8 @@
expect('.span-columns-table').to have_rule('display: table-cell')
end
- it "sets padding evenly between table cells" do
- expect('.span-columns-table').to have_rule('padding-right: 1.17883%')
+ it "sets width evenly between elements" do
+ expect('.span-columns-table').to have_rule('width: 50%')
end
end
View
2  test/span-columns.scss
@@ -9,7 +9,7 @@
}
.span-columns-table {
- @include span-columns(2, table);
+ @include span-columns(6, table);
}
.span-columns-collapse {
Please sign in to comment.
Something went wrong with that request. Please try again.