]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/themes/light.css
Fixes text becoming invisible when element targetted
[rust.git] / src / librustdoc / html / static / themes / light.css
index 4ae10492ae6b2a23e55b20567102a62e76f80dd9..d20fea666e61da75955ef306f02037ea239ec32f 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,6 +185,10 @@ a.test-arrow {
        border-color: #66afe9;
 }
 
+#crate-search + .search-input {
+       box-shadow: 1px 0 0 1px #e0e0e0, 0 0 0 2px transparent;
+}
+
 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
 .stab.internal { background: #FFB9B3; border-color: #B71C1C; }
 .stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
@@ -255,7 +241,7 @@ a.test-arrow:hover{
        color: #999;
 }
 
-:target > code {
+:target > code, :target > .in-band {
        background: #FDFFD3;
 }