Skip to content

Commit

Permalink
Remove prefixes from the source code, but add autoprefixer to add the…
Browse files Browse the repository at this point in the history
…m back for the browsers we support
  • Loading branch information
julienw committed Nov 3, 2021
1 parent 710cbc7 commit d598ab1
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 16 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
current node
last 2 chrome versions
last 2 firefox versions
last 2 safari versions
1 change: 0 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"function-url-quotes": null,
"keyframes-name-pattern": null,
"length-zero-no-unit": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.1.2",
"alex": "^10.0.0",
"autoprefixer": "^10.4.0",
"babel-jest": "^27.3.1",
"babel-loader": "^8.2.3",
"babel-plugin-module-resolver": "^4.1.0",
Expand Down
4 changes: 1 addition & 3 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// @noflow
module.exports = {
plugins: {
cssnano: {},
},
plugins: [require('cssnano'), require('autoprefixer')],
};
2 changes: 0 additions & 2 deletions res/css/photon/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
position: relative;
padding: 0;
border: 1px solid var(--grey-90-a30);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: var(--grey-90-a10);
border-radius: 2px;
Expand Down
2 changes: 0 additions & 2 deletions res/css/photon/radio-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

.photon-radio {
border: 1px solid var(--grey-90-a30);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
background-color: var(--grey-90-a10);
Expand Down
1 change: 0 additions & 1 deletion src/components/app/TabBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
text-overflow: ellipsis;
transition: background-color 200ms, border-color 200ms;
transition-timing-function: var(--animation-timing);
-webkit-user-select: none;
user-select: none;
white-space: nowrap;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/js-tracer/Settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
height: 25px;
flex-flow: row nowrap;
align-items: center;
-webkit-user-select: none;
user-select: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/marker-table/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
flex: 1;
flex-flow: column nowrap;
cursor: default;
-webkit-user-select: none;
user-select: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/network-chart/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
flex: 1;
flex-flow: column nowrap;
cursor: default;
-webkit-user-select: none;
user-select: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/shared/ContextMenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
color: #000;
font-size: 12px;
text-align: left;
-webkit-user-select: none;
user-select: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/shared/FilterNavigatorBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
padding: 0;
margin: 0;
cursor: default;
-webkit-user-select: none;
user-select: none;

/* Note: no overflow: hidden so that we can see the exit animation for ranges */
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/TreeView.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
flex-flow: column nowrap;
border-top: 1px solid var(--grey-30);
cursor: default;
-webkit-user-select: none;
user-select: none;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/timeline/Ruler.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
font-size: 9px;
line-height: 20px;
list-style: none;
-webkit-user-select: none;
user-select: none;
}

Expand Down
48 changes: 48 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2519,6 +2519,18 @@ atob@^2.1.2:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

autoprefixer@^10.4.0:
version "10.4.0"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.0.tgz#c3577eb32a1079a440ec253e404eaf1eb21388c8"
integrity sha512-7FdJ1ONtwzV1G43GDD0kpVMn/qbiNqyOPMFTX5nRffI+7vgWoFEc6DcXOxHJxrWNDXrZh18eDsZjvZGUljSRGA==
dependencies:
browserslist "^4.17.5"
caniuse-lite "^1.0.30001272"
fraction.js "^4.1.1"
normalize-range "^0.1.2"
picocolors "^1.0.0"
postcss-value-parser "^4.1.0"

babel-eslint@^10.0.1:
version "10.1.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
Expand Down Expand Up @@ -2926,6 +2938,17 @@ browserslist@^4.0.0, browserslist@^4.16.0, browserslist@^4.16.6, browserslist@^4
node-releases "^1.1.77"
picocolors "^0.2.1"

browserslist@^4.17.5:
version "4.17.6"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.6.tgz#c76be33e7786b497f66cad25a73756c8b938985d"
integrity sha512-uPgz3vyRTlEiCv4ee9KlsKgo2V6qPk7Jsn0KAn2OBqbqKo3iNcPEC1Ti6J4dwnz+aIRfEEEuOzC9IBk8tXUomw==
dependencies:
caniuse-lite "^1.0.30001274"
electron-to-chromium "^1.3.886"
escalade "^3.1.1"
node-releases "^2.0.1"
picocolors "^1.0.0"

[email protected]:
version "2.1.1"
resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"
Expand Down Expand Up @@ -3183,6 +3206,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001264, caniuse-lite@^1.0.30001265:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001269.tgz#3a71bee03df627364418f9fd31adfc7aa1cc2d56"
integrity sha512-UOy8okEVs48MyHYgV+RdW1Oiudl1H6KolybD6ZquD0VcrPSgj25omXO1S7rDydjpqaISCwA8Pyx+jUQKZwWO5w==

caniuse-lite@^1.0.30001272, caniuse-lite@^1.0.30001274:
version "1.0.30001275"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001275.tgz#26f5076629fe4e52bbd245f9046ad7b90aafdf57"
integrity sha512-ihJVvj8RX0kn9GgP43HKhb5q9s2XQn4nEQhdldEJvZhCsuiB2XOq6fAMYQZaN6FPWfsr2qU0cdL0CSbETwbJAg==

ccount@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"
Expand Down Expand Up @@ -4706,6 +4734,11 @@ electron-to-chromium@^1.3.857:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.871.tgz#6e87365fd72037a6c898fb46050ad4be3ac9ef62"
integrity sha512-qcLvDUPf8DSIMWarHT2ptgcqrYg62n3vPA7vhrOF24d8UNzbUBaHu2CySiENR3nEDzYgaN60071t0F6KLYMQ7Q==

electron-to-chromium@^1.3.886:
version "1.3.887"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.887.tgz#b36aeed12a28aaa19460a467823f5bbe1f3c6f06"
integrity sha512-QQUumrEjFDKSVYVdaeBmFdyQGoaV+fCSMyWHvfx/u22bRHSTeBQYt6P4jMY+gFd4kgKB9nqk7RMtWkDB49OYPA==

elliptic@^6.0.0:
version "6.5.4"
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
Expand Down Expand Up @@ -5771,6 +5804,11 @@ forwarded@~0.1.2:
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84"
integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=

fraction.js@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.1.1.tgz#ac4e520473dae67012d618aab91eda09bcb400ff"
integrity sha512-MHOhvvxHTfRFpF1geTK9czMIZ6xclsEor2wkIGYYq+PxcQqT7vStJqjhe6S1TenZrMZzo+wlqOufBDVepUEgPg==

fragment-cache@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19"
Expand Down Expand Up @@ -9718,6 +9756,11 @@ node-releases@^1.1.77:
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.77.tgz#50b0cfede855dd374e7585bf228ff34e57c1c32e"
integrity sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==

node-releases@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5"
integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==

node-version-matches@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/node-version-matches/-/node-version-matches-2.0.1.tgz#9dde43d39c20d1068635b3cc01a8b460eb5ef533"
Expand Down Expand Up @@ -9764,6 +9807,11 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==

normalize-range@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=

normalize-selector@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/normalize-selector/-/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03"
Expand Down

0 comments on commit d598ab1

Please sign in to comment.