mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
browser classes
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
@import "variables.scss";
|
||||
@import "variables.scss";
|
||||
|
||||
/*
|
||||
html.browser_firefox, html.browser_edge {
|
||||
body {
|
||||
width: 320px !important;
|
||||
height: 568px !important;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user