0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/doc/api_assets/style.css

489 lines
10 KiB
CSS
Raw Normal View History

/*--------------------- Layout and Typography ----------------------------*/
2012-01-22 05:02:16 +01:00
html {
-webkit-font-smoothing: antialiased;
}
body {
2012-01-22 05:02:16 +01:00
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-size: 14px;
line-height: 180%;
color: black;
2012-01-23 11:12:20 +01:00
margin: 0; padding: 49px 0 0 0;
2012-01-22 05:02:16 +01:00
border-top: 6px #8CC84B solid;
}
a {
2012-01-23 11:12:20 +01:00
color: #690;
text-decoration: underline;
}
a:visited {
2012-01-22 05:02:16 +01:00
color: #46483e;
text-decoration: underline;
}
a:hover, a:focus {
text-decoration: none;
}
2012-01-23 11:12:20 +01:00
code a:hover {
background: none;
color: #b950b7;
}
#changelog #gtoc {
display: none;
}
2012-01-23 11:12:20 +01:00
#gtoc p {
margin:0;
font-size:18px;
line-height: 30px;
}
2012-01-22 05:02:16 +01:00
#gtoc a {
font-family: Georgia, FreeSerif, Times, serif;
text-decoration: none;
color: #46483e;
}
#gtoc a:hover {
color: #669900;
text-decoration: underline;
}
.notice {
display: block;
padding: 1em;
margin: 1.4667em 0 2.9334em;
background:#FFF6BF;
color:#514721;
border:1px solid #FFD324;
}
.notice p {
margin: 0;
}
ul.plain {
list-style: none;
}
abbr {
border-bottom: 1px dotted #454545;
}
p {
margin: 0 0 1.4667em 0;
position: relative;
text-rendering: optimizeLegibility;
}
2012-01-23 11:12:20 +01:00
.apidoc p {
font-size: 15px;
line-height: 22px;
color: #000;
font-family: Georgia, FreeSerif, Times, serif;
}
ol, ul, dl {
margin: 0 0 1em 0;
padding: 0;
}
ol ul, ol ol, ol dl,
ul ul, ul ol, ul dl,
dl ul, dl ol, dl dl {
margin-bottom: 0;
}
ol p:first-child, ul p:first-child, dl p:first-child {
margin-bottom: 0;
}
ul, ol {
margin-left: 2em;
}
dl dt {
position: relative;
margin: 1.5em 0 0;
}
dl dd {
position: relative;
margin: 0 1em 0;
}
dd + dt.pre {
margin-top: 1.6em;
}
h1, h2, h3, h4, h5, h6 {
2012-01-23 11:12:20 +01:00
font-family: Helvetica, Arial, sans-serif;
color: #000;
text-rendering: optimizeLegibility;
position: relative;
}
h1 {
2012-01-22 05:02:16 +01:00
font-family: Georgia, FreeSerif, Times, serif;
font-size: 30px;
font-weight: normal;
line-height: 36px;
2012-01-23 11:12:20 +01:00
color: #690;
margin: 15px 0 11px;
}
h2 {
2012-01-23 11:12:20 +01:00
font-size: 29px;
line-height: 33px;
margin: 2em 0 15px;
}
#toc + h2 {
margin-top:1em;
padding-top:0;
}
h3 {
2012-01-23 11:12:20 +01:00
font-size: 1.4em;
line-height: 1.0909em;
margin: 1.5em 0 0.5em;
}
h3 + h3 {
margin: 0 0 0.5em;
}
h4 {
font-size: 1.3em;
line-height: 1.1282em;
margin: 2.2em 0 0.5em;
}
h4 + h4 {
margin: 0 0 0.5em;
}
2012-01-23 11:12:20 +01:00
h3, h4 {
position:relative;
padding-right:40px;
}
h2 span, h3 span, h4 span {
position:absolute;
display:block;
top:0;
right:0;
opacity: 0.3;
}
h2 span:hover, h3 span:hover, h4 span:hover {
opacity: 1;
}
h2 span a, h3 span a, h4 span a {
font-size: 0.8em;
color: #000;
text-decoration: none;
2012-01-23 11:12:20 +01:00
font-family: Helvetica, Arial, sans-serif;
font-weight:bold;
}
h2 span a.top, h3 span a.top, h4 span a.top {
/* XXX Get an image and clean up these two links
* so that they look nice next to one another.
* http://www.chrisglass.com/work/nodejs/website/v05/docs.html
* -isaacs
*/
display:none;
}
h5 {
font-size: 1.125em;
line-height: 1.4em;
}
h6 {
font-size: 1em;
line-height: 1.4667em;
}
pre, tt, code {
2012-01-23 11:12:20 +01:00
font-size: 14px;
line-height: 1.5438em;
font-family: Monaco, Consolas, "Lucida Console", monospace;
margin: 0; padding: 0;
}
.pre {
font-family: Monaco, Consolas, "Lucida Console", monospace;
line-height: 1.5438em;
font-size: 0.95em;
}
pre {
2012-01-22 05:02:16 +01:00
padding: 1em 1.6em 1em 1.2em;
vertical-align: top;
background: #f8f8f8;
border: 1px solid #e8e8e8;
border-width: 1px 1px 1px 6px;
margin: -0.5em 0 1.1em;
2012-01-22 05:02:16 +01:00
overflow-x:auto;
}
pre + h3 {
margin-top: 2.225em;
}
code.pre {
white-space: pre;
}
2012-01-22 05:02:16 +01:00
#intro {
width: 775px;
margin: 0 auto;
text-align: center;
color: #d2d8ba;
/* preload platform-icons.png */
background-image: url(http://nodejs.org/images/platform-icons.png);
2012-01-22 05:02:16 +01:00
background-repeat: no-repeat;
2012-01-23 11:12:20 +01:00
background-position: -999em -999em;
}
2012-01-22 05:02:16 +01:00
#intro.interior #logo {
2012-01-23 11:12:20 +01:00
margin-left: -298px;
border:0;
}
hr {
background: none;
border: medium none;
border-bottom: 1px solid #ccc;
2012-01-23 11:12:20 +01:00
margin: 1em 0;
}
#toc {
2012-01-23 11:12:20 +01:00
font-size:15px;
line-height:1.5em;
line-height: 22px;
padding-top:4px;
}
#toc h2 {
2012-01-23 11:12:20 +01:00
font-size: 15px;
line-height: 21px;
margin: 0 0 0.5em;
}
#toc h2 a {
float: right;
}
#toc hr {
margin: 1em 0 2em;
}
2012-01-23 11:12:20 +01:00
#toc ul {
font-family: Georgia, FreeSerif, Times, serif;
}
#toc ul a {
text-decoration:none;
border-bottom:1px dotted #690;
}
#toc ul a:hover, #toc ul a:focus {
border-bottom:1px dotted #fff;
color:#000;
}
p tt, p code {
background: #f8f8ff;
border: 1px solid #dedede;
padding: 0 0.2em;
}
2012-01-22 05:02:16 +01:00
#content {
2012-01-23 11:12:20 +01:00
width: 953px;
2012-01-22 05:02:16 +01:00
margin: 0 auto;
overflow: visible;
clear: both;
display: block;
}
#column1.interior {
2012-01-23 11:12:20 +01:00
width: 749px;
2012-01-22 05:02:16 +01:00
float: right;
2012-01-23 11:12:20 +01:00
padding-top: 7px;
padding-top: 11px;
font-size:18px;
2012-01-22 05:02:16 +01:00
}
#column2.interior {
2012-01-23 11:12:20 +01:00
width: 140px;
2012-01-22 05:02:16 +01:00
float: left;
2012-01-23 11:12:20 +01:00
margin-top: -55px;
2012-01-22 05:02:16 +01:00
overflow: visible;
}
#column2.interior ul {
margin-left: 0;
}
#column2.interior li {
list-style-type: none;
}
#column2.interior li a {
display: block;
2012-01-23 11:12:20 +01:00
padding: 0 0 0 35px;
2012-01-22 05:02:16 +01:00
color: #878b78;
text-transform: uppercase;
text-decoration: none;
2012-01-23 11:12:20 +01:00
font-size: 11px;
2012-01-22 05:02:16 +01:00
line-height: 23px;
}
#column2.interior li a.home { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px 3px; }
#column2.interior li a.download { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -21px; }
#column2.interior li a.about { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -45px; }
#column2.interior li a.npm { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -69px; }
#column2.interior li a.docs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -93px; }
#column2.interior li a.blog { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -117px; }
#column2.interior li a.community { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -141px; }
#column2.interior li a.logos { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -165px; }
#column2.interior li a.jobs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -189px; }
2012-01-23 11:12:20 +01:00
#column2.interior li a.home.current { background-position: 2px 3px; }
#column2.interior li a.download.current { background-position: 2px -21px; }
#column2.interior li a.about.current { background-position: 2px -45px; }
#column2.interior li a.npm.current { background-position: 2px -69px; }
#column2.interior li a.docs.current { background-position: 2px -93px; }
#column2.interior li a.blog.current { background-position: 2px -117px; }
#column2.interior li a.community.current { background-position: 2px -141px; }
#column2.interior li a.logos.current { background-position: 2px -165px; }
#column2.interior li a.jobs.current { background-position: 2px -189px; }
2012-01-22 05:02:16 +01:00
#column2.interior li a.current { color: #8cc84b; font-weight: bold; }
2012-01-23 11:12:20 +01:00
#column2.interior li a.home:hover { background-position: -331px 3px; }
#column2.interior li a.download:hover { background-position: -331px -21px; }
#column2.interior li a.about:hover { background-position: -331px -45px; }
#column2.interior li a.npm:hover { background-position: -331px -69px; }
#column2.interior li a.docs:hover { background-position: -331px -93px; }
#column2.interior li a.blog:hover { background-position: -331px -117px; }
#column2.interior li a.community:hover { background-position: -331px -141px; }
#column2.interior li a.logos:hover { background-position: -331px -165px; }
#column2.interior li a.jobs:hover { background-position: -331px -189px; }
2012-01-22 05:02:16 +01:00
#column2.interior li a:hover { color: #000000; text-decoration: none; }
#column2.interior li + li {
border-top: 1px solid #c1c7ac;
}
#column2.interior p.twitter {
padding-top: 20px;
}
#column2.interior p.twitter a {
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 0 4px;
2012-01-22 05:02:16 +01:00
padding-left: 37px;
text-decoration: none;
}
#column2.interior p.twitter a:hover {
text-decoration: underline;
}
a.totop {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-weight: bold;
text-indent: -9999999px;
background: url(http://nodejs.org/images/anchor.png) no-repeat top left;
2012-01-22 05:02:16 +01:00
margin-right: 7px;
display: block;
width: 13px;
border-bottom: 1px solid #cccccc;
}
a.anchor {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-weight: bold;
text-indent: -9999999px;
background: url(http://nodejs.org/images/anchor.png) no-repeat top right;
2012-01-22 05:02:16 +01:00
display: block;
width: 13px;
border-bottom: 1px solid #cccccc;
}
#footer {
2012-01-23 11:12:20 +01:00
width: 942px;
margin: 150px auto 55px auto;
padding:0;
2012-01-22 05:02:16 +01:00
}
#footer p {
2012-01-23 11:12:20 +01:00
font-size: 11px;
line-height:1em;
padding: 0 0 0 195px;
color: #666;
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
}
#footer a {
text-decoration:none;
border:none;
color: #690;
}
#footer a:hover {
color:#000;
2012-01-22 05:02:16 +01:00
}
#footer p a {
2012-01-23 11:12:20 +01:00
border-bottom:1px dotted #690;
2012-01-22 05:02:16 +01:00
color: #878b78;
}
#footer ul {
background: url(http://nodejs.org/images/footer-logo-alt.png) left 17px no-repeat;
2012-01-23 11:12:20 +01:00
padding: 23px 0 0 195px;
2012-01-22 05:02:16 +01:00
height: 26px;
2012-01-23 11:12:20 +01:00
margin-left: -1px;
border-top: 1px solid #626557;
2012-01-22 05:02:16 +01:00
}
#footer ul li {
list-style-type: none;
float: left;
font-size: 12px;
2012-01-23 11:12:20 +01:00
margin:0!important;
padding:0;
height: 12px;
2012-01-22 05:02:16 +01:00
}
#footer ul li a {
margin: 0;
2012-01-23 11:12:20 +01:00
padding: 0 6px 0 0;
display: block;
height:12px;
line-height:12px;
2012-01-22 05:02:16 +01:00
}
#footer ul li + li {
margin-left: 3px;
}
#footer ul li + li a {
2012-01-23 11:12:20 +01:00
padding: 0 6px 0 6px;
2012-01-22 05:02:16 +01:00
border-left: 1px solid #878b78;
}
#footer ul li a.twitter {
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 5px 0px;
2012-01-23 11:12:20 +01:00
padding-left: 25px;
2012-01-22 05:02:16 +01:00
}
/* simpler clearfix */
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}