]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/css/rustdoc.css
Rollup merge of #101494 - jsha:notable-traits-right, r=GuillaumeGomez
[rust.git] / src / librustdoc / html / static / css / rustdoc.css
index d159b48e37fce6e7a49973dbdd49d42be971e6b6..0e48b1009d8aacc0e3a714ec9c416bcbb3f7c58b 100644 (file)
@@ -206,7 +206,6 @@ a.source,
 .item-left > a,
 .out-of-band,
 span.since,
-#source-sidebar, #sidebar-toggle,
 details.rustdoc-toggle > summary::before,
 .content ul.crate a.crate,
 a.srclink,
@@ -223,7 +222,6 @@ details.rustdoc-toggle.non-exhaustive > summary::before,
        font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;
 }
 
-h1, h2, h3, h4,
 a#toggle-all-docs,
 a.anchor,
 .small-section-header a,
@@ -610,16 +608,12 @@ h2.location a {
 .docblock-short {
        overflow-wrap: break-word;
        overflow-wrap: anywhere;
-}
-.docblock-short p {
-       display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
-       margin: 0;
 }
 /* Wrap non-pre code blocks (`text`) but not (```text```). */
 .docblock > :not(pre) > code,
-.docblock-short > :not(pre) > code {
+.docblock-short > code {
        white-space: pre-wrap;
 }
 
@@ -687,15 +681,6 @@ pre, .rustdoc.source .example-wrap {
        position: relative;
 }
 
-.content table {
-       border-spacing: 0 5px;
-}
-.content td { vertical-align: top; }
-.content td:first-child { padding-right: 20px; }
-.content td p:first-child { margin-top: 0; }
-.content td h1, .content td h2 { margin-left: 0; font-size: 1.125rem; }
-.content tr:first-child td { border-top: 0; }
-
 .docblock table {
        margin: .5em 0;
        width: calc(100% - 2px);
@@ -706,6 +691,7 @@ pre, .rustdoc.source .example-wrap {
 .docblock table td {
        padding: .5em;
        border: 1px dashed var(--border-color);
+       vertical-align: top;
 }
 
 .docblock table th {
@@ -767,7 +753,6 @@ nav.sub form { display: inline; }
 
 a {
        text-decoration: none;
-       background: transparent;
 }
 
 .small-section-header {
@@ -1268,7 +1253,6 @@ a.test-arrow:hover {
 }
 
 .out-of-band > span.since {
-       position: initial;
        font-size: 1.25rem;
 }
 
@@ -1379,27 +1363,19 @@ pre.rust {
 }
 
 #titles {
-       height: 35px;
+       display: flex;
+       flex-direction: row;
+       gap: 1px;
+       margin-bottom: 4px;
 }
 
 #titles > button {
-       float: left;
-       width: 33.3%;
        text-align: center;
        font-size: 1.125rem;
        cursor: pointer;
        border: 0;
        border-top: 2px solid;
-}
-
-#titles > button:first-child:last-child {
-       margin-right: 1px;
-       width: calc(100% - 1px);
-}
-
-#titles > button:not(:last-child) {
-       margin-right: 1px;
-       width: calc(33.3% - 1px);
+       flex: 1;
 }
 
 #titles > button > div.count {
@@ -1889,19 +1865,8 @@ in storage.js plus the media query with (min-width: 701px)
                display: none !important;
        }
 
-       .notable-traits {
-               position: absolute;
-               left: -22px;
-               top: 24px;
-       }
-
        #titles > button > div.count {
-               float: left;
-               width: 100%;
-       }
-
-       #titles {
-               height: 50px;
+               display: block;
        }
 
        /* Because of ios, we need to actually have a full height sidebar title so the
@@ -2032,10 +1997,6 @@ in storage.js plus the media query with (min-width: 701px)
 }
 
 @media (max-width: 464px) {
-       #titles, #titles > button {
-               height: 73px;
-       }
-
        #crate-search {
                border-radius: 4px;
        }