timeline.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. .debug-timeline-panel {
  2. border: 1px solid #ddd;
  3. position: relative;
  4. margin-bottom: 20px;
  5. }
  6. .debug-timeline-panel.inline .debug-timeline-panel__item {
  7. height: 20px;
  8. margin-top: -20px;
  9. border-bottom: 0;
  10. }
  11. .debug-timeline-panel.inline .debug-timeline-panel__item:first-child {
  12. margin: 0;
  13. }
  14. .debug-timeline-panel.inline .debug-timeline-panel__item:not(.empty):hover {
  15. background-color: transparent;
  16. }
  17. .debug-timeline-panel.inline .debug-timeline-panel__items .time {
  18. box-shadow: inset 0px 0 3px -1px rgba(255, 255, 255, 0.7);
  19. }
  20. .debug-timeline-panel.inline .debug-timeline-panel__items .category {
  21. display: none;
  22. }
  23. .debug-timeline-panel.inline .ruler.ruler-start,
  24. .debug-timeline-panel.inline .ruler.ruler-end{
  25. display: none;
  26. }
  27. .debug-timeline-panel:not(.inline) .debug-timeline-panel__item a:focus{
  28. outline: none;
  29. }
  30. .debug-timeline-panel.affix .ruler b {
  31. z-index: 2;
  32. position: fixed;
  33. top: 0;
  34. }
  35. .debug-timeline-panel .category {
  36. opacity: 1;
  37. font-size: 10px;
  38. position: absolute;
  39. line-height: 20px;
  40. padding: 0 10px;
  41. color: #222;
  42. white-space: nowrap;
  43. cursor: pointer;
  44. }
  45. .debug-timeline-panel .category span {
  46. color: #7d7d7d;
  47. }
  48. .debug-timeline-panel .category span.memory[title] {
  49. cursor: help;
  50. border-bottom: 1px dotted #777;
  51. }
  52. .debug-timeline-panel .right > .category {
  53. right: 100%;
  54. }
  55. .debug-timeline-panel .left > .category {
  56. left: 100%;
  57. }
  58. .debug-timeline-panel .ruler {
  59. position: absolute;
  60. content: '';
  61. font-size: 10px;
  62. padding-left: 2px;
  63. top: 0;
  64. height: 100%;
  65. border-left: 1px solid #ddd;
  66. }
  67. .debug-timeline-panel__header .ruler:first-child{
  68. border-left: none;
  69. }
  70. .debug-timeline-panel .ruler.ruler-start {
  71. top: auto;
  72. margin-top: 20px;
  73. }
  74. .debug-timeline-panel .ruler.ruler-end {
  75. left: -1px;
  76. top: auto;
  77. }
  78. .debug-timeline-panel .ruler b {
  79. position: absolute;
  80. z-index: 2;
  81. color: black;
  82. font-weight: bold;
  83. white-space: nowrap;
  84. background-color: rgba(255,255,255,.4);
  85. min-width: 40px;
  86. line-height: 19px;
  87. display: block;
  88. text-align: center;
  89. }
  90. .debug-timeline-panel .time {
  91. position: relative;
  92. min-height: 20px;
  93. display: block;
  94. min-width: 1px;
  95. padding: 0;
  96. background-color: #989898;
  97. }
  98. .debug-timeline-panel .time + .tooltip .tooltip-inner{
  99. max-width: 300px;
  100. max-height: 180px;
  101. overflow: auto;
  102. word-wrap: break-word;
  103. overflow-wrap: break-word;
  104. }
  105. .debug-timeline-panel__header {
  106. -webkit-user-select: none;
  107. -moz-user-select: none;
  108. -ms-user-select: none;
  109. }
  110. .debug-timeline-panel__header,
  111. .debug-timeline-panel__item {
  112. min-height: 20px;
  113. border-bottom: 1px solid #ddd;
  114. overflow: hidden;
  115. }
  116. .debug-timeline-panel__header .control {
  117. position: absolute;
  118. margin-left: -20px;
  119. top:0;
  120. }
  121. .debug-timeline-panel__header .control button {
  122. display: none;
  123. padding: 0;
  124. }
  125. .debug-timeline-panel__header .control button:focus{
  126. outline: none;
  127. }
  128. .debug-timeline-panel__header .control button:hover{
  129. fill: #337ab7;
  130. }
  131. .debug-timeline-panel:not(.inline) .debug-timeline-panel__header .control button.inline,
  132. .debug-timeline-panel.inline .debug-timeline-panel__header .control button.open{
  133. display: block;
  134. }
  135. .debug-timeline-panel.affix .debug-timeline-panel__header .control{
  136. position: fixed;
  137. }
  138. .debug-timeline-panel__item:last-child {
  139. border-bottom: 0;
  140. }
  141. .debug-timeline-panel__item:nth-child(2n) {
  142. background-color: #f9f9f9;
  143. }
  144. .debug-timeline-panel__item:hover {
  145. background-color: rgba(51, 122, 183, 0.16);
  146. }
  147. .debug-timeline-panel__item.empty {
  148. background-color: #f9f9f9;
  149. line-height: 20px;
  150. padding-left: 10px;
  151. }
  152. .debug-timeline-panel__item.empty span {
  153. position: absolute;
  154. background-color: inherit;
  155. }
  156. .debug-timeline-panel__search {
  157. background-color: #f9f9f9;
  158. padding: 10px 10px 0px 10px;
  159. margin-bottom: 10px;
  160. font-size: 16px;
  161. }
  162. .debug-timeline-panel__search > div {
  163. display: inline-block;
  164. margin-bottom: 10px;
  165. }
  166. .debug-timeline-panel__search .duration {
  167. margin-right: 20px;
  168. }
  169. .debug-timeline-panel__search label {
  170. width: 80px;
  171. }
  172. .debug-timeline-panel__search input {
  173. font-size: 16px;
  174. padding: 4px;
  175. }
  176. .debug-timeline-panel__search input#timeline-duration {
  177. width: 55px;
  178. text-align: right;
  179. }
  180. .debug-timeline-panel__search input#timeline-category {
  181. min-width: 185px;
  182. }
  183. .debug-timeline-panel__memory {
  184. position: relative;
  185. margin-top: 18px;
  186. box-sizing: content-box;
  187. border-bottom: 1px solid #ddd;
  188. }
  189. .debug-timeline-panel__memory svg{
  190. width: 100%;
  191. }
  192. .debug-timeline-panel__memory .scale {
  193. font-size: 12px;
  194. line-height: 16px;
  195. position: absolute;
  196. border-bottom: 1px dashed #000;
  197. width: 100%;
  198. padding-left: 6px;
  199. transition: bottom 0.2s ease;
  200. }
  201. @media (max-width:767px) {
  202. .debug-timeline-panel .ruler:nth-child(2n) b{
  203. display: none;
  204. }
  205. }
  206. @media (max-width: 991px) {
  207. .debug-timeline-panel__header .control{
  208. margin-left: -17px;
  209. }
  210. }