react-data-grid-logs.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @reference "./globals.css";
  2. .data-grid--simple-logs {
  3. .rdg {
  4. overflow-x: auto;
  5. min-width: 0;
  6. }
  7. .rdg-cell,
  8. .rdg-cell span {
  9. @apply text-foreground-light font-normal;
  10. border-left: none;
  11. border-right: none;
  12. overflow: visible;
  13. text-overflow: clip;
  14. }
  15. .rdg-cell {
  16. display: flex;
  17. align-items: center;
  18. }
  19. .rdg-cell:first-child {
  20. @apply pl-5;
  21. }
  22. .rdg-cell:last-child {
  23. @apply pr-5;
  24. }
  25. .rdg-row {
  26. &.rdg-row--focused {
  27. @apply border-r border-brand;
  28. border-right-width: 4px;
  29. }
  30. &.rdg-row--focused .rdg-cell,
  31. &.rdg-row--focused .rdg-cell span {
  32. @apply !text-foreground;
  33. }
  34. }
  35. }
  36. .data-grid--logs-explorer {
  37. @apply pb-12;
  38. .rdg {
  39. overflow-x: auto;
  40. min-width: 0;
  41. }
  42. .rdg-cell,
  43. .rdg-cell span {
  44. @apply !text-foreground-light !font-normal;
  45. border-left: none;
  46. border-right: none;
  47. overflow: visible;
  48. text-overflow: clip;
  49. }
  50. .rdg-cell {
  51. display: flex;
  52. align-items: center;
  53. }
  54. .rdg-cell:first-child {
  55. @apply pl-5;
  56. }
  57. .rdg-cell:last-child {
  58. @apply pr-5;
  59. }
  60. .rdg-row {
  61. &.rdg-row--focused {
  62. @apply border-r border-brand;
  63. border-right-width: 4px;
  64. }
  65. &.rdg-row--focused .rdg-cell,
  66. &.rdg-row--focused .rdg-cell span {
  67. @apply !text-foreground-light !font-semibold;
  68. }
  69. }
  70. }
  71. .syntax-highlight {
  72. counter-reset: line-numbering;
  73. font-family: Menlo, Monaco, monospace;
  74. color: hsl(var(--foreground-lighter));
  75. word-break: break-word;
  76. }
  77. .syntax-highlight .line::before {
  78. content: counter(line-numbering);
  79. counter-increment: line-numbering;
  80. padding-right: 0px;
  81. display: inline-block;
  82. color: hsl(var(--border-stronger));
  83. /* space after numbers */
  84. width: 2rem;
  85. text-align: left;
  86. }
  87. .logs-shimmering-loader {
  88. animation: shimmer 1.5s infinite linear;
  89. background: linear-gradient(
  90. to right,
  91. hsl(var(--background-default)) 0%,
  92. hsl(var(--brand-default)) 25%,
  93. hsl(var(--brand-300)) 35%,
  94. hsl(var(--background-default)) 45%,
  95. hsl(var(--background-surface-100)) 75%
  96. );
  97. background-size: 3000px 100%;
  98. }
  99. @keyframes logsShimmer {
  100. 0% {
  101. background-position: -1000px 0;
  102. }
  103. 50% {
  104. background-position: 1000px 0;
  105. }
  106. }