Skip to content

Commit 0c02338

Browse files
Move @media rules at the end so they override the other rules
1 parent 766de3a commit 0c02338

File tree

1 file changed

+195
-193
lines changed

1 file changed

+195
-193
lines changed

src/librustdoc/html/static/rustdoc.css

+195-193
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,201 @@ h4 > .notable-traits {
12931293
border-top: 1px solid;
12941294
}
12951295

1296+
1297+
1298+
h3.notable {
1299+
margin: 0;
1300+
margin-bottom: 13px;
1301+
font-size: 19px;
1302+
}
1303+
1304+
kbd {
1305+
display: inline-block;
1306+
padding: 3px 5px;
1307+
font: 15px monospace;
1308+
line-height: 10px;
1309+
vertical-align: middle;
1310+
border: solid 1px;
1311+
border-radius: 3px;
1312+
box-shadow: inset 0 -1px 0;
1313+
cursor: default;
1314+
}
1315+
1316+
.hidden-by-impl-hider,
1317+
.hidden-by-usual-hider {
1318+
/* important because of conflicting rule for small screens */
1319+
display: none !important;
1320+
}
1321+
1322+
#implementations-list > h3 > span.in-band {
1323+
width: 100%;
1324+
}
1325+
1326+
.table-display {
1327+
width: 100%;
1328+
border: 0;
1329+
border-collapse: collapse;
1330+
border-spacing: 0;
1331+
font-size: 16px;
1332+
}
1333+
1334+
.table-display tr td:first-child {
1335+
padding-right: 0;
1336+
}
1337+
1338+
.table-display tr td:last-child {
1339+
float: right;
1340+
}
1341+
.table-display .out-of-band {
1342+
position: relative;
1343+
font-size: 19px;
1344+
display: block;
1345+
}
1346+
#implementors-list > .impl-items .table-display .out-of-band {
1347+
font-size: 17px;
1348+
}
1349+
1350+
.table-display td:hover .anchor {
1351+
display: block;
1352+
top: 2px;
1353+
left: -5px;
1354+
}
1355+
1356+
#main > ul {
1357+
padding-left: 10px;
1358+
}
1359+
#main > ul > li {
1360+
list-style: none;
1361+
}
1362+
1363+
.non-exhaustive {
1364+
margin-bottom: 1em;
1365+
}
1366+
1367+
div.children {
1368+
padding-left: 27px;
1369+
display: none;
1370+
}
1371+
div.name {
1372+
cursor: pointer;
1373+
position: relative;
1374+
margin-left: 16px;
1375+
}
1376+
div.files > a {
1377+
display: block;
1378+
padding: 0 3px;
1379+
}
1380+
div.files > a:hover, div.name:hover {
1381+
background-color: #a14b4b;
1382+
}
1383+
div.name.expand + .children {
1384+
display: block;
1385+
}
1386+
div.name::before {
1387+
content: "\25B6";
1388+
padding-left: 4px;
1389+
font-size: 0.7em;
1390+
position: absolute;
1391+
left: -16px;
1392+
top: 4px;
1393+
}
1394+
div.name.expand::before {
1395+
transform: rotate(90deg);
1396+
left: -15px;
1397+
top: 2px;
1398+
}
1399+
1400+
/* The hideme class is used on summary tags that contain a span with
1401+
placeholder text shown only when the toggle is closed. For instance,
1402+
"Expand description" or "Show methods". */
1403+
details.rustdoc-toggle > summary.hideme {
1404+
cursor: pointer;
1405+
}
1406+
1407+
details.rustdoc-toggle > summary, details.undocumented > summary {
1408+
list-style: none;
1409+
}
1410+
details.rustdoc-toggle > summary::-webkit-details-marker,
1411+
details.rustdoc-toggle > summary::marker,
1412+
details.undocumented > summary::-webkit-details-marker,
1413+
details.undocumented > summary::marker {
1414+
display: none;
1415+
}
1416+
1417+
details.rustdoc-toggle > summary.hideme > span {
1418+
margin-left: 9px;
1419+
}
1420+
1421+
details.rustdoc-toggle > summary::before {
1422+
content: "[+]";
1423+
font-weight: 300;
1424+
font-size: 0.8em;
1425+
letter-spacing: 1px;
1426+
cursor: pointer;
1427+
}
1428+
1429+
details.rustdoc-toggle.top-doc > summary,
1430+
details.rustdoc-toggle.top-doc > summary::before,
1431+
details.rustdoc-toggle.non-exhaustive > summary,
1432+
details.rustdoc-toggle.non-exhaustive > summary::before {
1433+
font-family: 'Fira Sans';
1434+
font-size: 16px;
1435+
}
1436+
1437+
details.non-exhaustive {
1438+
margin-bottom: 8px;
1439+
}
1440+
1441+
details.rustdoc-toggle > summary.hideme::before {
1442+
position: relative;
1443+
}
1444+
1445+
details.rustdoc-toggle > summary:not(.hideme)::before {
1446+
position: absolute;
1447+
left: -23px;
1448+
top: initial;
1449+
}
1450+
1451+
.impl-items > details.rustdoc-toggle > summary:not(.hideme)::before,
1452+
.undocumented > details.rustdoc-toggle > summary:not(.hideme)::before {
1453+
position: absolute;
1454+
top: 3px;
1455+
left: -2px;
1456+
}
1457+
1458+
/* When a "hideme" summary is open and the "Expand description" or "Show
1459+
methods" text is hidden, we want the [-] toggle that remains to not
1460+
affect the layout of the items to its right. To do that, we use
1461+
absolute positioning. Note that we also set position: relative
1462+
on the parent <details> to make this work properly. */
1463+
details.rustdoc-toggle[open] > summary.hideme {
1464+
position: absolute;
1465+
}
1466+
1467+
details.rustdoc-toggle, details.undocumented {
1468+
position: relative;
1469+
}
1470+
1471+
details.rustdoc-toggle[open] > summary.hideme > span {
1472+
display: none;
1473+
}
1474+
1475+
details.rustdoc-toggle[open] > summary::before {
1476+
content: "[−]";
1477+
display: inline;
1478+
}
1479+
1480+
details.undocumented > summary::before {
1481+
content: "[+] Show hidden undocumented items";
1482+
cursor: pointer;
1483+
font-size: 16px;
1484+
font-weight: 300;
1485+
}
1486+
1487+
details.undocumented[open] > summary::before {
1488+
content: "[−] Hide undocumented items";
1489+
}
1490+
12961491
/* Media Queries */
12971492

12981493
@media (min-width: 701px) {
@@ -1591,196 +1786,3 @@ h4 > .notable-traits {
15911786
left: -11px;
15921787
}
15931788
}
1594-
1595-
h3.notable {
1596-
margin: 0;
1597-
margin-bottom: 13px;
1598-
font-size: 19px;
1599-
}
1600-
1601-
kbd {
1602-
display: inline-block;
1603-
padding: 3px 5px;
1604-
font: 15px monospace;
1605-
line-height: 10px;
1606-
vertical-align: middle;
1607-
border: solid 1px;
1608-
border-radius: 3px;
1609-
box-shadow: inset 0 -1px 0;
1610-
cursor: default;
1611-
}
1612-
1613-
.hidden-by-impl-hider,
1614-
.hidden-by-usual-hider {
1615-
/* important because of conflicting rule for small screens */
1616-
display: none !important;
1617-
}
1618-
1619-
#implementations-list > h3 > span.in-band {
1620-
width: 100%;
1621-
}
1622-
1623-
.table-display {
1624-
width: 100%;
1625-
border: 0;
1626-
border-collapse: collapse;
1627-
border-spacing: 0;
1628-
font-size: 16px;
1629-
}
1630-
1631-
.table-display tr td:first-child {
1632-
padding-right: 0;
1633-
}
1634-
1635-
.table-display tr td:last-child {
1636-
float: right;
1637-
}
1638-
.table-display .out-of-band {
1639-
position: relative;
1640-
font-size: 19px;
1641-
display: block;
1642-
}
1643-
#implementors-list > .impl-items .table-display .out-of-band {
1644-
font-size: 17px;
1645-
}
1646-
1647-
.table-display td:hover .anchor {
1648-
display: block;
1649-
top: 2px;
1650-
left: -5px;
1651-
}
1652-
1653-
#main > ul {
1654-
padding-left: 10px;
1655-
}
1656-
#main > ul > li {
1657-
list-style: none;
1658-
}
1659-
1660-
.non-exhaustive {
1661-
margin-bottom: 1em;
1662-
}
1663-
1664-
div.children {
1665-
padding-left: 27px;
1666-
display: none;
1667-
}
1668-
div.name {
1669-
cursor: pointer;
1670-
position: relative;
1671-
margin-left: 16px;
1672-
}
1673-
div.files > a {
1674-
display: block;
1675-
padding: 0 3px;
1676-
}
1677-
div.files > a:hover, div.name:hover {
1678-
background-color: #a14b4b;
1679-
}
1680-
div.name.expand + .children {
1681-
display: block;
1682-
}
1683-
div.name::before {
1684-
content: "\25B6";
1685-
padding-left: 4px;
1686-
font-size: 0.7em;
1687-
position: absolute;
1688-
left: -16px;
1689-
top: 4px;
1690-
}
1691-
div.name.expand::before {
1692-
transform: rotate(90deg);
1693-
left: -15px;
1694-
top: 2px;
1695-
}
1696-
1697-
/* The hideme class is used on summary tags that contain a span with
1698-
placeholder text shown only when the toggle is closed. For instance,
1699-
"Expand description" or "Show methods". */
1700-
details.rustdoc-toggle > summary.hideme {
1701-
cursor: pointer;
1702-
}
1703-
1704-
details.rustdoc-toggle > summary, details.undocumented > summary {
1705-
list-style: none;
1706-
}
1707-
details.rustdoc-toggle > summary::-webkit-details-marker,
1708-
details.rustdoc-toggle > summary::marker,
1709-
details.undocumented > summary::-webkit-details-marker,
1710-
details.undocumented > summary::marker {
1711-
display: none;
1712-
}
1713-
1714-
details.rustdoc-toggle > summary.hideme > span {
1715-
margin-left: 9px;
1716-
}
1717-
1718-
details.rustdoc-toggle > summary::before {
1719-
content: "[+]";
1720-
font-weight: 300;
1721-
font-size: 0.8em;
1722-
letter-spacing: 1px;
1723-
cursor: pointer;
1724-
}
1725-
1726-
details.rustdoc-toggle.top-doc > summary,
1727-
details.rustdoc-toggle.top-doc > summary::before,
1728-
details.rustdoc-toggle.non-exhaustive > summary,
1729-
details.rustdoc-toggle.non-exhaustive > summary::before {
1730-
font-family: 'Fira Sans';
1731-
font-size: 16px;
1732-
}
1733-
1734-
details.non-exhaustive {
1735-
margin-bottom: 8px;
1736-
}
1737-
1738-
details.rustdoc-toggle > summary.hideme::before {
1739-
position: relative;
1740-
}
1741-
1742-
details.rustdoc-toggle > summary:not(.hideme)::before {
1743-
position: absolute;
1744-
left: -23px;
1745-
top: initial;
1746-
}
1747-
1748-
.impl-items > details.rustdoc-toggle > summary:not(.hideme)::before,
1749-
.undocumented > details.rustdoc-toggle > summary:not(.hideme)::before {
1750-
position: absolute;
1751-
top: 3px;
1752-
left: -2px;
1753-
}
1754-
1755-
/* When a "hideme" summary is open and the "Expand description" or "Show
1756-
methods" text is hidden, we want the [-] toggle that remains to not
1757-
affect the layout of the items to its right. To do that, we use
1758-
absolute positioning. Note that we also set position: relative
1759-
on the parent <details> to make this work properly. */
1760-
details.rustdoc-toggle[open] > summary.hideme {
1761-
position: absolute;
1762-
}
1763-
1764-
details.rustdoc-toggle, details.undocumented {
1765-
position: relative;
1766-
}
1767-
1768-
details.rustdoc-toggle[open] > summary.hideme > span {
1769-
display: none;
1770-
}
1771-
1772-
details.rustdoc-toggle[open] > summary::before {
1773-
content: "[-]";
1774-
display: inline;
1775-
}
1776-
1777-
details.undocumented > summary::before {
1778-
content: "[+] Show hidden undocumented items";
1779-
cursor: pointer;
1780-
font-size: 16px;
1781-
font-weight: 300;
1782-
}
1783-
1784-
details.undocumented[open] > summary::before {
1785-
content: "[-] Hide undocumented items";
1786-
}

0 commit comments

Comments
 (0)