Skip to content

Commit

Permalink
Add styles for code mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Jun 26, 2016
1 parent faa296a commit ca20dae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import devConfig from './webpack/dev.config';
import prodConfig from './webpack/prod.config';
import wrapConfig from './webpack/wrap.config';

function copy(dest) {
gulp.src('./src/assets/**/*').pipe(gulp.dest(dest));
gulp.src('./node_modules/codemirror/lib/codemirror.css').pipe(gulp.dest(`${dest}/css`));
gulp.src('./node_modules/codemirror/theme/night.css').pipe(gulp.dest(`${dest}/css`));
}

/*
* common tasks
*/
Expand Down Expand Up @@ -49,7 +55,7 @@ gulp.task('copy:dev', () => {
gulp.src('./src/browser/extension/manifest.json')
.pipe(rename('manifest.json'))
.pipe(gulp.dest('./dev'));
gulp.src('./src/assets/**/*').pipe(gulp.dest('./dev'));
copy('./dev');
});

/*
Expand Down Expand Up @@ -83,7 +89,7 @@ gulp.task('copy:build:extension', () => {
gulp.src('./src/browser/extension/manifest.json')
.pipe(rename('manifest.json'))
.pipe(gulp.dest('./build/extension'));
gulp.src('./src/assets/**/*').pipe(gulp.dest('./build/extension'));
copy('./dev');
});

gulp.task('copy:build:firefox', ['build:extension'], () => {
Expand All @@ -92,6 +98,7 @@ gulp.task('copy:build:firefox', ['build:extension'], () => {
gulp.src('./src/browser/firefox/manifest.json')
.pipe(gulp.dest('./build/firefox'));
});
copy('./dev');
});

/*
Expand Down
9 changes: 9 additions & 0 deletions src/browser/views/includes/style.jade
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ style.
#root > div {
height: 100%;
}
.ReactCodeMirror {
overflow: auto;
height: 100%;
}
.CodeMirror {
height: 100% !important;
}
link(href='/css/codemirror.css', rel="stylesheet")
link(href='/css/night.css', rel="stylesheet")

0 comments on commit ca20dae

Please sign in to comment.