Skip to content

Commit

Permalink
fix floating element clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
herereadthis committed Jun 20, 2015
1 parent c8158cf commit 15dab93
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Expand Up @@ -220,7 +220,7 @@ module.exports = function (grunt) {
precision: 4
},
files: {
'<%= config.dist %>/css/main.sass-minified.css': '<%= config.src %>/sass/main.scss'
'<%= config.dist %>/css/main.sass-minified.css': '<%= config.src %>/sass/bellmaker.scss'
}
},
uncompressedSass: {
Expand All @@ -229,7 +229,7 @@ module.exports = function (grunt) {
precision: 4
},
files: {
'<%= config.dist %>/css/main.sass.css': '<%= config.src %>/sass/main.scss'
'<%= config.dist %>/css/main.sass.css': '<%= config.src %>/sass/bellmaker.scss'
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "bellmaker",
"version": "0.4.14",
"version": "0.4.15",
"authors": [
{
"name": "Jimmy Ha",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bellmaker",
"version": "0.4.14",
"version": "0.4.15",
"description": "Responsive CSS media query library for LESS and SASS, with device-agnostic and device-specific breakpoints",
"repository": {
"type": "git",
Expand Down
10 changes: 9 additions & 1 deletion src/less/page_layout.less
Expand Up @@ -3,7 +3,15 @@
.bellmaker_container {
margin-right: auto;
margin-left: auto;


// If the container contains floating elements, this ensures that the
// container will expand vertically to hold all elements.
&:after {
content: "";
float: none;
clear: both;
display: block;
}
@media @da_baseline {
width: @pw_baseline;
}
Expand Down
8 changes: 8 additions & 0 deletions src/sass/_page_layout.scss
Expand Up @@ -4,6 +4,14 @@
margin-right: auto;
margin-left: auto;

// If the container contains floating elements, this ensures that the
// container will expand vertically to hold all elements.
&:after {
content: "";
float: none;
clear: both;
display: block;
}
@media #{$da_baseline} {
width: $pw_baseline;
}
Expand Down

0 comments on commit 15dab93

Please sign in to comment.