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.

menus.scss 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /*
  2. * Main
  3. */
  4. #menu {
  5. background-color: $lb900;
  6. font-size: 1rem;
  7. text-align: center;
  8. width: 100%;
  9. }
  10. #menu > ul {
  11. display: flex;
  12. width: 80%;
  13. margin: 0 auto;
  14. }
  15. #menu > ul > li {
  16. display: flex;
  17. flex: 1 1 auto;
  18. height: 2.5rem;
  19. margin: 0;
  20. position: relative;
  21. }
  22. #menu ul > li > a {
  23. padding: 0.5rem 0;
  24. display: inline-block;
  25. width: 100%;
  26. color: white;
  27. transition: ease-in-out 0.1s;
  28. text-decoration: none;
  29. }
  30. #nav_links {
  31. max-width: 2.5rem;
  32. }
  33. #menu ul li a.active {
  34. background-color: $lb700;
  35. }
  36. #menu ul li a:hover {
  37. background-color: $lb700;
  38. color: white;
  39. text-decoration: none;
  40. }
  41. /* Dropdown */
  42. #menu .nav_dropdown {
  43. background: #01579b;
  44. margin-top: 0;
  45. }
  46. .nav_dropdown > div {
  47. box-shadow: $shadow;
  48. position: absolute;
  49. background-color: #01579b;
  50. width: 100%;
  51. z-index: 99999;
  52. margin-top: 2.5rem;
  53. left: 0;
  54. }
  55. #nav_links > #links_menu {
  56. width: 8rem;
  57. margin-left: -4rem;
  58. }
  59. .nav_dropdown > div > a {
  60. display: none;
  61. color: white;
  62. height: 2.5rem;
  63. line-height: 2.5rem;
  64. text-decoration: none;
  65. }
  66. .nav_dropdown:hover > div > a {
  67. display: block;
  68. }
  69. /*
  70. * Search bars
  71. */
  72. #searchbars {
  73. text-align: center;
  74. background-color: $lb200;
  75. box-sizing: content-box;
  76. padding: 0.5rem 10%;
  77. display: flex;
  78. }
  79. #searchbars > .search_form {
  80. flex: 1 1 auto;
  81. text-align: center;
  82. margin: 0 0.25rem;
  83. }
  84. #searchbars input {
  85. position: relative;
  86. box-sizing: border-box;
  87. background-color: white;
  88. color: black;
  89. padding: 0.25rem;
  90. text-align: center;
  91. width: 100%;
  92. }
  93. #searchbars ul {
  94. margin: 0 auto;
  95. display: block;
  96. text-align: center;
  97. }
  98. #searchbars ul li {
  99. display: inline;
  100. margin: 0px 1px;
  101. list-style: none;
  102. position: relative;
  103. }
  104. #searchbars ul li ul {
  105. display: block;
  106. position: absolute;
  107. top: 1rem;
  108. left: 0;
  109. z-index: 1000;
  110. background-color: white;
  111. width: 12rem;
  112. margin-top: 1rem;
  113. }
  114. #searchbars ul li ul li {
  115. margin: 0 0 0 0;
  116. padding: 0;
  117. display: block;
  118. width: 100%;
  119. }
  120. #searchbars ul li ul li.highlight {
  121. background: white;
  122. }
  123. #searchbars ul li form {
  124. display: inline;
  125. }
  126. /*
  127. * Upload, Invite, etc.
  128. */
  129. #userinfo {
  130. background: white;
  131. /* box-shadow: 0 2px 10px -2px slategray; */
  132. color: black;
  133. padding: 0.5em 0;
  134. width: 100%;
  135. text-align: center;
  136. }
  137. #userinfo ul {
  138. display: inline;
  139. margin: 0 1%;
  140. li {
  141. display: inline;
  142. margin: 0 0.1rem;
  143. line-height: 2rem;
  144. vertical-align: middle;
  145. padding: 0;
  146. }
  147. }
  148. #userinfo a {
  149. color: black;
  150. text-decoration: none;
  151. }
  152. #userinfo a:hover {
  153. text-decoration: underline;
  154. }
  155. /* Major? */
  156. #userinfo_major .brackets:before {
  157. font-weight: bold;
  158. }
  159. #userinfo_major .brackets:after {
  160. font-weight: bold;
  161. }
  162. /* Minor? */
  163. #userinfo_minor {
  164. position: absolute;
  165. text-align: left;
  166. }
  167. #userinfo_minor > li > ul {
  168. display: none;
  169. position: absolute;
  170. padding: 5px;
  171. left: -5px;
  172. background-color: white;
  173. z-index: 100;
  174. }
  175. #userinfo #userinfo_minor li {
  176. display: block;
  177. }