admin_menu.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /**
  2. * @file
  3. * Administration menu.
  4. *
  5. * Implementation of Sons of Suckerfish Dropdowns.
  6. *
  7. * @see www.htmldog.com/articles/suckerfish
  8. */
  9. #admin-menu {
  10. background: #101010 url(images/bkg.png) bottom left repeat-x;
  11. font-size: 9px;
  12. font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
  13. left: 0;
  14. position: absolute;
  15. text-align: left;
  16. top: 0;
  17. height: 30px;
  18. width: 100%;
  19. }
  20. #admin-menu-wrapper {
  21. overflow: hidden;
  22. }
  23. #admin-menu .dropdown .admin-menu-icon a {
  24. padding: 1px 8px 4px;
  25. }
  26. #admin-menu .dropdown .admin-menu-icon ul a {
  27. padding: 4px 8px;
  28. }
  29. #admin-menu .dropdown .admin-menu-icon img {
  30. vertical-align: bottom;
  31. }
  32. #admin-menu .dropdown .admin-menu-users a {
  33. background: transparent url(images/icon_users.png) 90% center no-repeat;
  34. padding-right: 22px;
  35. }
  36. #admin-menu .dropdown .admin-menu-action,
  37. #admin-menu .dropdown .admin-menu-search {
  38. float: right;
  39. }
  40. #admin-menu .dropdown .admin-menu-action a {
  41. border-left: 1px solid #323232;
  42. border-right: none;
  43. }
  44. body.admin-menu {
  45. margin-top: 20px !important;
  46. }
  47. /* All lists */
  48. #admin-menu,
  49. #admin-menu .dropdown {
  50. line-height: 1.4em;
  51. list-style: none;
  52. margin: 0;
  53. padding: 0;
  54. z-index: 999;
  55. }
  56. #admin-menu .dropdown {
  57. position: static;
  58. }
  59. #admin-menu a,
  60. #admin-menu li > span {
  61. background: transparent none;
  62. border: none;
  63. color: #eee;
  64. font-weight: normal;
  65. text-align: left; /* LTR */
  66. text-decoration: none;
  67. }
  68. #admin-menu .dropdown a,
  69. #admin-menu .dropdown li > span {
  70. border-right: 1px solid #323232; /* LTR */
  71. display: block;
  72. padding: 4px 8px;
  73. }
  74. #admin-menu .dropdown .admin-menu-tab a {
  75. border-right: 1px solid #52565e; /* LTR */
  76. }
  77. #admin-menu .dropdown li li a {
  78. border-right: none; /* LTR */
  79. border-top: 1px solid #323232;
  80. }
  81. /* All list items */
  82. #admin-menu .dropdown li {
  83. background-image: none;
  84. float: left; /* LTR */
  85. height: 100%;
  86. list-style-image: none;
  87. list-style-type: none;
  88. margin: 0 !important;
  89. padding: 0;
  90. }
  91. #admin-menu .dropdown .admin-menu-tab {
  92. background: url(images/bkg_tab.png) repeat-x left bottom;
  93. padding-bottom: 1px;
  94. }
  95. #admin-menu .dropdown li li {
  96. background: #202020;
  97. filter: Alpha(opacity=88);
  98. float: none;
  99. opacity: 0.88;
  100. width: 160px; /* Required for Opera */
  101. }
  102. #admin-menu .dropdown li li li {
  103. filter: Alpha(opacity=100);
  104. opacity: 1;
  105. }
  106. /* Second-level lists */
  107. /* Note: We must hide sub-lists or scrollbars might appear (display: none is not read by screen readers). */
  108. #admin-menu .dropdown li ul {
  109. background: none;
  110. display: none;
  111. left: -999em; /* LTR */
  112. line-height: 1.2em;
  113. margin: 0;
  114. position: absolute;
  115. width: 160px;
  116. }
  117. /* Third-and-above-level lists */
  118. #admin-menu .dropdown li li.expandable ul {
  119. margin: -20px 0 0 160px; /* LTR */
  120. }
  121. #admin-menu .dropdown li:hover ul ul,
  122. #admin-menu .dropdown li:hover ul ul ul,
  123. #admin-menu .dropdown li:hover ul ul ul ul,
  124. #admin-menu .dropdown li:hover ul ul ul ul ul {
  125. display: none;
  126. left: -999em; /* LTR */
  127. }
  128. /* Lists nested under hovered list items */
  129. #admin-menu .dropdown li:hover ul,
  130. #admin-menu .dropdown li li:hover ul,
  131. #admin-menu .dropdown li li li:hover ul,
  132. #admin-menu .dropdown li li li li:hover ul,
  133. #admin-menu .dropdown li li li li li:hover ul {
  134. display: block;
  135. left: auto; /* LTR */
  136. }
  137. #admin-menu .dropdown li.admin-menu-action:hover ul {
  138. right: 0; /* LTR */
  139. }
  140. /* Second-and-more-level hovering */
  141. #admin-menu .dropdown li li.expandable {
  142. background: #45454a url(images/arrow.png) no-repeat 145px 6px;
  143. }
  144. #admin-menu .dropdown li li:hover {
  145. background-color: #111;
  146. }
  147. #admin-menu .dropdown li li:hover a,
  148. #admin-menu .dropdown li li:hover li:hover a,
  149. #admin-menu .dropdown li li:hover li:hover li:hover a {
  150. color: #fff;
  151. }
  152. #admin-menu .dropdown li li.expandable:hover a,
  153. #admin-menu .dropdown li li.expandable:hover li.expandable:hover a {
  154. border-color: #444;
  155. color: #eee;
  156. }
  157. #admin-menu .dropdown li li.expandable:hover li a,
  158. #admin-menu .dropdown li li.expandable:hover li.expandable:hover li a {
  159. border-color: #323232;
  160. }
  161. #admin-menu .dropdown li li:hover li a {
  162. color: #eee;
  163. }
  164. /* Search form */
  165. #admin-menu .admin-menu-search .form-item {
  166. margin: 0;
  167. padding: 0;
  168. }
  169. #admin-menu .admin-menu-search input {
  170. background: #fff none center right no-repeat;
  171. border: none;
  172. -webkit-border-radius: 5px;
  173. -moz-border-radius: 5px;
  174. border-radius: 5px;
  175. font-size: 10px;
  176. margin: 1px 0;
  177. outline: none;
  178. padding: 2px 22px 2px 4px;
  179. width: 158px;
  180. }
  181. #admin-menu .dropdown .admin-menu-search-results {
  182. display: block !important;
  183. left: auto !important;
  184. top: 100%;
  185. }
  186. #admin-menu .admin-menu-search-results,
  187. #admin-menu .admin-menu-search-results li {
  188. width: 186px;
  189. }
  190. #admin-menu li.highlight {
  191. background-color: #eee !important;
  192. }
  193. #admin-menu li.highlight > a {
  194. border-color: #ccc !important;
  195. color: #111 !important;
  196. }
  197. /* #210615: Mozilla on Mac fix */
  198. html.js fieldset.collapsible div.fieldset-wrapper {
  199. overflow: visible;
  200. }
  201. /* Hide the menu on print output. */
  202. @media print {
  203. #admin-menu {
  204. display: none !important;
  205. }
  206. body.admin-menu {
  207. margin-top: 0 !important;
  208. }
  209. }
  210. /**
  211. * Tweaks permissions, if enabled.
  212. */
  213. tr.admin-menu-tweak-permissions-processed {
  214. cursor: pointer;
  215. cursor: hand;
  216. }
  217. tr.admin-menu-tweak-permissions-processed td.module {
  218. border-top: 0;
  219. }