You are here

toolbar.theme.pcss.css in Drupal 9

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: rgba(0, 0, 0, 0);
  12. -o-tap-highlight-color: rgba(0, 0, 0, 0);
  13. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  14. tap-highlight-color: rgba(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 rgba(0, 0, 0, 0.3333); /* LTR */
  37. }
  38. [dir="rtl"] .toolbar .toolbar-bar {
  39. box-shadow: 1px 0 3px 1px rgba(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: -webkit-linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  50. background-image: linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  51. }
  52. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item.is-active {
  53. background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.25) 20%, transparent 200%);
  54. background-image: linear-gradient(rgba(255, 255, 255, 0.25) 20%, transparent 200%);
  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 rgba(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 rgba(0, 0, 0, 0.3333);
  78. }
  79. .toolbar-horizontal .toolbar-tray {
  80. border-bottom: 1px solid #aaa;
  81. box-shadow: -2px 1px 3px 1px rgba(0, 0, 0, 0.3333); /* LTR */
  82. }
  83. [dir="rtl"] .toolbar-horizontal .toolbar-tray {
  84. box-shadow: 2px 1px 3px 1px rgba(0, 0, 0, 0.3333);
  85. }
  86. .toolbar .toolbar-tray-horizontal .toolbar-tray {
  87. background-color: #f5f5f5;
  88. }
  89. .toolbar-tray a {
  90. padding: 1em 1.3333em;
  91. cursor: pointer;
  92. text-decoration: none;
  93. color: #565656;
  94. }
  95. .toolbar-tray a:hover,
  96. .toolbar-tray a:active,
  97. .toolbar-tray a:focus,
  98. .toolbar-tray a.is-active {
  99. text-decoration: underline;
  100. color: #000;
  101. }
  102. .toolbar .toolbar-menu {
  103. background-color: #fff;
  104. }
  105. .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  106. border-left: 1px solid #ddd; /* LTR */
  107. }
  108. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  109. border-right: 1px solid #ddd;
  110. border-left: 0 none;
  111. }
  112. .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  113. border-right: 1px solid #ddd; /* LTR */
  114. }
  115. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  116. border-left: 1px solid #ddd;
  117. }
  118. .toolbar .toolbar-tray-vertical .menu-item + .menu-item {
  119. border-top: 1px solid #ddd;
  120. }
  121. .toolbar .toolbar-tray-vertical .menu-item:last-child {
  122. border-bottom: 1px solid #ddd;
  123. }
  124. .toolbar .toolbar-tray-vertical .menu-item .menu-item {
  125. border: 0 none;
  126. }
  127. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul {
  128. border-top: 1px solid #ddd;
  129. border-bottom: 1px solid #ddd;
  130. }
  131. .toolbar .toolbar-tray-vertical .menu-item:last-child > ul {
  132. border-bottom: 0;
  133. }
  134. .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  135. margin-left: 0.25em; /* LTR */
  136. }
  137. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  138. margin-right: 0.25em;
  139. margin-left: 0;
  140. }
  141. .toolbar .toolbar-menu .toolbar-menu a {
  142. color: #434343;
  143. }
  144. /**
  145. * Orientation toggle.
  146. */
  147. .toolbar .toolbar-toggle-orientation {
  148. height: 100%;
  149. padding: 0;
  150. background-color: #f5f5f5;
  151. }
  152. .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  153. border-left: 1px solid #c9c9c9; /* LTR */
  154. }
  155. [dir="rtl"] .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  156. border-right: 1px solid #c9c9c9;
  157. border-left: 0 none;
  158. }
  159. .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  160. float: right; /* LTR */
  161. }
  162. [dir="rtl"] .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  163. float: left;
  164. }
  165. .toolbar .toolbar-toggle-orientation button {
  166. display: inline-block;
  167. cursor: pointer;
  168. }