]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/css/rustdoc.css
rustdoc: use flexbox CSS to align sidebar button instead of position
[rust.git] / src / librustdoc / html / static / css / rustdoc.css
index c1f7a8338342d550fd9d7eb9e1f255d8a737099a..6574155ce58671854b9f29930e80d373e8f6ba1c 100644 (file)
@@ -1139,7 +1139,6 @@ pre.rust .doccomment {
 .example-wrap .tooltip {
        position: absolute;
        display: block;
-       cursor: pointer;
        left: -25px;
        top: 5px;
 }
@@ -1329,8 +1328,8 @@ a.test-arrow:hover {
        border-bottom: 1px solid;
        display: flex;
        height: 40px;
-       justify-content: center;
-       align-items: center;
+       justify-content: stretch;
+       align-items: stretch;
        z-index: 10;
 }
 #source-sidebar {
@@ -1358,13 +1357,7 @@ a.test-arrow:hover {
        text-align: center;
        border: none;
        outline: none;
-       position: absolute;
-       top: 0;
-       bottom: 0;
-       left: 0;
-       right: 0;
-       /* work around button layout strangeness: https://stackoverflow.com/q/7271561 */
-       width: 100%;
+       flex: 1 1;
        /* iOS button gradient: https://stackoverflow.com/q/5438567 */
        -webkit-appearance: none;
        opacity: 1;