_detailPanel.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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: 'FontAwesome', sans-serif;
  39. content: "\00a0 \00a0 \00a0 \f054"; // 4 space before + chevron right
  40. }
  41. }
  42. }
  43. // input {
  44. // border:0;
  45. // font-family: $font;
  46. // background-color: $background-lighter;
  47. // color:$color;
  48. // // Remove blue border on focus
  49. // &:focus {
  50. // outline:none;
  51. // }
  52. // }
  53. }
  54. // A line of details composed of name, type, value, id, flagId
  55. .row {
  56. @extend .base-row;
  57. &:nth-child(even) {
  58. background-color:$background-lighter;
  59. }
  60. &.unfolded {
  61. .prop-value.clickable:after {
  62. font-family: 'FontAwesome', sans-serif;
  63. content: "\00a0 \00a0 \00a0 \f078"; // 4 space before + chevron down
  64. }
  65. }
  66. }
  67. // Name, type, value, Id, FlagId
  68. .header-row {
  69. @extend .base-row;
  70. background-color: $background-lighter;
  71. color : $color;
  72. width : 100%;
  73. max-width : 100%;
  74. // Special definition for text color: the color is the default one
  75. // All header columns
  76. & > * {
  77. color:$color !important;
  78. padding:5px 0 5px 5px !important;
  79. cursor: pointer;
  80. &:hover {
  81. background-color:$background-lighter2;
  82. }
  83. }
  84. .header-col {
  85. display:flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. .sort-direction {
  89. margin-right:5px;
  90. }
  91. }
  92. }
  93. // A div used to view a property in the property line (color, texture...)
  94. .element-viewer {
  95. position:relative;
  96. width:10px;
  97. height:10px;
  98. display:inline-block;
  99. margin-left:5px;
  100. }
  101. // The div displaying a color
  102. .color-element {
  103. @extend .element-viewer;
  104. width: 20px;
  105. height: 15px;
  106. }
  107. // The div displaying a texture element
  108. .texture-element {
  109. @extend .element-viewer;
  110. color:$color-top;
  111. margin-left:10px;
  112. .texture-viewer {
  113. color:$color;
  114. position:absolute;
  115. z-index:10;
  116. bottom:0;
  117. right:0;
  118. display:block;
  119. width:150px;
  120. height:150px;
  121. border: 1px solid $background-lighter3;
  122. background-color: $background;
  123. transform: translateX(100%) translateY(100%);
  124. display: none;
  125. flex-direction: column;
  126. justify-content: flex-start;
  127. align-items: center;
  128. .texture-viewer-img {
  129. margin:10px 0 10px 0;
  130. max-width:110px;
  131. max-height:110px;
  132. }
  133. }
  134. }
  135. }