From 71870d98c3df4592a5ac23a9dc1b10aae6f75f27 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Mon, 18 Jun 2012 02:23:27 +0900 Subject: [PATCH] change font-family. same as github --- src/main/webapp/resource/sh_style.css | 13 +++++++------ src/main/webapp/resource/template.css | 16 ++++++++-------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/resource/sh_style.css b/src/main/webapp/resource/sh_style.css index 6cd20b4..2877049 100644 --- a/src/main/webapp/resource/sh_style.css +++ b/src/main/webapp/resource/sh_style.css @@ -3,14 +3,15 @@ pre.sh_sourceCode { color: black; font-style: normal; font-weight: normal; + font-family: Consolas, Menlo, 'Liberation Mono', Courier, monospace; } pre.sh_sourceCode .sh_keyword { color: blue; font-weight: bold; } /* language keywords */ pre.sh_sourceCode .sh_type { color: darkgreen; } /* basic types */ pre.sh_sourceCode .sh_usertype { color: teal; } /* user defined types */ -pre.sh_sourceCode .sh_string { color: red; font-family: monospace; } /* strings and chars */ -pre.sh_sourceCode .sh_regexp { color: orange; font-family: monospace; } /* regular expressions */ -pre.sh_sourceCode .sh_specialchar { color: pink; font-family: monospace; } /* e.g., \n, \t, \\ */ +pre.sh_sourceCode .sh_string { color: red; } /* strings and chars */ +pre.sh_sourceCode .sh_regexp { color: orange; } /* regular expressions */ +pre.sh_sourceCode .sh_specialchar { color: pink; } /* e.g., \n, \t, \\ */ pre.sh_sourceCode .sh_comment { color: brown; font-style: italic; } /* comments */ pre.sh_sourceCode .sh_number { color: purple; } /* literal numbers */ pre.sh_sourceCode .sh_preproc { color: darkblue; font-weight: bold; } /* e.g., #include, import */ @@ -27,10 +28,10 @@ pre.sh_sourceCode .sh_predef_func { color: darkblue; font-weight: bold; } pre.sh_sourceCode .sh_classname { color: teal; } /* line numbers (not yet implemented) */ -pre.sh_sourceCode .sh_linenum { color: black; font-family: monospace; } +pre.sh_sourceCode .sh_linenum { color: black; } /* Internet related */ -pre.sh_sourceCode .sh_url { color: blue; text-decoration: underline; font-family: monospace; } +pre.sh_sourceCode .sh_url { color: blue; text-decoration: underline; } /* for ChangeLog and Log files */ pre.sh_sourceCode .sh_date { color: blue; font-weight: bold; } @@ -44,7 +45,7 @@ pre.sh_sourceCode .sh_variable { color: darkgreen; } pre.sh_sourceCode .sh_italics { color: darkgreen; font-style: italic; } pre.sh_sourceCode .sh_bold { color: darkgreen; font-weight: bold; } pre.sh_sourceCode .sh_underline { color: darkgreen; text-decoration: underline; } -pre.sh_sourceCode .sh_fixed { color: green; font-family: monospace; } +pre.sh_sourceCode .sh_fixed { color: green; } pre.sh_sourceCode .sh_argument { color: darkgreen; } pre.sh_sourceCode .sh_optionalargument { color: purple; } pre.sh_sourceCode .sh_math { color: orange; } diff --git a/src/main/webapp/resource/template.css b/src/main/webapp/resource/template.css index 4f552b7..021e019 100644 --- a/src/main/webapp/resource/template.css +++ b/src/main/webapp/resource/template.css @@ -106,7 +106,7 @@ a[href]:hover { font-size: 24pt; text-shadow: black 0px 2px 0px; /* text-shadow: black 0px 0px 0px;*/ -text-decoration: none; +text-decoration: none; } #definition #owner { @@ -162,7 +162,7 @@ text-decoration: none; padding-left: 15px; background: url("arrow-right.png") no-repeat 0 3px transparent; } - + .toggleContainer.open .toggle { background: url("arrow-down.png") no-repeat 0 3px transparent; } @@ -389,7 +389,7 @@ div.members > ol > li:last-child { background-color: #eee; margin: 5px 0; display: block; - font-family: monospace; + font-family: Consolas, Menlo, 'Liberation Mono', Courier, monospace; } .cmt pre span.ano { @@ -515,7 +515,7 @@ div.fullcommenttop .block { margin-bottom: 5px } -div.fullcomment div.block ol li p, +div.fullcomment div.block ol li p, div.fullcomment div.block ol li { display:inline } @@ -661,7 +661,7 @@ div.fullcomment dl.paramcmts > dd { #mbrsel > div > ol > li { /* padding: 3px 10px;*/ - line-height: 16pt; + line-height: 16pt; display: inline-block; cursor: pointer; } @@ -715,10 +715,10 @@ div.fullcomment dl.paramcmts > dd { #mbrsel .showall { color: #4C4C4C; line-height: 16px; - font-weight: bold; + font-weight: bold; } #mbrsel .showall span { color: #4C4C4C; - font-weight: bold; -}*/ \ No newline at end of file + font-weight: bold; +}*/