Skip to content

Commit

Permalink
Added classes to hide bg-ext classes at breakpoints. Removed redundan…
Browse files Browse the repository at this point in the history
…t custom settings file.
  • Loading branch information
Sam Willis committed Jun 12, 2017
1 parent 856d910 commit 836c689
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 143 deletions.
240 changes: 125 additions & 115 deletions dist/css/zebra.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/zebra.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/zebra.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/zebra.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zebra-scss",
"version": "6.0.3",
"version": "6.1.0",
"description": "A customizable CSS grid system based on the BEM methodology",
"author": "Sam Willis",
"scripts": {
Expand Down
11 changes: 0 additions & 11 deletions src/sass/_zebra-custom.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/sass/_zebra-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// NOTES:
// Do not make changes to this file, as they will be overwritten if you were to update Zebra.
// Any custom settings should be set in "_zebra-custom.scss"
// Any custom settings should be set in your projects own "_zebra-custom.scss"

/* NOTES END */

Expand Down
17 changes: 5 additions & 12 deletions src/sass/_zebra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
/* IMPORT SETTINGS */
/*******************/

// Import custom user settings
// This needs to be before the defaults are imported so that any undeclared custom settings will use the Zebra defaults instead
@import "zebra-custom";

// Import the default Zebra settings
@import "zebra-settings";

Expand Down Expand Up @@ -474,10 +470,6 @@
&--l, &--r {
position: relative;
}
}
}
&-ext {
&__#{nth($zeb-media-width-names, $i)} {
&--l {
position: relative;
background-position: left top;
Expand All @@ -492,10 +484,6 @@
background-position: right top;
}
}
}
}
&-ext {
&__#{nth($zeb-media-width-names, $i)} {
&--r {
position: relative;
background-position: right top;
Expand All @@ -510,6 +498,11 @@
background-position: left top;
}
}
&--none {
&:before, &:after {
display: none;
}
}
}
}
}
Expand Down

0 comments on commit 836c689

Please sign in to comment.