dom-view.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /* vim:set ts=2 sw=2 sts=2 et: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /******************************************************************************/
  6. /* General */
  7. body {
  8. padding: 0;
  9. margin: 0;
  10. overflow: hidden;
  11. }
  12. .mainFrame {
  13. display: flex;
  14. flex-direction: column;
  15. height: 100vh;
  16. }
  17. .mainFrame > .treeTableBox {
  18. flex: 1 1 auto;
  19. overflow: auto;
  20. }
  21. /******************************************************************************/
  22. /* TreeView Customization */
  23. .treeTable {
  24. width: 100%;
  25. }
  26. /* Space for read only properties icon */
  27. .treeTable td.treeValueCell {
  28. padding-inline-start: 16px;
  29. }
  30. .treeTable .treeLabel,
  31. .treeTable td.treeValueCell .objectBox {
  32. direction: ltr; /* Don't change the direction of english labels */
  33. }
  34. /* Read only properties have a padlock icon */
  35. .treeTable tr:not(.writable) td.treeValueCell {
  36. background: url("chrome://devtools/skin/images/firebug/read-only.svg") no-repeat;
  37. background-position: 1px 5px;
  38. background-size: 10px 10px;
  39. }
  40. .treeTable tr:not(.writable) td.treeValueCell:dir(rtl) {
  41. background-position-x: right 1px;
  42. }
  43. /* Non-enumerable properties are grayed out */
  44. .treeTable tr:not(.enumerable) td.treeValueCell {
  45. opacity: 0.7;
  46. }
  47. .treeTable > tbody > tr > td {
  48. border-bottom: 1px solid #EFEFEF;
  49. }
  50. /* Label Types */
  51. .treeTable .userLabel,
  52. .treeTable .userClassLabel,
  53. .treeTable .userFunctionLabel {
  54. font-weight: bold;
  55. }
  56. .treeTable .userLabel {
  57. color: #000000;
  58. }
  59. .treeTable .userClassLabel {
  60. color: #E90000;
  61. }
  62. .treeTable .userFunctionLabel {
  63. color: #025E2A;
  64. }
  65. .treeTable .domLabel {
  66. color: #000000;
  67. }
  68. .treeTable .domClassLabel {
  69. color: #E90000;
  70. }
  71. .treeTable .domFunctionLabel {
  72. color: #025E2A;
  73. }
  74. .treeTable .ordinalLabel {
  75. color: SlateBlue;
  76. font-weight: bold;
  77. }
  78. /******************************************************************************/
  79. /* Search box */
  80. .devtools-searchbox {
  81. float: right;
  82. }
  83. .devtools-searchbox:dir(rtl) {
  84. float: left;
  85. }
  86. /******************************************************************************/
  87. /* Theme Dark */
  88. .theme-dark .treeTable > tbody > tr > td {
  89. border-bottom: none;
  90. }
  91. .theme-dark body {
  92. background-color: var(--theme-body-background);
  93. }