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.3KB

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