about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-02 21:16:33 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-02 21:16:33 +0200
commit0daf8ac41f438ba338051e18a56ef8ae64951748 (patch)
treed6ec5f7f42f56418162c46e8d05adc8c7b5af558
parent14fe83f7e49c384484bde8a5e0663393dc1a213d (diff)
downloadrust-0daf8ac41f438ba338051e18a56ef8ae64951748.tar.gz
rust-0daf8ac41f438ba338051e18a56ef8ae64951748.zip
Replace h3 for notable traits with div
-rw-r--r--src/librustdoc/html/static/rustdoc.css20
-rw-r--r--src/librustdoc/html/static/themes/ayu.css6
-rw-r--r--src/librustdoc/html/static/themes/dark.css6
-rw-r--r--src/librustdoc/html/static/themes/light.css6
4 files changed, 23 insertions, 15 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 8dad9f85386..aee10a7b06f 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -117,7 +117,7 @@ h2 {
 h3 {
 	font-size: 1.3em;
 }
-h1, h2, h3:not(.notable), h4 {
+h1, h2, h3, h4 {
 	font-weight: 500;
 	margin: 20px 0 15px 0;
 	padding-bottom: 6px;
@@ -1129,6 +1129,13 @@ a.test-arrow:hover{
 	margin: 0;
 }
 
+.notable-traits .notable {
+	margin: 0;
+	margin-bottom: 13px;
+	font-size: 19px;
+	font-weight: 600;
+}
+
 .notable-traits .docblock code.content{
 	margin: 0;
 	padding: 0;
@@ -1190,9 +1197,6 @@ pre.rust {
 	cursor: pointer;
 	z-index: 2;
 	margin-left: 5px;
-	position: absolute;
-	left: -44px;
-	top: 2px;
 }
 
 #all-types {
@@ -1308,14 +1312,6 @@ pre.rust {
 	border-top: 1px solid;
 }
 
-
-
-h3.notable {
-	margin: 0;
-	margin-bottom: 13px;
-	font-size: 19px;
-}
-
 kbd {
 	display: inline-block;
 	padding: 3px 5px;
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css
index 8f2f79a77a1..d220d8708a1 100644
--- a/src/librustdoc/html/static/themes/ayu.css
+++ b/src/librustdoc/html/static/themes/ayu.css
@@ -10,7 +10,7 @@ body {
 	color: #c5c5c5;
 }
 
-h1, h2, h3:not(.notable), h4 {
+h1, h2, h3, h4 {
 	color: white;
 }
 h1.fqn {
@@ -406,6 +406,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
 	border-color: #5c6773;
 }
 
+.notable-traits-tooltiptext .notable {
+	border-bottom-color: #5c6773;
+}
+
 #titles > button.selected {
 	background-color: #141920 !important;
 	border-bottom: 1px solid #ffb44c !important;
diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css
index cf3ba312da1..6385a763f2e 100644
--- a/src/librustdoc/html/static/themes/dark.css
+++ b/src/librustdoc/html/static/themes/dark.css
@@ -3,7 +3,7 @@ body {
 	color: #ddd;
 }
 
-h1, h2, h3:not(.notable), h4 {
+h1, h2, h3, h4 {
 	color: #ddd;
 }
 h1.fqn {
@@ -354,6 +354,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
 	border-color: #777;
 }
 
+.notable-traits-tooltiptext .notable {
+	border-bottom-color: #d2d2d2;
+}
+
 #titles > button:not(.selected) {
 	background-color: #252525;
 	border-top-color: #252525;
diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css
index 68e74db383b..c19d5bfc317 100644
--- a/src/librustdoc/html/static/themes/light.css
+++ b/src/librustdoc/html/static/themes/light.css
@@ -5,7 +5,7 @@ body {
 	color: black;
 }
 
-h1, h2, h3:not(.notable), h4 {
+h1, h2, h3, h4 {
 	color: black;
 }
 h1.fqn {
@@ -346,6 +346,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
 	border-color: #999;
 }
 
+.notable-traits-tooltiptext .notable {
+	border-bottom-color: #DDDDDD;
+}
+
 #titles > button:not(.selected) {
 	background-color: #e6e6e6;
 	border-top-color: #e6e6e6;