_panel_table.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 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. text-decoration: underline;
  73. text-underline-position: under;
  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: 2em;
  98. position: absolute;
  99. top: 0;
  100. right: 0;
  101. left: 0;
  102. }
  103. .table-panel-table-header-inner {
  104. padding: 0.3em 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. }
  115. .table-panel-color-cell {
  116. color: white;
  117. a {
  118. color: white;
  119. }
  120. }
  121. .table-panel-color-row {
  122. color: white;
  123. a {
  124. color: white;
  125. }
  126. }