Last active
December 4, 2017 07:01
-
-
Save isthatcentered/9e240423bcffd27ce21eb9f550a62875 to your computer and use it in GitHub Desktop.
Bootstrap 4 breakpoint checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body:after { | |
content: 'xs'; | |
display: block; | |
padding: 5px 10px; | |
position: fixed; | |
z-index: 9999; | |
right: 0; | |
top: 0; | |
color: black; | |
background: lightgray; | |
} | |
@include media-breakpoint-up(sm) { | |
body:after { | |
content: 'sm'; | |
background: hotpink; | |
} | |
} | |
@include media-breakpoint-up(md) { | |
body:after { | |
content: 'md'; | |
background: purple; | |
} | |
} | |
@include media-breakpoint-up(lg) { | |
body:after { | |
content: 'lg'; | |
background: greenyellow; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment