]> git.lizzy.rs Git - rust.git/commitdiff
Reduce visual weight of attributes.
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sun, 18 Apr 2021 01:08:50 +0000 (18:08 -0700)
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sun, 18 Apr 2021 01:08:50 +0000 (18:08 -0700)
src/librustdoc/html/render/mod.rs
src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static/themes/ayu.css
src/librustdoc/html/static/themes/dark.css
src/librustdoc/html/static/themes/light.css

index d10b612a7379992234fcd7bffa2569499002ad25..dcd2805aceb97b83cd62ad5bd71af424b529197d 100644 (file)
@@ -989,7 +989,6 @@ fn method(
 
 const ALLOWED_ATTRIBUTES: &[Symbol] = &[
     sym::export_name,
-    sym::lang,
     sym::link_section,
     sym::must_use,
     sym::no_mangle,
index 427564cd7794ae070d6f6039fc03f51cc3420534..570dabbd36105e98bd0e65a720ee639174aa47bc 100644 (file)
@@ -967,6 +967,10 @@ a.test-arrow:hover{
        color: inherit;
 }
 
+.code-attribute {
+       font-weight: 300;
+}
+
 .collapse-toggle {
        font-weight: 300;
        position: absolute;
index 5f6f3d66e57573de9d4900effef55ce76eae80cd..b0a8c41fb08d5b314e6fa9a52d2329d86032ca56 100644 (file)
@@ -329,7 +329,8 @@ a.test-arrow:hover {
        color: #c5c5c5;
 }
 
-.toggle-label {
+.toggle-label,
+.code-attribute {
        color: #999;
 }
 
index 2ce6cf4cc45ca5aabe5a91a16a0f2c2e466955d7..b702dc4a937f89f03644f60b3095009209e271cf 100644 (file)
@@ -274,7 +274,8 @@ a.test-arrow:hover{
        background-color: #4e8bca;
 }
 
-.toggle-label {
+.toggle-label,
+.code-attribute {
        color: #999;
 }
 
index 31b3562cfcb064aa61b0afa5bd185b0abbe639e6..566ed62a628616af89f65b32e12e5f71e7d5e5aa 100644 (file)
@@ -267,7 +267,8 @@ a.test-arrow:hover{
        background-color: #4e8bca;
 }
 
-.toggle-label {
+.toggle-label,
+.code-attribute {
        color: #999;
 }