The list is probably not complete but includes the most important changes.
Motivation
Migrating the WebUI from Bootstrap 3 to Bootstrap 5 to take advantage of new features.
Additional context
I already have opened a draft PR. I would say that once we have worked through the majority of the points, we should merge the draft PR to the bootstrap5 branch and move on to bug fixing and polishing.
Summary
The list is probably not complete but includes the most important changes.
Motivation
Migrating the WebUI from Bootstrap 3 to Bootstrap 5 to take advantage of new features.
Additional context
I already have opened a draft PR. I would say that once we have worked through the majority of the points, we should merge the draft PR to the bootstrap5 branch and move on to bug fixing and polishing.
Remove Dependencies
Include Dependencies
JQuery
$(window).load(function(){});
to$(window).on('load', function(){});
Bootstrap (Also check JS Files for HTML)
General
btn-default
tobtn-secondary
input-group-addon
toinput-group-text
label label-{color}
tobadge bg-{color} fs-5
help-block
totext-muted
col-{breakpoint}-offset-{size}
tooffset-{breakpoint}-{size}
<hr />
after</legend>
close
tobtn-close
pull-right
toms-auto
text-right
totext-end
text-right text-xs-left
totext-sm-end text-start
badge badge-{color}
tobadge bg-{color}
progress-bar-{color}
tobg-{color}
sr-only
tovisually-hidden
Panels / Cards
panel-default
panel-heading
tocard-header
panel-danger
tobg-danger text-white
panel
tocard
panel-body
tocard-body
Dropdowns
<span class="caret"></span>
from dropdownsdropdown-item
to dropdown items<li role="separator" class="divider"></li>
to<li><hr class="dropdown-divider"></li>
dropdown-desc
todropdown-header fs-6
Tabs
responsive-tabs hidden-xs
nav-item
to<li>
anddropdown-item
to childNavbar
navbar-default
tonavbar-expand-lg navbar-light bg-light
navbar-header
tonavbar-brand
nav
from<ul>
nav-item
to<li>
andnav-link [active]
to childnavbar-right
tod-flex
data attributes
data-toggle
todata-bs-toggle
data-target
todata-bs-target
data-dismiss
todata-bs-dismiss
Responsive changes
visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline
tod-block d-sm-inline
btn-xs
to mailcow.cssclearfix
classhidden-xs hidden-sm
tod-none d-md-{flex, inline, block}
hidden-md hidden-lg hidden-xl
tod-block d-md-none
hidden-xs
tod-none d-sm-{flex, inline, block}
visible-xs
tod-block d-sm-none
space20
tomb-4
col-xs-{size}
or change it tocol-{size}
Finalizing