stack.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. :root {
  2. --stack-height: var(--tab-main-height);
  3. }
  4. .stack {
  5. @apply grid;
  6. grid-template: calc(0.4 * var(--stack-height)) calc(0.6 * var(--stack-height)) / 1fr;
  7. }
  8. @screen sm {
  9. .stack {
  10. @apply items-stretch;
  11. grid-template: var(--stack-height) / 22rem 1fr;
  12. }
  13. }
  14. .stack-nav {
  15. @apply h-full;
  16. @apply bg-white;
  17. @apply border-b;
  18. @apply border-gray-300;
  19. @apply text-xs;
  20. @apply overflow-hidden;
  21. @apply grid;
  22. grid-template: 1fr / 100%;
  23. }
  24. @screen sm {
  25. .stack-nav {
  26. @apply grid;
  27. grid-template: auto 1fr / 100%;
  28. @apply border-b-0;
  29. @apply border-r;
  30. }
  31. }
  32. .stack-nav-actions {
  33. @apply hidden;
  34. }
  35. @screen sm {
  36. .stack-nav-actions {
  37. @apply grid;
  38. @apply items-center;
  39. @apply justify-between;
  40. @apply cols-auto;
  41. @apply py-4;
  42. @apply bg-gray-100;
  43. }
  44. }
  45. .stack-nav-arrows {
  46. @apply grid;
  47. @apply cols-2;
  48. @apply justify-center;
  49. @apply items-center;
  50. @apply gap-1;
  51. @apply w-10;
  52. @apply px-3;
  53. }
  54. .stack-nav-arrow {
  55. @apply text-gray-500;
  56. @apply text-xs;
  57. }
  58. .stack-nav-arrow:hover {
  59. @apply text-gray-700;
  60. }
  61. .stack-frames {
  62. @apply overflow-hidden;
  63. @apply border-t;
  64. @apply border-gray-200;
  65. }
  66. .stack-frames-scroll {
  67. @apply absolute;
  68. @apply inset-0;
  69. @apply overflow-x-hidden;
  70. @apply overflow-y-auto;
  71. }
  72. .stack-frame-group {
  73. @apply border-b;
  74. @apply border-gray-300;
  75. @apply bg-white;
  76. }
  77. .stack-frame {
  78. @apply grid;
  79. @apply items-end;
  80. grid-template-columns: 2rem auto auto;
  81. }
  82. @screen sm {
  83. .stack-frame {
  84. grid-template-columns: 3rem 1fr auto;
  85. }
  86. }
  87. .stack-frame:not(:first-child) {
  88. @apply -mt-2;
  89. }
  90. .stack-frame-selected,
  91. .stack-frame-selected .stack-frame-header {
  92. @apply bg-purple-100;
  93. @apply z-10;
  94. }
  95. .stack-frame-group-vendor .stack-frame-selected,
  96. .stack-frame-group-vendor .stack-frame-selected .stack-frame-header {
  97. /* @apply bg-gray-100; */
  98. }
  99. .stack-frame-number {
  100. @apply px-2;
  101. @apply py-4;
  102. @apply text-purple-500;
  103. @apply variant-tabular;
  104. @apply text-center;
  105. }
  106. .stack-frame-group-vendor .stack-frame-number {
  107. @apply text-tint-500;
  108. }
  109. .stack-frame-header {
  110. @apply -mr-10;
  111. @apply w-full;
  112. }
  113. .stack-frame-text {
  114. @apply grid;
  115. @apply items-center;
  116. @apply gap-2;
  117. @apply border-l-2;
  118. @apply pl-3;
  119. @apply py-4;
  120. @apply border-purple-300;
  121. @apply text-gray-700;
  122. }
  123. .stack-frame-group-vendor .stack-frame-text {
  124. @apply border-gray-300;
  125. }
  126. .stack-frame-selected .stack-frame-text {
  127. @apply border-purple-500;
  128. }
  129. .stack-frame-group-vendor .stack-frame-selected .stack-frame-text {
  130. @apply border-gray-500;
  131. }
  132. .stack-frame-line {
  133. @apply pl-2;
  134. @apply pr-1;
  135. @apply py-4;
  136. @apply text-right;
  137. @apply leading-tight;
  138. }
  139. .stack-main {
  140. @apply grid;
  141. @apply h-full;
  142. @apply overflow-hidden;
  143. @apply bg-gray-100;
  144. grid-template: auto 1fr / 100%;
  145. }
  146. .stack-main-header {
  147. @apply px-6;
  148. @apply py-2;
  149. @apply border-b;
  150. @apply border-gray-200;
  151. @apply text-xs;
  152. }
  153. @screen sm {
  154. .stack-main-header {
  155. @apply py-4;
  156. @apply text-base;
  157. }
  158. }
  159. .stack-main-content {
  160. @apply overflow-hidden;
  161. }
  162. .stack-viewer {
  163. @apply absolute;
  164. @apply inset-0;
  165. @apply flex;
  166. @apply overflow-auto;
  167. @apply bg-white;
  168. @apply text-xs;
  169. }
  170. .stack-ruler {
  171. position: -webkit-sticky;
  172. position: sticky;
  173. @apply flex-none;
  174. @apply left-0;
  175. @apply z-20;
  176. }
  177. .stack-lines {
  178. @apply min-h-full;
  179. @apply border-r;
  180. @apply border-gray-200;
  181. @apply bg-gray-100;
  182. @apply py-4;
  183. @apply select-none;
  184. }
  185. .stack-line {
  186. @apply px-2;
  187. @apply font-mono;
  188. @apply text-tint-600;
  189. @apply leading-loose;
  190. @apply select-none;
  191. }
  192. .stack-line-highlight {
  193. @apply bg-purple-200;
  194. }
  195. .stack-line-selected {
  196. @apply bg-yellow-200;
  197. }
  198. .stack-line-highlight.stack-line-selected {
  199. @apply bg-yellow-300;
  200. }
  201. .stack-code {
  202. @apply flex-grow;
  203. @apply py-4;
  204. }
  205. .stack-code-line {
  206. @apply pl-6;
  207. @apply text-gray-700;
  208. @apply leading-loose;
  209. }
  210. .stack-code-line:hover {
  211. @apply bg-purple-100;
  212. }
  213. .stack-code-line .editor-link {
  214. @apply inline-block;
  215. @apply px-2;
  216. @apply opacity-0;
  217. @apply text-purple-400;
  218. }
  219. .stack-code-line .editor-link:hover {
  220. @apply text-purple-500;
  221. }
  222. .stack-code-line:hover .editor-link {
  223. @apply opacity-100;
  224. }
  225. .stack-code-line-highlight {
  226. @apply bg-purple-100;
  227. }
  228. .stack-code-line-selected {
  229. @apply bg-yellow-100;
  230. }
  231. .stack-code-line-highlight.stack-code-line-selected {
  232. @apply bg-yellow-200;
  233. }