This file contains 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
@css { | |
@supports (flex-flow: row wrap) { | |
.foo | |
display: block | |
> span | |
display: inline-block | |
margin-right: 0.3ch; | |
foo.bar | |
> span |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Forever iOS network activity spinner</title> | |
<style> | |
p { | |
-webkit-transition: 0.5s ease; | |
-moz-transition: 0.5s ease; |
This file contains 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
Copyright (c) 2013 Ryan Seddon | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following | |
conditions: |
This file contains 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
/** | |
* FizzBuzz with CSS | |
*/ | |
body { | |
counter-reset: fizzbuzz; | |
} | |
div { |
This file contains 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
/** | |
* FizzBuzz with CSS | |
*/ | |
body { | |
counter-reset: fizzbuzz; | |
} | |
div { |
This file contains 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, body { | |
display: table; | |
height: 100%; | |
width: 100%; | |
} | |
body { | |
display:table-cell; | |
vertical-align:middle; | |
text-align: center; | |
} |
This file contains 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
L(w, "drop", function (a) { | |
a = a || window.event; | |
a.preventDefault && a.preventDefault(); | |
if (a.dataTransfer.files.length) try { | |
var b = new FileReader; | |
b.onload = function (a) { | |
a = a || window.event; | |
if (b.readyState == b.DONE && a.target.result) { | |
for (var c = document.getElementById("dragi"), d = a.target.result, a = [], n = 0, m = 0; m < d.length; m++) { | |
for (var l = d.charCodeAt(m); 255 < l;) a[n++] = l & 255, l >>= 8; |
This file contains 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
/** | |
* Font features | |
*/ | |
p { | |
font-family: Gabriola, cursive; | |
font-size: 24pt; | |
-ms-font-feature-settings: "ss06" 1; |
This file contains 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
/** | |
* That's allota prefixes - http://lea.verou.me/css3patterns/#stars | |
*/ | |
background: | |
-moz-linear-gradient(126deg, #232927 4%, transparent 4%) -70px 43px, | |
-moz-linear-gradient( 54deg, #232927 4%, transparent 4%) 30px 43px, | |
-moz-linear-gradient( 18deg, #e3d7bf 8.5%, transparent 8.5%) 30px 43px, | |
-moz-linear-gradient(162deg, #e3d7bf 8.5%, transparent 8.5%) -70px 43px, | |
-moz-linear-gradient(234deg, #e3d7bf 7.5%, transparent 7.5%) -70px 23px, |
This file contains 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
if(Modernizr.postmessage) { | |
// So we can extend it but still do `if(Modernizr.postmessage)` | |
Modernizr.postmessage = new Boolean(true); | |
Modernizr.postmessage.extend = function() { | |
// Do some tests | |
return bool; | |
} | |
} |