Skip to content

Commit

Permalink
Inner Fully functional
Browse files Browse the repository at this point in the history
  • Loading branch information
mads-thines committed Apr 18, 2017
1 parent fe732c4 commit 474d583
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-mixins",
"version": "1.0.21",
"version": "1.1.0",
"description": "Adapt Frontend Development Tools",
"author": "Adapt",
"main": "src/mixins/mixins.scss",
Expand Down
18 changes: 9 additions & 9 deletions src/mixins/_inner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@

@mixin inner(
$padding: 20px,
$padding-large: 0,
$padding-medium: 0,
$padding-small: 0) {
$padding-large: null,
$padding-medium: null,
$padding-small: null) {

max-width: $max-width;
margin-left: auto;
margin-right: auto;

@if $padding > 0 or
$padding-large > 0 or
$padding-medium > 0 or
$padding-small > 0 {
$padding-large != null or
$padding-medium != null or
$padding-small != null {
padding-left: $padding;
padding-right: $padding;

@if $padding-large > 0 {
@if $padding-large != null {
@include media($large down) {
padding-left: $padding-large;
padding-right: $padding-large;
}
}

@if $padding-medium > 0 {
@if $padding-medium != null {
@include media($medium down) {
padding-left: $padding-medium;
padding-right: $padding-medium;
}
}

@if $padding-small > 0 {
@if $padding-small != null {
@include media($small down) {
padding-left: $padding-small;
padding-right: $padding-small;
Expand Down

0 comments on commit 474d583

Please sign in to comment.