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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Flex elements
  3. */
  4. .flex {
  5. display: flex;
  6. }
  7. /* Grow and shrink */
  8. .flex > .grow {
  9. flex-grow: 1;
  10. }
  11. .flex > .shrink {
  12. flex-shrink: 1;
  13. }
  14. /* Text input */
  15. .flex_input_container {
  16. display: flex;
  17. }
  18. .flex_input_container > input[type="text"] {
  19. flex-grow: 1;
  20. box-sizing: border-box;
  21. width: 50%;
  22. }
  23. /**
  24. * Aside elements
  25. */
  26. aside {
  27. max-width: 66%;
  28. p {
  29. text-align: center;
  30. }
  31. /**
  32. * "Please consult the Upload Rules"
  33. * admonishment on torrent_form.class.php.
  34. */
  35. &.upload_notice {
  36. @include transparent-border($R: 255, $A: 0.5);
  37. margin: 1rem auto;
  38. text-align: center;
  39. }
  40. /* Announce and source */
  41. &.announce_source,
  42. &.torrent_upload {
  43. margin: 1rem auto;
  44. }
  45. /* Torrent upload error */
  46. &.upload_error {
  47. color: red;
  48. margin: 2rem auto;
  49. font-size: larger;
  50. }
  51. }
  52. /*
  53. * Misc
  54. */
  55. .hidden {
  56. display: none;
  57. }
  58. .invisible {
  59. visibility: hidden;
  60. }
  61. /* Textarea */
  62. .textarea_wrap {
  63. margin-bottom: 0.5rem;
  64. }
  65. .textarea_wrap:last-of-type {
  66. margin-bottom: 0;
  67. }
  68. /* Floaters */
  69. .float_left {
  70. float: left;
  71. }
  72. .float_right {
  73. float: right;
  74. }
  75. .float_clear {
  76. clear: both;
  77. }
  78. /* Images */
  79. img {
  80. border: none;
  81. }
  82. .webm {
  83. max-width: 100%;
  84. }
  85. /* Donor hearts and badges */
  86. .donor_icon {
  87. margin-left: 2px;
  88. margin-right: 2px;
  89. max-width: 16px;
  90. max-height: 16px;
  91. position: relative;
  92. }
  93. .badge_icon {
  94. margin: 0px 2px;
  95. position: relative;
  96. }
  97. .donation_info {
  98. padding: 10px 10px 10px 20px;
  99. margin-left: 10px;
  100. margin-right: 10px;
  101. margin-bottom: 20px;
  102. }
  103. .donation_info_title {
  104. display: block;
  105. font-size: 1.75em;
  106. -webkit-margin-before: 1em;
  107. -webkit-margin-after: 1em;
  108. -webkit-margin-start: 0px;
  109. -webkit-margin-end: 0px;
  110. font-weight: bold;
  111. margin: 10px 0;
  112. }
  113. /* Image dimension limits */
  114. img {
  115. max-width: 100%;
  116. }
  117. /* Covers */
  118. #coverCont {
  119. position: fixed;
  120. max-width: 30%;
  121. background-size: contain;
  122. background-repeat: no-repeat;
  123. z-index: 9999;
  124. }
  125. #coverCont img {
  126. max-width: 100%;
  127. }
  128. #covers img {
  129. display: block;
  130. margin-left: auto;
  131. margin-right: auto;
  132. }
  133. /**
  134. * Donate button
  135. * PNG to avoid the botnet
  136. */
  137. .donate_button {
  138. margin: 2rem auto;
  139. img {
  140. height: 2rem;
  141. }
  142. }