_panel_table.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .table-panel-content {
  2. padding: 0;
  3. .panel-title-container {
  4. padding-bottom: 4px;
  5. }
  6. }
  7. .table-panel-scroll {
  8. overflow: auto;
  9. }
  10. .table-panel-container {
  11. padding-top: 2.2em;
  12. position: relative;
  13. }
  14. .table-panel-footer {
  15. text-align: center;
  16. font-size: 90%;
  17. line-height: 2px;
  18. ul {
  19. position: relative;
  20. display: inline-block;
  21. margin-left: 0;
  22. margin-bottom: 0;
  23. }
  24. ul > li {
  25. display: inline; // Remove list-style and block-level defaults
  26. }
  27. ul > li > a {
  28. float: left; // Collapse white-space
  29. padding: 4px 12px;
  30. text-decoration: none;
  31. border-left-width: 0;
  32. &:hover {
  33. background-color: $tight-form-func-bg;
  34. }
  35. &.active {
  36. font-weight: bold;
  37. color: $blue;
  38. }
  39. }
  40. }
  41. .table-panel-table {
  42. width: 100%;
  43. border-collapse: collapse;
  44. th {
  45. padding: 0;
  46. &:first-child {
  47. .table-panel-table-header-inner {
  48. padding-left: 15px;
  49. }
  50. }
  51. }
  52. td {
  53. padding: 0.45em 0 0.45em 1.1em;
  54. border-bottom: 2px solid $body-bg;
  55. border-right: 2px solid $body-bg;
  56. &:first-child {
  57. padding-left: 15px;
  58. }
  59. &:last-child {
  60. border-right: none;
  61. }
  62. &.table-panel-cell-pre {
  63. white-space: pre;
  64. }
  65. &.table-panel-cell-link {
  66. // Expand internal div to cell size (make all cell clickable)
  67. padding: 0;
  68. a {
  69. padding: 0.45em 0 0.45em 1.1em;
  70. height: 100%;
  71. display: inline-block;
  72. }
  73. }
  74. &.cell-highlighted:hover {
  75. background-color: $tight-form-func-bg;
  76. }
  77. &:hover {
  78. .table-panel-filter-link {
  79. visibility: visible;
  80. }
  81. }
  82. }
  83. }
  84. .table-panel-filter-link {
  85. visibility: hidden;
  86. color: $text-color-weak;
  87. float: right;
  88. display: block;
  89. padding: 0 5px;
  90. }
  91. .table-panel-header-bg {
  92. background: $list-item-bg;
  93. border-top: 2px solid $body-bg;
  94. border-bottom: 2px solid $body-bg;
  95. height: 2em;
  96. position: absolute;
  97. top: 0;
  98. right: 0;
  99. left: 0;
  100. }
  101. .table-panel-table-header-inner {
  102. padding: 0.45em 0 0.45em 1.1em;
  103. text-align: left;
  104. color: $blue;
  105. position: absolute;
  106. top: 0;
  107. }
  108. .table-panel-width-hack {
  109. visibility: hidden;
  110. height: 0px;
  111. line-height: 0px;
  112. }