admin_menu.css 5.8 KB

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