=== modified file 'lava_server/htdocs/css/default.css'
@@ -5,7 +5,6 @@
code {
font-family: UbuntuBeta Mono, Lucida Console, Consolas, monospace;
- font-size: 10pt;
}
body {
@@ -164,7 +163,7 @@
}
#lava-server-sidebar.lava-sidebar {
- color: black;
+ color: #333;
height: 100%;
padding: 2pt 2pt 5pt 5pt;
border: none;
@@ -174,6 +173,9 @@
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
background: white;
top: 0;
+ font-size: 9pt;
+ font-family: 'Ubuntu', sans-serif;
+ overflow-y: auto;
}
/* Hidden sidebar should be opaque. Removing the border and keeping the shadow
@@ -199,6 +201,85 @@
border-color: inherit !important;
}
+#lava-server-sidebar span.has-tooltip {
+ border-bottom: 1px dotted;
+}
+
+#lava-server-sidebar dl {
+ margin: 0 0 0 1em;
+ padding: 0;
+}
+
+#lava-server-sidebar dt {
+ font-weight: bold;
+ margin: 0;
+ padding: 0;
+}
+
+#lava-server-sidebar dd {
+ margin: 0 0 0.5ex 1em;
+ padding: 0;
+}
+
+#lava-server-sidebar p.help_text {
+ color: #888;
+ padding: 2pt;
+}
+
+#lava-server-sidebar .help-button {
+ margin: 0 0 0 0.5em;
+ font-size: 7pt;
+ font-weight: bold;
+ cursor: help;
+ background-color: #555;
+ color: white;
+ border-radius: 0.5em;
+ padding: 0.3em;
+}
+
+#lava-server-sidebar ul {
+ margin: 0 0 0 1em;
+ padding: 0 0 0 0;
+ list-style-position: inside;
+ list-style-type: square;
+}
+
+#lava-server-sidebar dd ul {
+ margin: 0 0 0 0;
+ padding: 0 0 0 0;
+}
+
+#lava-server-sidebar dd p {
+ margin: 0.2ex 0;
+}
+
+#lava-server-sidebar h3 {
+ margin: 2ex 0 1ex 0;
+ padding: 0 0 0 0;
+ font-size: 12pt;
+ font-weight: bold;
+ line-height: 1.2ex;
+ display: inline-block;
+ color: inherit;
+}
+
+#lava-server-sidebar h3 + p {
+ margin: 0;
+ text-indent: 1ex;
+}
+
+#lava-server-sidebar div.console {
+ background-color: #222;
+ color: white;
+ border: 3px solid #000;
+ padding: 0.5ex;
+ overflow: auto;
+}
+
+#lava-server-sidebar div.console code {
+ white-space: pre;
+}
+
/* Content */
=== modified file 'lava_server/templates/layouts/base.html'
@@ -11,6 +11,7 @@
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/Aristo/jquery-ui-1.8.7.custom.css"/>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/default.css"/>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/jquery.lava.sidebar.css"/>
+ <link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'/>
{% endblock %}
{% block extrahead %}{% endblock %}
</head>
=== modified file 'lava_server/templates/layouts/content.html'
@@ -115,8 +115,10 @@
$(function() {
$("#lava-server-topics dd").hide();
$("#lava-server-topics dt").click(function (event) {
- $(":parent dd").slideUp("slow");
- $(this).next().slideDown("slow");
+ if ($(this).next("dd").is(":hidden")) {
+ $(this).parent().children("dd").slideUp("fast");
+ $(this).next("dd").slideDown("fast");
+ }
});
});
</script>
=== modified file 'lava_server/templates/layouts/content_with_sidebar.html'
@@ -110,6 +110,36 @@
if ($.cookie(preferDockedCookieName) == "true") {
dock_the_sidebar();
}
+
+ // Collapse help_text items to a clickable question mark
+ $("#lava-server-sidebar dd p.help_text")
+ .each(function(index, item) {
+ $(item)
+ .hide() // hide the orginal text
+ .closest("dd").prev("dt") // to the closest data definition's topic
+ .append( // append a small span
+ $("<span/>", {"class": "help-button" })
+ .text("?") // with a question mark
+ .click(function() {
+ $(this).hide(); // that goes away when clicked
+ $(item).show() // but displays the originally hidden text
+ })
+ );
+ });
+ $("#lava-server-sidebar h3 + p.help_text")
+ .each(function(index, item) {
+ $(item)
+ .hide() // hide the orginal text
+ .prev("h3") // to the prevous header line
+ .append( // append a small span
+ $("<span/>", {"class": "help-button" })
+ .text("?") // with a question mark
+ .click(function() {
+ $(this).hide(); // that goes away when clicked
+ $(item).show() // but displays the originally hidden text
+ })
+ );
+ });
});
</script>
{% endblock %}