texture-comparison-visualizer.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. .texture-comparison-visualizer {
  2. padding: 16px;
  3. background: white;
  4. border-radius: 8px;
  5. .visualizer-header {
  6. display: flex;
  7. justify-content: space-between;
  8. align-items: center;
  9. margin-bottom: 16px;
  10. h6 {
  11. margin: 0;
  12. font-size: 15px;
  13. font-weight: 600;
  14. color: #333;
  15. }
  16. .material-count {
  17. font-size: 12px;
  18. color: #666;
  19. background: #f0f0f0;
  20. padding: 4px 10px;
  21. border-radius: 12px;
  22. }
  23. }
  24. .empty-state {
  25. padding: 40px 20px;
  26. text-align: center;
  27. color: #999;
  28. font-size: 14px;
  29. }
  30. .texture-cards-grid {
  31. display: grid;
  32. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  33. gap: 16px;
  34. margin-bottom: 16px;
  35. .texture-card {
  36. background: #f8f9fa;
  37. border-radius: 8px;
  38. padding: 16px;
  39. border: 1px solid #e0e0e0;
  40. transition: all 0.3s ease;
  41. &:hover {
  42. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  43. transform: translateY(-2px);
  44. }
  45. .texture-thumbnail {
  46. width: 100%;
  47. height: 120px;
  48. border-radius: 6px;
  49. overflow: hidden;
  50. margin-bottom: 12px;
  51. background: #e0e0e0;
  52. img {
  53. width: 100%;
  54. height: 100%;
  55. object-fit: cover;
  56. }
  57. }
  58. .texture-info {
  59. margin-bottom: 16px;
  60. .material-name {
  61. margin: 0 0 4px 0;
  62. font-size: 14px;
  63. font-weight: 600;
  64. color: #333;
  65. }
  66. .material-type {
  67. display: inline-block;
  68. font-size: 11px;
  69. color: #666;
  70. background: white;
  71. padding: 2px 8px;
  72. border-radius: 4px;
  73. margin-right: 6px;
  74. }
  75. .characteristic-badge {
  76. display: inline-block;
  77. font-size: 11px;
  78. font-weight: 600;
  79. padding: 2px 8px;
  80. border-radius: 4px;
  81. }
  82. }
  83. .radar-chart-container {
  84. display: flex;
  85. justify-content: center;
  86. margin-bottom: 16px;
  87. svg {
  88. filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  89. .radar-label {
  90. fill: #666;
  91. font-size: 8px;
  92. }
  93. }
  94. }
  95. .property-bars {
  96. display: flex;
  97. flex-direction: column;
  98. gap: 10px;
  99. .property-item {
  100. .property-header {
  101. display: flex;
  102. justify-content: space-between;
  103. align-items: center;
  104. margin-bottom: 4px;
  105. .property-name {
  106. display: flex;
  107. align-items: center;
  108. gap: 4px;
  109. font-size: 11px;
  110. color: #666;
  111. svg {
  112. width: 12px;
  113. height: 12px;
  114. stroke: #999;
  115. }
  116. }
  117. .property-value {
  118. font-size: 11px;
  119. font-weight: 600;
  120. color: #333;
  121. }
  122. }
  123. .property-bar-container {
  124. width: 100%;
  125. height: 6px;
  126. background: #e0e0e0;
  127. border-radius: 3px;
  128. overflow: hidden;
  129. .property-bar-fill {
  130. height: 100%;
  131. transition: width 0.3s ease;
  132. border-radius: 3px;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. .comparison-summary {
  140. padding: 16px;
  141. background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
  142. border-radius: 8px;
  143. border: 1px solid #d0e7ff;
  144. h6 {
  145. margin: 0 0 12px 0;
  146. font-size: 14px;
  147. font-weight: 600;
  148. color: #007AFF;
  149. }
  150. .summary-grid {
  151. display: grid;
  152. grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  153. gap: 12px;
  154. .summary-item {
  155. display: flex;
  156. flex-direction: column;
  157. gap: 4px;
  158. .label {
  159. font-size: 11px;
  160. color: #666;
  161. }
  162. .value {
  163. font-size: 13px;
  164. font-weight: 600;
  165. color: #333;
  166. }
  167. }
  168. }
  169. }
  170. }