about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdrien Tétar <adri-from-59@hotmail.fr>2013-10-11 20:08:52 +0200
committerAdrien Tétar <adri-from-59@hotmail.fr>2013-10-19 20:31:53 +0200
commit5d1fc864c7ee7b9d2e4e62e6e054683bfab521f0 (patch)
tree20f6c391853411d5ba558ce094f98dad59e6256b
parentf69795e443b73ac875092e54774b4666ca203aa5 (diff)
downloadrust-5d1fc864c7ee7b9d2e4e62e6e054683bfab521f0.tar.gz
rust-5d1fc864c7ee7b9d2e4e62e6e054683bfab521f0.zip
doc/rust.HTML: proper version box
-rw-r--r--doc/rust.css26
-rw-r--r--doc/version_info.html.template15
2 files changed, 21 insertions, 20 deletions
diff --git a/doc/rust.css b/doc/rust.css
index ed9ea446aa8..f55965b70a5 100644
--- a/doc/rust.css
+++ b/doc/rust.css
@@ -100,17 +100,21 @@ h3 a:link, h3 a:visited { color: black; }
 .cm-s-default span.cm-attribute {color: #00c;}
 
 #versioninfo {
-  position: fixed;
-  bottom: 0px;
-  right: 0px;
-
-  background-color: white;
-  padding: 0.5em;
-}
-
-a.lessimportant {
-  color: gray;
-  font-size: 60%;
+    position: fixed;
+    bottom: 0px;
+    right: 0px;
+    text-align: center;
+    padding: 0.5em;
+}
+#versioninfo a.hash {
+    color: gray;
+    font-size: 60%;
+}
+#versioninfo .white-sticker {
+    background-color: #fff;
+    margin: 2px;
+    padding: 0 2px;
+    border-radius: .3em;
 }
 
 blockquote {
diff --git a/doc/version_info.html.template b/doc/version_info.html.template
index aa44097a337..858e5a35f87 100644
--- a/doc/version_info.html.template
+++ b/doc/version_info.html.template
@@ -1,9 +1,6 @@
-<div id='versioninfo'>
-  <center>
-    <img src="http://www.rust-lang.org/logos/rust-logo-32x32-blk.png"> <br>
-    <a href="http://rust-lang.org">Rust</a> VERSION <br>
-    <a href="http://github.com/mozilla/rust/commit/STAMP"
-       class='lessimportant'>SHORT_HASH</a>
-  </center>
-
-</div>
+<div id="versioninfo">
+  <img src="http://www.rust-lang.org/logos/rust-logo-32x32-blk.png" width="32" height="32" alt><br>
+  <span class="white-sticker"><a href="http://rust-lang.org">Rust</a> VERSION</span><br>
+  <a href="http://github.com/mozilla/rust/commit/STAMP"
+    class="hash white-sticker">SHORT_HASH</a>
+</div>
\ No newline at end of file