1
0

TrajectoryTimeline.module.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. .root {
  2. position: relative;
  3. z-index: 0;
  4. isolation: isolate;
  5. flex: none;
  6. border-bottom: 1px solid var(--dsw-alias-border-l2);
  7. user-select: none;
  8. }
  9. .plot {
  10. display: grid;
  11. grid-template-columns: 44px minmax(0, 1fr);
  12. height: 50px;
  13. overflow: hidden;
  14. background: var(--dsw-alias-bg-layer-2);
  15. }
  16. .labels {
  17. position: relative;
  18. border-right: 1px solid var(--dsw-alias-border-l1);
  19. color: var(--dsw-alias-label-caption);
  20. font: var(--dsw-font-xs-13);
  21. font-size: 10px;
  22. line-height: 1;
  23. }
  24. .labels span {
  25. position: absolute;
  26. right: 3px;
  27. display: flex;
  28. align-items: center;
  29. justify-content: flex-end;
  30. height: 8px;
  31. text-align: right;
  32. }
  33. .labels span:nth-child(1) {
  34. top: 7px;
  35. }
  36. .labels span:nth-child(2) {
  37. top: 21px;
  38. }
  39. .labels span:nth-child(3) {
  40. top: 35px;
  41. }
  42. .track {
  43. position: relative;
  44. overflow: hidden;
  45. cursor: crosshair;
  46. touch-action: none;
  47. }
  48. .empty {
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. transform: translate(-50%, -50%);
  53. color: var(--dsw-alias-label-caption);
  54. font: var(--dsw-font-xs-13);
  55. }
  56. .track:focus-visible {
  57. outline: 1px solid var(--dsw-alias-state-business-primary);
  58. outline-offset: -1px;
  59. }
  60. .lanes {
  61. position: absolute;
  62. z-index: 2;
  63. inset: 7px 0;
  64. }
  65. .turnBoundaries {
  66. position: absolute;
  67. z-index: 3;
  68. inset: 0;
  69. pointer-events: none;
  70. }
  71. .turnBoundary {
  72. position: absolute;
  73. top: 0;
  74. bottom: 0;
  75. left: var(--trajectory-turn-left);
  76. width: 1px;
  77. background: var(--dsw-alias-border-l2);
  78. }
  79. .span {
  80. position: absolute;
  81. top: calc(var(--trajectory-span-lane) * 14px);
  82. left: calc(var(--trajectory-span-left) + 1px);
  83. width: max(2px, calc(var(--trajectory-span-width) - 2px));
  84. height: 8px;
  85. min-width: 2px;
  86. border-radius: 1px;
  87. background: var(--dsw-alias-label-secondary);
  88. opacity: 0.78;
  89. }
  90. .span[data-timeline-span='user'] {
  91. background: var(--dsw-alias-state-business-primary);
  92. }
  93. .span[data-timeline-span='context'] {
  94. background: color-mix(
  95. in srgb,
  96. var(--dsw-alias-state-success-primary) 68%,
  97. var(--dsw-alias-label-secondary)
  98. );
  99. }
  100. .span[data-timeline-span='message'] {
  101. background: color-mix(
  102. in srgb,
  103. var(--dsw-alias-brand-primary-new-colorprimary-new-color) 60%,
  104. var(--dsw-alias-state-error-secondary)
  105. );
  106. }
  107. .span[data-timeline-span='tool'] {
  108. background: var(--dsw-alias-state-warn-label);
  109. }
  110. .span[data-timeline-span='subtool'] {
  111. background: color-mix(
  112. in srgb,
  113. var(--dsw-alias-state-warn-label) 62%,
  114. var(--dsw-alias-label-tertiary)
  115. );
  116. }
  117. .span[data-equal-duration='true'] {
  118. width: 8px;
  119. min-width: 8px;
  120. }
  121. .span[data-selected='false'] {
  122. opacity: 0.2;
  123. }
  124. .span[data-current='true'] {
  125. z-index: 1;
  126. opacity: 1;
  127. box-shadow:
  128. 0 0 0 1px var(--dsw-alias-bg-layer-2),
  129. 0 0 0 2px var(--dsw-alias-state-business-primary);
  130. }
  131. .span[data-search-match='false'] {
  132. opacity: 0.14;
  133. }
  134. .selection {
  135. position: absolute;
  136. z-index: 1;
  137. top: 0;
  138. bottom: 0;
  139. left: var(--trajectory-selection-left);
  140. width: var(--trajectory-selection-width);
  141. min-width: 1px;
  142. background: color-mix(
  143. in srgb,
  144. var(--dsw-alias-state-business-primary) 12%,
  145. transparent
  146. );
  147. box-shadow:
  148. -100vw 0 0 100vw color-mix(in srgb, var(--dsw-alias-bg-layer-1) 58%, transparent),
  149. 100vw 0 0 100vw color-mix(in srgb, var(--dsw-alias-bg-layer-1) 58%, transparent);
  150. pointer-events: none;
  151. }
  152. .selectionEdges {
  153. position: absolute;
  154. z-index: 4;
  155. top: 0;
  156. bottom: 0;
  157. left: var(--trajectory-selection-left);
  158. width: var(--trajectory-selection-width);
  159. min-width: 1px;
  160. pointer-events: none;
  161. }
  162. .hoverLine {
  163. position: absolute;
  164. z-index: 4;
  165. top: 0;
  166. bottom: 0;
  167. left: clamp(
  168. 0px,
  169. calc(var(--trajectory-hover-left) - 1px),
  170. calc(100% - 2px)
  171. );
  172. width: 2px;
  173. background: var(--dsw-alias-state-business-primary);
  174. pointer-events: none;
  175. }
  176. .selectionEdges::before,
  177. .selectionEdges::after {
  178. position: absolute;
  179. top: 0;
  180. bottom: 0;
  181. width: 3px;
  182. background: var(--dsw-alias-state-business-primary);
  183. content: '';
  184. }
  185. .selectionEdges::before {
  186. left: 0;
  187. }
  188. .selectionEdges::after {
  189. right: 0;
  190. }
  191. .selectionEdges[data-dragging='true']::before,
  192. .selectionEdges[data-dragging='true']::after {
  193. width: 2px;
  194. }
  195. .selection[data-dragging='true'] {
  196. background: color-mix(
  197. in srgb,
  198. var(--dsw-alias-state-business-primary) 18%,
  199. transparent
  200. );
  201. }