forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove Deprecated Bourbon/Neat from CSS stack (pypi#17160)
* feat(css): create and use our own grid-container Bourbon's Neat has been deprecated and unmaintained since October 2019. The usage of Bourbon's `@span-columns` which uses the underlying functionality from Neat is only used in a couple of places - specifically the project description page, and the recovery codes pages. With CSS Grid being widely available, convert usages to create a `grid-container` mixin to set the column count and desired spacing. Removing `neat` from the build artifact reduces ~12KB from the bundle. Refs: thoughtbot/neat@6c76100 Refs: thoughtbot/neat.bourbon.io@fee0b05 Refs: https://developer.mozilla.org/en-US/docs/Web/CSS/grid Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): replace vendored bourbon with package The differences are minimal, and this sets an upgrade path to get us on track for potential upgrades and removal. After installing, using a creative `diff` command: diff --ignore-blank-lines --strip-trailing-cr \ <(find warehouse/static/sass/tools/bourbon/ -type f -exec sed '/\/\*!/,/\*\//d' {} +) \ <(find node_modules/bourbon/app/assets/stylesheets/ -type f -exec cat {} +) The only differences found are: - a header when vendored back in 5db8496 - license headers added in 9370bc5 - spelling fixes in 13c5a7c - sass warning fixes in a0f3817 Commits following this one will remove the vendored code, and start upgrades to get us updated, and see about other removals. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore: remove vendored bourbon Expect Dart Sass warnings to be emitted, as our custom updates have been reverted. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps) update to bourbon 4.2.7 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): update bourbon to 4.3.4 Last before 5.x release, emits deprecation warnings. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * refactor: address bourbon deprecation warnings Many of these are being replaced by native CSS functions available at this time. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): update bourbon to 5.0.0 Changes the import path slightly, no other changes. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): update bourbon to 6.0.0 Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): update bourbon to 7.3.0 This is the final release of bourbon, after which we likely want to replace any usage with native CSS. Refs: https://thoughtbot.com/blog/you-might-not-need-bourbon Signed-off-by: Mike Fiedler <miketheman@gmail.com> * refactor(css): selector input variable replacement The `all-text-inputs*` selector macro from Bourbon does some nice stuff, replace it with native CSS behavior. - A better selector that can be overridden more specifically with `:where` - A mixin for the active/hover styles - Collapse duplicated selectors Signed-off-by: Mike Fiedler <miketheman@gmail.com> * refactor(css): replace mixin with native margin Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(css): vendor `clearfix` from bourbon It's small enough to vendor safely, until all usages have been reviewed and updated with better layouts. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(css): remove redundant border property The `card` mixin is already setting the border width properties for tables. Signed-off-by: Mike Fiedler <miketheman@gmail.com> * refactor(css): replace mixin with native properties Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore(deps): remove bourbon Good-night, sweet prince. Signed-off-by: Mike Fiedler <miketheman@gmail.com> --------- Signed-off-by: Mike Fiedler <miketheman@gmail.com>
- Loading branch information
1 parent
630e971
commit eb6e6ad
Showing
114 changed files
with
105 additions
and
5,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.