1
0
Fork 0

Altered easejs theme (prototype)

website
Mike Gerwitz 2011-11-06 00:27:17 -04:00
parent f2b7ecb4a6
commit 5b65c9ce3b
3 changed files with 64 additions and 19 deletions

View File

@ -9,11 +9,15 @@
</head> </head>
<body> <body>
<div id="header"> <div id="header">
<h1>ease.js</h1> <div id="header-content">
<h1>ease<span class="suffix">js</span></h1>
<h2 class="desc">Classical Object-Oriented Framework</h2>
</div>
</div> </div>
<div id="menu"> <div id="menu">
<ul> <ul>
<li class="selected"><a href="/">About</a></li>
<li><a href="manual.html">Manual (Single Page)</a></li> <li><a href="manual.html">Manual (Single Page)</a></li>
<li><a href="manual/">Manual (Split)</a></li> <li><a href="manual/">Manual (Split)</a></li>
<li><a href="https://github.com/mikegerwitz/easejs">Source Code</a></li> <li><a href="https://github.com/mikegerwitz/easejs">Source Code</a></li>
@ -50,7 +54,7 @@
</div> </div>
<p class="copyright"> <p class="copyright">
Copyright &copy; 2011 <a href="http://mikegerwitz.name">Mike Gerwitz</a> Copyright &copy; 2011 <a href="http://mikegerwitz.com">Mike Gerwitz</a>
</p> </p>
<script type="text/javascript" <script type="text/javascript"

View File

@ -39,7 +39,7 @@
{ {
$trybtn = $( '<div>' ) $trybtn = $( '<div>' )
.attr( 'id', 'try' ) .attr( 'id', 'try' )
.text( 'Try It!' ) .text( 'Try It' )
.addClass( 'btn large glow' ) .addClass( 'btn large glow' )
.mousedown( function( event ) .mousedown( function( event )
{ {
@ -61,7 +61,7 @@
$trybtn.text( $trybtn.text(
( $try.is( ':visible' ) ) ( $try.is( ':visible' ) )
? 'Try It!' ? 'Try It'
: 'Hide It' : 'Hide It'
); );

View File

@ -5,7 +5,7 @@
*/ */
html, body { html, body {
background-color: white; background-color: #eeeeec;
margin: 0px 0px 1.5em 0px; margin: 0px 0px 1.5em 0px;
padding: 0; padding: 0;
@ -18,38 +18,77 @@ html, body {
position: relative; position: relative;
background-color: #2e3436; background-color: #2e3436;
border-bottom: 2px solid #295301;
height: 150px; height: 150px;
color: #babdb6; color: #babdb6;
} }
#header-content {
margin: 0px auto;
width: 800px;
}
#header h1 { #header h1 {
display: inline-block; display: inline-block;
margin: 0.5em 0px 0px 0.5em; margin: 0.25em 0px 0px 0px;
font-size: 4em; font-size: 4.5em;
color: #619ddb;
}
#header h1 .suffix {
position: relative;
top: 0.15em;
font-size: 0.8em;
color: #ce5c00;
}
#header h2.desc {
position: relative;
top: -1.50em;
left: 0.30em;
font-size: 0.6em;
font-weight: normal;
padding: 0px;
margin: 0px;
} }
#content { #content {
position: relative; position: relative;
background-color: white; background-color: white;
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, rgb(255,255,255)),
color-stop(1, rgb(238,238,236))
);
background-image: -moz-linear-gradient(
center top,
rgb(255,255,255) 0%,
rgb(238,238,236) 100%
);
margin: 0px auto; margin: 0px auto;
padding: 0.5em 1em 1em 1em; padding: 0.5em 1em 1em 1em;
width: 800px; width: 800px;
font-size: 0.9em;
} }
#menu { #menu {
border-bottom: 2px solid #b1dd87; background-color: #3465a4;
background-color: #4e9a06; border-bottom: 4px solid #204a87;
} }
#menu ul { #menu ul {
padding: 0px; padding: 0px;
height: 2.5em; height: 3.5em;
margin: 0px auto; margin: 0px auto;
width: 800px; width: 800px;
@ -60,7 +99,7 @@ html, body {
padding: 0px; padding: 0px;
float: left; float: left;
line-height: 2em; line-height: 3em;
} }
#menu a, #menu a:link { #menu a, #menu a:link {
@ -72,8 +111,13 @@ html, body {
font-weight: bold; font-weight: bold;
} }
#menu a:hover { #menu a:hover,
background-color: #b1dd87; #menu ul li.selected a {
background-color: #204a87;
}
#menu ul li.selected a {
color: #f57900;
} }
p.copyright { p.copyright {
@ -85,17 +129,14 @@ p.copyright {
margin: 0; margin: 0;
padding: 1em; padding: 1em;
background-color: #2e3436; color: #2e3436;
border-top: 2px solid #babdb6;
color: #babdb6;
font-size: 0.8em; font-size: 0.8em;
text-align: center; text-align: center;
} }
p.copyright a, p.copyright a:link { p.copyright a, p.copyright a:link {
color: #babdb6; color: #2e3436;
} }
@-webkit-keyframes pulse { @-webkit-keyframes pulse {