Skip to content

Instantly share code, notes, and snippets.

@davidhund
Created September 20, 2012 15:26
Show Gist options
  • Save davidhund/3756596 to your computer and use it in GitHub Desktop.
Save davidhund/3756596 to your computer and use it in GitHub Desktop.
Untitled
body { background:#EEE; font-family: Georgia, serif; margin: 0; padding: 0; position: relative; }
.wrap {
min-width: 40em;
max-width: 50em;
min-height: 40em;
margin: 1.5em auto 0 10em;
padding: 3em 6em;
XXborder: 1px solid red;
XXXbackground: rgba(255,255,255,0.7);
background: linear-gradient(rgba(255,255,255,0.9) 15%, rgba(255,255,255,0) 50%);
XXXbackground: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,1) 50%);
z-index: 10; /* Does not yet work.. */
position: relative; /* This makes the z-index be picked up */
}
.wrap > * { font-size: 1.5em; }
.wrap :first-child { margin-top: 0; }
nav {
XXXborder: 1px solid red;
width: 10.25em;
padding-top: 20em;
padding-right: .5em;
background: rgba(80,150,150,0.2);
position: absolute;
top: 0;
bottom: 0;
z-index:1;
}
nav ul { margin: 0; padding: 0; line-height: 2; list-style: none; }
nav a { text-decoration: none; color: #111; font-size: 1.2em; display: block; font-weight: bold; text-align: center; text-transform: uppercase; }
#logo {
XXXborder: 0 solid #FFF;
XXXborder-width: 0 .25em .25em 0;
XXXborder-radius: 1px;
width: 5em;
height: 5em;
background: #000;
color: #FFF;
font-size: 1.68em;
font-weight: normal;
padding: 1em;
margin: 0;
line-height: 1;
XXopacity: .3;
box-shadow:
5em 10em 0 18em rgba(200,200,0,0.025),
0 5em 0 5em rgba(0,200,200,0.05),
0 5em 0 15em rgba(0,0,200,0.05),
0 0 0 .5em rgba(255,255,255,.8)
;
text-align: center;
XXXtransform: skewX(45deg);
transform: rotate(-45deg);
position: absolute; /* or fixed, but you know... */
top: 0;
left: -3.5em;
transition: box-shadow .6s;
z-index: 2; /* Meh */
}
#logo:hover { box-shadow: none; }
#logo a {
color:#FFF;
text-decoration: none;
text-shadow: 0 1px 0 rgba(255,0,0,0.8);
display: inline-block;
width: 50%;
transition: transform .6s;
/* http://davidwalsh.name/translate3d */
backface-visibility: hidden;
perspective: 1000;
position: absolute;
bottom: 1.125em;
right: .5em;
XXXtransform: skewX(-45deg);
transform: rotate(45deg);
}
#logo a:hover,
#logo a:focus,
#logo a:active { transform: none; }
<h1 id="logo"><a href="#">David Hund</a></h1>
<nav>
<ul>
<li><a href="#">Homepage</a></li>
<li><a href="#">Homepage</a></li>
<li><a href="#">Homepage</a></li>
</ul>
</nav>
<div class="wrap">
<h2>OMG dummy text…</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<h2>And another…</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
{"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