Skip to content

Commit

Permalink
Svgo icons cleanup (#4285)
Browse files Browse the repository at this point in the history
* Fix missing space in SVG

* Cleanup SVG icons with a custom SVGO config

- use 'preset-default' as base config
- use 'sortAttrs' to beautify SVG
- use 'removeDimensions' to make SVG responsive

* Set width on Statamic logo

Co-authored-by: jimblue <[email protected]>
Co-authored-by: Jack McDade <[email protected]>
  • Loading branch information
3 people authored Sep 19, 2021
1 parent 887b9bd commit 8ad6f26
Show file tree
Hide file tree
Showing 183 changed files with 19,014 additions and 544 deletions.
19,119 changes: 18,820 additions & 299 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"hot": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"svgo": "svgo -f ./resources/svg/ -r",
"test": "cross-env NODE_ENV=test jest",
"test-watch": "npm run test -- --watch --notify"
},
Expand Down Expand Up @@ -48,6 +49,7 @@
"resize-observer-polyfill": "^1.5.1",
"speakingurl": "^14.0.1",
"striptags": "^3.2.0",
"svgo": "^2.6.1",
"sweetalert": "~1.0.1",
"tiptap-extensions": "^1.28.6",
"underscore": "~1.9.2",
Expand Down
2 changes: 1 addition & 1 deletion resources/svg/add-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions resources/svg/add-col-after.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions resources/svg/add-col-before.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions resources/svg/add-row-after.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions resources/svg/add-row-before.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions resources/svg/add-table.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/addons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/alert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/angle-brackets-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/angle-brackets-dots-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/angle-brackets-dots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8ad6f26

Please sign in to comment.