Skip to content

Gut out all the unused bootstrap components #524

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

Merged
merged 8 commits into from
Dec 26, 2021
Merged

Gut out all the unused bootstrap components #524

merged 8 commits into from
Dec 26, 2021

Conversation

palewire
Copy link
Collaborator

@palewire palewire commented Dec 23, 2021

This patch removes unused bootstrap CSS. This will lighten the page by cutting out nearly 5,000 lines of code.

Everything related to the following has been cut. I suspect that more could be safely removed, but I figured lets get the bulk of this out of here first before we fine tune.

tables
inputs
.has-*
.help-block
.form-inline
.form-horizonal
.btn
.dropdown
.caret
.btn-group
.input-group
.nav-stacked
.nav-justified
.nav-tabs
.nav-pills
.navbar-form
.navbar-default
.navbar-inverse
.breadcrumb
.pagination
.pager
.label-*
.btn
.nav-pills
.thumbnail
.alert
.progress
.media
.list-group-*
.panel
.embed-responsive
.well
.modal
.tooltip
.popover
.carousel
.visible

@palewire palewire added this to the Streamline the site milestone Dec 24, 2021
@palewire
Copy link
Collaborator Author

I've now taken the additional step of segmenting the remaining bootstrap code into component-based subfiles, which should allow for easier streamlining and customization in the future. Glyphicons have also been removed.

@palewire palewire mentioned this pull request Dec 24, 2021
@choldgraf
Copy link
Collaborator

Could we document the decisions about how these files are structured and why some are included while others are not? Eg, is this since kind of "core bootstrap" CSS that is documented somewhere? Doesn't have to be a lot of text but enough to help somebody orient themselves is they were trying to understand what's going on

@palewire
Copy link
Collaborator Author

palewire commented Dec 25, 2021

Yes. I can add a little explanation. It's a pretty standard trim down thus. Nothing all that different than the custom compiles in newer versions that leave our components you don't want. But we might branch from that before too long. So it'll be good to get something in there.

@palewire
Copy link
Collaborator Author

@choldgraf I've added doc strings in assets/js/bootstrap.css and _sass/bootstrap/_index.scss. Have a look.

Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for adding the comments. Since this is a totally under-the-hood change let's merge it in. I suspect that somebody will notice once more 👀 are on it if something small has changed

Will leave this for a bit since it's a big-ish under the hood change, in case others object. If somebody else agrees though we should just merge it.

@palewire palewire merged commit e9a8ed1 into master Dec 26, 2021
@krassowski krassowski deleted the gut-bootstrap branch May 26, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants