_detailPanel.scss 3.5 KB

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