Skip to content

Instantly share code, notes, and snippets.

@chrisjreber
Created October 10, 2017 15:41
Show Gist options
  • Save chrisjreber/f909e5a7d54dfe1959c8a44e5e2e4cce to your computer and use it in GitHub Desktop.
Save chrisjreber/f909e5a7d54dfe1959c8a44e5e2e4cce to your computer and use it in GitHub Desktop.
// Add to footer.php before </body> closing tag
<?php if(is_user_logged_in()):
?>
<!--
DeBugger - breakpoint indicator
Inspired by Darin @ Meta13
-->
<div class="breakpoint-indicator"></div>
<?php endif; ?>
// Add to footer.scss
// DeBugger - breakpoint indicator
// Inspired by Darin @ Meta13
// Adapted by Chris @ Meta13
.breakpoint-indicator {
background-color: #333;
color: #fff;
font-size: 14px;
line-height: 1;
padding: 4px;
position: fixed;
bottom: 0;
left: 0;
z-index: 1000;
&:after{
@include breakpoint(small only) {
content: 'small';
}
@include breakpoint(medium only) {
content: 'medium';
}
@include breakpoint(large only) {
content: 'large';
}
@include breakpoint(xlarge only) {
content: 'xlarge';
}
@include breakpoint(xxlarge only) {
content: 'xxlarge';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment