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.

layout.scss 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /*
  2. * Body
  3. */
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. /**
  9. * Main column and sidebar
  10. */
  11. /* Main column and sidebar */
  12. @mixin column-flex($width) {
  13. display: flex;
  14. flex-direction: column;
  15. align-items: stretch;
  16. max-width: $width;
  17. min-height: 0;
  18. padding: 0 0.25rem;
  19. }
  20. .main_column {
  21. @include column-flex(64%);
  22. table {
  23. margin-bottom: 1rem;
  24. }
  25. }
  26. .sidebar {
  27. @include column-flex(34%);
  28. width: 34%;
  29. float: right;
  30. &.fixed {
  31. width: 34%;
  32. }
  33. }
  34. .sidebar {
  35. float: right;
  36. width: 30%;
  37. min-width: 20%;
  38. margin-right: 1rem;
  39. }
  40. /* Box: soon to be <section> */
  41. .box {
  42. margin-bottom: 1rem;
  43. }
  44. /*
  45. * Flex elements
  46. */
  47. .flex {
  48. display: flex;
  49. }
  50. /* Grow and shrink */
  51. .flex > .grow {
  52. flex-grow: 1;
  53. }
  54. .flex > .shrink {
  55. flex-shrink: 1;
  56. }
  57. /* Text input */
  58. .flex_input_container {
  59. display: flex;
  60. }
  61. .flex_input_container > input[type="text"] {
  62. flex-grow: 1;
  63. box-sizing: border-box;
  64. width: 50%;
  65. }
  66. /**
  67. * Section elements
  68. */
  69. .style_addition input {
  70. margin-left: 0.5rem;
  71. }
  72. /**
  73. * Aside elements
  74. */
  75. aside {
  76. max-width: 66%;
  77. p {
  78. text-align: center;
  79. }
  80. /**
  81. * "Please consult the Upload Rules"
  82. * admonishment on torrent_form.class.php.
  83. */
  84. &.upload_notice {
  85. @include transparent-border($c: red, $a: 0.5);
  86. margin: 1rem auto;
  87. padding-top: 1rem;
  88. text-align: center;
  89. }
  90. /* Announce and source */
  91. &.announce_source,
  92. &.torrent_upload {
  93. margin: 1rem auto;
  94. }
  95. /* Torrent upload error */
  96. &.upload_error {
  97. color: red;
  98. margin: 2rem auto;
  99. font-size: larger;
  100. }
  101. }
  102. /**
  103. * Footer
  104. */
  105. footer {
  106. margin-top: 2rem;
  107. width: 100%;
  108. p {
  109. text-align: center;
  110. }
  111. }
  112. /*
  113. * Misc
  114. */
  115. .hidden {
  116. display: none;
  117. }
  118. .invisible {
  119. visibility: hidden;
  120. }
  121. /* Permissions form submit button */
  122. .submit_container {
  123. clear: both;
  124. margin: 1rem;
  125. text-align: right;
  126. }
  127. /* Textarea */
  128. .textarea_wrap {
  129. margin-bottom: 0.5rem;
  130. }
  131. .textarea_wrap:last-of-type {
  132. margin-bottom: 0;
  133. }
  134. /* Floaters */
  135. .float_left {
  136. float: left;
  137. }
  138. .float_right {
  139. float: right;
  140. }
  141. .float_clear {
  142. clear: both;
  143. }
  144. /* Images */
  145. img {
  146. border: none;
  147. }
  148. .webm {
  149. max-width: 100%;
  150. }
  151. /* Donor hearts and badges */
  152. .donor_icon {
  153. margin-left: 2px;
  154. margin-right: 2px;
  155. max-width: 16px;
  156. max-height: 16px;
  157. position: relative;
  158. }
  159. .badge_icon {
  160. margin: 0px 2px;
  161. position: relative;
  162. }
  163. .donation_info {
  164. padding: 10px 10px 10px 20px;
  165. margin-left: 10px;
  166. margin-right: 10px;
  167. margin-bottom: 20px;
  168. }
  169. .donation_info_title {
  170. display: block;
  171. font-size: 1.75em;
  172. -webkit-margin-before: 1em;
  173. -webkit-margin-after: 1em;
  174. -webkit-margin-start: 0px;
  175. -webkit-margin-end: 0px;
  176. font-weight: bold;
  177. margin: 10px 0;
  178. }
  179. /* Image dimension limits */
  180. img {
  181. max-width: 100%;
  182. }
  183. /* Covers */
  184. #coverCont {
  185. position: fixed;
  186. max-width: 30%;
  187. background-size: contain;
  188. background-repeat: no-repeat;
  189. z-index: 9999;
  190. }
  191. #coverCont img {
  192. max-width: 100%;
  193. }
  194. #covers img {
  195. display: block;
  196. margin-left: auto;
  197. margin-right: auto;
  198. }
  199. /**
  200. * Donate button
  201. * PNG to avoid the botnet
  202. */
  203. .donate_button {
  204. margin: 2rem auto;
  205. img {
  206. height: 2rem;
  207. }
  208. }
  209. /* User and torrent stats */
  210. .chart {
  211. max-height: 30rem;
  212. }