Please note
This instruction present migration path for Inspinia HTML5 project.
In any step of migration you need to have in mind your own changes in theme. We don't know how your project look like and what custom code you have,
so please keep that in mind that we can only provide migration for Inspinia code, not for custom code.
This instruction was created based on clear Inspinia 2.7.1 project.
Please also note that migration to BS4 is not an easy task and take some time. It require some global find and replace as well as some local replace and upgrades. If you will have any problems do not hesitate and contact with us.
This migration is created only for basic Left to Right orientation. There is no support for RTL layout yet.
If you find any issue or bug in the migration or in the new version, please send instruction how to reproduce it on support@webapplayers.com.
Replace all bootstrap resource:
Replace all Inspinia resource:
Bootstrap 4 require https://popper.js.org/ library. Add new popper.min.js file to your js folder.
You need to also include the popper.min.js file in your html script section before bootstrap:
<script src="js/popper.min.js"></script>
.dl-horizontal
has been dropped. Instead, use .row
on <dl>
and use grid column classes (or mixins) on its <dt>
and <dd>
children..list-inline
now requires that its children list items have the new .list-inline-item
class applied to them..page-header
as, aside from the border, all its styles can be applied via utilities..img-responsive
to .img-fluid
..img-rounded
to .rounded
.img-circle
to .rounded-circle
.table-responsive
right on the <table>
..table-condensed
to .table-sm
for consistency..control-label
to .col-form-label
..input-lg
and .input-sm
to .form-control-lg
and .form-control-sm
, respectively..form-group-*
classes for simplicity’s sake. Use .form-control-*
classes instead now..help-block
and replaced it with .form-text
for block-level help text. For inline help text and other flexible options, use utility classes like .text-muted
..radio-inline
and .checkbox-inline
..checkbox
and .radio
into .form-check
and the various .form-check-*
classes..form-horizontal
class requirement..form-group
no longer applies styles from the .row
via mixin, so .row
is now required for horizontal grid layouts (e.g., <div class="form-group row">
)..has-error
, .has-warning
, and .has-success
classes with HTML5 form validation via CSS’s :invalid
and :valid
pseudo-classes..form-control-static
to .form-control-plaintext
..btn-default
to .btn-secondary
. (Inspinia left btn-default class).btn-xs
class entirely as .btn-sm
is proportionally much smaller than v3’s. (Inspinia left btn-xs class).btn-group-justified
. As a replacement you can use <div class="btn-group d-flex" role="group"></div>
as a wrapper around elements with .w-100
.<div>
s or <ul>
s now.<a>
and <button>
based dropdown items..divider
to .dropdown-divider
..dropdown-item
.<span class="caret"></span>
; this is now provided automatically via CSS’s ::after
on .dropdown-toggle
.576px
grid breakpoint as sm
, meaning there are now five total tiers (xs
, sm
, md
, lg
, and xl
)..col-{breakpoint}-{modifier}-{size}
to .{modifier}-{breakpoint}-{size}
for simpler grid classes.order
classes. For example, instead of .col-8.push-4
and .col-4.pull-8
, you’d use .col-8.order-2
and .col-4.order-1
.sm
grid tier below 768px
for more granular control. We now have xs
, sm
, md
, lg
, and xl
. This also means every tier has been bumped up one level (so .col-md-6
in v3 is now .col-lg-6
in v4).xs
grid classes have been modified to not require the infix to more accurately represent that they start applying styles at min-width: 0
and not a set pixel value. Instead of .col-xs-6
, it’s now .col-6
. All other grid tiers require the infix (e.g., sm
).a.list-group-item
with an explicit class, .list-group-item-action
, for styling link and button versions of list group items.remote
option (which could be used to automatically load and inject external content into a modal) and the corresponding loaded.bs.modal
event were removed. We recommend instead using client-side templating or a data binding framework, or calling jQuery.load yourself.>
selectors for simpler styling via un-nested classes..nav > li > a
, we use separate classes for .nav
s, .nav-item
s, and .nav-link
s. This makes your HTML more flexible while bringing along increased extensibility..navbar-toggle
is now .navbar-toggler
and has different styles and inner markup (no more three <span>
s)..navbar-form
class entirely. It’s no longer necessary; instead, just use .form-inline
and apply margin utilities as necessary.margin-bottom
or border-radius
by default. Use utilities as necessary..page-item
, .page-link
) are now required on the descendants of .pagination
s.pager
component entirely as it was little more than customized outline buttons..breadcrumb-item
, is now required on the descendants of .breadcrumb
s.label
and .badge
to disambiguate from the <label>
element and simplify related components..badge-default
has been dropped and .badge-secondary
added to match component modifier classes used elsewhere..ibox
So all Inspinia panels have not been changed. We also left basic support for old panels components. Additional you have new card components form BS4.
<a>
element by adding .nav-link
class.
.active
from <li>
to <a>
element.
.progress-bar-*
classes with .bg-*
utilities. For example, class="progress-bar progress-bar-danger"
becomes class="progress-bar bg-danger"
..active
for animated progress bars with .progress-bar-animated
..carousel-
.
.next
, .prev
, .left
, and .right
are now .carousel-item-next
, .carousel-item-prev
, .carousel-item-left
, and .carousel-item-right
..item
is also now .carousel-item
..carousel-control.right
and .carousel-control.left
are now .carousel-control-next
and .carousel-control-prev
, meaning they no longer require a specific base class..d-none
and d-{sm,md,lg,xl}-none
)..hidden-*
utilities for new display utilities. For example, instead of .hidden-sm-up
, use .d-sm-none
. Renamed the .hidden-print
utilities to use the display utility naming scheme. More info under the Responsive utilities section of this page..float-{sm,md,lg,xl}-{left,right,none}
classes for responsive floats and removed .pull-left
and .pull-right
since they’re redundant to .float-left
and .float-right
..text-{sm,md,lg,xl}-{left,center,right}
..center-block
for the new .mx-auto
class.<a>
elements)..float-e-margins
class in theme. It was only needed in buttons example page..footer
position and place place at the end of #page-wrapper
in several views