panel_table.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .table-panel-wrapper {
  2. .panel-content {
  3. padding: 0;
  4. }
  5. .panel-title-container {
  6. padding-bottom: 4px;
  7. }
  8. }
  9. .table-panel-scroll {
  10. overflow: auto;
  11. }
  12. .table-panel-container {
  13. padding-top: 2.2em;
  14. position: relative;
  15. }
  16. .table-panel-footer {
  17. text-align: center;
  18. font-size: 90%;
  19. line-height: 2px;
  20. ul {
  21. position: relative;
  22. display: inline-block;
  23. margin-left: 0;
  24. margin-bottom: 0;
  25. }
  26. ul > li {
  27. display: inline; // Remove list-style and block-level defaults
  28. }
  29. ul > li > a {
  30. float: left; // Collapse white-space
  31. padding: 4px 12px;
  32. text-decoration: none;
  33. border-left-width: 0;
  34. &:hover {
  35. background-color: @grafanaTargetFuncBackground;
  36. }
  37. &.active {
  38. font-weight: bold;
  39. color: @blue;
  40. }
  41. }
  42. }
  43. .table-panel-table {
  44. width: 100%;
  45. border-collapse: collapse;
  46. th {
  47. padding: 0;
  48. &:first-child {
  49. .table-panel-table-header-inner {
  50. padding-left: 15px;
  51. }
  52. }
  53. }
  54. td {
  55. padding: 0.45em 0 0.45em 1.1em;
  56. border-bottom: 2px solid @bodyBackground;
  57. border-right: 2px solid @bodyBackground;
  58. &:first-child {
  59. padding-left: 15px;
  60. }
  61. &:last-child {
  62. border-right: none;
  63. }
  64. }
  65. }
  66. .table-panel-header-bg {
  67. background: @grafanaListAccent;
  68. border-top: 2px solid @bodyBackground;
  69. border-bottom: 2px solid @bodyBackground;
  70. height: 2.0em;
  71. position: absolute;
  72. top: 0;
  73. right: 0;
  74. left: 0;
  75. }
  76. .table-panel-table-header-inner {
  77. padding: 0.45em 0 0.45em 1.1em;
  78. text-align: left;
  79. color: @blue;
  80. position: absolute;
  81. top: 0;
  82. }
  83. .table-panel-width-hack {
  84. visibility: hidden;
  85. height: 0px;
  86. line-height: 0px;
  87. }