Last active
February 21, 2018 23:25
-
-
Save andyford/2d8d75c4e19bdafe328bfc03536bde21 to your computer and use it in GitHub Desktop.
Breakpoint rainbows for Bootstrap (v4-alpha5) for glaringly obvious breakpoint debugging/development
This file contains hidden or 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
| // puts a little box in the bottom right instead of changing the body bg color | |
| body:after { | |
| content: 'xlg'; | |
| position: fixed; | |
| z-index: 99999; | |
| bottom: 0; | |
| right: 0; | |
| padding: 2px 5px; | |
| border: 1px solid; | |
| border-width: 1px 0 0 1px; | |
| font-size: 10px; | |
| color: #000; | |
| text-transform: uppercase; | |
| @include media-breakpoint-down(lg) { | |
| content: 'lg'; | |
| background: red; | |
| } | |
| @include media-breakpoint-down(md) { | |
| content: 'md'; | |
| background: orange; | |
| } | |
| @include media-breakpoint-down(sm) { | |
| content: 'sm'; | |
| background: yellow; | |
| } | |
| @include media-breakpoint-down(xs) { | |
| content: 'xs'; | |
| background: green; | |
| } | |
| } |
This file contains hidden or 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 { | |
| @include media-breakpoint-down(lg) { | |
| background: red; | |
| } | |
| @include media-breakpoint-down(md) { | |
| background: orange; | |
| } | |
| @include media-breakpoint-down(sm) { | |
| background: yellow; | |
| } | |
| @include media-breakpoint-down(xs) { | |
| background: green; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment