Skip to content

Commit

Permalink
Removing Modernizr from build
Browse files Browse the repository at this point in the history
It isn't necessary for such a simple site that is aimed at developers. I don't need to support outdated browsers that don't support @supports
  • Loading branch information
Daniel Tonon committed Jan 8, 2018
1 parent ac3b85e commit 9debbb3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 42 deletions.
28 changes: 0 additions & 28 deletions gulp/tasks/modernizr.js

This file was deleted.

1 change: 0 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ gulp.task('compile', gulp.series(
'imagemin',
'sass',
'compile-tests',
'modernizr',
'browserify',
)
));
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"gulp-imagemin": "^4.0.0",
"gulp-jade": "^1.1.0",
"gulp-load-plugins": "^1.5.0",
"gulp-modernizr": "0.0.0",
"gulp-newer": "^1.3.0",
"gulp-notify": "^3.0.0",
"gulp-plumber": "^1.1.0",
Expand Down
4 changes: 0 additions & 4 deletions src/_modules/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@
display: none;
}
}

.no-flexbox & {
width: 780px;
}
}
2 changes: 2 additions & 0 deletions src/_scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import codeLineNumbers from '~on-page-load-js/codeLineNumbers';
import smoothAnchors from '~on-page-load-js/smoothAnchors';

$(() => {
$('html').removeClass('no-js').addClass('js');
codeLineNumbers();
smoothAnchors();
$('html').addClass('-jsLoaded');
});
8 changes: 0 additions & 8 deletions src/_styles/04-base-styles/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ a {
cursor: default;
pointer-events: none;
opacity: 0.2;

.no-csspointerevents & {
display: none;
}
}
}

Expand Down Expand Up @@ -199,10 +195,6 @@ pre {
padding: 10px 5px;
font-size: 1em;
}

.no-flexbox & {
max-width: 780px;
}
}

code {
Expand Down

0 comments on commit 9debbb3

Please sign in to comment.