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 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. /*
  2. * Body
  3. */
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. body {
  9. /* min-width: 800px; */
  10. }
  11. ol {
  12. margin-left: 1rem;
  13. }
  14. /*
  15. * Basic structure
  16. */
  17. #header {
  18. background: white;
  19. margin-bottom: 2rem;
  20. padding: 0;
  21. width: 100%;
  22. }
  23. .head {
  24. margin-bottom: 0.5rem;
  25. }
  26. #content {
  27. margin: auto;
  28. margin-top: 2rem;
  29. /* min-width: 720px; */
  30. overflow: hidden;
  31. width: 90%;
  32. }
  33. #footer {
  34. margin-top: 2rem;
  35. padding: 1em 0;
  36. text-align: center;
  37. width: 100%;
  38. }
  39. /* Logo */
  40. #logo {
  41. background: url("/static/common/logos/bookish.png") no-repeat center;
  42. background-size: contain;
  43. width: 250px;
  44. height: 50px;
  45. margin: 0 0 0 10%;
  46. a {
  47. border: none;
  48. display: block;
  49. width: 100%;
  50. height: 50px;
  51. }
  52. a:hover {
  53. border: none;
  54. }
  55. }
  56. /* Content container */
  57. .box {
  58. background-color: white;
  59. /* border: 2px solid rgba(0, 0, 0, 0.01); */
  60. margin-bottom: 1rem;
  61. }
  62. /* Main column and sidebar */
  63. @mixin column-flex($width) {
  64. display: flex;
  65. flex-direction: column;
  66. align-items: stretch;
  67. max-width: $width;
  68. min-height: 0;
  69. padding: 0 0.25rem;
  70. }
  71. .main_column {
  72. @include column-flex(65%);
  73. table {
  74. margin-bottom: 1rem;
  75. }
  76. }
  77. .sidebar {
  78. @include column-flex(35%);
  79. float: right;
  80. }
  81. /* Links */
  82. div.linkbox {
  83. text-align: center;
  84. padding: 0.5rem;
  85. }
  86. .pad {
  87. padding: 1rem;
  88. h3,
  89. h4 {
  90. margin-top: 0;
  91. padding-top: 0;
  92. }
  93. }
  94. /**
  95. * Aside elements
  96. */
  97. aside {
  98. max-width: 66%;
  99. p {
  100. text-align: center;
  101. }
  102. /**
  103. * "Please consult the Upload Rules"
  104. * admonishment on torrent_form.class.php.
  105. */
  106. &.upload_notice {
  107. @include transparent-border($R: 255, $A: 0.5);
  108. margin: 1rem auto;
  109. text-align: center;
  110. }
  111. /* Announce and source */
  112. &.announce_source {
  113. margin: 1rem auto;
  114. }
  115. /* Torrent upload error */
  116. &.upload_error {
  117. color: red;
  118. margin: 2rem auto;
  119. font-size: larger;
  120. }
  121. }
  122. /* Misc */
  123. .torrents_nomatch {
  124. margin-top: 1rem;
  125. }
  126. .vertical_space {
  127. margin-bottom: 1rem;
  128. }
  129. /* Textarea preview button */
  130. .preview_button {
  131. margin-top: 1rem;
  132. }
  133. /* Torrents page */
  134. .show_torrents {
  135. width: 21px;
  136. height: 28px;
  137. background: url("/static/common/forums/show2.png") no-repeat center center;
  138. }
  139. .hide_torrents {
  140. width: 21px;
  141. height: 28px;
  142. background: url("/static/common/forums/hide2.png") no-repeat center center;
  143. }
  144. .show_torrents_link {
  145. border: none;
  146. width: 28px;
  147. height: 28px;
  148. display: block;
  149. cursor: pointer;
  150. }
  151. .filter_torrents {
  152. background: white;
  153. margin: auto;
  154. width: 75%;
  155. .submit {
  156. vertical-align: middle;
  157. }
  158. }
  159. #content form.search_form + .torrent_table {
  160. margin-top: 20px;
  161. }
  162. #content form.search_form .submit {
  163. text-align: center;
  164. }
  165. .cat_list tr td {
  166. border: none;
  167. }
  168. .torrent_table tr {
  169. /* vertical-align: top; */
  170. vertical-align: middle;
  171. }
  172. .torrent_table .number_column {
  173. text-align: center;
  174. }
  175. .torrent_table,
  176. .torrent_table td {
  177. border: none;
  178. }
  179. /* Text elements */
  180. h1,
  181. h2,
  182. h3,
  183. h4 {
  184. margin: 0.5em 0;
  185. font-weight: bold;
  186. }
  187. p {
  188. margin: 1em 0.5rem;
  189. }
  190. li {
  191. margin: 0.5em 2rem;
  192. }
  193. .torrent_title {
  194. font-size: larger;
  195. }
  196. /* Permissions page */
  197. .permissions {
  198. width: 90%;
  199. margin: 1em auto;
  200. }
  201. .permission_head {
  202. width: 50%;
  203. margin: 1em auto;
  204. }
  205. .permission_container {
  206. margin: auto;
  207. float: left;
  208. max-width: 33%;
  209. padding: 1rem;
  210. input {
  211. margin: 0px 3px 5px 0px;
  212. vertical-align: top;
  213. }
  214. }
  215. /* Invite tree */
  216. ul .invitetree {
  217. margin: 0px 0px 0px 25px;
  218. }
  219. .invitetree li {
  220. list-style: none;
  221. margin: 10px 2px;
  222. }
  223. /* User options */
  224. .user_options .options_list li {
  225. margin: 0;
  226. }
  227. /* Store, badges, and BP */
  228. #comm_badge_tr .badge_icon,
  229. #user_badge_edit_tr .badge_icon {
  230. margin-right: 0.1rem;
  231. margin-left: 0;
  232. white-space: nowrap;
  233. }
  234. .store_table .badge_icon {
  235. display: inline-block;
  236. width: 4rem;
  237. /* width: 16px; */
  238. }
  239. .store_table .badge_icon img {
  240. display: block;
  241. margin-left: auto;
  242. margin-right: auto;
  243. }
  244. .point_gift_box p {
  245. margin: 7px 2px 0px;
  246. }
  247. .point_gift_box input[type="text"],
  248. .point_gift_box textarea {
  249. width: 100%;
  250. box-sizing: border-box;
  251. }
  252. /* Polls */
  253. .left_poll {
  254. display: none;
  255. width: 2px;
  256. height: 9px;
  257. float: left;
  258. margin: 0px;
  259. padding: 0px;
  260. }
  261. .center_poll {
  262. height: 0.75rem;
  263. background: $lb50;
  264. border-radius: 0;
  265. float: left;
  266. margin: 0.25rem 0;
  267. padding: 0;
  268. }
  269. .right_poll {
  270. display: none;
  271. width: 2px;
  272. height: 9px;
  273. float: left;
  274. margin: 0px;
  275. padding: 0px;
  276. }
  277. /* Curtain? */
  278. .curtain {
  279. position: fixed;
  280. top: 0%;
  281. left: 0%;
  282. width: 100%;
  283. height: 100%;
  284. background: black;
  285. z-index: 1001;
  286. -moz-opacity: 0.8;
  287. opacity: 0.8;
  288. filter: alpha(opacity=80);
  289. }
  290. /* Lightbox */
  291. .lightbox {
  292. position: fixed;
  293. text-align: center;
  294. top: 5%;
  295. left: 5%;
  296. width: 90%;
  297. height: 90%;
  298. padding: 0;
  299. z-index: 1002;
  300. overflow: auto;
  301. img {
  302. background: white;
  303. }
  304. }
  305. /* BibTeX overflow partial fix */
  306. .torrentdetails {
  307. * {
  308. box-sizing: border-box;
  309. max-width: inherit;
  310. }
  311. blockquote {
  312. max-width: 90%;
  313. margin: 1rem 5%;
  314. }
  315. pre {
  316. max-width: 100%;
  317. }
  318. /*
  319. .spoilerContainer,
  320. .hideContainer {
  321. }
  322. */
  323. }
  324. /* User and torrent stats */
  325. .chart {
  326. max-height: 30rem;
  327. }