Skip to content

Commit

Permalink
Merge pull request #33 from kni-labs/cover
Browse files Browse the repository at this point in the history
add cover
  • Loading branch information
dbox committed Jul 15, 2016
2 parents cd17d02 + bdd6842 commit a87fc04
Show file tree
Hide file tree
Showing 5 changed files with 1,636 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .hound.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .pages
Submodule .pages updated from a93633 to daff46
19 changes: 19 additions & 0 deletions knapsack/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@
}
}

//- Mixin: Cover
///
/// Useful shortcut for setting background size to cover
///
/// @param {variable} $x [center] - x position
/// @param {variable} $y [center] - y position
/// @group layout
/// @example
/// div.hero {
/// @include cover(top, center);
/// }

@mixin cover($x: center, $y: center) {
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: $x $y;
}
//- Mixin: Full Page
///
/// Create a responsive full page section with intelligent defaults.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knapsack",
"version": "1.0.0",
"version": "1.1.0",
"description": "A handy bag of sass utilities and mixins",
"main": "knapsack/_index.scss",
"repository": {
Expand Down

0 comments on commit a87fc04

Please sign in to comment.