Skip to content

Instantly share code, notes, and snippets.

@lastguest
Created May 11, 2012 13:27
Show Gist options
  • Save lastguest/2659603 to your computer and use it in GitHub Desktop.
Save lastguest/2659603 to your computer and use it in GitHub Desktop.
Facebook Tab Test
@import url(http://fonts.googleapis.com/css?family=Open+Sans:800);
/* Facebook Tab Test */
body{
background: #fff;
min-height: 100%;
padding: 0;
margin: 0;
font-family: 'Open Sans', sans-serif;
}
#content {
text-align: center;
width: 790px;
height: 400px;
margin: 0 auto;
padding: 20px;
box-shadow: 0px 0px 15px #000;
background: rgb(193,232,255); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2MxZThmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwYzY2OWEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, rgba(193,232,255,1) 0%, rgba(12,102,154,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(193,232,255,1)), color-stop(100%,rgba(12,102,154,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(193,232,255,1) 0%,rgba(12,102,154,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(193,232,255,1) 0%,rgba(12,102,154,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(193,232,255,1) 0%,rgba(12,102,154,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(193,232,255,1) 0%,rgba(12,102,154,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c1e8ff', endColorstr='#0c669a',GradientType=0 ); /* IE6-8 */
}
/* Elements */
.button {
background: rgb(154,199,224); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzlhYzdlMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjIlIiBzdG9wLWNvbG9yPSIjOThjNWRmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjOWJjNmUxIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTUlIiBzdG9wLWNvbG9yPSIjOTljN2UwIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTclIiBzdG9wLWNvbG9yPSIjOGJiZWRiIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMjAlIiBzdG9wLWNvbG9yPSIjODZiYmRhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNDklIiBzdG9wLWNvbG9yPSIjOThjNWUwIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTElIiBzdG9wLWNvbG9yPSIjOTZjNGRmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTQlIiBzdG9wLWNvbG9yPSIjODliZGRiIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iOTglIiBzdG9wLWNvbG9yPSIjN2ViNmQ3IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzgxYjlkOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(top, rgba(154,199,224,1) 0%, rgba(152,197,223,1) 2%, rgba(155,198,225,1) 10%, rgba(153,199,224,1) 15%, rgba(139,190,219,1) 17%, rgba(134,187,218,1) 20%, rgba(152,197,224,1) 49%, rgba(150,196,223,1) 51%, rgba(137,189,219,1) 54%, rgba(126,182,215,1) 98%, rgba(129,185,217,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(154,199,224,1)), color-stop(2%,rgba(152,197,223,1)), color-stop(10%,rgba(155,198,225,1)), color-stop(15%,rgba(153,199,224,1)), color-stop(17%,rgba(139,190,219,1)), color-stop(20%,rgba(134,187,218,1)), color-stop(49%,rgba(152,197,224,1)), color-stop(51%,rgba(150,196,223,1)), color-stop(54%,rgba(137,189,219,1)), color-stop(98%,rgba(126,182,215,1)), color-stop(100%,rgba(129,185,217,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(154,199,224,1) 0%,rgba(152,197,223,1) 2%,rgba(155,198,225,1) 10%,rgba(153,199,224,1) 15%,rgba(139,190,219,1) 17%,rgba(134,187,218,1) 20%,rgba(152,197,224,1) 49%,rgba(150,196,223,1) 51%,rgba(137,189,219,1) 54%,rgba(126,182,215,1) 98%,rgba(129,185,217,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(154,199,224,1) 0%,rgba(152,197,223,1) 2%,rgba(155,198,225,1) 10%,rgba(153,199,224,1) 15%,rgba(139,190,219,1) 17%,rgba(134,187,218,1) 20%,rgba(152,197,224,1) 49%,rgba(150,196,223,1) 51%,rgba(137,189,219,1) 54%,rgba(126,182,215,1) 98%,rgba(129,185,217,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(154,199,224,1) 0%,rgba(152,197,223,1) 2%,rgba(155,198,225,1) 10%,rgba(153,199,224,1) 15%,rgba(139,190,219,1) 17%,rgba(134,187,218,1) 20%,rgba(152,197,224,1) 49%,rgba(150,196,223,1) 51%,rgba(137,189,219,1) 54%,rgba(126,182,215,1) 98%,rgba(129,185,217,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(154,199,224,1) 0%,rgba(152,197,223,1) 2%,rgba(155,198,225,1) 10%,rgba(153,199,224,1) 15%,rgba(139,190,219,1) 17%,rgba(134,187,218,1) 20%,rgba(152,197,224,1) 49%,rgba(150,196,223,1) 51%,rgba(137,189,219,1) 54%,rgba(126,182,215,1) 98%,rgba(129,185,217,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9ac7e0', endColorstr='#81b9d9',GradientType=0 ); /* IE6-8 */
text-transform: uppercase;
font: bolder 1em/1em 'Open Sans', Helvetica, Arial;
font-weight: 800;
padding: 0.5em;
margin: 0;
color: #11415b;
border: 4px solid #5ea2c8;
border-radius: 8px;
box-shadow: 0px 2px 3px rgba(0,0,0,.75);
-webkit-transition: all 0.25s linear;
margin-bottom:1em;
margin-right:0.6em;
display: inline-block;
}
.button:hover {
background: rgb(158,228,255); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzllZTRmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjIlIiBzdG9wLWNvbG9yPSIjOWJlMWZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjOWZlMmZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTUlIiBzdG9wLWNvbG9yPSIjOWNlNGZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTclIiBzdG9wLWNvbG9yPSIjODlkN2ZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMjAlIiBzdG9wLWNvbG9yPSIjODJkM2ZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMjclIiBzdG9wLWNvbG9yPSIjOGJkN2ZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNDklIiBzdG9wLWNvbG9yPSIjOWJlMWZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTElIiBzdG9wLWNvbG9yPSIjOThkZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTQlIiBzdG9wLWNvbG9yPSIjODZkNmZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iOTglIiBzdG9wLWNvbG9yPSIjNzhjY2ZhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzdiZDBmZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(top, rgba(158,228,255,1) 0%, rgba(155,225,255,1) 2%, rgba(159,226,255,1) 10%, rgba(156,228,255,1) 15%, rgba(137,215,255,1) 17%, rgba(130,211,255,1) 20%, rgba(139,215,255,1) 27%, rgba(155,225,255,1) 49%, rgba(152,223,255,1) 51%, rgba(134,214,255,1) 54%, rgba(120,204,250,1) 98%, rgba(123,208,253,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(158,228,255,1)), color-stop(2%,rgba(155,225,255,1)), color-stop(10%,rgba(159,226,255,1)), color-stop(15%,rgba(156,228,255,1)), color-stop(17%,rgba(137,215,255,1)), color-stop(20%,rgba(130,211,255,1)), color-stop(27%,rgba(139,215,255,1)), color-stop(49%,rgba(155,225,255,1)), color-stop(51%,rgba(152,223,255,1)), color-stop(54%,rgba(134,214,255,1)), color-stop(98%,rgba(120,204,250,1)), color-stop(100%,rgba(123,208,253,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(158,228,255,1) 0%,rgba(155,225,255,1) 2%,rgba(159,226,255,1) 10%,rgba(156,228,255,1) 15%,rgba(137,215,255,1) 17%,rgba(130,211,255,1) 20%,rgba(139,215,255,1) 27%,rgba(155,225,255,1) 49%,rgba(152,223,255,1) 51%,rgba(134,214,255,1) 54%,rgba(120,204,250,1) 98%,rgba(123,208,253,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(158,228,255,1) 0%,rgba(155,225,255,1) 2%,rgba(159,226,255,1) 10%,rgba(156,228,255,1) 15%,rgba(137,215,255,1) 17%,rgba(130,211,255,1) 20%,rgba(139,215,255,1) 27%,rgba(155,225,255,1) 49%,rgba(152,223,255,1) 51%,rgba(134,214,255,1) 54%,rgba(120,204,250,1) 98%,rgba(123,208,253,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(158,228,255,1) 0%,rgba(155,225,255,1) 2%,rgba(159,226,255,1) 10%,rgba(156,228,255,1) 15%,rgba(137,215,255,1) 17%,rgba(130,211,255,1) 20%,rgba(139,215,255,1) 27%,rgba(155,225,255,1) 49%,rgba(152,223,255,1) 51%,rgba(134,214,255,1) 54%,rgba(120,204,250,1) 98%,rgba(123,208,253,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(158,228,255,1) 0%,rgba(155,225,255,1) 2%,rgba(159,226,255,1) 10%,rgba(156,228,255,1) 15%,rgba(137,215,255,1) 17%,rgba(130,211,255,1) 20%,rgba(139,215,255,1) 27%,rgba(155,225,255,1) 49%,rgba(152,223,255,1) 51%,rgba(134,214,255,1) 54%,rgba(120,204,250,1) 98%,rgba(123,208,253,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9ee4ff', endColorstr='#7bd0fd',GradientType=0 ); /* IE6-8 */
}
.button:active {
border-radius: 1em;
}
<div id="content">
<a class="button">Carica un'altra foto</a>
</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment