Created
November 14, 2012 16:27
-
-
Save mnafricano/4073123 to your computer and use it in GitHub Desktop.
General Demo Style
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
.ch-item { | |
width: 100%; | |
height: 100%; | |
border-radius: 50%; | |
position: relative; | |
cursor: default; | |
box-shadow: | |
inset 0 0 0 0 rgba(200,95,66, 0.4), | |
inset 0 0 0 16px rgba(255,255,255,0.6), | |
0 1px 2px rgba(0,0,0,0.1); | |
-webkit-transition: all 0.4s ease-in-out; | |
-moz-transition: all 0.4s ease-in-out; | |
-ms-transition: all 0.4s ease-in-out; | |
-o-transition: all 0.4s ease-in-out; | |
transition: all 0.4s ease-in-out; | |
} | |
.ch-img-1 { | |
background-image: url(http://i.imm.io/LpYL.jpeg); | |
} | |
.ch-img-2 { | |
background-image: url(http://i.imm.io/LpYV.jpeg); | |
} | |
.ch-img-3 { | |
background-image: url(http://i.imm.io/LpZh.jpeg); | |
} | |
.ch-info { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
border-radius: 50%; | |
opacity: 0; | |
-webkit-transition: all 0.4s ease-in-out; | |
-moz-transition: all 0.4s ease-in-out; | |
-ms-transition: all 0.4s ease-in-out; | |
-o-transition: all 0.4s ease-in-out; | |
transition: all 0.4s ease-in-out; | |
-webkit-transform: scale(0); | |
-moz-transform: scale(0); | |
-ms-transform: scale(0); | |
-o-transform: scale(0); | |
transform: scale(0); | |
-webkit-backface-visibility: hidden; | |
-moz-backface-visibility: hidden; | |
-ms-backface-visibility: hidden; | |
-o-backface-visibility: hidden; | |
backface-visibility: hidden; | |
} | |
.ch-info h3 { | |
color: #fff; | |
text-transform: uppercase; | |
position: relative; | |
letter-spacing: 2px; | |
font-size: 22px; | |
margin: 0 30px; | |
padding: 65px 0 0 0; | |
height: 110px; | |
font-family: 'Open Sans', Arial, sans-serif; | |
text-shadow: | |
0 0 1px #fff, | |
0 1px 2px rgba(0,0,0,0.3); | |
} | |
.ch-info p { | |
color: #fff; | |
padding: 10px 5px; | |
font-style: italic; | |
margin: 0 30px; | |
font-size: 12px; | |
border-top: 1px solid rgba(255,255,255,0.5); | |
} | |
.ch-info p a { | |
display: block; | |
color: #fff; | |
color: rgba(255,255,255,0.7); | |
font-style: normal; | |
font-weight: 700; | |
text-transform: uppercase; | |
font-size: 9px; | |
letter-spacing: 1px; | |
padding-top: 4px; | |
font-family: 'Open Sans', Arial, sans-serif; | |
} | |
.ch-info p a:hover { | |
color: #fff222; | |
color: rgba(255,242,34, 0.8); | |
} | |
.ch-item:hover { | |
box-shadow: | |
inset 0 0 0 110px rgba(200,95,66, 0.4), | |
inset 0 0 0 16px rgba(255,255,255,0.8), | |
0 1px 2px rgba(0,0,0,0.1); | |
} | |
.ch-item:hover .ch-info { | |
opacity: 1; | |
-webkit-transform: scale(1); | |
-moz-transform: scale(1); | |
-o-transform: scale(1); | |
-ms-transform: scale(1); | |
transform: scale(1); | |
} | |
.ch-grid { | |
margin: 20px 0 0 0; | |
padding: 0; | |
list-style: none; | |
display: block; | |
text-align: center; | |
width: 100%; | |
} | |
.ch-grid:after, | |
.ch-item:before { | |
content: ''; | |
display: table; | |
} | |
.ch-grid:after { | |
clear: both; | |
} | |
.ch-grid li { | |
width: 220px; | |
height: 220px; | |
display: inline-block; | |
margin: 20px; | |
} | |
/* General Demo Style */ | |
body{ | |
font-family: Cambria, Georgia, serif; | |
background: #f9f9f9 url(../images/bg.jpg); | |
font-weight: 300; | |
font-size: 15px; | |
color: #333; | |
-webkit-font-smoothing: antialiased; | |
overflow-y: scroll; | |
overflow-x: hidden; | |
} | |
a{ | |
color: #555; | |
text-decoration: none; | |
} | |
.container{ | |
width: 100%; | |
position: relative; | |
} | |
.clr{ | |
clear: both; | |
padding: 0; | |
height: 0; | |
margin: 0; | |
} | |
.main{ | |
width: 90%; | |
margin: 0 auto; | |
position: relative; | |
} | |
.container > header{ | |
margin: 10px; | |
padding: 20px 10px 10px 10px; | |
position: relative; | |
display: block; | |
text-shadow: 1px 1px 1px rgba(0,0,0,0.2); | |
text-align: center; | |
} | |
.container > header h1{ | |
font-size: 32px; | |
line-height: 32px; | |
margin: 0; | |
position: relative; | |
font-weight: 300; | |
color: #777; | |
text-shadow: 1px 1px 1px rgba(255,255,255,0.7); | |
} | |
.container > header h2{ | |
font-size: 14px; | |
font-weight: 300; | |
font-style: italic; | |
margin: 0; | |
padding: 15px 0 5px 0; | |
color: #888; | |
text-shadow: 1px 1px 1px rgba(255,255,255,0.9); | |
} | |
/* Demo Buttons Style */ | |
.nav-buttons { | |
text-align:center; | |
display: block; | |
line-height: 30px; | |
padding: 5px 0px; | |
} | |
.nav-buttons a { | |
display: inline-block; | |
font-style: italic; | |
margin: 0px 4px; | |
padding: 0px 6px; | |
color: #aaa; | |
line-height: 20px; | |
font-size: 13px; | |
text-shadow: 1px 1px 1px #fff; | |
border: 1px solid #fff; | |
background: #ffffff; /* Old browsers */ | |
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* IE10+ */ | |
background: linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */ | |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); | |
} | |
.nav-buttons a:hover { | |
color: #333; | |
background: #fff; | |
} | |
.nav-buttons a:active{ | |
background: #fff; | |
} | |
.nav-buttons a.current, | |
.nav-buttons a.current:hover{ | |
background: #f0f0f0; | |
border-color: #d9d9d9; | |
color: #aaa; | |
box-shadow: 0 1px 1px rgba(255,255,255,0.7); | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */ | |
} | |
.support-note span{ | |
color: #ac375d; | |
font-size: 16px; | |
display: none; | |
font-weight: bold; | |
text-align: center; | |
padding: 5px 0; | |
} | |
.no-cssanimations .support-note span.no-cssanimations, | |
.no-csstransforms .support-note span.no-csstransforms, | |
.no-csstransforms3d .support-note span.no-csstransforms3d, | |
.no-csstransitions .support-note span.no-csstransitions{ | |
display: block; | |
} | |
/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */ | |
/* ============================================================================= | |
HTML5 display definitions | |
========================================================================== */ | |
/* | |
* Corrects block display not defined in IE6/7/8/9 & FF3 | |
*/ | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
nav, | |
section, | |
summary { | |
display: block; | |
} | |
/* | |
* Corrects inline-block display not defined in IE6/7/8/9 & FF3 | |
*/ | |
audio, | |
canvas, | |
video { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; | |
} | |
/* | |
* Prevents modern browsers from displaying 'audio' without controls | |
* Remove excess height in iOS5 devices | |
*/ | |
audio:not([controls]) { | |
display: none; | |
height: 0; | |
} | |
/* | |
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4 | |
* Known issue: no IE6 support | |
*/ | |
[hidden] { | |
display: none; | |
} | |
/* ============================================================================= | |
Base | |
========================================================================== */ | |
/* | |
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units | |
* http://clagnut.com/blog/348/#c790 | |
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom | |
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ | |
*/ | |
html { | |
font-size: 100%; /* 1 */ | |
-webkit-text-size-adjust: 100%; /* 2 */ | |
-ms-text-size-adjust: 100%; /* 2 */ | |
} | |
/* | |
* Addresses font-family inconsistency between 'textarea' and other form elements. | |
*/ | |
html, | |
button, | |
input, | |
select, | |
textarea { | |
font-family: sans-serif; | |
} | |
/* | |
* Addresses margins handled incorrectly in IE6/7 | |
*/ | |
body { | |
margin: 0; | |
} | |
/* ============================================================================= | |
Links | |
========================================================================== */ | |
/* | |
* Addresses outline displayed oddly in Chrome | |
*/ | |
a:focus { | |
outline: thin dotted; | |
} | |
/* | |
* Improves readability when focused and also mouse hovered in all browsers | |
* people.opera.com/patrickl/experiments/keyboard/test | |
*/ | |
a:hover, | |
a:active { | |
outline: 0; | |
} | |
/* ============================================================================= | |
Typography | |
========================================================================== */ | |
/* | |
* Addresses font sizes and margins set differently in IE6/7 | |
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5 | |
*/ | |
h1 { | |
font-size: 2em; | |
margin: 0.67em 0; | |
} | |
h2 { | |
font-size: 1.5em; | |
margin: 0.83em 0; | |
} | |
h3 { | |
font-size: 1.17em; | |
margin: 1em 0; | |
} | |
h4 { | |
font-size: 1em; | |
margin: 1.33em 0; | |
} | |
h5 { | |
font-size: 0.83em; | |
margin: 1.67em 0; | |
} | |
h6 { | |
font-size: 0.75em; | |
margin: 2.33em 0; | |
} | |
abbr[title] { | |
border-bottom: 1px dotted; | |
} | |
b, | |
strong { | |
font-weight: bold; | |
} | |
blockquote { | |
margin: 1em 40px; | |
} | |
dfn { | |
font-style: italic; | |
} | |
mark { | |
background: #ff0; | |
color: #000; | |
} | |
p, | |
pre { | |
margin: 1em 0; | |
} | |
pre, | |
code, | |
kbd, | |
samp { | |
font-family: monospace, serif; | |
_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: 75%; | |
} | |
sub, | |
sup { | |
font-size: 75%; | |
line-height: 0; | |
position: relative; | |
vertical-align: baseline; | |
} | |
sup { | |
top: -0.5em; | |
} | |
sub { | |
bottom: -0.25em; | |
} | |
dl, | |
menu, | |
ol, | |
ul { | |
margin: 1em 0; | |
} | |
dd { | |
margin: 0 0 0 40px; | |
} | |
menu, | |
ol, | |
ul { | |
padding: 0 0 0 40px; | |
} | |
nav ul, | |
nav ol { | |
list-style: none; | |
list-style-image: none; | |
} | |
img { | |
border: 0; /* 1 */ | |
-ms-interpolation-mode: bicubic; /* 2 */ | |
} | |
svg:not(:root) { | |
overflow: hidden; | |
} | |
figure { | |
margin: 0; | |
-webkit-margin-before: 0; | |
-webkit-margin-after: 0; | |
-webkit-margin-start: 0; | |
-webkit-margin-end: 0; | |
} | |
form { | |
margin: 0; | |
} | |
fieldset { | |
border: 1px solid #c0c0c0; | |
margin: 0 2px; | |
padding: 0.35em 0.625em 0.75em; | |
} | |
legend { | |
border: 0; /* 1 */ | |
padding: 0; | |
white-space: normal; /* 2 */ | |
*margin-left: -7px; /* 3 */ | |
} | |
button, | |
input, | |
select, | |
textarea { | |
font-size: 100%; /* 1 */ | |
margin: 0; /* 2 */ | |
vertical-align: baseline; /* 3 */ | |
*vertical-align: middle; /* 3 */ | |
} | |
button, | |
input { | |
line-height: normal; /* 1 */ | |
} | |
button, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"] { | |
cursor: pointer; /* 1 */ | |
-webkit-appearance: button; /* 2 */ | |
*overflow: visible; /* 3 */ | |
} | |
button[disabled], | |
input[disabled] { | |
cursor: default; | |
} | |
input[type="checkbox"], | |
input[type="radio"] { | |
box-sizing: border-box; /* 1 */ | |
padding: 0; /* 2 */ | |
*height: 13px; /* 3 */ | |
*width: 13px; /* 3 */ | |
} | |
input[type="search"] { | |
-webkit-appearance: textfield; /* 1 */ | |
-moz-box-sizing: content-box; | |
-webkit-box-sizing: content-box; /* 2 */ | |
box-sizing: content-box; | |
} | |
input[type="search"]::-webkit-search-decoration, | |
input[type="search"]::-webkit-search-cancel-button { | |
-webkit-appearance: none; | |
} | |
button::-moz-focus-inner, | |
input::-moz-focus-inner { | |
border: 0; | |
padding: 0; | |
} | |
textarea { | |
overflow: auto; | |
vertical-align: top; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } |
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
<div class="container"> | |
<section class="main"> | |
<ul class="ch-grid"> | |
<li> | |
<div class="ch-item ch-img-1"> | |
<div class="ch-info"> | |
<h3>Brainiac</h3> | |
<p>by Daniel Nyari <a href="http://drbl.in/eODP">View on Dribbble</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="ch-item ch-img-2"> | |
<div class="ch-info"> | |
<h3>Vision</h3> | |
<p>by Daniel Nyari <a href="http://drbl.in/eNXW">View on Dribbble</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="ch-item ch-img-3"> | |
<div class="ch-info"> | |
<h3>Cylon</h3> | |
<p>by Daniel Nyari <a href="http://drbl.in/eNXY">View on Dribbble</a></p> | |
</div> | |
</div> | |
</li> | |
</ul> | |
</section> | |
</div> |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment