Skip to content

Commit

Permalink
Complete lesson 13
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyDippy committed May 13, 2019
1 parent bef0999 commit 17135a4
Show file tree
Hide file tree
Showing 6 changed files with 3,718 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 13 - autoprefixer/build/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.container {
display:flex;
flex-direction:column;
align-content:center;
justify-content:center;
}

.box1 {
flex:10 5 450px;
}

.box2 {
flex:1 1 360px;
}

15 changes: 15 additions & 0 deletions 13 - autoprefixer/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.container {
display:flex;
flex-direction:column;
align-content:center;
justify-content:center;
}

.box1 {
flex:10 5 450px;
}

.box2 {
flex:1 1 360px;
}

17 changes: 17 additions & 0 deletions 13 - autoprefixer/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');

// problems switching from gulp3 to gulp4

// added async to make task run from terminal
// autoprefixer still not working correctly
gulp.task('styles', async function () {
gulp.src('css/styles.css')
.pipe(autoprefixer())
.pipe(gulp.dest('build'));
})

// not working at all
gulp.task('watch', function () {
gulp.watch('css/styles.css', ['styles']);
})
11 changes: 11 additions & 0 deletions 13 - autoprefixer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AutoPrefixer Example</title>
<link rel="stylesheet" href="build/styles.css">
</head>
<body>

</body>
</html>
Loading

0 comments on commit 17135a4

Please sign in to comment.