about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Fagnan <dnfagnan@gmail.com>2014-03-19 16:33:03 -0600
committerAdrien Tétar <adri-from-59@hotmail.fr>2014-04-12 21:07:25 +0200
commit2d0962ad62ccc7d8fc51bbb3b017e470b96df70c (patch)
tree7696363e0d874f115bc0182d127c292f3b4cbf6a
parentfbdde0e7ba4edecd3411e6e7ec22324aed027a4e (diff)
downloadrust-2d0962ad62ccc7d8fc51bbb3b017e470b96df70c.tar.gz
rust-2d0962ad62ccc7d8fc51bbb3b017e470b96df70c.zip
fixed issues
Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
-rw-r--r--src/librustdoc/html/static/main.css52
1 files changed, 35 insertions, 17 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index 82a98ee9f8c..275b5be45da 100644
--- a/src/librustdoc/html/static/main.css
+++ b/src/librustdoc/html/static/main.css
@@ -130,9 +130,6 @@ nav.sub {
     font-size: 14px;
 
     transition: border 500ms ease-out;
-    -webkit-transition: border 500ms ease-out;
-    -moz-transition: border 500ms ease-out;
-    -o-transition: border 500ms ease-out;
 }
 
 body p {
@@ -285,16 +282,18 @@ a {
 .content .fnname { color: #8c6067; }
 
 .search-container {
-    padding-right: 10px;
+    width: 60%;
+    margin-left: 50px;
 }
+
 .search-input {
     border: 2px solid #e9e9e9;
     border-radius: 2px;
-    width: 85%;
+    width: 95%;
     box-sizing: content-box;
     outline: none;
     border: none;
-    background: none;
+    background-color: white;
     font-family: "Helvetica Neue";
     color: #000;
     margin-top: 5px;
@@ -306,17 +305,10 @@ a {
     padding: 10px 16px;
     line-height: 1.4;
     font-size: 17px;
-    background-color: white;
-    -webkit-transition: background-color 50ms linear;
+
     transition: background-color 50ms linear;
     transition: border 500ms ease-out;
-    -webkit-transition: border 500ms ease-out;
-    -moz-transition: border 500ms ease-out;
-    -o-transition: border 500ms ease-out;
     transition: box-shadow 500ms ease-out;
-    -webkit-transition: box-shadow 500ms ease-out;
-    -moz-transition: box-shadow 500ms ease-out;
-    -o-transition: box-shadow 500ms ease-out;
 }
 
 .search-input:focus {
@@ -327,7 +319,7 @@ a {
 }
 
 .do-search {
-    float: right;
+    display: none;
     outline: none;
     border: none;
     font-family: Helvetica Neue;
@@ -336,10 +328,11 @@ a {
     padding: 14px 25px;
     margin-top: 3px;
     font-size: 16px;
-    margin-right: 15px;
     text-align: center;
-    background: #6F5E59;
+    background: #5B6672;
+    margin-left: 10px;
 }
+
 .search-results .desc {
     white-space: nowrap;
     text-overflow: ellipsis;
@@ -422,3 +415,28 @@ h5.section-link:hover a:after,
 h6.section-link:hover a:after {
   content: ' § ';
 }
+
+/** Media Queries **/
+
+@media (max-width: 620px) {
+  .search-container {
+    display: block;
+    width: 100%;
+    margin-left: 0px;
+  }
+}
+
+@media (max-width: 700px) {
+    .sidebar {
+        display: none;
+    }
+
+    .content {
+        margin-left: 0px;
+    }
+
+    nav.sub {
+        width: 80%;
+        margin: 0 auto;
+    }
+}