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

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

Issue 2989083002: Add memory-dashboard page to Observatory (Closed)
Patch Set: Addressed CL comments 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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 logging-list .WARNING { 1573 logging-list .WARNING {
1563 background-color: #FFE0B2; 1574 background-color: #FFE0B2;
1564 } 1575 }
1565 logging-list .SEVERE { 1576 logging-list .SEVERE {
1566 background-color: #FFCCBC; 1577 background-color: #FFCCBC;
1567 } 1578 }
1568 logging-list .SHOUT { 1579 logging-list .SHOUT {
1569 background-color: #FFCDD2; 1580 background-color: #FFCDD2;
1570 } 1581 }
1571 1582
1583 /* memory-graph */
1584
1585 memory-graph .chart-legend-row,
1586 memory-graph .chart-legend-row div {
1587 display: inline;
1588 }
1589
1590 memory-graph .chart-legend-row div.chart-legend-color {
1591 display: inline-block;
1592 margin: auto 8px;
1593 }
1594
1595 memory-graph .chart-legend-row:nth-child(2n) div.chart-legend-color {
1596 display: none;
1597 }
1598
1572 /* megamorphic-cache-ref */ 1599 /* megamorphic-cache-ref */
1573 1600
1574 megamorphic-cache-ref > a[href]:hover { 1601 megamorphic-cache-ref > a[href]:hover {
1575 text-decoration: underline; 1602 text-decoration: underline;
1576 } 1603 }
1577 megamorphic-cache-ref > a[href] { 1604 megamorphic-cache-ref > a[href] {
1578 color: #0489c3; 1605 color: #0489c3;
1579 text-decoration: none; 1606 text-decoration: none;
1580 } 1607 }
1581 megamorphic-cache-ref > a[href] * { 1608 megamorphic-cache-ref > a[href] * {
1582 color: inherit; 1609 color: inherit;
1583 } 1610 }
1584 megamorphic-ref .emphasize { 1611 megamorphic-ref .emphasize {
1585 font-style: italic; 1612 font-style: italic;
1586 } 1613 }
1587 1614
1588 /* allocation-profile */ 1615 /* memory-dashboard */
1589 1616
1590 memory-dashboard .heap-space { 1617 memory-dashboard {
1591 display: inline-block; 1618 display: block;
1592 width: 50%; 1619 height: 100%;
1620 margin-top: -30px;
1593 } 1621 }
1594 1622
1595 memory-dashboard .heap-space.right, 1623 memory-dashboard memory-graph {
1596 memory-dashboard .heap-space.right .memberList, 1624 height: 350px;
1597 memory-dashboard .heap-space.right .legend * {
1598 direction: rtl;
1599 } 1625 }
1600 1626
1601 memory-dashboard .compactable { 1627 memory-dashboard memory-profile {
1602 position: relative;
1603 }
1604
1605 memory-dashboard .compact {
1606 position: absolute;
1607 bottom: 20px;
1608 left: 50%;
1609 width: 8em;
1610 margin-left: -4em;
1611 }
1612
1613 memory-dashboard .heap-space.right * {
1614 direction: ltr;
1615 text-align: right;
1616 }
1617
1618 memory-dashboard div.chart {
1619 display: block;
1620 position: relative;
1621 height: 150px;
1622 }
1623 memory-dashboard div.chart > div.host {
1624 display: inline-block;
1625 position: absolute;
1626 bottom: 0px;
1627 top: 0;
1628 }
1629 memory-dashboard div.chart > div.legend {
1630 position: absolute;
1631 width: 150px;
1632 top: 25px;
1633 bottom: 0;
1634 overflow-y: auto;
1635 }
1636 memory-dashboard .heap-space.left div.host {
1637 left: 200px;
1638 width: 180px;
1639 }
1640 memory-dashboard .heap-space.right div.host {
1641 right: 150px;
1642 width: 180px;
1643 }
1644 memory-dashboard .heap-space.left div.legend {
1645 left: 0;
1646 }
1647 memory-dashboard .heap-space.right div.legend {
1648 right: 0;
1649 }
1650
1651 memory-dashboard .collection {
1652 position: absolute; 1628 position: absolute;
1653 bottom: 0; 1629 bottom: 0;
1654 left: 0; 1630 left: 0;
1655 right: 0; 1631 right: 0;
1656 top: 560px; 1632 top: 340px;
1657 } 1633 }
1658 1634
1659 memory-dashboard .collection.expanded { 1635 /* metric-graph */
1660 top: 160px; 1636
1637 metric-graph {
1638 display: block;
1661 } 1639 }
1662 1640
1663 memory-dashboard .collection-item { 1641 metric-graph .graph {
1642 height: 100%;
1643 margin-top: -30px;
1644 padding: 20px;
1645 padding-top: 60px;
1646 }
1647
1648 metric-graph .graph > div {
1649 height: 100%;
1650 }
1651
1652 /* memory-profile */
1653
1654 memory-profile .container {
1655 padding-left: 5%;
1656 padding-right: 5%;
1657 }
1658
1659 memory-profile .collection-item {
1660 background-color: #FFFFFF;
1664 box-sizing: border-box; 1661 box-sizing: border-box;
1665 line-height: 20px; 1662 line-height: 20px;
1666 margin-left: 5%;
1667 margin-right: 5%;
1668 } 1663 }
1669 1664
1670 memory-dashboard .header .collection-item:last-child { 1665 memory-profile .collection-item:hover {
1666 background-color: #d2e7fe;
1667 }
1668
1669 memory-profile .header .collection-item:hover {
1670 background-color: #FFFFFF;
1671 }
1672
1673 memory-profile .header .collection-item:last-child {
1671 margin-bottom: -3px; 1674 margin-bottom: -3px;
1672 border-bottom: solid 1px #AAAAAA; 1675 border-bottom: solid 1px #AAAAAA;
1673 } 1676 }
1674 1677
1675 memory-dashboard .header .collection-item span { 1678 memory-profile .header .collection-item span {
1676 font-weight: bolder; 1679 font-weight: bolder;
1677 } 1680 }
1678 1681
1679 memory-dashboard .collection-item :nth-child(2n+2).group, 1682 memory-profile .collection-item :nth-child(2n+2).group,
1680 memory-dashboard .collection-item :nth-child(4n+3).bytes, 1683 memory-profile .collection-item :nth-child(4n+3),
1681 memory-dashboard .collection-item :nth-child(4n+3).instances, 1684 memory-profile .collection-item :nth-child(4n+4) {
1682 memory-dashboard .collection-item :nth-child(4n+4).bytes,
1683 memory-dashboard .collection-item :nth-child(4n+4).instances {
1684 background-color: #EEEEEE; 1685 background-color: #EEEEEE;
1685 } 1686 }
1686 1687
1687 memory-dashboard .collection-item:hover :nth-child(2n+2).group, 1688 memory-profile .collection-item:hover :nth-child(2n+2).group,
1688 memory-dashboard .collection-item:hover :nth-child(4n+3).bytes, 1689 memory-profile .collection-item:hover :nth-child(4n+3),
1689 memory-dashboard .collection-item:hover :nth-child(4n+3).instances, 1690 memory-profile .collection-item:hover :nth-child(4n+4) {
1690 memory-dashboard .collection-item:hover :nth-child(4n+4).bytes,
1691 memory-dashboard .collection-item:hover :nth-child(4n+4).instances {
1692 background-color: #afd5fd; 1691 background-color: #afd5fd;
1693 } 1692 }
1694 1693
1695 memory-dashboard .header .collection-item :nth-child(2n+2).group, 1694 memory-profile .header .collection-item :nth-child(2n+1).group,
1696 memory-dashboard .header .collection-item :nth-child(4n+3).bytes, 1695 memory-profile .header .collection-item :nth-child(4n+1),
1697 memory-dashboard .header .collection-item :nth-child(4n+3).instances, 1696 memory-profile .header .collection-item :nth-child(4n+2) {
1698 memory-dashboard .header .collection-item :nth-child(4n+4).bytes, 1697 background-color: #FFFFFF;
1699 memory-dashboard .header .collection-item :nth-child(4n+4).instances { 1698 }
1699
1700 memory-profile .header .collection-item :nth-child(2n+2).group,
1701 memory-profile .header .collection-item :nth-child(4n+3),
1702 memory-profile .header .collection-item :nth-child(4n+4) {
1700 background-color: #DDDDDD; 1703 background-color: #DDDDDD;
1701 } 1704 }
1702 1705
1703 memory-dashboard .scroller .collection-item:hover { 1706 memory-profile .collection-item .group {
1704 background-color: #d2e7fe;
1705 }
1706
1707 memory-dashboard .collection-item .group {
1708 background-color: white;
1709 display: inline-block; 1707 display: inline-block;
1710 width: 12em; 1708 width: 12em;
1711 text-align: right; 1709 text-align: right;
1712 padding-right: 0.5em; 1710 padding-right: 0.5em;
1713 line-height: 20px; 1711 line-height: 20px;
1714 border-right: solid 1px #AAAAAA; 1712 border-right: solid 1px #AAAAAA;
1715 } 1713 }
1716 1714
1717 memory-dashboard .collection-item .bytes { 1715 memory-profile .collection-item .bytes {
1718 background-color: white;
1719 display: inline-block; 1716 display: inline-block;
1720 width: 6em; 1717 width: 6em;
1721 text-align: right; 1718 text-align: right;
1722 line-height: 20px; 1719 line-height: 20px;
1723 padding-right: 0.5em; 1720 padding-right: 0.5em;
1724 } 1721 }
1725 1722
1726 memory-dashboard .collection-item .instances { 1723 memory-profile .collection-item .instances {
1727 background-color: white;
1728 display: inline-block; 1724 display: inline-block;
1729 width: 6em; 1725 width: 6em;
1730 text-align: right; 1726 text-align: right;
1731 padding-right: 0.5em; 1727 padding-right: 0.5em;
1732 line-height: 20px; 1728 line-height: 20px;
1733 border-right: solid 1px #AAAAAA; 1729 border-right: solid 1px #AAAAAA;
1734 } 1730 }
1735 1731
1736 memory-dashboard .collection-item .name { 1732 memory-profile .collection-item .name {
1737 background-color: white;
1738 padding-left: 0.5em; 1733 padding-left: 0.5em;
1734 display: inline-block;
1739 } 1735 }
1740 1736
1741 memory-dashboard .collection-item > button, 1737 memory-profile .collection-item > button,
1742 memory-dashboard .collection-item > button:active { 1738 memory-profile .collection-item > button:active,
1739 memory-profile .collection-item .group button,
1740 memory-profile .collection-item .group button:active {
1743 background-color: transparent; 1741 background-color: transparent;
1744 color: #0489c3; 1742 color: #0489c3;
1745 border-style: none; 1743 border-style: none;
1746 } 1744 }
1747 1745
1748 memory-dashboard .collection-item > button:hover { 1746 memory-profile .collection-item > button:hover,
1747 memory-profile .collection-item .group button:hover {
1749 text-decoration: underline; 1748 text-decoration: underline;
1750 } 1749 }
1751 1750
1752 /* metric-graph */ 1751 /* metric-graph */
1753 1752
1754 metric-graph {
1755 display: block;
1756 height: 100%;
1757 }
1758
1759 metric-graph .graph {
1760 height: 100%;
1761 margin-top: -30px;
1762 padding: 20px;
1763 padding-top: 60px;
1764 }
1765
1766 metric-graph .graph > div {
1767 height: 100%;
1768 }
1769
1770 /* metric-graph */
1771
1772 metrics-page > div { 1753 metrics-page > div {
1773 display: block; 1754 display: block;
1774 height: 100%; 1755 height: 100%;
1775 } 1756 }
1776 1757
1777 metrics-page > div > .graph { 1758 metrics-page > div > .graph {
1778 display: block; 1759 display: block;
1779 height: 100%; 1760 height: 100%;
1780 margin-top: -300px; 1761 margin-top: -300px;
1781 padding-top: 300px; 1762 padding-top: 300px;
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 2549
2569 vm-connect-target > button.delete-button:hover { 2550 vm-connect-target > button.delete-button:hover {
2570 background: #ff0000; 2551 background: #ff0000;
2571 } 2552 }
2572 2553
2573 /* vm-connect */ 2554 /* vm-connect */
2574 2555
2575 vm-connect ul { 2556 vm-connect ul {
2576 list-style-type: none; 2557 list-style-type: none;
2577 } 2558 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/app/page.dart ('k') | runtime/observatory/lib/src/elements/memory/dashboard.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698