Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: runtime/observatory/lib/src/elements/css/shared.css

Issue 2989083002: Add memory-dashboard page to Observatory (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Global styles */ 1 /* Global styles */
2 * { 2 * {
3 margin: 0; 3 margin: 0;
4 padding: 0; 4 padding: 0;
5 box-sizing: border-box; 5 box-sizing: border-box;
6 } 6 }
7 7
8 body { 8 body {
9 padding-top: 56px; 9 padding-top: 56px;
10 color: #333; 10 color: #333;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 width: 20em; 320 width: 20em;
321 font: 400 16px 'Montserrat', sans-serif; 321 font: 400 16px 'Montserrat', sans-serif;
322 } 322 }
323 323
324 select, button, input { 324 select, button, input {
325 border-radius: 0px; 325 border-radius: 0px;
326 border-style: solid; 326 border-style: solid;
327 border-width: 1px; 327 border-width: 1px;
328 } 328 }
329 329
330 button.link {
331 background-color: transparent;
332 color: #0489c3;
333 border-style: none;
334 border-width: 0;
335 }
336
337 button.big {
338 font-size: 20px;
339 }
340
330 @-webkit-keyframes fadeIn { 341 @-webkit-keyframes fadeIn {
331 0% { opacity: 0; } 342 0% { opacity: 0; }
332 100% { opacity: 1; } 343 100% { opacity: 1; }
333 } 344 }
334 345
335 @-moz-keyframes fadeIn { 346 @-moz-keyframes fadeIn {
336 0% { opacity: 0; } 347 0% { opacity: 0; }
337 100% { opacity: 1; } 348 100% { opacity: 1; }
338 } 349 }
339 350
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 logging-list .WARNING { 1565 logging-list .WARNING {
1555 background-color: #FFE0B2; 1566 background-color: #FFE0B2;
1556 } 1567 }
1557 logging-list .SEVERE { 1568 logging-list .SEVERE {
1558 background-color: #FFCCBC; 1569 background-color: #FFCCBC;
1559 } 1570 }
1560 logging-list .SHOUT { 1571 logging-list .SHOUT {
1561 background-color: #FFCDD2; 1572 background-color: #FFCDD2;
1562 } 1573 }
1563 1574
1575 /* memory-graph */
1576
1577 memory-graph .chart-legend-row,
1578 memory-graph .chart-legend-row div {
1579 display: inline;
1580 }
1581
1582 memory-graph .chart-legend-row div.chart-legend-color {
1583 display: inline-block;
1584 margin: auto 8px;
1585 }
1586
1587 memory-graph .chart-legend-row:nth-child(2n) div.chart-legend-color {
1588 display: none;
1589 }
1590
1564 /* megamorphic-cache-ref */ 1591 /* megamorphic-cache-ref */
1565 1592
1566 megamorphic-cache-ref > a[href]:hover { 1593 megamorphic-cache-ref > a[href]:hover {
1567 text-decoration: underline; 1594 text-decoration: underline;
1568 } 1595 }
1569 megamorphic-cache-ref > a[href] { 1596 megamorphic-cache-ref > a[href] {
1570 color: #0489c3; 1597 color: #0489c3;
1571 text-decoration: none; 1598 text-decoration: none;
1572 } 1599 }
1573 megamorphic-cache-ref > a[href] * { 1600 megamorphic-cache-ref > a[href] * {
1574 color: inherit; 1601 color: inherit;
1575 } 1602 }
1576 megamorphic-ref .emphasize { 1603 megamorphic-ref .emphasize {
1577 font-style: italic; 1604 font-style: italic;
1578 } 1605 }
1579 1606
1580 /* allocation-profile */ 1607 /* memory-dashboard */
1581 1608
1582 memory-dashboard .heap-space { 1609 memory-dashboard {
1583 display: inline-block; 1610 display: block;
1584 width: 50%; 1611 height: 100%;
1612 margin-top: -30px;
1585 } 1613 }
1586 1614
1587 memory-dashboard .heap-space.right, 1615 memory-dashboard memory-graph {
1588 memory-dashboard .heap-space.right .memberList, 1616 height: 350px;
1589 memory-dashboard .heap-space.right .legend * {
1590 direction: rtl;
1591 } 1617 }
1592 1618
1593 memory-dashboard .compactable { 1619 memory-dashboard memory-profile {
1594 position: relative;
1595 }
1596
1597 memory-dashboard .compact {
1598 position: absolute;
1599 bottom: 20px;
1600 left: 50%;
1601 width: 8em;
1602 margin-left: -4em;
1603 }
1604
1605 memory-dashboard .heap-space.right * {
1606 direction: ltr;
1607 text-align: right;
1608 }
1609
1610 memory-dashboard div.chart {
1611 display: block;
1612 position: relative;
1613 height: 150px;
1614 }
1615 memory-dashboard div.chart > div.host {
1616 display: inline-block;
1617 position: absolute;
1618 bottom: 0px;
1619 top: 0;
1620 }
1621 memory-dashboard div.chart > div.legend {
1622 position: absolute;
1623 width: 150px;
1624 top: 25px;
1625 bottom: 0;
1626 overflow-y: auto;
1627 }
1628 memory-dashboard .heap-space.left div.host {
1629 left: 200px;
1630 width: 180px;
1631 }
1632 memory-dashboard .heap-space.right div.host {
1633 right: 150px;
1634 width: 180px;
1635 }
1636 memory-dashboard .heap-space.left div.legend {
1637 left: 0;
1638 }
1639 memory-dashboard .heap-space.right div.legend {
1640 right: 0;
1641 }
1642
1643 memory-dashboard .collection {
1644 position: absolute; 1620 position: absolute;
1645 bottom: 0; 1621 bottom: 0;
1646 left: 0; 1622 left: 0;
1647 right: 0; 1623 right: 0;
1648 top: 560px; 1624 top: 340px;
1649 } 1625 }
1650 1626
1651 memory-dashboard .collection.expanded { 1627 /* metric-graph */
1652 top: 160px; 1628
1629 metric-graph {
1630 display: block;
1653 } 1631 }
1654 1632
1655 memory-dashboard .collection-item { 1633 metric-graph .graph {
1634 height: 100%;
1635 margin-top: -30px;
1636 padding: 20px;
1637 padding-top: 60px;
1638 }
1639
1640 metric-graph .graph > div {
1641 height: 100%;
1642 }
1643
1644 /* memory-profile */
1645
1646 memory-profile .collection-item {
1656 box-sizing: border-box; 1647 box-sizing: border-box;
1657 line-height: 20px; 1648 line-height: 20px;
1658 margin-left: 5%; 1649 margin-left: 5%;
1659 margin-right: 5%; 1650 margin-right: 5%;
1660 } 1651 }
1661 1652
1662 memory-dashboard .header .collection-item:last-child { 1653 memory-profile .header .collection-item:last-child {
1663 margin-bottom: -3px; 1654 margin-bottom: -3px;
1664 border-bottom: solid 1px #AAAAAA; 1655 border-bottom: solid 1px #AAAAAA;
1665 } 1656 }
1666 1657
1667 memory-dashboard .header .collection-item span { 1658 memory-profile .header .collection-item span {
1668 font-weight: bolder; 1659 font-weight: bolder;
1669 } 1660 }
1670 1661
1671 memory-dashboard .collection-item :nth-child(2n+2).group, 1662 memory-profile .collection-item :nth-child(2n+2).group,
1672 memory-dashboard .collection-item :nth-child(4n+3).bytes, 1663 memory-profile .collection-item :nth-child(4n+3).bytes,
1673 memory-dashboard .collection-item :nth-child(4n+3).instances, 1664 memory-profile .collection-item :nth-child(4n+3).instances,
1674 memory-dashboard .collection-item :nth-child(4n+4).bytes, 1665 memory-profile .collection-item :nth-child(4n+4).bytes,
1675 memory-dashboard .collection-item :nth-child(4n+4).instances { 1666 memory-profile .collection-item :nth-child(4n+4).instances {
1676 background-color: #EEEEEE; 1667 background-color: #EEEEEE;
1677 } 1668 }
1678 1669
1679 memory-dashboard .collection-item:hover :nth-child(2n+2).group, 1670 memory-profile .collection-item:hover :nth-child(2n+2).group,
1680 memory-dashboard .collection-item:hover :nth-child(4n+3).bytes, 1671 memory-profile .collection-item:hover :nth-child(4n+3).bytes,
1681 memory-dashboard .collection-item:hover :nth-child(4n+3).instances, 1672 memory-profile .collection-item:hover :nth-child(4n+3).instances,
1682 memory-dashboard .collection-item:hover :nth-child(4n+4).bytes, 1673 memory-profile .collection-item:hover :nth-child(4n+4).bytes,
1683 memory-dashboard .collection-item:hover :nth-child(4n+4).instances { 1674 memory-profile .collection-item:hover :nth-child(4n+4).instances {
1684 background-color: #afd5fd; 1675 background-color: #afd5fd;
1685 } 1676 }
1686 1677
1687 memory-dashboard .header .collection-item :nth-child(2n+2).group, 1678 memory-profile .header .collection-item :nth-child(2n+2).group,
1688 memory-dashboard .header .collection-item :nth-child(4n+3).bytes, 1679 memory-profile .header .collection-item :nth-child(4n+3).bytes,
1689 memory-dashboard .header .collection-item :nth-child(4n+3).instances, 1680 memory-profile .header .collection-item :nth-child(4n+3).instances,
1690 memory-dashboard .header .collection-item :nth-child(4n+4).bytes, 1681 memory-profile .header .collection-item :nth-child(4n+4).bytes,
1691 memory-dashboard .header .collection-item :nth-child(4n+4).instances { 1682 memory-profile .header .collection-item :nth-child(4n+4).instances {
1692 background-color: #DDDDDD; 1683 background-color: #DDDDDD;
1693 } 1684 }
1694 1685
1695 memory-dashboard .scroller .collection-item:hover { 1686 memory-profile .scroller .collection-item:hover {
1696 background-color: #d2e7fe; 1687 background-color: #d2e7fe;
1697 } 1688 }
1698 1689
1699 memory-dashboard .collection-item .group { 1690 memory-profile .collection-item .group {
1700 background-color: white; 1691 background-color: white;
1701 display: inline-block; 1692 display: inline-block;
1702 width: 12em; 1693 width: 12em;
1703 text-align: right; 1694 text-align: right;
1704 padding-right: 0.5em; 1695 padding-right: 0.5em;
1705 line-height: 20px; 1696 line-height: 20px;
1706 border-right: solid 1px #AAAAAA; 1697 border-right: solid 1px #AAAAAA;
1707 } 1698 }
1708 1699
1709 memory-dashboard .collection-item .bytes { 1700 memory-profile .collection-item .bytes {
1710 background-color: white; 1701 background-color: white;
1711 display: inline-block; 1702 display: inline-block;
1712 width: 6em; 1703 width: 6em;
1713 text-align: right; 1704 text-align: right;
1714 line-height: 20px; 1705 line-height: 20px;
1715 padding-right: 0.5em; 1706 padding-right: 0.5em;
1716 } 1707 }
1717 1708
1718 memory-dashboard .collection-item .instances { 1709 memory-profile .collection-item .instances {
1719 background-color: white; 1710 background-color: white;
1720 display: inline-block; 1711 display: inline-block;
1721 width: 6em; 1712 width: 6em;
1722 text-align: right; 1713 text-align: right;
1723 padding-right: 0.5em; 1714 padding-right: 0.5em;
1724 line-height: 20px; 1715 line-height: 20px;
1725 border-right: solid 1px #AAAAAA; 1716 border-right: solid 1px #AAAAAA;
1726 } 1717 }
1727 1718
1728 memory-dashboard .collection-item .name { 1719 memory-profile .collection-item .name {
1729 background-color: white; 1720 background-color: white;
1730 padding-left: 0.5em; 1721 padding-left: 0.5em;
1731 } 1722 }
1732 1723
1733 memory-dashboard .collection-item > button, 1724 memory-profile .collection-item > button,
1734 memory-dashboard .collection-item > button:active { 1725 memory-profile .collection-item > button:active,
1726 memory-profile .collection-item .group button,
1727 memory-profile .collection-item .group button:active {
1735 background-color: transparent; 1728 background-color: transparent;
1736 color: #0489c3; 1729 color: #0489c3;
1737 border-style: none; 1730 border-style: none;
1738 } 1731 }
1739 1732
1740 memory-dashboard .collection-item > button:hover { 1733 memory-profile .collection-item > button:hover,
1734 memory-profile .collection-item .group button:hover {
1741 text-decoration: underline; 1735 text-decoration: underline;
1742 } 1736 }
1743 1737
1744 /* metric-graph */ 1738 /* metric-graph */
1745 1739
1746 metric-graph {
1747 display: block;
1748 height: 100%;
1749 }
1750
1751 metric-graph .graph {
1752 height: 100%;
1753 margin-top: -30px;
1754 padding: 20px;
1755 padding-top: 60px;
1756 }
1757
1758 metric-graph .graph > div {
1759 height: 100%;
1760 }
1761
1762 /* metric-graph */
1763
1764 metrics-page > div { 1740 metrics-page > div {
1765 display: block; 1741 display: block;
1766 height: 100%; 1742 height: 100%;
1767 } 1743 }
1768 1744
1769 metrics-page > div > .graph { 1745 metrics-page > div > .graph {
1770 display: block; 1746 display: block;
1771 height: 100%; 1747 height: 100%;
1772 margin-top: -300px; 1748 margin-top: -300px;
1773 padding-top: 300px; 1749 padding-top: 300px;
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2561 2537
2562 vm-connect-target > button.delete-button:hover { 2538 vm-connect-target > button.delete-button:hover {
2563 background: #ff0000; 2539 background: #ff0000;
2564 } 2540 }
2565 2541
2566 /* vm-connect */ 2542 /* vm-connect */
2567 2543
2568 vm-connect ul { 2544 vm-connect ul {
2569 list-style-type: none; 2545 list-style-type: none;
2570 } 2546 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698