Skip to content

Instantly share code, notes, and snippets.

@joonhwan
Created March 14, 2021 06:29
Show Gist options
  • Save joonhwan/8a113f01b2e5a9cf3b0a05342eb1e785 to your computer and use it in GitHub Desktop.
Save joonhwan/8a113f01b2e5a9cf3b0a05342eb1e785 to your computer and use it in GitHub Desktop.
display current breakpoint in lower left page
@mixin display-breakpoints {
&:after {
content: "xs";
position: fixed;
width: 30px;
font-size: 12px;
text-align: center;
background-color: black;
color: lime;
bottom: 0;
left: 0;
text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 15px #fff;
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
&:after {
content: "sm";
}
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
&:after {
content: "md";
}
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
&:after {
content: "lg";
}
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
&:after {
content: "xl";
}
}
@media only screen and (min-width: 1400px) {
&:after {
content: "xxl";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment