Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce CSS size of bundles #11625

Merged
merged 8 commits into from Jun 2, 2023
Merged

Conversation

chadlwilson
Copy link
Member

@chadlwilson chadlwilson commented Jun 2, 2023

This is a follow-up to #11006 which made obvious the massive duplication we have in Sprockets/Rails-bundled css assets across SPAs, the main application.css and so-forth. This seems to be due to duplication imports of font-awesome CSS.

This PR

  • removes a whole lot more dead CSS
  • fixes the duplication so each CSS asset only includes font-awesome once. There may be other duplication in the spaghetti of SCSS trees where, but this should be a lot better.
  • cleans up the remaining admin > config XML editor (for both admins and pipeline group admins)

Hacky excludes is messy, better to opt in by duplicating the `@ExtendsWith` from the super-class
Makes it difficult to diff wars/zips with official ones
@chadlwilson chadlwilson force-pushed the slimmer-fonts branch 2 times, most recently from 61416b8 to 001d1dd Compare June 2, 2023 11:58
This is causing huge bloating of all sprockets asset pipelined CSS, because font-awesome-glyphs (which should really go away)
is being included in many places. Since this was also duplicating an inclusion of font-awesome and bourbon the CSS bloats massively
especially with the much larger number of icons in Font Awesome 6. We should rely on these imports having been done elsewhere if
the user wants to use font-awesome, this file is just some mix-ins to make glyphs easier to use.
No need to include tabs; these are just links anyway - so can simplify this all. Also corrects
somewhat the display for the group admin editing view which uses weird colours/buttons.
Clearfix mixin seems unnecessary, there is one from bourbon being used as well
@chadlwilson chadlwilson merged commit c22eea2 into gocd:master Jun 2, 2023
2 checks passed
@chadlwilson chadlwilson deleted the slimmer-fonts branch June 2, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant