admin_menu_toolbar.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. * @file
  3. * Toolbar style for Administration menu.
  4. *
  5. * Important: We cannot re-use toolbar.png from Toolbar module, since we cannot
  6. * reliably determine the path to it.
  7. *
  8. * @todo Separate shortcut functionality into own module/widget.
  9. */
  10. /* Adjust margin/height */
  11. html body.admin-menu {
  12. margin-top: 29px !important;
  13. }
  14. html body.admin-menu-with-shortcuts {
  15. margin-top: 65px !important;
  16. }
  17. /* Displace the core Toolbar, if concurrently output. */
  18. body div#toolbar.toolbar {
  19. top: 30px;
  20. }
  21. /**
  22. * Base styles.
  23. *
  24. * We use a keyword for the toolbar font size to make it display consistently
  25. * across different themes, while still allowing browsers to resize the text.
  26. */
  27. #admin-menu {
  28. font: normal small "Lucida Grande", Verdana, sans-serif;
  29. -moz-box-shadow: 0 -10px 20px 13px #000;
  30. -webkit-box-shadow: 0 -10px 20px 13px #000;
  31. box-shadow: 0 -10px 20px 13px #000;
  32. right: 0;
  33. width: auto;
  34. }
  35. #admin-menu-wrapper {
  36. font-size: .846em;
  37. padding: 5px 10px 0;
  38. }
  39. #admin-menu .dropdown a {
  40. color: #fafafa;
  41. }
  42. /* Remove border from all lists and actions */
  43. #admin-menu .dropdown .admin-menu-action a {
  44. border-left: 0;
  45. }
  46. #admin-menu .dropdown .admin-menu-icon > a {
  47. padding: 2px 10px 3px;
  48. }
  49. /**
  50. * Administration menu.
  51. */
  52. #admin-menu .dropdown .admin-menu-icon > a span {
  53. vertical-align: text-bottom;
  54. width: 11px;
  55. height: 14px;
  56. display: block;
  57. background: url(toolbar.png) no-repeat 0 -45px;
  58. text-indent: -9999px;
  59. }
  60. #admin-menu > div > .dropdown > li > a,
  61. #admin-menu > div > .dropdown > li > span {
  62. border-right: 0; /* LTR */
  63. margin-bottom: 4px;
  64. padding: 2px 10px 3px;
  65. }
  66. #admin-menu .dropdown .admin-menu-toolbar-category > a,
  67. #admin-menu .dropdown .admin-menu-action > a {
  68. border-radius: 10px;
  69. -moz-border-radius: 10px;
  70. -webkit-border-radius: 10px;
  71. }
  72. #admin-menu .dropdown .admin-menu-toolbar-category > a.active-trail {
  73. text-shadow: #333 0 1px 0;
  74. background: url(toolbar.png) 0 0 repeat-x;
  75. }
  76. #admin-menu .dropdown .admin-menu-toolbar-category > a:hover {
  77. background-color: #444;
  78. }
  79. #admin-menu .dropdown .admin-menu-tab a {
  80. border-right: 0;
  81. }
  82. #admin-menu .dropdown li li.expandable ul {
  83. margin: -22px 0 0 160px;
  84. }
  85. /**
  86. * Shortcuts toggle.
  87. */
  88. #admin-menu .shortcut-toggle {
  89. cursor: pointer;
  90. background: url(toolbar.png) 0 -20px no-repeat;
  91. display: block;
  92. float: right;
  93. margin: 0 0 0 1.3em;
  94. text-indent: -9999px;
  95. overflow: hidden;
  96. width: 25px;
  97. height: 25px;
  98. }
  99. #admin-menu .shortcut-toggle:focus,
  100. #admin-menu .shortcut-toggle:hover {
  101. background-position: -50px -20px;
  102. }
  103. #admin-menu .shortcut-toggle.active {
  104. background-position: -25px -20px;
  105. }
  106. #admin-menu .shortcut-toggle.active:focus,
  107. #admin-menu .shortcut-toggle.active:hover {
  108. background-position: -75px -20px;
  109. }
  110. /**
  111. * Shortcuts widget.
  112. */
  113. #admin-menu .shortcut-toolbar {
  114. background-color: #666;
  115. clear: both;
  116. display: none;
  117. margin: 0 -10px;
  118. overflow: hidden;
  119. /* Align with icon; @see shortcut.css */
  120. padding-left: 5px;
  121. }
  122. #admin-menu .shortcut-toolbar.active {
  123. display: block;
  124. }
  125. /* Override theme list style; @see shortcut.css */
  126. #admin-menu .shortcut-toolbar ul {
  127. margin: 0;
  128. }
  129. /* @see toolbar.css */
  130. #admin-menu .shortcut-toolbar li {
  131. float: left;
  132. list-style-image: none;
  133. list-style-type: none;
  134. }
  135. #admin-menu .shortcut-toolbar a {
  136. display: block;
  137. }