]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/rustdoc.css
Rollup merge of #44562 - eddyb:ugh-rustdoc, r=nikomatsakis
[rust.git] / src / librustdoc / html / static / rustdoc.css
index 26a64f6cd2245620d8d4d66220fa0c9e516b7f70..c15051376bf2766ee7f94efe155b02c8a696aff4 100644 (file)
@@ -329,6 +329,10 @@ h4 > code, h3 > code, .invisible > code {
        display: inline-block;
 }
 
+.in-band > code {
+       display: inline-block;
+}
+
 #main { position: relative; }
 #main > .since {
        top: inherit;
@@ -445,6 +449,11 @@ a {
 .small-section-header:hover > .anchor {
        display: initial;
 }
+
+.in-band:hover > .anchor {
+       display: inline-block;
+       position: absolute;
+}
 .anchor {
        display: none;
 }
@@ -603,7 +612,6 @@ pre.rust .question-mark {
        font-weight: bold;
 }
 
-pre.rust { position: relative; }
 a.test-arrow {
        display: inline-block;
        position: absolute;
@@ -649,11 +657,13 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
 
 .toggle-wrapper {
        position: relative;
+       margin-top: 5px;
 }
 
 .toggle-wrapper.collapsed {
-       height: 1em;
+       height: 25px;
        transition: height .2s;
+       margin-bottom: .6em;
 }
 
 .collapse-toggle > .inner {
@@ -695,14 +705,16 @@ span.since {
        margin-top: 5px;
 }
 
-.variant + .toggle-wrapper > a {
-       margin-top: 5px;
-}
-
 .sub-variant, .sub-variant > h3 {
        margin-top: 0 !important;
 }
 
+.toggle-label {
+       display: inline-block;
+       margin-left: 4px;
+       margin-top: 3px;
+}
+
 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
        margin-left: 30px;
        margin-bottom: 20px;
@@ -800,3 +812,44 @@ span.since {
                display: none;
        }
 }
+
+.information {
+       position: absolute;
+       left: -1px;
+       margin-top: 7px;
+}
+
+.tooltip {
+       position: relative;
+       display: inline-block;
+       cursor: pointer;
+}
+
+.tooltip .tooltiptext {
+       width: 120px;
+       display: none;
+       background-color: black;
+       color: #fff;
+       text-align: center;
+       padding: 5px 3px;
+       border-radius: 6px;
+       margin-left: 5px;
+       top: -5px;
+       left: 105%;
+       z-index: 1;
+}
+
+.tooltip:hover .tooltiptext {
+       display: inline;
+}
+
+.tooltip .tooltiptext::after {
+       content: " ";
+       position: absolute;
+       top: 50%;
+       left: 11px;
+       margin-top: -5px;
+       border-width: 5px;
+       border-style: solid;
+       border-color: transparent black transparent transparent;
+}