Last active
September 7, 2025 14:55
-
-
Save zartgesotten/b0a1d7b52d5fa8cb08de23e614e556f9 to your computer and use it in GitHub Desktop.
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
html::before { | |
content: ''; | |
position: fixed; | |
top: 0; | |
right: 0; | |
background: #000; | |
color: #fff; | |
font-size: 14px; | |
padding: 2px 6px; | |
z-index: 9999; | |
} | |
/* SMALL: 0–480px */ | |
@media (max-width: 480px) { | |
html { | |
border: 4px solid #e74c3c; /* rot */ | |
} | |
html::before { | |
content: 'SMALL'; | |
background: #e74c3c; | |
} | |
} | |
/* MEDIUM: 481–768px */ | |
@media (min-width: 481px) and (max-width: 768px) { | |
html { | |
border: 4px solid #3498db; /* blau */ | |
} | |
html::before { | |
content: 'MEDIUM'; | |
background: #3498db; | |
} | |
} | |
/* LARGE: 769–992px */ | |
@media (min-width: 769px) and (max-width: 992px) { | |
html { | |
border: 4px solid #2ecc71; /* grün */ | |
} | |
html::before { | |
content: 'LARGE'; | |
background: #2ecc71; | |
} | |
} | |
/* XL: >992px */ | |
@media (min-width: 993px) { | |
html { | |
border: 4px solid #f1c40f; /* gelb */ | |
} | |
html::before { | |
content: 'XL'; | |
background: #f1c40f; | |
color: #000; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment