BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tables.scss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @mixin center-all {
  2. }
  3. table {
  4. /* border: 2px solid rgba(0, 0, 0, 0.01); */
  5. border-collapse: collapse;
  6. width: 100%;
  7. /*
  8. * {
  9. vertical-align: middle;
  10. }
  11. */
  12. tr {
  13. background-color: white;
  14. }
  15. td,
  16. th {
  17. padding: 0.5rem;
  18. text-align: left;
  19. }
  20. }
  21. /**
  22. * Torrent form
  23. */
  24. .torrent_form,
  25. #dynamic_form {
  26. /* margin-bottom: 2rem; */
  27. label {
  28. float: right;
  29. }
  30. td {
  31. vertical-align: top;
  32. }
  33. }
  34. /* Classes */
  35. .colhead {
  36. background: $lb100;
  37. font-weight: bold;
  38. color: black;
  39. }
  40. td.colhead,
  41. .colhead td,
  42. .colhead th {
  43. padding-left: 10px;
  44. padding-right: 10px;
  45. }
  46. .colhead .sign,
  47. .colhead_dark .sign {
  48. padding: 0 1rem;
  49. vertical-align: middle;
  50. text-align: center;
  51. font-weight: bold;
  52. }
  53. .colhead .sign {
  54. padding: 0 1rem;
  55. font-weight: bold;
  56. }
  57. .colhead_dark {
  58. background: $lb100;
  59. color: black;
  60. }
  61. /* Torrent and collage tables */
  62. .torrent_table,
  63. .collage_table {
  64. tr.group {
  65. background-color: white;
  66. td.center:first-child {
  67. padding: 3px;
  68. width: 21px;
  69. }
  70. }
  71. tr.group_torrent {
  72. background-color: white;
  73. span {
  74. float: right;
  75. }
  76. }
  77. tr.torrent {
  78. background-color: white;
  79. }
  80. tr.torrent:nth-child(2n),
  81. tr.row:nth-child(2n) {
  82. background-color: whitesmoke;
  83. }
  84. tr.torrent:nth-child(2n-1),
  85. tr.row:nth-child(2n-1) {
  86. background-color: white;
  87. }
  88. tr .center,
  89. td {
  90. vertical-align: middle;
  91. /* text-align: center; */
  92. }
  93. div.tags {
  94. font-weight: normal;
  95. max-width: 500px;
  96. }
  97. }
  98. .torrent_table .group_torrent .torrent span {
  99. font-weight: normal;
  100. float: right;
  101. }
  102. /* Forums */
  103. .forum_post .colhead_dark {
  104. background: $lb100;
  105. }
  106. .forum_post.staff_post .colhead_dark {
  107. background: $lb200;
  108. }
  109. .forum_post.sticky_post {
  110. border: 2px solid $lb200;
  111. }
  112. td.label {
  113. font-weight: bold;
  114. text-align: right;
  115. width: 180px;
  116. }
  117. table.slice {
  118. margin-top: -1px;
  119. }
  120. /* Get rid of extraneous padding in the Top Contributors box */
  121. #request_top_contrib {
  122. border: none;
  123. tr:first-child th {
  124. border-top: 0;
  125. }
  126. tr:last-child td {
  127. border-bottom: 0;
  128. }
  129. tr td:first-child,
  130. tr th:first-child,
  131. tr td:nth-child(2),
  132. tr th:nth-child(2) {
  133. border-left: 0;
  134. border-top: 0;
  135. }
  136. tr td:last-child,
  137. tr th:last-child {
  138. border-right: 0;
  139. }
  140. }
  141. #request_table {
  142. margin-bottom: 0.5rem;
  143. }