toolbar.theme.pcss.css

Same filename and directory in other branches
  1. 9 core/themes/claro/css/theme/toolbar.theme.pcss.css
  2. 10 core/themes/claro/css/theme/toolbar.theme.pcss.css

toolbar.theme.css

If Claro is the admin theme, this stylesheet will be used by the active theme even if the active theme is not Claro.

File

core/themes/claro/css/theme/toolbar.theme.pcss.css

View source
  1. /**
  2. * @file toolbar.theme.css
  3. *
  4. * If Claro is the admin theme, this stylesheet will be used by the active theme
  5. * even if the active theme is not Claro.
  6. */
  7. .toolbar {
  8. font-family: "Source Sans Pro", "Lucida Grande", Verdana, sans-serif;
  9. /* Set base font size to 13px based on root ems. */
  10. font-size: 0.8125rem;
  11. -moz-tap-highlight-color: rgb(0, 0, 0, 0);
  12. -o-tap-highlight-color: rgb(0, 0, 0, 0);
  13. -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
  14. tap-highlight-color: rgb(0, 0, 0, 0);
  15. -moz-touch-callout: none;
  16. -o-touch-callout: none;
  17. -webkit-touch-callout: none;
  18. touch-callout: none;
  19. }
  20. .toolbar .toolbar-item {
  21. padding: 1em 1.3333em;
  22. cursor: pointer;
  23. text-decoration: none;
  24. line-height: 1em;
  25. }
  26. .toolbar .toolbar-item:hover,
  27. .toolbar .toolbar-item:focus {
  28. text-decoration: underline;
  29. }
  30. /**
  31. * Toolbar bar.
  32. */
  33. .toolbar .toolbar-bar {
  34. color: #ddd;
  35. background-color: #0f0f0f;
  36. box-shadow: -1px 0 3px 1px rgb(0, 0, 0, 0.3333); /* LTR */
  37. }
  38. [dir="rtl"] .toolbar .toolbar-bar {
  39. box-shadow: 1px 0 3px 1px rgb(0, 0, 0, 0.3333);
  40. }
  41. .toolbar .toolbar-bar .toolbar-item {
  42. color: #fff;
  43. }
  44. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item {
  45. font-weight: bold;
  46. }
  47. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item:hover,
  48. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item:focus {
  49. background-image: linear-gradient(rgb(255, 255, 255, 0.125) 20%, transparent 200%);
  50. }
  51. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item.is-active {
  52. color: #000;
  53. border-bottom: 1px solid #ddd;
  54. background-color: #fff;
  55. }
  56. /**
  57. * Toolbar tray.
  58. */
  59. .toolbar .toolbar-tray {
  60. background-color: #fff;
  61. }
  62. .toolbar-horizontal .toolbar-tray > .toolbar-lining {
  63. padding-right: 5em; /* LTR */
  64. }
  65. [dir="rtl"] .toolbar-horizontal .toolbar-tray > .toolbar-lining {
  66. padding-right: 0;
  67. padding-left: 5em;
  68. }
  69. .toolbar .toolbar-tray-vertical {
  70. border-right: 1px solid #aaa; /* LTR */
  71. background-color: #f5f5f5;
  72. box-shadow: -1px 0 5px 2px rgb(0, 0, 0, 0.3333); /* LTR */
  73. }
  74. [dir="rtl"] .toolbar .toolbar-tray-vertical {
  75. border-right: 0 none;
  76. border-left: 1px solid #aaa;
  77. box-shadow: 1px 0 5px 2px rgb(0, 0, 0, 0.3333);
  78. }
  79. .toolbar-horizontal .toolbar-tray {
  80. border-bottom: 1px solid #aaa;
  81. box-shadow: -2px 1px 3px 1px rgb(0, 0, 0, 0.3333); /* LTR */
  82. }
  83. [dir="rtl"] .toolbar-horizontal .toolbar-tray {
  84. box-shadow: 2px 1px 3px 1px rgb(0, 0, 0, 0.3333);
  85. }
  86. .toolbar .toolbar-tray-horizontal .toolbar-tray {
  87. background-color: #f5f5f5;
  88. }
  89. .toolbar-tray a,
  90. .toolbar-tray a:visited {
  91. padding: 1em 1.3333em;
  92. cursor: pointer;
  93. text-decoration: none;
  94. color: #565656;
  95. }
  96. .toolbar-tray a:hover,
  97. .toolbar-tray a:active,
  98. .toolbar-tray a:focus,
  99. .toolbar-tray a.is-active {
  100. text-decoration: underline;
  101. color: #000;
  102. }
  103. .toolbar .toolbar-menu {
  104. background-color: #fff;
  105. }
  106. .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  107. border-left: 1px solid #ddd; /* LTR */
  108. }
  109. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  110. border-right: 1px solid #ddd;
  111. border-left: 0 none;
  112. }
  113. .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  114. border-right: 1px solid #ddd; /* LTR */
  115. }
  116. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  117. border-left: 1px solid #ddd;
  118. }
  119. .toolbar .toolbar-tray-vertical .menu-item + .menu-item {
  120. border-top: 1px solid #ddd;
  121. }
  122. .toolbar .toolbar-tray-vertical .menu-item:last-child {
  123. border-bottom: 1px solid #ddd;
  124. }
  125. .toolbar .toolbar-tray-vertical .menu-item .menu-item {
  126. border: 0 none;
  127. }
  128. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul {
  129. border-top: 1px solid #ddd;
  130. border-bottom: 1px solid #ddd;
  131. }
  132. .toolbar .toolbar-tray-vertical .menu-item:last-child > ul {
  133. border-bottom: 0;
  134. }
  135. .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  136. margin-left: 0.25em; /* LTR */
  137. }
  138. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  139. margin-right: 0.25em;
  140. margin-left: 0;
  141. }
  142. .toolbar .toolbar-menu .toolbar-menu a {
  143. color: #434343;
  144. }
  145. /**
  146. * Orientation toggle.
  147. */
  148. .toolbar .toolbar-toggle-orientation {
  149. height: 100%;
  150. padding: 0;
  151. background-color: #f5f5f5;
  152. }
  153. .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  154. border-left: 1px solid #c9c9c9; /* LTR */
  155. }
  156. [dir="rtl"] .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  157. border-right: 1px solid #c9c9c9;
  158. border-left: 0 none;
  159. }
  160. .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  161. float: right; /* LTR */
  162. }
  163. [dir="rtl"] .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  164. float: left;
  165. }
  166. .toolbar .toolbar-toggle-orientation button {
  167. display: inline-block;
  168. cursor: pointer;
  169. }
  170. @media (forced-colors: active) {
  171. .toolbar-horizontal .toolbar-tray > .toolbar-lining,
  172. .toolbar-horizontal .toolbar .toolbar-toggle-orientation .toolbar-icon {
  173. border-top: 1px solid transparent;
  174. }
  175. .toolbar .toolbar-bar {
  176. border-bottom: 1px solid transparent;
  177. }
  178. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.