Instantly share code, notes, and snippets.
Created
August 7, 2009 03:37
-
Save jefflarkin/163693 to your computer and use it in GitHub Desktop.
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Test</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/reset/reset-min.css"/> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/fonts/fonts-min.css"/> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/base/base-min.css"/> | |
<style media="all" type="text/css"> | |
html, body { | |
padding: 0; | |
margin: 0; | |
} | |
#admin_position { | |
position: fixed; | |
top: 10%; | |
right: 0; | |
} | |
#admin { | |
float: right; | |
height: auto; | |
width: 30px; | |
min-height: 50px; | |
background: #444; | |
color: #fff; | |
} | |
#admin_tab { | |
height: 100%; | |
min-height: 50px; | |
width: 30px; | |
float: left; | |
} | |
#admin_tab a { | |
color: #fff; | |
text-decoration: none; | |
font-weight: bold; | |
position: relative; | |
left: 0px; | |
top: 0px; | |
display: block; | |
text-align: center; | |
} | |
#admin_content { | |
width: 0px; | |
float: right; | |
overflow: hidden !important; | |
} | |
#admin_content div { | |
padding: 10px; | |
} | |
#admin_content h1 { | |
font-size: 14pt; | |
font-weight: bold; | |
line-height: 1em; | |
padding: 0 0 1em 0; | |
margin: 0; | |
} | |
#admin_content h2 { | |
font-size: 12pt; | |
font-weight: bold; | |
line-height: 1em; | |
padding: 0 0 .5em 0; | |
margin: 0; | |
} | |
#admin_content ul { | |
margin: 0 0 1em 0; | |
} | |
#admin_content ul li { | |
list-style: none; | |
text-indent: 0; | |
display: block; | |
background: #666; | |
padding: .25em; | |
border: 1px solid #000; | |
} | |
#admin_link { | |
margin-top: 25px; | |
rotation: 90deg !important; | |
-webkit-transform: rotate(-90deg); | |
-moz-transform: rotate(-90deg); | |
<!--[if IE]> | |
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3); | |
<![endif]--> | |
font-weight: bold; | |
} | |
</style> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#admin_tab a").click(function(){ | |
if ($("#admin_content").css("width") == "0px" ) { | |
$("#admin_content").effect("size", {to: {width: "170px"}}, "slow"); | |
$("#admin").effect("size", {to: {width: "200px"}}, "slow"); | |
} else { | |
$("#admin_content").effect("size", {to: {width: "0px"}}, "slow"); | |
$("#admin").effect("size", {to: {width: "30px"}}, "slow"); | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="admin_position"> | |
<div id="admin"> | |
<div id="admin_tab"> | |
<div id="admin_link"> | |
<a href="#">Admin</a> | |
</div> | |
</div> | |
<div id="admin_content"> | |
<div> | |
<h1>Administration</h1> | |
<h2>Pages</h2> | |
<ul> | |
<li>1</li> | |
<li>2</li> | |
<li>3</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment