Skip to content

Commit

Permalink
Update pi-hole.css
Browse files Browse the repository at this point in the history
* format code
* use `background-color` instead of the `background` shorthand
* use the `animation` shorthand
* only transition opacity and transform in the chart tooltip
* add browserslist settings in package.json
* add prettier scripts for CSS and JS (JS is mainly for CI since xo handles this for us)

Signed-off-by: XhmikosR <[email protected]>
  • Loading branch information
XhmikosR committed Jan 3, 2020
1 parent 7d1e5eb commit 5180f42
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 138 deletions.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@
},
"homepage": "https://github.com/pi-hole/AdminLTE#readme",
"scripts": {
"prettier:check": "prettier -l \"style/*.css\" \"scripts/pi-hole/**/*.js\"",
"prettier:fix": "prettier --write \"style/*.css\" \"scripts/pi-hole/**/*.js\"",
"xo": "xo",
"xo:fix": "npm run xo -- --fix",
"test": "npm run xo"
"test": "npm run xo && npm run prettier:check"
},
"devDependencies": {
"prettier": "^1.19.1",
"xo": "^0.25.3"
},
"browserslist": [
"defaults",
"Explorer >= 9",
"not ExplorerMobile <= 11"
],
"prettier": {
"bracketSpacing": true,
"printWidth": 100,
Expand Down
Loading

0 comments on commit 5180f42

Please sign in to comment.