about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory O’Kane <rory@roryokane.com>2015-04-24 20:29:28 -0400
committerRory O’Kane <rory@roryokane.com>2015-04-24 20:29:28 -0400
commit4ade7080c37b3ba27b018750823fd6f9d0adcc0c (patch)
treea17d305af34ca0fc600bab068ddbb0104501bb38
parentf9e53c7f2c8285f3422ac7ac091349ce572c4baa (diff)
downloadrust-4ade7080c37b3ba27b018750823fd6f9d0adcc0c.tar.gz
rust-4ade7080c37b3ba27b018750823fd6f9d0adcc0c.zip
In [-] doc buttons, change hyphen ‘-’ to minus ‘−’
The minus sign ‘−’ is the same width as the plus sign ‘+’, so the button’s transition between the two symbols will look more smooth.
-rw-r--r--src/librustdoc/html/static/main.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 56cea50a502..328eef1b5a2 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -808,7 +808,7 @@
 
     $("#toggle-all-docs").on("click", function() {
         var toggle = $("#toggle-all-docs");
-        if (toggle.html() == "[-]") {
+        if (toggle.html() == "[−]") {
             toggle.html("[+]");
             toggle.attr("title", "expand all docs");
             $(".docblock").hide();
@@ -816,12 +816,12 @@
             $(".toggle-wrapper").addClass("collapsed");
             $(".collapse-toggle").children(".inner").html("+");
         } else {
-            toggle.html("[-]");
+            toggle.html("[−]");
             toggle.attr("title", "collapse all docs");
             $(".docblock").show();
             $(".toggle-label").hide();
             $(".toggle-wrapper").removeClass("collapsed");
-            $(".collapse-toggle").children(".inner").html("-");
+            $(".collapse-toggle").children(".inner").html("−");
         }
     });
 
@@ -840,7 +840,7 @@
             } else {
                 relatedDoc.slideDown({duration:'fast', easing:'linear'});
                 toggle.parent(".toggle-wrapper").removeClass("collapsed");
-                toggle.children(".inner").html("-");
+                toggle.children(".inner").html("−");
                 toggle.children(".toggle-label").hide();
             }
         }
@@ -848,7 +848,7 @@
 
     $(function() {
         var toggle = $("<a/>", {'href': 'javascript:void(0)', 'class': 'collapse-toggle'})
-            .html("[<span class='inner'>-</span>]");
+            .html("[<span class='inner'>−</span>]");
 
         $(".method").each(function() {
             if ($(this).next().is(".docblock") ||