Skip to content

Instantly share code, notes, and snippets.

@buddy-sandidge
Created February 11, 2012 01:12
Show Gist options
  • Save buddy-sandidge/1794874 to your computer and use it in GitHub Desktop.
Save buddy-sandidge/1794874 to your computer and use it in GitHub Desktop.
CSS Snow
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<header>
</header>
<div id="main" role="main">
<div id="flakes">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
</body>
</html>
/* HTML5 ✰ Boilerplate
* ==|== normalize ==========================================================
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
display: block; }
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1; }
audio:not([controls]) {
display: none; }
[hidden] {
display: none; }
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; }
body {
margin: 0;
font-size: 13px;
line-height: 1.231; }
body, button, input, select, textarea {
font-family: sans-serif;
color: #222; }
::-moz-selection {
background: #fe57a1;
color: #fff;
text-shadow: none; }
::selection {
background: #fe57a1;
color: #fff;
text-shadow: none; }
a {
color: #00e; }
a:visited {
color: #551a8b; }
a:hover {
color: #06e; }
a:focus {
outline: thin dotted; }
a:hover, a:active {
outline: 0; }
abbr[title] {
border-bottom: 1px dotted; }
b, strong {
font-weight: bold; }
blockquote {
margin: 1em 40px; }
dfn {
font-style: italic; }
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0; }
ins {
background: #ff9;
color: #000;
text-decoration: none; }
mark {
background: #ff0;
color: #000;
font-style: italic;
font-weight: bold; }
pre, code, kbd, samp {
font-family: monospace, monospace;
_font-family: 'courier new', monospace;
font-size: 1em; }
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word; }
q {
quotes: none; }
q:before, q:after {
content: "";
content: none; }
small {
font-size: 85%; }
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline; }
sup {
top: -0.5em; }
sub {
bottom: -0.25em; }
ul, ol {
margin: 1em 0;
padding: 0 0 0 40px; }
dd {
margin: 0 0 0 40px; }
nav ul, nav ol {
list-style: none;
list-style-image: none;
margin: 0;
padding: 0; }
img {
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle; }
svg:not(:root) {
overflow: hidden; }
figure {
margin: 0; }
form {
margin: 0; }
fieldset {
border: 0;
margin: 0;
padding: 0; }
label {
cursor: pointer; }
legend {
border: 0;
*margin-left: -7px;
padding: 0; }
button, input, select, textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
*vertical-align: middle; }
button, input {
line-height: normal;
*overflow: visible; }
table button, table input {
*overflow: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] {
cursor: pointer;
-webkit-appearance: button; }
input[type="checkbox"], input[type="radio"] {
box-sizing: border-box; }
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner {
border: 0;
padding: 0; }
textarea {
overflow: auto;
vertical-align: top;
resize: vertical; }
input:invalid, textarea:invalid {
background-color: #f0dddd; }
table {
border-collapse: collapse;
border-spacing: 0; }
td {
vertical-align: top; }
/* ==|== variables ==========================================================
Author:
========================================================================== */
/* ==|== monster mixins =====================================================
Author:
========================================================================== */
@-webkit-keyframes falling {
0% {
-webkit-transform: translateY(0) rotate(0deg) scale(0.9, 0.9); }
100% {
-webkit-transform: translateY(1000px) rotate(360deg) scale(1.1, 1.1); } }
@-moz-keyframes falling {
0% {
-moz-transform: translateY(0) rotate(0deg) scale(0.9, 0.9); }
100% {
-moz-transform: translateY(1000px) rotate(360deg) scale(1.1, 1.1); } }
@-ms-keyframes falling {
0% {
-ms-transform: translateY(0) rotate(0deg) scale(0.9, 0.9); }
100% {
-ms-transform: translateY(1000px) rotate(360deg) scale(1.1, 1.1); } }
@-o-keyframes falling {
0% {
-o-transform: translateY(0) rotate(0deg) scale(0.9, 0.9); }
100% {
-o-transform: translateY(1000px) rotate(360deg) scale(1.1, 1.1); } }
@keyframes falling {
0% {
transform: translateY(0) rotate(0deg) scale(0.9, 0.9); }
100% {
transform: translateY(1000px) rotate(360deg) scale(1.1, 1.1); } }
/* ==|== sane mixins =====================================================
Author:
========================================================================== */
/* ==|== primary styles =====================================================
Author:
========================================================================== */
#container {
background-image: -webkit-linear-gradient(270deg, #3a67ab 0%, #e8f6ff 100%);
background-image: -moz-linear-gradient(270deg, #3a67ab 0%, #e8f6ff 100%);
background-image: -ms-linear-gradient(270deg, #3a67ab 0%, #e8f6ff 100%);
background-image: -o-linear-gradient(270deg, #3a67ab 0%, #e8f6ff 100%);
background-image: linear-gradient(270deg, #3a67ab 0%, #e8f6ff 100%);
min-height: 1000px; }
i {
display: inline-block;
background-image: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%), -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%);
background-image: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -moz-linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -moz-linear-gradient(45deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%), -moz-linear-gradient(135deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%);
background-image: -ms-linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -ms-linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -ms-linear-gradient(45deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%), -ms-linear-gradient(135deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%);
background-image: -o-linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -o-linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), -o-linear-gradient(45deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%), -o-linear-gradient(135deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%);
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, #fffffe 40%, #fffffe 60%, rgba(255, 255, 255, 0) 60%), linear-gradient(45deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%), linear-gradient(135deg, rgba(255, 255, 255, 0) 43%, #fffffe 43%, #fffffe 57%, rgba(255, 255, 255, 0) 57%);
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
-webkit-transform-origin: left -20px;
-moz-transform-origin: left -20px;
-ms-transform-origin: left -20px;
-o-transform-origin: left -20px;
transform-origin: left -20px;
-webkit-animation-name: falling;
-moz-animation-name: falling;
-ms-animation-name: falling;
-o-animation-name: falling;
animation-name: falling;
-webkit-animation-duration: 3s;
-moz-animation-duration: 3s;
-ms-animation-duration: 3s;
-o-animation-duration: 3s;
animation-duration: 3s;
-webkit-animation-timing-function: ease-in;
-moz-animation-timing-function: ease-in;
-ms-animation-timing-function: ease-in;
-o-animation-timing-function: ease-in;
animation-timing-function: ease-in;
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
animation-iteration-count: infinite;
position: relative;
top: -32px; }
i:nth-of-type(5n + 0) {
height: 30px;
width: 30px; }
i:nth-of-type(5n + 1) {
height: 24px;
width: 24px; }
i:nth-of-type(5n + 2) {
height: 10px;
width: 10px; }
i:nth-of-type(5n + 3) {
height: 16px;
width: 16px; }
i:nth-of-type(5n + 4) {
height: 32px;
width: 32px; }
i:nth-of-type(3n + 0) {
-webkit-animation-delay: 2.3s;
-moz-animation-delay: 2.3s;
animation-delay: 2.3s; }
i:nth-of-type(3n + 1) {
-webkit-animation-delay: 1.5s;
-moz-animation-delay: 1.5s;
animation-delay: 1.5s; }
i:nth-of-type(3n + 2) {
-webkit-animation-delay: 3.4s;
-moz-animation-delay: 3.4s;
animation-delay: 3.4s; }
i:nth-of-type(7n + 0) {
opacity: 0.5; }
i:nth-of-type(7n + 1) {
opacity: 0.8; }
i:nth-of-type(7n + 2) {
opacity: 0.3; }
i:nth-of-type(7n + 3) {
opacity: 0.6; }
i:nth-of-type(7n + 4) {
opacity: 0.7; }
i:nth-of-type(7n + 5) {
opacity: 0.9; }
i:nth-of-type(7n + 6) {
opacity: 0.1; }
i:nth-of-type(13n + 0) {
-webkit-animation-duration: 3.5s;
-moz-animation-duration: 3.5s;
-ms-animation-duration: 3.5s;
-o-animation-duration: 3.5s;
animation-duration: 3.5s; }
i:nth-of-type(13n + 1) {
-webkit-animation-duration: 3.9s;
-moz-animation-duration: 3.9s;
-ms-animation-duration: 3.9s;
-o-animation-duration: 3.9s;
animation-duration: 3.9s; }
i:nth-of-type(13n + 2) {
-webkit-animation-duration: 3.8s;
-moz-animation-duration: 3.8s;
-ms-animation-duration: 3.8s;
-o-animation-duration: 3.8s;
animation-duration: 3.8s; }
i:nth-of-type(13n + 3) {
-webkit-animation-duration: 2.2s;
-moz-animation-duration: 2.2s;
-ms-animation-duration: 2.2s;
-o-animation-duration: 2.2s;
animation-duration: 2.2s; }
i:nth-of-type(13n + 4) {
-webkit-animation-duration: 4.3s;
-moz-animation-duration: 4.3s;
-ms-animation-duration: 4.3s;
-o-animation-duration: 4.3s;
animation-duration: 4.3s; }
i:nth-of-type(13n + 5) {
-webkit-animation-duration: 4.4s;
-moz-animation-duration: 4.4s;
-ms-animation-duration: 4.4s;
-o-animation-duration: 4.4s;
animation-duration: 4.4s; }
i:nth-of-type(13n + 6) {
-webkit-animation-duration: 3.1s;
-moz-animation-duration: 3.1s;
-ms-animation-duration: 3.1s;
-o-animation-duration: 3.1s;
animation-duration: 3.1s; }
i:nth-of-type(13n + 7) {
-webkit-animation-duration: 2.5s;
-moz-animation-duration: 2.5s;
-ms-animation-duration: 2.5s;
-o-animation-duration: 2.5s;
animation-duration: 2.5s; }
i:nth-of-type(13n + 8) {
-webkit-animation-duration: 3.6s;
-moz-animation-duration: 3.6s;
-ms-animation-duration: 3.6s;
-o-animation-duration: 3.6s;
animation-duration: 3.6s; }
i:nth-of-type(13n + 9) {
-webkit-animation-duration: 2s;
-moz-animation-duration: 2s;
-ms-animation-duration: 2s;
-o-animation-duration: 2s;
animation-duration: 2s; }
i:nth-of-type(13n + 10) {
-webkit-animation-duration: 4.6s;
-moz-animation-duration: 4.6s;
-ms-animation-duration: 4.6s;
-o-animation-duration: 4.6s;
animation-duration: 4.6s; }
i:nth-of-type(13n + 11) {
-webkit-animation-duration: 3.7s;
-moz-animation-duration: 3.7s;
-ms-animation-duration: 3.7s;
-o-animation-duration: 3.7s;
animation-duration: 3.7s; }
i:nth-of-type(13n + 12) {
-webkit-animation-duration: 2.7s;
-moz-animation-duration: 2.7s;
-ms-animation-duration: 2.7s;
-o-animation-duration: 2.7s;
animation-duration: 2.7s; }
i:nth-of-type(11n + 0) {
-webkit-animation-timing-function: ease-in-out;
-moz-animation-timing-function: ease-in-out;
-ms-animation-timing-function: ease-in-out;
-o-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out; }
i:nth-of-type(11n + 1) {
-webkit-animation-timing-function: ease-in;
-moz-animation-timing-function: ease-in;
-ms-animation-timing-function: ease-in;
-o-animation-timing-function: ease-in;
animation-timing-function: ease-in; }
i:nth-of-type(11n + 2) {
-webkit-animation-timing-function: ease;
-moz-animation-timing-function: ease;
-ms-animation-timing-function: ease;
-o-animation-timing-function: ease;
animation-timing-function: ease; }
i:nth-of-type(11n + 5) {
-webkit-animation-timing-function: cubic-bezier 0.2, 0.3, 0.8, 0.9;
-moz-animation-timing-function: cubic-bezier 0.2, 0.3, 0.8, 0.9;
-ms-animation-timing-function: cubic-bezier 0.2, 0.3, 0.8, 0.9;
-o-animation-timing-function: cubic-bezier 0.2, 0.3, 0.8, 0.9;
animation-timing-function: cubic-bezier 0.2, 0.3, 0.8, 0.9; }
/* ==|== non-semantic helper classes ======================================== */
.ir {
display: block;
border: 0;
text-indent: -999em;
overflow: hidden;
background-color: transparent;
background-repeat: no-repeat;
text-align: left;
direction: ltr; }
.ir br {
display: none; }
.hidden {
display: none !important;
visibility: hidden; }
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto; }
.invisible {
visibility: hidden; }
.clearfix:before, .clearfix:after {
content: "";
display: table; }
.clearfix:after {
clear: both; }
.clearfix {
zoom: 1; }
/* ==|== media queries ====================================================== */
@media only screen and (min-width: 480px) {}
@media only screen and (min-width: 768px) {}
/* ==|== print styles ======================================================= */
@media print {
* {
background: transparent !important;
color: black !important;
text-shadow: none !important;
filter: none !important;
-ms-filter: none !important; }
a, a:visited {
text-decoration: underline; }
a[href]:after {
content: " (" attr(href) ")"; }
abbr[title]:after {
content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
content: ""; }
pre, blockquote {
border: 1px solid #999;
page-break-inside: avoid; }
thead {
display: table-header-group; }
tr, img {
page-break-inside: avoid; }
img {
max-width: 100% !important; }
@page {
margin: 0.5cm; }
p, h2, h3 {
orphans: 3;
widows: 3; }
h2, h3 {
page-break-after: avoid; } }
/* HTML5 ✰ Boilerplate
* ==|== normalize ==========================================================
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.231; }
body, button, input, select, textarea { font-family: sans-serif; color: #222; }
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; *overflow: visible; }
table button, table input { *overflow: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid { }
input:invalid, textarea:invalid { background-color: #f0dddd; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }
/* ==|== variables ==========================================================
Author:
========================================================================== */
$height: 1000px;
/* ==|== monster mixins =====================================================
Author:
========================================================================== */
@mixin star-gradient($color, $rbga_color) {
background-image:
-webkit-linear-gradient(180deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-webkit-linear-gradient(90deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-webkit-linear-gradient(45deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
),
-webkit-linear-gradient(135deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
);
background-image:
-moz-linear-gradient(180deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-moz-linear-gradient(90deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-moz-linear-gradient(45deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
),
-moz-linear-gradient(135deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
);
background-image:
-ms-linear-gradient(180deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-ms-linear-gradient(90deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-ms-linear-gradient(45deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
),
-ms-linear-gradient(135deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
);
background-image:
-o-linear-gradient(180deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-o-linear-gradient(90deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
-o-linear-gradient(45deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
),
-o-linear-gradient(135deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
);
background-image:
linear-gradient(180deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
linear-gradient(90deg,
$rbga_color 40%,
$color 40%,
$color 60%,
$rbga_color 60%
),
linear-gradient(45deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
),
linear-gradient(135deg,
$rbga_color 43%,
$color 43%,
$color 57%,
$rbga_color 57%
);
}
@-webkit-keyframes falling {
0% {-webkit-transform: translateY(0) rotate(0deg) scale(0.9, 0.9);}
100% {-webkit-transform: translateY($height) rotate(360deg) scale(1.1, 1.1);}
}
@-moz-keyframes falling {
0% {-moz-transform: translateY(0) rotate(0deg) scale(0.9, 0.9);}
100% {-moz-transform: translateY($height) rotate(360deg) scale(1.1, 1.1);}
}
@-ms-keyframes falling {
0% {-ms-transform: translateY(0) rotate(0deg) scale(0.9, 0.9);}
100% {-ms-transform: translateY($height) rotate(360deg) scale(1.1, 1.1);}
}
@-o-keyframes falling {
0% {-o-transform: translateY(0) rotate(0deg) scale(0.9, 0.9);}
100% {-o-transform: translateY($height) rotate(360deg) scale(1.1, 1.1);}
}
@keyframes falling {
0% {transform: translateY(0) rotate(0deg) scale(0.9, 0.9);}
100% {transform: translateY($height) rotate(360deg) scale(1.1, 1.1);}
}
@mixin linear-gradient($angle, $top_color, $top_perc, $bottom_color, $bottom_perc) {
background-image:
-webkit-linear-gradient($angle, $top_color $top_perc, $bottom_color $bottom_perc);
background-image:
-moz-linear-gradient($angle, $top_color $top_perc, $bottom_color $bottom_perc);
background-image:
-ms-linear-gradient($angle, $top_color $top_perc, $bottom_color $bottom_perc);
background-image:
-o-linear-gradient($angle, $top_color $top_perc, $bottom_color $bottom_perc);
background-image:
linear-gradient($angle, $top_color $top_perc, $bottom_color $bottom_perc);
}
@mixin border-radius($amount) {
-webkit-border-radius: $amount;
-moz-border-radius: $amount;
-ms-border-radius: $amount;
-o-border-radius: $amount;
border-radius: $amount;
}
@mixin transform-origin($pos, $size) {
-webkit-transform-origin: $pos $size;
-moz-transform-origin: $pos $size;
-ms-transform-origin: $pos $size;
-o-transform-origin: $pos $size;
transform-origin: $pos $size;
}
@mixin animation-duration($time) {
-webkit-animation-duration: $time;
-moz-animation-duration: $time;
-ms-animation-duration: $time;
-o-animation-duration: $time;
animation-duration: $time;
}
@mixin animation-name($name) {
-webkit-animation-name: $name;
-moz-animation-name: $name;
-ms-animation-name: $name;
-o-animation-name: $name;
animation-name: $name;
}
@mixin animation-timing-function($name) {
-webkit-animation-timing-function: $name;
-moz-animation-timing-function: $name;
-ms-animation-timing-function: $name;
-o-animation-timing-function: $name;
animation-timing-function: $name;
}
@mixin animation-iteration-count($count) {
-webkit-animation-iteration-count: $count;
-moz-animation-iteration-count: $count;
animation-iteration-count: $count;
}
@mixin animation-delay($delay) {
-webkit-animation-delay: $delay;
-moz-animation-delay: $delay;
animation-delay: $delay;
}
@mixin box-shadow($horz, $vert, $blur, $rbga_color) {
-webkit-box-shadow: $horz $vert $blur $rbga_color;
-moz-box-shadow: $horz $vert $blur $rbga_color;
-ms-box-shadow: $horz $vert $blur $rbga_color;
-o-box-shadow: $horz $vert $blur $rbga_color;
box-shadow: $horz $vert $blur $rbga_color;
}
/* ==|== sane mixins =====================================================
Author:
========================================================================== */
@mixin size($size) {
height: $size;
width: $size;
}
@mixin linear-gradient-vertical($top_color, $bottom_color) {
@include linear-gradient(270deg, $top_color, 0%, #e8f6ff, 100%);
}
@mixin animation($name, $duration, $timing) {
@include animation-name($name);
@include animation-duration($duration);
@include animation-timing-function($timing);
@include animation-iteration-count(infinite);
}
@mixin snowflake() {
@include star-gradient(#fffffe, rgba(255, 255, 255, 0));
@include border-radius(50%);
@include transform-origin(left, -20px);
@include animation(falling, 3s, ease-in);
}
/* ==|== primary styles =====================================================
Author:
========================================================================== */
#container {
@include linear-gradient-vertical(#3a67ab, #e8f6ff);
min-height: $height;
}
i {
display: inline-block;
@include snowflake();
position: relative;
top: -32px;
}
i:nth-of-type(5n + 0) {@include size(30px);}
i:nth-of-type(5n + 1) {@include size(24px);}
i:nth-of-type(5n + 2) {@include size(10px);}
i:nth-of-type(5n + 3) {@include size(16px);}
i:nth-of-type(5n + 4) {@include size(32px);}
i:nth-of-type(3n + 0) {@include animation-delay(2.3s);}
i:nth-of-type(3n + 1) {@include animation-delay(1.5s);}
i:nth-of-type(3n + 2) {@include animation-delay(3.4s);}
i:nth-of-type(7n + 0) {opacity: 0.5;}
i:nth-of-type(7n + 1) {opacity: 0.8;}
i:nth-of-type(7n + 2) {opacity: 0.3;}
i:nth-of-type(7n + 3) {opacity: 0.6;}
i:nth-of-type(7n + 4) {opacity: 0.7;}
i:nth-of-type(7n + 5) {opacity: 0.9;}
i:nth-of-type(7n + 6) {opacity: 0.1;}
i:nth-of-type(13n + 0) {@include animation-duration(3.5s);}
i:nth-of-type(13n + 1) {@include animation-duration(3.9s);}
i:nth-of-type(13n + 2) {@include animation-duration(3.8s);}
i:nth-of-type(13n + 3) {@include animation-duration(2.2s);}
i:nth-of-type(13n + 4) {@include animation-duration(4.3s);}
i:nth-of-type(13n + 5) {@include animation-duration(4.4s);}
i:nth-of-type(13n + 6) {@include animation-duration(3.1s);}
i:nth-of-type(13n + 7) {@include animation-duration(2.5s);}
i:nth-of-type(13n + 8) {@include animation-duration(3.6s);}
i:nth-of-type(13n + 9) {@include animation-duration(2.0s);}
i:nth-of-type(13n + 10) {@include animation-duration(4.6s);}
i:nth-of-type(13n + 11) {@include animation-duration(3.7s);}
i:nth-of-type(13n + 12) {@include animation-duration(2.7s);}
i:nth-of-type(11n + 0) {@include animation-timing-function(ease-in-out);}
i:nth-of-type(11n + 1) {@include animation-timing-function(ease-in);}
i:nth-of-type(11n + 2) {@include animation-timing-function(ease);}
i:nth-of-type(11n + 5) {
@include animation-timing-function(cubic-bezier (0.2, 0.3, 0.8, 0.9));
}
/* ==|== non-semantic helper classes ======================================== */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
/* ==|== media queries ====================================================== */
@media only screen and (min-width: 480px) {
}
@media only screen and (min-width: 768px) {
}
/* ==|== print styles ======================================================= */
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
a, a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
thead { display: table-header-group; }
tr, img { page-break-inside: avoid; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment