Skip to content

Instantly share code, notes, and snippets.

@budRich
Last active December 20, 2015 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save budRich/6045023 to your computer and use it in GitHub Desktop.
Save budRich/6045023 to your computer and use it in GitHub Desktop.
/* css for AutoHotkey.chm - Like clockwork*/
/* styles tweaked from the original css by budRich */
body {
font-family: Segoe UI, Verdana, Arial, Helvetica, sans-serif, "MS sans serif";
font-size: 100%;
border: 0;
color: #999;
background-color: #111313;
line-height: 145%;
}
p {
margin-top: 0.7em;
margin-bottom: 0.7em;
}
h1 {
font-size: 155%;
font-weight: normal;
margin: 0;
padding: 0 0 0.5em 4px;
border-bottom-style: ridge;
border-bottom-color: #999;
border-bottom-width: 2px;
}
h2 {
font-size: 144%;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif, "MS sans serif";
background-color: #333;
color: #F65577;
margin: 1.5em 0 0.5em 0;
padding: 0.1em 0 0.1em 0.2em;
}
h3 {
font-size: 111%;
font-weight: bold;
background-color: #111;
margin: 1.0em 0 0.5em 0;
padding: 0.1em 0 0.1em 0.2em;
border-top: 1px solid silver;
border-bottom: 1px solid silver;
}
h4 {
font-size: 100%;
margin: 0.7em 0;
border-bottom: 1px solid lightgrey;
}
ul, ol {margin-top: 0.7em; margin-bottom: 0.7em;}
li {margin-top: 0.2em; margin-bottom: 0.2em; margin-left: -0.75em;}
a {text-decoration: none;}
a:link, a:active {color: #F65577;}
a:visited {color: #F30342;}
a:hover {text-decoration: underline; color: #F30342;}
.Indent {
margin-left: 2em;
}
.NoIndent {
margin-left: 0;
margin-right: 0;
}
/* pre: code blocks, code: inline code, .Syntax: syntax definition (block/pre or inline/span) */
pre, code, .Syntax {
font-family: Consolas, Courier New, monospace;
}
pre, code { background-color: #111111; border: solid 1px #555; color: #ddd}
.Syntax { background-color: #222222; border: solid 1px #ccc; }
code, span.Syntax { padding: 0 1px; }
pre {
margin: 0.7em 1.5em 0.7em 1.5em;
padding: 0.7em 0 0.7em 0.7em;
white-space: pre-wrap; /* works in IE8 but apparently not CHM viewer */
word-wrap: break-word; /* works in CHM viewer */
}
pre.Syntax {
margin: 0 0 1.0em 0;
padding: 12px 0 12px 4px;
line-height: 150%;
}
pre, pre.Short /*used with .Syntax*/ { line-height: 120%; }
/* comments */
pre em, code em { color: #666; font-style: normal; }
/* table of command parameters */
table.info {
border: solid 2px #C0C0C0;
border-collapse: collapse;
width: 100%;
/*table-layout: fixed;*/
}
table.info td {
border: solid 2px #C0C0C0;
padding: 0.3em;
}
table.info th {
background-color: #111;
padding: 0.3em;
}
/* version number/requirement tag */
h1 .ver, h2 .ver, h3 .ver {font-size: 65%; font-weight: normal; margin-left: 1em; vertical-align: top}
h2 .ver {color: lightgray; font-size: 80%;}
.ver,
/* de-emphasized */
.dull {color: gray;}
.red {color: red;} /* used for highlight in various places */
.blue {color: #3333CC;}
/* emphasized note */
.note {border: 1px solid #99BB99; background-color: #E6FFE6;
color: #005500; padding: 0 3px; }
/* styles for briefly documenting multiple methods on one page: */
.methodShort {
border: solid thin #C0C0C0;
padding: 0.5em;
margin-bottom: 1em;
}
.methodShort h2 { margin-top: 0; }
.methodShort table.info { border: none; }
.methodShort table.info td {
border: none;
vertical-align: text-top;
}
.methodShort:target { /* non-essential, but helpful if it works */
border-color: black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment