You are here

admin_menu_toolbar.css in Administration menu 7.3

Toolbar style for Administration menu.

Important: We cannot re-use toolbar.png from Toolbar module, since we cannot reliably determine the path to it.

@todo Separate shortcut functionality into own module/widget.

File

admin_menu_toolbar/admin_menu_toolbar.css
View source
  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. .shortcut-toolbar.active #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. height: 30px;
  35. }
  36. #admin-menu-wrapper {
  37. font-size: .846em;
  38. padding: 5px 10px 0;
  39. }
  40. #admin-menu .dropdown a {
  41. color: #fafafa;
  42. }
  43. /* Remove border from all lists and actions */
  44. #admin-menu .dropdown .admin-menu-action a {
  45. border-left: 0;
  46. }
  47. #admin-menu .dropdown .admin-menu-icon > a {
  48. padding: 2px 10px 3px;
  49. }
  50. /**
  51. * Administration menu.
  52. */
  53. #admin-menu .dropdown .admin-menu-icon > a span {
  54. vertical-align: text-bottom;
  55. width: 11px;
  56. height: 14px;
  57. display: block;
  58. background: url(toolbar.png) no-repeat 0 -45px;
  59. text-indent: -9999px;
  60. }
  61. #admin-menu > div > .dropdown > li > a,
  62. #admin-menu > div > .dropdown > li > span {
  63. border-right: 0; /* LTR */
  64. margin-bottom: 4px;
  65. padding: 2px 10px 3px;
  66. }
  67. #admin-menu .dropdown .admin-menu-toolbar-category > a,
  68. #admin-menu .dropdown .admin-menu-action > a {
  69. border-radius: 10px;
  70. -moz-border-radius: 10px;
  71. -webkit-border-radius: 10px;
  72. }
  73. #admin-menu .dropdown .admin-menu-toolbar-category > a.active-trail {
  74. text-shadow: #333 0 1px 0;
  75. background: url(toolbar.png) 0 0 repeat-x;
  76. }
  77. #admin-menu .dropdown .admin-menu-toolbar-category > a:hover {
  78. background-color: #444;
  79. }
  80. #admin-menu .dropdown .admin-menu-tab a {
  81. border-right: 0;
  82. }
  83. #admin-menu .dropdown li li.expandable ul {
  84. margin: -22px 0 0 160px;
  85. }
  86. /**
  87. * Shortcuts toggle.
  88. */
  89. #admin-menu .shortcut-toggle {
  90. cursor: pointer;
  91. background: url(toolbar.png) 0 -20px no-repeat;
  92. display: block;
  93. float: right;
  94. margin: 0 0 0 1.3em;
  95. text-indent: -9999px;
  96. overflow: hidden;
  97. width: 25px;
  98. height: 25px;
  99. }
  100. #admin-menu .shortcut-toggle:focus,
  101. #admin-menu .shortcut-toggle:hover {
  102. background-position: -50px -20px;
  103. }
  104. #admin-menu .shortcut-toggle.active {
  105. background-position: -25px -20px;
  106. }
  107. #admin-menu .shortcut-toggle.active:focus,
  108. #admin-menu .shortcut-toggle.active:hover {
  109. background-position: -75px -20px;
  110. }
  111. /**
  112. * Shortcuts widget.
  113. */
  114. #admin-menu .shortcut-toolbar {
  115. background-color: #666;
  116. clear: both;
  117. display: none;
  118. margin: 0 -10px;
  119. overflow: hidden;
  120. /* Align with icon; @see shortcut.css */
  121. padding-left: 5px;
  122. }
  123. #admin-menu .shortcut-toolbar.active {
  124. display: block;
  125. }
  126. /* Override theme list style; @see shortcut.css */
  127. #admin-menu .shortcut-toolbar ul {
  128. margin: 0;
  129. }
  130. /* @see toolbar.css */
  131. #admin-menu .shortcut-toolbar li {
  132. float: left;
  133. list-style-image: none;
  134. list-style-type: none;
  135. }
  136. #admin-menu .shortcut-toolbar a {
  137. display: block;
  138. }