summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/www/browse/database.html4
-rw-r--r--share/www/style/layout.css12
2 files changed, 9 insertions, 7 deletions
diff --git a/share/www/browse/database.html b/share/www/browse/database.html
index e84c9798..120c47c6 100644
--- a/share/www/browse/database.html
+++ b/share/www/browse/database.html
@@ -114,13 +114,13 @@ specific language governing permissions and limitations under the License.
<span id="view-toggle">View Code</span>
</div>
<div class="code map">
- <label>Map Function:</label>
+ <label for="viewcode_map">Map Function:</label>
<textarea id="viewcode_map" class="map" rows="5" cols="79" spellcheck="false" wrap="off">function(doc) {
emit(null, doc);
}</textarea>
</div>
<div class="code reduce">
- <label>Reduce Function (optional):</label>
+ <label for="viewcode_reduce">Reduce Function (optional):</label>
<textarea id="viewcode_reduce" class="reduce" rows="5" cols="79" spellcheck="false" wrap="off"></textarea>
</div>
<div class="bottom">
diff --git a/share/www/style/layout.css b/share/www/style/layout.css
index 13dfbcaf..b8c4110e 100644
--- a/share/www/style/layout.css
+++ b/share/www/style/layout.css
@@ -255,7 +255,7 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
border: 1px solid; border-color: #ddd #ddd #e9e9e9 #ddd; color: #333;
margin: 0 -.5em; padding: 0 .5em 2px;
}
-#viewcode .top { color: #aaa; font-size: 95%; }
+#viewcode .top { color: #aaa; font-size: 95%; }
#viewcode .top span { background: url(../image/twisty.gif) 0 3px no-repeat;
border: none; color: #666; cursor: pointer; display: block; font-size: 90%;
margin: 0; padding: 2px 0 0 15px;
@@ -267,11 +267,12 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
#viewcode .code, #viewcode .bottom { display: none; }
#viewcode .code { float: left; padding: .2em 0; width: 49%; }
#viewcode .code label { font-size: 90%; color: #999; }
-#viewcode .code textarea { border: none; border-top: 1px solid #ddd;
- color: #333; min-height: 50px; max-width: 98%; padding-top: .5em;
- resize: none;
+#viewcode .code textarea { border: none; border-top: 1px solid #ccc;
+ color: #333; margin: 0 0 .4em; min-height: 50px; max-width: 98%;
+ padding: .2em 0; resize: none;
}
-#viewcode div.map { border-right: 1px dashed #ccc; margin-right: .5em; }
+#viewcode .code textarea:focus { background: #ffffe9; }
+#viewcode div.map { border-right: 3px double #ccc; margin-right: .5em; }
#viewcode .bottom { border-bottom: none; clear: left; padding: 1px 3px; }
#viewcode .bottom button { font-size: 90%; margin: 0 1em 0 0;
padding-left: 2em; padding-right: 2em;
@@ -284,6 +285,7 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
}
#viewcode .bottom button.save { font-weight: bold; }
#viewcode .grippie { background-position: 49% 50%; }
+#viewcode.expanded .top { border-bottom: 1px solid #ddd; }
#viewcode.expanded .top span { background-position: 0 -96px; }
#viewcode.expanded .code, #viewcode.expanded .bottom { display: block; }