1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

browser classes

This commit is contained in:
Kyle Spearrin 2018-04-13 22:29:31 -04:00
parent 74dea938c8
commit 9d81843643
2 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,7 @@ function distFileName(browserName, ext) {
function dist(browserName, manifest) {
return gulp.src(paths.build + '**/*')
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.safari)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_' + browserName)))
.pipe(gulpif('manifest.json', jeditor(manifest)))
.pipe(zip(distFileName(browserName, 'zip')))
.pipe(gulp.dest(paths.dist));
@ -114,7 +114,7 @@ function edgeCopyBuild(source, dest) {
gulp.src(source)
.on('error', reject)
.pipe(filter(['**'].concat(filters.fonts).concat(filters.safari)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge')))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_edge')))
.pipe(gulpif('manifest.json', jeditor((manifest) => {
delete manifest.applications;
delete manifest.sidebar_action;
@ -167,7 +167,7 @@ function safariCopyBuild(source, dest) {
gulp.src(source)
.on('error', reject)
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.webExt)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'safari')))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_safari')))
.pipe(gulp.dest(dest))
.on('end', resolve);
});

View File

@ -1,8 +1,10 @@
@import "variables.scss";
@import "variables.scss";
/*
html.browser_firefox, html.browser_edge {
body {
width: 320px !important;
height: 568px !important;
}
}
*/