Skip to content

Commit

Permalink
Merge pull request zurb#269 from zurb/exports-mixin
Browse files Browse the repository at this point in the history
Refactor of exports mixin
  • Loading branch information
gakimball committed Dec 19, 2014
2 parents 7549afa + b098f89 commit c1b2d4b
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 521 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ bower_components/*
node_modules/
npm-debug.log
/dist/*
/.sass-cache/*
.sass-cache/
/build/*
/tests/unit/scss/*.css*
/tests/unit/scss/*.css
4 changes: 0 additions & 4 deletions docs/assets/scss/app.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// CUSTOMIZE FOUNDATION
// Customize all settings and stuff here. Yay!
@import "settings";

// FOUNDATION
// The core of the framework. Woo!
@import "foundation";
Expand Down
10 changes: 6 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ gulp.task('sass', ['settings'], function() {
style: 'nested',
bundleExec: true
})
.on('error', function(e) {
console.log(e);
.on('error', function(err) {
console.log(err.message);
})
.pipe(autoprefixer({
browsers: ['last 2 versions', 'ie 10']
Expand Down Expand Up @@ -247,8 +247,10 @@ gulp.task('sass:test', function() {
loadPath: ['scss', 'docs/assets/scss', 'bower_components/bootcamp/dist'],
style: 'nested',
bundleExec: true
})
.pipe(gulp.dest('tests/unit/scss'));
})
.on('data', function(data) {
console.log(data.contents.toString());
});
});

gulp.task('test', ['karma:test', 'sass:test'], function() {
Expand Down
3 changes: 1 addition & 2 deletions scss/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ $foundation-colors: (
dark: $dark-color,
);

@include exports("global") {
@include exports(global) {
// Make extra sure we're using the whole window
html, body {
height: 100%;
font-size: $base-font-size;
}

// Set box-sizing globally to handle padding and border widths
html {
box-sizing: border-box;
Expand Down
50 changes: 0 additions & 50 deletions scss/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,56 +29,6 @@
// 23. Switch
// 24. Tabs
// 25. Title Bar
// 1. CSS Exports
// 2. Global Styles
// 3. Breakpoints
// 4. Typography
// 5. Grid
// 6. Accordion
// 7. Action Sheet
// 8. Block List
// 9. Button Group
// 10. Button
// 11. Card
// 12. Extras
// 13. Forms
// 14. Iconic
// 15. Label
// 16. Menu Bar
// 17. Modal
// 18. Motion UI
// 19. Notification
// 20. Off-canvas
// 21. Panel
// 22. Popup
// 23. Switch
// 24. Tabs
// 25. Title Bar
// 1. CSS Exports
// 2. Global Styles
// 3. Breakpoints
// 4. Typography
// 5. Grid
// 6. Accordion
// 7. Action Sheet
// 8. Block List
// 9. Button Group
// 10. Button
// 11. Card
// 12. Extras
// 13. Forms
// 14. Iconic
// 15. Label
// 16. Menu Bar
// 17. Modal
// 18. Motion UI
// 19. Notification
// 20. Off-canvas
// 21. Panel
// 22. Popup
// 23. Switch
// 24. Tabs
// 25. Title Bar

// 1. CSS Exports
// - - - - - - - - - - - - - - -
Expand Down
Loading

0 comments on commit c1b2d4b

Please sign in to comment.