]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/themes/light.css
Improve stability tags display
[rust.git] / src / librustdoc / html / static / themes / light.css
index 4ae10492ae6b2a23e55b20567102a62e76f80dd9..8a798ae8f9833cc79cbe94a013a236a00217b990 100644 (file)
@@ -1,15 +1,3 @@
-/**
- * Copyright 2015 The Rust Project Developers. See the COPYRIGHT
- * file at the top-level directory of this distribution and at
- * http://rust-lang.org/COPYRIGHT.
- *
- * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
- * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
- * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
- * option. This file may not be copied, modified, or distributed
- * except according to those terms.
- */
-
 /* General structure and fonts */
 
 body {
@@ -96,12 +84,6 @@ pre {
        border-bottom-color: #ddd;
 }
 
-:target { background: #FDFFD3; }
-
-:target > .in-band {
-       background: #FDFFD3;
-}
-
 .content .method .where,
 .content .fn .where,
 .content .where.fmt-newline {
@@ -195,7 +177,7 @@ a.test-arrow {
 
 .search-input {
        color: #555;
-       box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent;
+       box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
        background-color: white;
 }
 
@@ -203,15 +185,19 @@ a.test-arrow {
        border-color: #66afe9;
 }
 
-.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
-.stab.internal { background: #FFB9B3; border-color: #B71C1C; }
-.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
-.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
+#crate-search + .search-input {
+       box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent;
+}
 
 .module-item .stab {
        color: #000;
 }
 
+.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
+.stab.internal { background: #FFB9B3; border-color: #B71C1C; }
+.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
+.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
+
 #help > div {
        background: #e9e9e9;
        border-color: #bfbfbf;
@@ -255,7 +241,7 @@ a.test-arrow:hover{
        color: #999;
 }
 
-:target > code {
+:target > code, :target > .in-band {
        background: #FDFFD3;
 }
 
@@ -419,10 +405,6 @@ kbd {
        color: #999;
 }
 
-.impl-items code {
-       background-color: rgba(0, 0, 0, 0);
-}
-
 #sidebar-toggle {
        background-color: #F1F1F1;
 }