Skip to content

Instantly share code, notes, and snippets.

@carlin-q-scott
Last active June 3, 2020 21:31
Show Gist options
  • Save carlin-q-scott/c3c492370ff3247cba94f8d98085170f to your computer and use it in GitHub Desktop.
Save carlin-q-scott/c3c492370ff3247cba94f8d98085170f to your computer and use it in GitHub Desktop.
Bootstrap 3 to 4 conversions
Regular Expression
Replacement
col-(\w\w)-(pull|push)-(\d+)
order-$1-$3
col-(\w\w)-offset-(\d+)
offset-$1-$2
hidden-xs
d-none d-sm-block
hidden-sm
d-none d-md-block
hidden-md
d-none d-lg-block
visible-xs
d-sm-none
visible-sm
d-none d-sm-block d-md-none
visible-md
d-none d-md-block d-lg-none
visible-lg
d-none d-lg-block
d-sm-block d-md-none d-sm-none
d-md-none
d-none d-lg-block d-none d-md-block d-lg-none
d-none d-md-block
d-none d-md-block d-none d-sm-block
d-none d-sm-block d-lg-none
-xs
navbar-fixed-top
sticky-top
\bnavbar\b
navbar navbar-light
glyphicon glyphicon-
fa fa-
col-offset-(\d+)
offset-$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment