_detailPanel.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // The main class of the detail panel
  2. .insp-details {
  3. background-color: $background;
  4. overflow-y: auto;
  5. overflow-x: auto;
  6. color:$color;
  7. font-family: $font;
  8. .details {
  9. padding-left: 5px;
  10. }
  11. // Common defintion between header row and detail row
  12. .base-row {
  13. display:flex;
  14. width:100%;
  15. .base-property {
  16. padding: 2px 0 2px 0;
  17. text-overflow: ellipsis;
  18. white-space: nowrap;
  19. overflow: hidden;
  20. }
  21. // Property name
  22. .prop-name {
  23. @extend .property-name;
  24. @extend .base-property;
  25. width:35%;
  26. }
  27. // property value
  28. .prop-value {
  29. @extend .base-property;
  30. width:59%;
  31. padding-left:5px;
  32. &.clickable {
  33. cursor:pointer;
  34. &:hover {
  35. background-color:$background-lighter2;
  36. }
  37. &:after {
  38. font-family: $font-family-icons;
  39. content: "\00a0 \00a0 \00a0 \f105"; // 4 space before + angle-right
  40. font-weight: 900; // To display solid font family
  41. }
  42. }
  43. }
  44. // input {
  45. // border:0;
  46. // font-family: $font;
  47. // background-color: $background-lighter;
  48. // color:$color;
  49. // // Remove blue border on focus
  50. // &:focus {
  51. // outline:none;
  52. // }
  53. // }
  54. }
  55. // A line of details composed of name, type, value, id, flagId
  56. .row {
  57. @extend .base-row;
  58. &:nth-child(even) {
  59. background-color:$background-lighter;
  60. }
  61. &.unfolded {
  62. .prop-value.clickable:after {
  63. font-family: $font-family-icons;
  64. content: "\00a0 \00a0 \00a0 \f107"; // 4 space before + angle-down
  65. font-weight: 900; // To display solid font family
  66. }
  67. }
  68. }
  69. // Name, type, value, Id, FlagId
  70. .header-row {
  71. @extend .base-row;
  72. background-color: $background-lighter;
  73. color : $color;
  74. width : 100%;
  75. max-width : 100%;
  76. // Special definition for text color: the color is the default one
  77. // All header columns
  78. & > * {
  79. color:$color !important;
  80. padding:5px 0 5px 5px !important;
  81. cursor: pointer;
  82. &:hover {
  83. background-color:$background-lighter2;
  84. }
  85. }
  86. .header-col {
  87. display:flex;
  88. justify-content: space-between;
  89. align-items: center;
  90. .sort-direction {
  91. margin-right:5px;
  92. }
  93. }
  94. }
  95. // A div used to view a property in the property line (color, texture...)
  96. .element-viewer {
  97. position:relative;
  98. width:10px;
  99. height:10px;
  100. display:inline-block;
  101. margin-left:5px;
  102. }
  103. // The div displaying a color
  104. .color-element {
  105. @extend .element-viewer;
  106. width: 20px;
  107. height: 15px;
  108. }
  109. // The div displaying a texture element
  110. .texture-element {
  111. @extend .element-viewer;
  112. color:$color-top;
  113. margin-left:10px;
  114. .texture-viewer {
  115. color:$color;
  116. position:absolute;
  117. z-index:10;
  118. bottom:0;
  119. right:0;
  120. display:block;
  121. width:150px;
  122. height:150px;
  123. border: 1px solid $background-lighter3;
  124. background-color: $background;
  125. transform: translateX(100%) translateY(100%);
  126. display: none;
  127. flex-direction: column;
  128. justify-content: flex-start;
  129. align-items: center;
  130. .texture-viewer-img {
  131. margin:10px 0 10px 0;
  132. max-width:110px;
  133. max-height:110px;
  134. }
  135. }
  136. }
  137. }