_detailPanel.scss 3.5 KB

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