Skip to content

Commit

Permalink
Fixes #3378 - IE 11 fixes and old form files clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ksy36 committed Jul 10, 2020
1 parent fbaba42 commit d371ec5
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 2,462 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
Expand All @@ -7,7 +8,9 @@
"modules": false,
"targets": {
"esmodules": true
}
},
"corejs": "3",
"useBuiltIns": "usage"
}
]
]
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"dependencies": {
"amd-to-commonjs-codemod": "^1.2.0",
"core-js": "^3.6.5",
"cssrecipes-custom-media-queries": "0.3.0",
"cssrecipes-defaults": "^0.5.0",
"cssrecipes-grid": "^1.0.0",
Expand Down Expand Up @@ -42,8 +43,10 @@
"lint-staged": "^10.0.8",
"mini-css-extract-plugin": "^0.9.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^8.0.0",
"prettier": "2.0.5",
"sinon": "^9.0.1",
"stylelint": "^13.1.0",
Expand All @@ -64,10 +67,10 @@
"build:svg:svg-sprite": "svg-sprite-generate -d ./webcompat/static/img/svg/tmp -o ./webcompat/static/img/svg/sprite.svg",
"lint": "npm run lint:js && npm run lint:css && npm run lint:python",
"lint:python": "pycodestyle --ignore=E402,W504 webcompat/ tests/ config/",
"lint:js": "npx eslint ./webpack ./tests ./webcompat/static/js/lib",
"lint:js": "npx eslint ./webpack ./tests ./webcompat/static/js/lib postcss.config.js",
"lint:css": "npx stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css'",
"lint:fix": "npm run lint:fix:js && npm run lint:fix:css",
"lint:fix:js": "npx eslint --fix ./webpack ./tests ./webcompat/static/js/lib",
"lint:fix:js": "npx eslint --fix ./webpack ./tests ./webcompat/static/js/lib postcss.config.js",
"lint:fix:css": "npx stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css' --fix",
"prestart": "npm run build",
"start": "source env/bin/activate || . env/bin/activate && flask run",
Expand All @@ -90,7 +93,7 @@
},
"lint-staged": {
"*.js": [
"npx eslint ./webpack ./tests ./webcompat/static/js/lib",
"npx eslint ./webpack ./tests ./webcompat/static/js/lib postcss.config.js",
"git add"
],
"*.css": [
Expand Down
9 changes: 9 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
plugins: [
require("postcss-import"),
require("postcss-url"),
require("postcss-preset-env")({
browsers: ["defaults", "Firefox > 52", "Safari >=9", "Chrome >=75"],
}),
],
};
2 changes: 2 additions & 0 deletions webcompat/static/css/src/issue-wizard.css
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,10 @@
}

.protruding-img {
left: 50%;
position: absolute;
top: -30px;
transform: translate(-50%, 0);
}

.step-container.step-url {
Expand Down
1 change: 1 addition & 0 deletions webcompat/static/css/src/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

.nav-item .nav-link {
display: inline-block;
height: 42px;
padding: 5px;
text-decoration: none;
}
Expand Down
52 changes: 0 additions & 52 deletions webcompat/static/js/lib/bugform-prefill.js

This file was deleted.

52 changes: 0 additions & 52 deletions webcompat/static/js/lib/bugform-validation.js

This file was deleted.

Loading

0 comments on commit d371ec5

Please sign in to comment.