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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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. /* Misc */
  95. .torrents_nomatch {
  96. margin-top: 1rem;
  97. }
  98. .vertical_space {
  99. margin-bottom: 1rem;
  100. }
  101. /* Textarea preview button */
  102. .preview_button {
  103. margin-top: 1rem;
  104. }
  105. /* Torrents page */
  106. .show_torrents {
  107. width: 21px;
  108. height: 28px;
  109. background: url("/static/common/symbols/show.png") no-repeat center center;
  110. }
  111. .hide_torrents {
  112. width: 21px;
  113. height: 28px;
  114. background: url("/static/common/symbols/hide.png") no-repeat center center;
  115. }
  116. .show_torrents_link {
  117. border: none;
  118. width: 28px;
  119. height: 28px;
  120. display: block;
  121. cursor: pointer;
  122. }
  123. .filter_torrents {
  124. background: white;
  125. margin: auto;
  126. width: 75%;
  127. .submit {
  128. vertical-align: middle;
  129. }
  130. }
  131. #content form.search_form + .torrent_table {
  132. margin-top: 20px;
  133. }
  134. #content form.search_form .submit {
  135. text-align: center;
  136. }
  137. .cat_list tr td {
  138. border: none;
  139. }
  140. .torrent_table tr {
  141. /* vertical-align: top; */
  142. vertical-align: middle;
  143. }
  144. .torrent_table .number_column {
  145. text-align: center;
  146. }
  147. .torrent_table,
  148. .torrent_table td {
  149. border: none;
  150. }
  151. /* Text elements */
  152. h1,
  153. h2,
  154. h3,
  155. h4 {
  156. margin: 0.5em 0;
  157. font-weight: bold;
  158. }
  159. p {
  160. margin: 1em 0.5rem;
  161. }
  162. li {
  163. margin: 0.5em 2rem;
  164. }
  165. .torrent_title {
  166. font-size: larger;
  167. }
  168. /* Permissions page */
  169. .permissions {
  170. width: 90%;
  171. margin: 1em auto;
  172. }
  173. .permission_head {
  174. width: 50%;
  175. margin: 1em auto;
  176. }
  177. .permission_container {
  178. margin: auto;
  179. float: left;
  180. max-width: 33%;
  181. padding: 1rem;
  182. input {
  183. margin: 0px 3px 5px 0px;
  184. vertical-align: top;
  185. }
  186. }
  187. /* Invite tree */
  188. ul .invitetree {
  189. margin: 0px 0px 0px 25px;
  190. }
  191. .invitetree li {
  192. list-style: none;
  193. margin: 10px 2px;
  194. }
  195. /* User options */
  196. .user_options .options_list li {
  197. margin: 0;
  198. }
  199. /* Store, badges, and BP */
  200. #comm_badge_tr .badge_icon,
  201. #user_badge_edit_tr .badge_icon {
  202. margin-right: 0.1rem;
  203. margin-left: 0;
  204. white-space: nowrap;
  205. }
  206. .store_table .badge_icon {
  207. display: inline-block;
  208. width: 4rem;
  209. /* width: 16px; */
  210. }
  211. .store_table .badge_icon img {
  212. display: block;
  213. margin-left: auto;
  214. margin-right: auto;
  215. }
  216. .point_gift_box p {
  217. margin: 7px 2px 0px;
  218. }
  219. .point_gift_box input[type="text"],
  220. .point_gift_box textarea {
  221. width: 100%;
  222. box-sizing: border-box;
  223. }
  224. /* Polls */
  225. .left_poll {
  226. display: none;
  227. width: 2px;
  228. height: 9px;
  229. float: left;
  230. margin: 0px;
  231. padding: 0px;
  232. }
  233. .center_poll {
  234. height: 0.75rem;
  235. background: $lb50;
  236. border-radius: 0;
  237. float: left;
  238. margin: 0.25rem 0;
  239. padding: 0;
  240. }
  241. .right_poll {
  242. display: none;
  243. width: 2px;
  244. height: 9px;
  245. float: left;
  246. margin: 0px;
  247. padding: 0px;
  248. }
  249. /* Curtain? */
  250. .curtain {
  251. position: fixed;
  252. top: 0%;
  253. left: 0%;
  254. width: 100%;
  255. height: 100%;
  256. background: black;
  257. z-index: 1001;
  258. -moz-opacity: 0.8;
  259. opacity: 0.8;
  260. filter: alpha(opacity=80);
  261. }
  262. /* Lightbox */
  263. .lightbox {
  264. position: fixed;
  265. text-align: center;
  266. top: 5%;
  267. left: 5%;
  268. width: 90%;
  269. height: 90%;
  270. padding: 0;
  271. z-index: 1002;
  272. overflow: auto;
  273. img {
  274. background: white;
  275. }
  276. }
  277. /* BibTeX overflow partial fix */
  278. .torrentdetails {
  279. * {
  280. box-sizing: border-box;
  281. max-width: inherit;
  282. }
  283. blockquote {
  284. max-width: 90%;
  285. margin: 1rem 5%;
  286. }
  287. pre {
  288. max-width: 100%;
  289. }
  290. /*
  291. .spoilerContainer,
  292. .hideContainer {
  293. }
  294. */
  295. }
  296. /* User and torrent stats */
  297. .chart {
  298. max-height: 30rem;
  299. }