summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonna Malayeri <lindydonna@gmail.com>2011-04-11 12:20:07 +0000
committerDonna Malayeri <lindydonna@gmail.com>2011-04-11 12:20:07 +0000
commit95ecae34692aea8e90648c14dad322fa8cd27f0b (patch)
tree0e4dbaaf516bb1ca17ed2b0dc4da06dae81a936d
parent3eaae8902043fbebdcdee0314b7b5d35fe274400 (diff)
downloadscala-95ecae34692aea8e90648c14dad322fa8cd27f0b.tar.gz
scala-95ecae34692aea8e90648c14dad322fa8cd27f0b.tar.bz2
scala-95ecae34692aea8e90648c14dad322fa8cd27f0b.zip
[scaladoc] Improve visual design and layout of ...
[scaladoc] Improve visual design and layout of Scaladoc, using contributions from Heather Miller. No review.
-rw-r--r--build.xml4
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/HtmlFactory.scala33
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/page/Index.scala16
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/page/Template.scala13
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/constructorsbg.gifbin0 -> 1206 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-blue.gifbin0 -> 1544 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-green.gifbin0 -> 1341 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_left.pngbin481 -> 1692 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_right.pngbin533 -> 1803 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filterbg.gifbin0 -> 1324 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.gifbin0 -> 1104 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.pngbin0 -> 965 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbg.gifbin0 -> 1366 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/fullcommenttopbg.gifbin0 -> 1115 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/index.css130
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js6
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li-a.pngbin0 -> 1198 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li.pngbin0 -> 2441 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/ownderbg2.gifbin0 -> 1145 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg.gifbin0 -> 1118 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg2.gifbin0 -> 1145 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/packagesbg.gifbin0 -> 1201 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/selected-right.pngbin0 -> 1380 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/selected.pngbin0 -> 1864 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2-right.pngbin0 -> 1434 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2.pngbin0 -> 1965 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg.gifbin0 -> 1214 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg2.gifbin0 -> 1209 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css197
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js40
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/typebg.gifbin0 -> 1206 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/unselected.pngbin0 -> 1879 bytes
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/resource/lib/valuemembersbg.gifbin0 -> 1206 bytes
33 files changed, 373 insertions, 66 deletions
diff --git a/build.xml b/build.xml
index 388ebff4ff..e4a50072ac 100644
--- a/build.xml
+++ b/build.xml
@@ -375,7 +375,7 @@ LOCAL REFERENCE BUILD (LOCKER)
<include name="**/*.properties"/>
<include name="**/*.swf"/>
<include name="**/*.png"/>
-
+ <include name="**/*.gif"/>
</fileset>
</copy>
<touch file="${build-locker.dir}/compiler.complete" verbose="no"/>
@@ -590,6 +590,7 @@ QUICK BUILD (QUICK)
<include name="**/*.properties"/>
<include name="**/*.swf"/>
<include name="**/*.png"/>
+ <include name="**/*.gif"/>
</fileset>
</copy>
<touch file="${build-quick.dir}/compiler.complete" verbose="no"/>
@@ -1101,6 +1102,7 @@ BOOTSTRAPPING BUILD (STRAP)
<include name="**/*.properties"/>
<include name="**/*.swf"/>
<include name="**/*.png"/>
+ <include name="**/*.gif"/>
</fileset>
</copy>
<touch file="${build-strap.dir}/compiler.complete" verbose="no"/>
diff --git a/src/compiler/scala/tools/nsc/doc/html/HtmlFactory.scala b/src/compiler/scala/tools/nsc/doc/html/HtmlFactory.scala
index f6dc58617e..8d260c2889 100644
--- a/src/compiler/scala/tools/nsc/doc/html/HtmlFactory.scala
+++ b/src/compiler/scala/tools/nsc/doc/html/HtmlFactory.scala
@@ -45,11 +45,11 @@ class HtmlFactory(val universe: doc.Universe, index: doc.Index) {
copyResource("lib/scheduler.js")
copyResource("lib/index.js")
copyResource("lib/template.js")
+
copyResource("lib/index.css")
copyResource("lib/ref-index.css")
copyResource("lib/template.css")
- copyResource("lib/arrow-down.png")
- copyResource("lib/arrow-right.png")
+
copyResource("lib/class.png")
copyResource("lib/class_big.png")
copyResource("lib/object.png")
@@ -58,9 +58,38 @@ class HtmlFactory(val universe: doc.Universe, index: doc.Index) {
copyResource("lib/trait_big.png")
copyResource("lib/package.png")
copyResource("lib/package_big.png")
+
+ copyResource("lib/arrow-down.png")
+ copyResource("lib/arrow-right.png")
copyResource("lib/filter_box_left.png")
copyResource("lib/filter_box_right.png")
+ copyResource("lib/filter_box_left2.gif")
+ copyResource("lib/filterbg.gif")
+ copyResource("lib/filterboxbarbg.gif")
+ copyResource("lib/filterboxbg.gif")
+
+ copyResource("lib/constructorsbg.gif")
+ copyResource("lib/defbg-blue.gif")
+ copyResource("lib/defbg-green.gif")
+ copyResource("lib/fullcommenttopbg.gif")
+ copyResource("lib/ownderbg2.gif")
+ copyResource("lib/ownerbg.gif")
+ copyResource("lib/ownerbg2.gif")
+ copyResource("lib/signaturebg.gif")
+ copyResource("lib/signaturebg2.gif")
+ copyResource("lib/packagesbg.gif")
+ copyResource("lib/typebg.gif")
+ copyResource("lib/valuemembersbg.gif")
+ copyResource("lib/filterboxbarbg.png")
+
copyResource("lib/remove.png")
+ copyResource("lib/navigation-li-a.png")
+ copyResource("lib/navigation-li.png")
+ copyResource("lib/selected-right.png")
+ copyResource("lib/selected.png")
+ copyResource("lib/selected2-right.png")
+ copyResource("lib/selected2.png")
+ copyResource("lib/unselected.png")
new page.Index(universe, index) writeFor this
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Index.scala b/src/compiler/scala/tools/nsc/doc/html/page/Index.scala
index 4295151952..32ba06737b 100644
--- a/src/compiler/scala/tools/nsc/doc/html/page/Index.scala
+++ b/src/compiler/scala/tools/nsc/doc/html/page/Index.scala
@@ -37,10 +37,10 @@ class Index(universe: doc.Universe, index: doc.Index) extends HtmlPage {
val body =
<body>
<div id="library">
- <img class='class icon' width="13" height="13" src={ relativeLinkTo{List("class.png", "lib")} }/>
- <img class='trait icon' width="13" height="13" src={ relativeLinkTo{List("trait.png", "lib")} }/>
- <img class='object icon' width="13" height="13" src={ relativeLinkTo{List("object.png", "lib")} }/>
- <img class='package icon' width="13" height="13" src={ relativeLinkTo{List("package.png", "lib")} }/>
+ <img class='class icon' src={ relativeLinkTo{List("class.png", "lib")} }/>
+ <img class='trait icon' src={ relativeLinkTo{List("trait.png", "lib")} }/>
+ <img class='object icon' src={ relativeLinkTo{List("object.png", "lib")} }/>
+ <img class='package icon' src={ relativeLinkTo{List("package.png", "lib")} }/>
</div>
{ browser }
<div id="content" class="ui-layout-center">
@@ -66,14 +66,6 @@ class Index(universe: doc.Universe, index: doc.Index) extends HtmlPage {
def browser =
<xml:group>
<div id="browser" class="ui-layout-west">
- <div class="ui-west-north">{
- <div class="letters">
- { for(l <- index.firstLetterIndex.keySet.toList.sortBy( _.toString )) yield { // TODO there should be a better way to do that
- val ch = if(l=='#') "%23" else l // url encoding if needed
- <a target="template" href={"index/index-"+ch+".html"}>{l.toUpper}</a> ++ xml.Text(" ")
- } }
- </div>
- }</div>
<div class="ui-west-center">
<div id="filter"></div>
<div class="pack" id="tpl">{
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
index cd733ced9a..58ed4961a5 100644
--- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
+++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala
@@ -79,20 +79,23 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
{ if (tpl.linearizationTemplates.isEmpty) NodeSeq.Empty else
<div id="order">
<span class="filtertype">Ordering</span>
- <ol><li class="alpha in">Alphabetic</li><li class="inherit out">By inheritance</li></ol>
+ <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
</div>
}
{ if (tpl.linearizationTemplates.isEmpty) NodeSeq.Empty else
<div id="ancestors">
<span class="filtertype">Inherited</span>
- <ol><li class="hideall">Hide All</li><li class="showall">Show all</li></ol>
- <ol id="linearization">{ (tpl :: tpl.linearizationTemplates) map { wte => <li class="in" name={ wte.qualifiedName }>{ wte.name }</li> } }</ol>
+ <ol><li class="hideall out"><span>Hide All</span></li>
+ <li class="showall in"><span>Show all</span></li></ol>
+ <ol id="linearization">{
+ (tpl :: tpl.linearizationTemplates) map { wte => <li class="in" name={ wte.qualifiedName }><span>{ wte.name }</span></li> }
+ }</ol>
</div>
}
{
<div id="visbl">
<span class="filtertype">Visibility</span>
- <ol><li class="public in">Public</li><li class="all out">All</li></ol>
+ <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
</div>
}
</div>
@@ -197,7 +200,7 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
case dte: DocTemplateEntity if isSelf =>
// comment of class itself
<xml:group>
- <div id="comment" class="fullcomment">{ memberToCommentBodyHtml(mbr, isSelf = true) }</div>
+ <div id="comment" class="fullcommenttop">{ memberToCommentBodyHtml(mbr, isSelf = true) }</div>
</xml:group>
case dte: DocTemplateEntity if mbr.comment.isDefined =>
// comment of inner, documented class (only short comment, full comment is on the class' own page)
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/constructorsbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/constructorsbg.gif
new file mode 100644
index 0000000000..2e3f5ea530
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/constructorsbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-blue.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-blue.gif
new file mode 100644
index 0000000000..69038337a7
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-blue.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-green.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-green.gif
new file mode 100644
index 0000000000..36c43be3a2
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/defbg-green.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_left.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_left.png
index 4127dbf3c2..0e8c893315 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_left.png
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_left.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_right.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_right.png
index 942736e44d..f127e35b48 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_right.png
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filter_box_right.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterbg.gif
new file mode 100644
index 0000000000..542ba4aa5a
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.gif
new file mode 100644
index 0000000000..b5075c16cd
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.png
new file mode 100644
index 0000000000..d613cf5633
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbarbg.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbg.gif
new file mode 100644
index 0000000000..ae2f85823b
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/filterboxbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/fullcommenttopbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/fullcommenttopbg.gif
new file mode 100644
index 0000000000..a0d93f4844
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/fullcommenttopbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.css b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.css
index 7c05678313..df89781d10 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.css
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.css
@@ -2,7 +2,7 @@
color: inherit;
font-size: 10pt;
text-decoration: none;
- font-family: sans-serif;
+ font-family: Arial;
border-width: 0px;
padding: 0px;
margin: 0px;
@@ -20,9 +20,13 @@ h1 {
display: none;
}
-.letters {
+/*.letters {
+ font-family: monospace;
+ font-size: 2pt;
padding: 5px;
-}
+ background-color: #DADADA;
+ text-shadow: #ffffff 0 1px 0;
+}*/
#library {
display: none;
@@ -40,16 +44,70 @@ h1 {
#filter {
position: absolute;
display: block;
- padding: 5px;
+/* padding: 5px;*/
right: 0;
left: 0;
top: 0;
- background-color: #DADADA;
+ background-image:url('filterbg.gif');
+ background-repeat:repeat-x;
+ background-color: #ededee; /* light gray */
+ /*background-color: #DADADA;*/
+ border:1px solid #bbbbbb;
+ border-top:0;
+ border-left:0;
+ border-right:0;
}
#textfilter {
position: relative;
display: block;
+ height: 20px;
+ margin-top: 5px;
+ margin-bottom: 5px;
+}
+
+#textfilter > .pre {
+ display: block;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 23px;
+ width: 21px;
+ background: url("filter_box_left.png");
+}
+
+#textfilter > .input {
+ display: block;
+ position: absolute;
+ top: 0;
+ right: 20px;
+ left: 20px;
+}
+
+#textfilter > .input > input {
+ height: 21px;
+ padding: 1px;
+ font-weight: bold;
+ color: #000000;
+ background-color: white;
+ background: url("filterboxbarbg.png");
+ background-repeat:repeat-x;
+ width: 100%;
+}
+
+#textfilter > .post {
+ display: block;
+ position: absolute;
+ top: 0;
+ right: 0;
+ height: 23px;
+ width: 21px;
+ background: url("filter_box_right.png");
+}
+
+/*#textfilter {
+ position: relative;
+ display: block;
height: 20px;
margin-bottom: 5px;
}
@@ -89,17 +147,20 @@ h1 {
height: 20px;
width: 20px;
background: url("filter_box_right.png");
-}
+}*/
#focusfilter {
position: relative;
+ text-align: center;
display: block;
padding: 5px;
- background-color: pink;
+ background-color: #fffebd; /* light yellow*/
+ text-shadow: #ffffff 0 1px 0;
}
#focusfilter .focuscoll {
font-weight: bold;
+ text-shadow: #ffffff 0 1px 0;
}
#focusfilter img {
@@ -111,14 +172,41 @@ h1 {
position: relative;
display: block;
padding: 5px;
- background-color: #999;
+/* background-color: #999;*/
text-align: center;
}
-
#kindfilter > a {
- color: white;
- text-decoration: underline;
+ color: black;
+/* text-decoration: underline;*/
+ text-shadow: #ffffff 0 1px 0;
+
+}
+
+#kindfilter > a:hover {
+ color: #4C4C4C;
+ text-decoration: none;
+ text-shadow: #ffffff 0 1px 0;
+
+}
+
+#letters {
+ position: relative;
+ text-align: center;
+ padding-bottom: 5px;
+ border:1px solid #bbbbbb;
+ border-top:0;
+ border-left:0;
+ border-right:0;
+}
+
+#letters > a {
+/* font-family: monospace;*/
+ color: #858484;
+ font-weight: bold;
+ font-size: 8pt;
+ text-shadow: #ffffff 0 1px 0;
+ padding-right: 2px;
}
#tpl {
@@ -149,23 +237,28 @@ h1 {
}
#tpl .packages > ol {
+ background-color: #dadfe6;
/*margin-bottom: 5px;*/
}
-#tpl .packages > ol > li {
+/*#tpl .packages > ol > li {
margin-bottom: 1px;
-}
+}*/
#tpl .packages > li > h3 {
display: block;
color: white;
font-weight: bold;
display: block;
+ text-shadow: #000000 0 1px 0;
}
#tpl ol > li.pack {
- background-color: #2C475C;
padding: 3px 5px;
+ background: url("packagesbg.gif");
+ background-repeat:repeat-x;
+ min-height: 14px;
+ background-color: #6e808e;
}
#tpl ol > li {
@@ -174,6 +267,7 @@ h1 {
#tpl .templates > li {
padding-left: 5px;
+ min-height: 18px;
}
#tpl ol > li .icon {
@@ -217,7 +311,13 @@ h1 {
}
.ui-layout-resizer {
- background: #DDD;
+ background-image:url('filterbg.gif');
+ background-repeat:repeat-x;
+ background-color: #ededee; /* light gray */
+ border:1px solid #bbbbbb;
+ border-top:0;
+ border-bottom:0;
+ border-left: 0;
}
.ui-layout-toggler {
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
index b06d5dc369..1a574a8752 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js
@@ -209,6 +209,7 @@ function prepareEntityList() {
function configureTextFilter() {
scheduler.add("init", function() {
$("#filter").append("<div id='textfilter'><span class='pre'/><span class='input'><input type='text' accesskey='/'/></span><span class='post'/></div>");
+ printAlphabet();
var input = $("#textfilter input");
resizeFilterBlock();
input.bind("keyup", function(event) {
@@ -391,3 +392,8 @@ function kindFilterSync() {
function resizeFilterBlock() {
$("#tpl").css("top", $("#filter").outerHeight(true));
}
+
+function printAlphabet() {
+ $("#filter").append("<div id='letters'><a target='template' href='index/index-%23.html'>#</a><a target='template' href='index/index-a.html'>A</a><a target='template' href='index/index-b.html'>B</a><a target='template' href='index/index-c.html'>C</a><a target='template' href='index/index-d.html'>D</a><a target='template' href='index/index-e.html'>E</a><a target='template' href='index/index-f.html'>F</a><a target='template' href='index/index-g.html'>G</a><a target='template' href='index/index-h.html'>H</a><a target='template' href='index/index-i.html'>I</a><a target='template' href='index/index-j.html'>J</a><a target='template' href='index/index-k.html'>K</a><a target='template' href='index/index-l.html'>L</a><a target='template' href='index/index-m.html'>M</a><a target='template' href='index/index-n.html'>N</a><a target='template' href='index/index-o.html'>O</a><a target='template' href='index/index-p.html'>P</a><a target='template' href='index/index-q.html'>Q</a><a target='template' href='index/index-r.html'>R</a><a target='template' href='index/index-s.html'>S</a><a target='template' href='index/index-t.html'>T</a><a target='template' href='index/index-u.html'>U</a><a target='template' href='index/index-v.html'>V</a><a target='template' href='index/index-w.html'>W</a><a target='template' href='index/index-x.html'>X</a><a target='template' href='index/index-y.html'>Y</a><a target='template' href='index/index-z.html'>Z</a></div>");
+}
+
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li-a.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li-a.png
new file mode 100644
index 0000000000..9b32288e04
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li-a.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li.png
new file mode 100644
index 0000000000..fd0ad06e81
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/navigation-li.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownderbg2.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownderbg2.gif
new file mode 100644
index 0000000000..848dd5963a
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownderbg2.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg.gif
new file mode 100644
index 0000000000..34a04249ee
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg2.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg2.gif
new file mode 100644
index 0000000000..2ed33b0aa4
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/ownerbg2.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/packagesbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/packagesbg.gif
new file mode 100644
index 0000000000..00c3378a2a
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/packagesbg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected-right.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected-right.png
new file mode 100644
index 0000000000..04eda2f307
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected-right.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected.png
new file mode 100644
index 0000000000..c89765239e
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2-right.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2-right.png
new file mode 100644
index 0000000000..bf984ef0ba
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2-right.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2.png
new file mode 100644
index 0000000000..a790bb1169
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/selected2.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg.gif
new file mode 100644
index 0000000000..b6ac4415e4
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg2.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg2.gif
new file mode 100644
index 0000000000..9aae5ba0aa
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/signaturebg2.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css
index 192a56f9bb..1fb2cbdbc2 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.css
@@ -30,7 +30,7 @@ input { border-width: 0px; }
/* Page */
body {
- font-family: sans-serif;
+ font-family: Arial;
font-size: 10pt;
}
@@ -45,12 +45,23 @@ a[href]:hover {
#owner {
padding: 2px 10px 5px;
+ height: 17px;
font-size: 12pt;
display: block;
}
#owner a {
color: black;
+/* text-decoration: none;*/
+/* font-weight: bold;*/
+/* text-shadow: white 0px 1px 0px;*/
+}
+
+#owner a:hover {
+ color: black;
+ text-decoration: none;
+/* font-weight: bold;*/
+/* text-shadow: white 0px 1px 0px;*/
}
.value #owner {
@@ -58,16 +69,23 @@ a[href]:hover {
}
.type #owner {
- background-color: #699D84; /* lighter green */
+ background-color: #95b8a1; /* lighter green */
+/* background-image:url('ownerbg2.gif');
+ background-repeat:repeat-x;*/
}
#types ol li > p {
margin-top: 5px;
}
+#types ol li:last-child {
+ margin-bottom: 5px;
+}
+
#definition {
display: block;
padding: 5px 6px;
+ height: 61px;
}
#definition > img {
@@ -77,19 +95,33 @@ a[href]:hover {
#definition > h1 {
padding: 12px 0 12px 6px;
color: white;
+ text-shadow: 3px black;
+ text-shadow: black 0px 2px 0px;
font-size: 24pt;
display: inline-block;
}
#definition h1 > a {
- color: white;
+ color: #ffffff;
+/* text-decoration: none; */
font-size: 24pt;
+ text-shadow: black 0px 0px 0px;
+}
+
+#definition h1 > a:hover {
+ color: #ffffff;
+ text-decoration: none;
+ font-size: 24pt;
+ text-shadow: black 0px 2px 0px;
}
#signature {
- background-color: #EBEBEB;
+ background-image:url('signaturebg2.gif');
+ background-color: #d7d7d7;
+ min-height: 18px;
+ background-repeat:repeat-x;
font-size: 11.5pt;
- margin-bottom: 10px;
+/* margin-bottom: 10px;*/
padding: 8px;
}
@@ -99,12 +131,16 @@ a[href]:hover {
text-align: left;
width: auto;
position: static;
+ text-shadow: 2px white;
+ text-shadow: white 0px 1px 0px;
}
#signature > span.symbol {
text-align: left;
display: inline;
padding-left: 0.7em;
+ text-shadow: 2px white;
+ text-shadow: white 0px 1px 0px;
}
/* Linear super types and known subclasses */
@@ -140,10 +176,14 @@ div.superTypes > h1 {
.value #definition {
background-color: #2C475C; /* blue */
+ background-image:url('defbg-blue.gif');
+ background-repeat:repeat-x;
}
.type #definition {
background-color: #316555; /* green */
+ background-image:url('defbg-green.gif');
+ background-repeat:repeat-x;
}
#template {
@@ -155,6 +195,7 @@ h3 {
padding: 5px 10px;
font-size: 12pt;
font-weight: bold;
+ text-shadow: black 1px 1px 0px;
}
dl.attributes > dt {
@@ -171,19 +212,41 @@ dl.attributes > dd {
#template .values > h3 {
background-color: #315479; /* grayish blue */
+ background: url("valuemembersbg.gif");
+ background-repeat:repeat-x;
+ height: 28px;
+}
+
+#values ol li:last-child {
+ margin-bottom: 5px;
}
#template .types > h3 {
background-color: #316555; /* green */
+ background: url("typebg.gif");
+ background-repeat:repeat-x;
+ height: 28px;
}
#constructors > h3 {
background-color: #333;
+ background: url("constructorsbg.gif");
+ background-repeat:repeat-x;
+ height: 28px;
}
#template > div.parent > h3 {
- background-color: #3B3B3B;
+ background-color: #dadada;
+/* border:1px solid #6f6f6f;
+ border-left:0;
+ border-right:0;*/
+ background: url("constructorsbg.gif");
+ background-repeat:repeat-x;
+ height: 17px;
margin-top: 10px;
+/* color: black;
+ text-shadow: white 0px 1px 0px;
+ font-weight: normal;8*/
font-style: italic;
font-size: 12pt;
}
@@ -229,6 +292,8 @@ div.members > ol > li:last-child {
line-height: 18px;
clear: both;
display: block;
+ text-shadow: 2px white;
+ text-shadow: white 0px 1px 0px;
}
.signature .kind {
@@ -405,10 +470,17 @@ p.comment {
margin: 5px 10px;
}
+div.fullcommenttop {
+ padding: 10px 10px;
+ background-image:url('fullcommenttopbg.gif');
+ background-repeat:repeat-x;
+}
+
div.fullcomment {
margin: 5px 10px;
}
+#template div.fullcommenttop,
#template div.fullcomment {
display:none;
margin: 5px 0 0 8.7em;
@@ -425,6 +497,13 @@ div.fullcomment .block {
margin-top: 5px;
}
+div.fullcommenttop .block {
+ padding: 5px 0 0;
+ border-top: 1px solid #EBEBEB;
+ margin-top: 5px;
+ margin-bottom: 5px
+}
+
div.fullcomment div.block ol li p,
div.fullcomment div.block ol li {
display:inline
@@ -440,16 +519,20 @@ div.fullcomment .comment {
margin: 5px 0 10px;
}
+div.fullcommenttop .comment:last-child,
div.fullcomment .comment:last-child {
margin-bottom: 0;
}
+
+div.fullcommenttop dl.paramcmts > dt,
div.fullcomment dl.paramcmts > dt {
display: block;
float: left;
font-weight: bold;
}
+div.fullcommenttop dl.paramcmts > dd,
div.fullcomment dl.paramcmts > dd {
display: block;
padding-left: 80px;
@@ -470,8 +553,8 @@ div.fullcomment dl.paramcmts > dd {
position: absolute;
top: 0;
left: 0;
- height: 20px;
- width: 20px;
+ height: 23px;
+ width: 21px;
background: url("filter_box_left.png");
}
@@ -484,12 +567,14 @@ div.fullcomment dl.paramcmts > dd {
}
#textfilter > .input > input {
- height: 16px;
- padding: 2px;
- font-weight: bold;
- color: #993300;
+ height: 21px;
+ padding: 1px;
+ font-weight: bold;
+ color: #000000;
background-color: white;
- width: 100%;
+ background: url("filterboxbarbg.png");
+ background-repeat:repeat-x;
+ width: 100%;
}
#textfilter > .post {
@@ -497,14 +582,16 @@ div.fullcomment dl.paramcmts > dd {
position: absolute;
top: 0;
right: 0;
- height: 20px;
- width: 20px;
+ height: 23px;
+ width: 21px;
background: url("filter_box_right.png");
}
#mbrsel {
padding: 5px 10px;
- background-color: #DADADA; /* light gray */
+ background-color: #ededee; /* light gray */
+ background-image:url('filterboxbg.gif');
+ background-repeat:repeat-x;
font-size: 9.5pt;
display: block;
margin-top: 1em;
@@ -520,47 +607,103 @@ div.fullcomment dl.paramcmts > dd {
}
#mbrsel > div > span.filtertype {
- padding: 3px 0;
+ padding: 4px;
+ margin-right: 5px;
float: left;
display: inline-block;
- color: #404040;
+ color: #000000;
+ font-weight: bold;
+ text-shadow: white 0px 1px 0px;
width: 4.5em;
}
#mbrsel > div > ol {
display: inline-block;
- /*background-color: white;*/
}
#mbrsel > div > ol#linearization {
- display: block;
- margin-left: 4.5em;
- margin-top: 5px;
+ display: table;
+ margin-left: 70px;
+}
+
+#mbrsel > div > ol#linearization > li.in {
+ text-decoration: none;
+ float: left;
+ padding-right: 10px;
+ margin-right: 5px;
+ background: url(selected-right.png) no-repeat;
+ background-position: right 0px;
+}
+
+#mbrsel > div > ol#linearization > li.in > span{
+ color: #4C4C4C;
+ float: left;
+ padding: 1px 0 1px 10px;
+ background: url(selected.png) no-repeat;
+ background-position: 0px 0px;
+ text-shadow: #ffffff 0 1px 0;
}
#mbrsel > div > ol > li {
- padding: 3px 10px;
- background-color: white;
+/* padding: 3px 10px;*/
+ line-height: 16pt;
display: inline-block;
cursor: pointer;
}
#mbrsel > div > ol > li.in {
- background-color: white;
+ text-decoration: none;
+ float: left;
+ padding-right: 10px;
+ margin-right: 5px;
+ background: url(selected-right.png) no-repeat;
+ background-position: right 0px;
+}
+
+#mbrsel > div > ol > li.in > span{
color: #4C4C4C;
+ float: left;
+ padding: 1px 0 1px 10px;
+ background: url(selected.png) no-repeat;
+ background-position: 0px 0px;
+ text-shadow: #ffffff 0 1px 0;
}
#mbrsel > div > ol > li.out {
- color: #4B4B4B;
- background-color: #999;
+ text-decoration: none;
+ float: left;
+ padding-right: 10px;
+ margin-right: 5px;
}
+#mbrsel > div > ol > li.out > span{
+ color: #4B4B4B;
+/* background-color: #999; */
+ float: left;
+ padding: 1px 0 1px 10px;
+/* background: url(unselected.png) no-repeat;*/
+ background-position: 0px -1px;
+ text-shadow: #ffffff 0 1px 0;
+}
+/*
#mbrsel .hideall {
color: #4C4C4C;
+ line-height: 16px;
+ font-weight: bold;
+}
+
+#mbrsel .hideall span {
+ color: #4C4C4C;
font-weight: bold;
}
#mbrsel .showall {
color: #4C4C4C;
+ line-height: 16px;
font-weight: bold;
}
+
+#mbrsel .showall span {
+ color: #4C4C4C;
+ font-weight: bold;
+}*/ \ No newline at end of file
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js
index 14a5613015..e848078aca 100644
--- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js
@@ -42,6 +42,8 @@ $(document).ready(function(){
};
filter();
});
+
+/*
$("#ancestors > ol > li.hideall").click(function() {
$("#linearization li.in").removeClass("in").addClass("out");
$("#linearization li:first").removeClass("out").addClass("in");
@@ -55,6 +57,32 @@ $(document).ready(function(){
filtered.removeClass("out").addClass("in");
filter();
});
+*/
+
+
+ $("#ancestors > ol > li.hideall").click(function() {
+ if ($(this).hasClass("out")) {
+ $(this).removeClass("out").addClass("in");
+ $("#ancestors > ol > li.showall").removeClass("in").addClass("out");
+ $("#linearization li.in").removeClass("in").addClass("out");
+ $("#linearization li:first").removeClass("out").addClass("in");
+ filter();
+ };
+ })
+ $("#ancestors > ol > li.showall").click(function() {
+ if($(this).hasClass("out")){
+ $(this).removeClass("out").addClass("in");
+ $("#ancestors > ol > li.hideall").removeClass("in").addClass("out");
+ var filtered =
+ $("#linearization li.out").filter(function() {
+ return ! isHiddenClass($(this).attr("name"));
+ });
+ filtered.removeClass("out").addClass("in");
+ filter();
+ };
+ });
+
+
$("#visbl > ol > li.public").click(function() {
if ($(this).hasClass("out")) {
$(this).removeClass("out").addClass("in");
@@ -112,12 +140,16 @@ $(document).ready(function(){
var vis = $(":visible", fullComment);
signature.toggleClass("closed").toggleClass("opened");
if (vis.length > 0) {
- shortComment.slideDown(100);
- fullComment.slideUp(100);
+ shortComment.slideDown(50);
+ fullComment.slideUp(50);
+ signature.addClass("closed");
+ signature.removeClass("opened");
}
else {
- shortComment.slideUp(100);
- fullComment.slideDown(100);
+ shortComment.slideUp(50);
+ fullComment.slideDown(50);
+ signature.removeClass("closed");
+ signature.addClass("opened");
}
};
docAllSigs.addClass("closed");
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/typebg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/typebg.gif
new file mode 100644
index 0000000000..2fcc77b2e8
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/typebg.gif
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/unselected.png b/src/compiler/scala/tools/nsc/doc/html/resource/lib/unselected.png
new file mode 100644
index 0000000000..d5ac639405
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/unselected.png
Binary files differ
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/valuemembersbg.gif b/src/compiler/scala/tools/nsc/doc/html/resource/lib/valuemembersbg.gif
new file mode 100644
index 0000000000..2a949311d7
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/valuemembersbg.gif
Binary files differ