Skip to content

Commit

Permalink
dats betters
Browse files Browse the repository at this point in the history
  • Loading branch information
kalepail committed Aug 6, 2015
1 parent 384ebdc commit 26580b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 96 deletions.
95 changes: 0 additions & 95 deletions dev/sass/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,100 +4,5 @@
}
body {
font-family: $sans;
background-color: $black;
color: $black;
}
h1 {
font-family: $serif;
font-weight: 600;
}
a {
text-decoration: none;
color: $black;
}

// Header and footer
header, footer {
background-color: $white;
height: 4rem;
width: 100%;
padding: 0 3rem;
display: flex;
justify-content: space-between;

.left, .right {
display: flex;
align-items: center;
}
.left {
position: relative;

&:hover {
background-color: rgba($black, 0.1);
}
a {
width: 4rem;
height: 4rem;
background: url('../img/logo.svg') no-repeat center;
background-size: 50%;

&:after {
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
}
h1 {
font-weight: 700;
font-size: 1.2em;
padding-right: 0.6em;
}
}
.right {
text-transform: uppercase;
font-weight: 600;

a {
padding: 0 0.6em;
line-height: 4rem;

&:hover {
background-color: rgba($black, 0.1);
}
}
}
}
footer {
height: 5rem;
border-top: 1px solid rgba($black, 0.1);

.left, .right a {
line-height: 5rem;
}
}

// Content section
section {

}
.top {
padding: 3rem;

h1 {
font-size: 20em;
color: $brown;
}
}
.middle {
padding: 3rem;
background-color: $white;

h1 {
font-size: 20em;
padding: 3rem 0;
color: $red;
}
}
11 changes: 10 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ gulp.task('css', function() {
return gulp.src('dev/sass/application.scss')
.pipe(globbing({extensions: '.scss'}))
.pipe(sass())
.on('error', handleError)
.pipe(cmq()) // combine all @media queries into the page base
.pipe(autoprefixer({cascade: false})) // auto prefix
.pipe(minifycss()) // minify everything
Expand All @@ -27,6 +28,7 @@ gulp.task('js', function() {
return gulp.src('dev/js/**/*.js')
.pipe(newer('public/js'))
.pipe(uglify())
.on('error', handleError)
.pipe(gulp.dest('public/js'));
});

Expand All @@ -43,6 +45,7 @@ gulp.task('img', function() {
removeViewBox: false
}]
}))
.on('error', handleError)
.pipe(gulp.dest('public/img'));
});

Expand All @@ -64,4 +67,10 @@ gulp.task('watch', ['start'], function() {
});

// Default function
gulp.task('default', ['watch']);
gulp.task('default', ['watch']);

// Error reporting function
function handleError(err) {
console.log(err.toString());
this.emit('end');
}

0 comments on commit 26580b9

Please sign in to comment.