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. 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. float: none;
  98. opacity: 0.88;
  99. width: 160px; /* Required for Opera */
  100. }
  101. #admin-menu .dropdown li li li {
  102. filter: Alpha(opacity=100);
  103. opacity: 1;
  104. }
  105. /* Second-level lists */
  106. /* Note: We must hide sub-lists or scrollbars might appear (display: none is not read by screen readers). */
  107. #admin-menu .dropdown li ul {
  108. background: none;
  109. display: none;
  110. left: -999em; /* LTR */
  111. line-height: 1.2em;
  112. margin: 0;
  113. position: absolute;
  114. width: 160px;
  115. }
  116. /* Third-and-above-level lists */
  117. #admin-menu .dropdown li li.expandable ul {
  118. margin: -20px 0 0 160px; /* LTR */
  119. }
  120. #admin-menu .dropdown li:hover ul ul,
  121. #admin-menu .dropdown li:hover ul ul ul,
  122. #admin-menu .dropdown li:hover ul ul ul ul,
  123. #admin-menu .dropdown li:hover ul ul ul ul ul {
  124. display: none;
  125. left: -999em; /* LTR */
  126. }
  127. /* Lists nested under hovered list items */
  128. #admin-menu .dropdown li:hover ul,
  129. #admin-menu .dropdown li li:hover ul,
  130. #admin-menu .dropdown li li li:hover ul,
  131. #admin-menu .dropdown li li li li:hover ul,
  132. #admin-menu .dropdown li li li li li:hover ul {
  133. display: block;
  134. left: auto; /* LTR */
  135. }
  136. #admin-menu .dropdown li.admin-menu-action:hover ul {
  137. right: 0; /* LTR */
  138. }
  139. /* Second-and-more-level hovering */
  140. #admin-menu .dropdown li li.expandable {
  141. background: #45454A url(images/arrow.png) no-repeat 145px 6px;
  142. }
  143. #admin-menu .dropdown li li:hover {
  144. background-color: #111;
  145. }
  146. #admin-menu .dropdown li li:hover a,
  147. #admin-menu .dropdown li li:hover li:hover a,
  148. #admin-menu .dropdown li li:hover li:hover li:hover a {
  149. color: #FFF;
  150. }
  151. #admin-menu .dropdown li li.expandable:hover a,
  152. #admin-menu .dropdown li li.expandable:hover li.expandable:hover a {
  153. border-color: #444;
  154. color: #EEE;
  155. }
  156. #admin-menu .dropdown li li.expandable:hover li a,
  157. #admin-menu .dropdown li li.expandable:hover li.expandable:hover li a {
  158. border-color: #323232;
  159. }
  160. #admin-menu .dropdown li li:hover li a {
  161. color: #EEE;
  162. }
  163. /* Search form */
  164. #admin-menu .admin-menu-search .form-item {
  165. margin: 0;
  166. padding: 0;
  167. }
  168. #admin-menu .admin-menu-search input {
  169. background: #fff none center right no-repeat;
  170. border: none;
  171. -webkit-border-radius: 5px;
  172. -moz-border-radius: 5px;
  173. border-radius: 5px;
  174. font-size: 10px;
  175. margin: 1px 0;
  176. outline: none;
  177. padding: 2px 22px 2px 4px;
  178. width: 158px;
  179. }
  180. #admin-menu .dropdown .admin-menu-search-results {
  181. display: block !important;
  182. left: auto !important;
  183. top: 100%;
  184. }
  185. #admin-menu .admin-menu-search-results,
  186. #admin-menu .admin-menu-search-results li {
  187. width: 186px;
  188. }
  189. #admin-menu li.highlight {
  190. background-color: #eee !important;
  191. }
  192. #admin-menu li.highlight > a {
  193. border-color: #ccc !important;
  194. color: #111 !important;
  195. }
  196. /* #210615: Mozilla on Mac fix */
  197. html.js fieldset.collapsible div.fieldset-wrapper {
  198. overflow: visible;
  199. }
  200. /* Hide the menu on print output. */
  201. @media print {
  202. #admin-menu {
  203. display: none !important;
  204. }
  205. body.admin-menu {
  206. margin-top: 0 !important;
  207. }
  208. }
  209. /**
  210. * Tweaks permissions, if enabled.
  211. */
  212. tr.admin-menu-tweak-permissions-processed {
  213. cursor: pointer;
  214. cursor: hand;
  215. }
  216. tr.admin-menu-tweak-permissions-processed td.module {
  217. border-top: 0;
  218. }