_panel_table.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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: $tight-form-func-bg;
  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 $body-bg;
  57. border-right: 2px solid $body-bg;
  58. &:first-child {
  59. padding-left: 15px;
  60. }
  61. &:last-child {
  62. border-right: none;
  63. }
  64. &.table-panel-cell-pre {
  65. white-space: pre;
  66. }
  67. &.table-panel-cell-link {
  68. // Expand internal div to cell size (make all cell clickable)
  69. padding: 0;
  70. a {
  71. padding: 0.45em 0 0.45em 1.1em;
  72. height: 100%;
  73. display: inline-block;
  74. }
  75. }
  76. &.cell-highlighted:hover {
  77. background-color: $tight-form-func-bg;
  78. }
  79. &:hover {
  80. .table-panel-filter-link {
  81. visibility: visible;
  82. }
  83. }
  84. }
  85. }
  86. .table-panel-filter-link {
  87. visibility: hidden;
  88. color: $text-color-weak;
  89. float: right;
  90. display: block;
  91. padding: 0 5px;
  92. }
  93. .table-panel-header-bg {
  94. background: $list-item-bg;
  95. border-top: 2px solid $body-bg;
  96. border-bottom: 2px solid $body-bg;
  97. height: 2.0em;
  98. position: absolute;
  99. top: 0;
  100. right: 0;
  101. left: 0;
  102. }
  103. .table-panel-table-header-inner {
  104. padding: 0.45em 0 0.45em 1.1em;
  105. text-align: left;
  106. color: $blue;
  107. position: absolute;
  108. top: 0;
  109. }
  110. .table-panel-width-hack {
  111. visibility: hidden;
  112. height: 0px;
  113. line-height: 0px;
  114. }