Skip to content

Instantly share code, notes, and snippets.

@cebe
Created June 3, 2019 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cebe/66c16490f648ef4a56a4f8be599d5432 to your computer and use it in GitHub Desktop.
Save cebe/66c16490f648ef4a56a4f8be599d5432 to your computer and use it in GitHub Desktop.
Bootstrap 3 responsive level indicator
<!-- put this code directly after <body> tag, for non-Yii environment, skip the if() statement -->
<?php if (YII_DEBUG): ?>
<!-- bootstrap responsive level indicator, only shown in debug mode -->
<div style="position: fixed; top: 0; left: 0; background: white; border: solid 1px #ccc; width: 25px; height: 18px; text-align: center; font-size: 10px; font-weight: bold; opacity: 0.5; z-index: 10000;" title="bootstrap responsive level indicator">
<span class="visible-xs-inline">xs</span>
<span class="visible-sm-inline">sm</span>
<span class="visible-md-inline">md</span>
<span class="visible-lg-inline">lg</span>
</div>
<?php endif; ?>
@cebe
Copy link
Author

cebe commented Jun 3, 2019

Bildschirmfoto von »2019-06-03 17-45-23«

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment