I hereby claim:
- I am fjaguero on github.
- I am fjaguero (https://keybase.io/fjaguero) on keybase.
- I have a public key whose fingerprint is 4785 E9DB 5FB3 358C 81DA 0ABE 7A0B C107 AFF3 F7C5
To claim this, I am signing this object:
| console.clear(); | |
| var old = console.log; | |
| console.log = function() { | |
| var args = [].slice.apply(arguments).concat([(new Error()).stack.split(/\n/)[2].trim()]); | |
| return old.apply(this, args); | |
| }; | |
| function test(t) { |
I hereby claim:
To claim this, I am signing this object:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Curious as to how the browser would react to several hundred media queries, I decided to create this experiment.
In order to demonstrate each individual media query, I found a list of over 1,000 unique colors to use to apply a unique background color to each media query. To make sure the text color is readable on top of any given background color, I used Sass to return the complementary color of the background color. I had to compile my Sass locally because it was too big of a task for CodePen to handle. So, the CSS you see here is what was compiled on my machine and copy/pasted into this Pen.
The first media query kicks in at min-width: 320px, and each new media query thereafter increments by 1px. This continues all the way up to min-width: 1400px.
Resize your the preview window and watch the colors change as the media queries kick in!
| // Adds the thousands separator | |
| function numberWithThousands(x) { | |
| return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); | |
| } |
| /* | |
| Theme Name: | |
| Theme URI: | |
| Author: | |
| Author URI: | |
| Description: | |
| Version: | |
| License: GNU General Public License v2 or later | |
| License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| Tags: |
| .ie8 .page-header { | |
| background:rgb(0,0,0); | |
| background: transparent\9; | |
| background:rgba(0,0,0,0.3); | |
| filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4c000000,endColorstr=#4c000000); | |
| zoom: 1; | |
| height: 215px; | |
| } | |
| .ie8 .page-header:nth-child(n) { |
| .hide-text { | |
| text-indent: 100%; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } |