toolbar.icons.theme.pcss.css

Same filename in this branch
  1. 10 core/modules/toolbar/css/toolbar.icons.theme.pcss.css
Same filename in other branches
  1. 9 core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  2. 11.x core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  3. 11.x core/modules/toolbar/css/toolbar.icons.theme.pcss.css

Styling for toolbar module icons.

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.icons.theme.pcss.css

View source
  1. /**
  2. * @file
  3. * Styling for toolbar module icons.
  4. *
  5. * If Claro is the admin theme, this stylesheet will be used by the active theme
  6. * even if the active theme is not Claro.
  7. */
  8. .toolbar .toolbar-icon {
  9. position: relative;
  10. padding-left: 2.75em; /* LTR */
  11. }
  12. [dir="rtl"] .toolbar .toolbar-icon {
  13. padding-right: 2.75em;
  14. padding-left: 1.3333em;
  15. }
  16. .toolbar .toolbar-icon::before {
  17. position: absolute;
  18. top: 0;
  19. left: 0.6667em; /* LTR */
  20. display: block;
  21. width: 1.538em;
  22. height: 100%;
  23. content: "";
  24. background-color: transparent;
  25. background-repeat: no-repeat;
  26. background-attachment: scroll;
  27. background-position: center center;
  28. background-size: 100% auto;
  29. }
  30. [dir="rtl"] .toolbar .toolbar-icon::before {
  31. right: 0.6667em;
  32. left: auto;
  33. }
  34. .toolbar button.toolbar-icon {
  35. border: 0;
  36. background-color: transparent;
  37. font-size: 1em;
  38. }
  39. .toolbar .toolbar-menu ul .toolbar-icon {
  40. padding-left: 1.3333em; /* LTR */
  41. }
  42. [dir="rtl"] .toolbar .toolbar-menu ul .toolbar-icon {
  43. padding-right: 1.3333em;
  44. padding-left: 0;
  45. }
  46. .toolbar .toolbar-menu ul a.toolbar-icon::before {
  47. display: none;
  48. }
  49. .toolbar .toolbar-tray-vertical .toolbar-menu ul a {
  50. padding-left: 2.75em; /* LTR */
  51. }
  52. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul a {
  53. padding-right: 2.75em;
  54. padding-left: 0;
  55. }
  56. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a {
  57. padding-left: 3.75em; /* LTR */
  58. }
  59. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a {
  60. padding-right: 3.75em;
  61. padding-left: 0;
  62. }
  63. .toolbar .toolbar-tray-vertical .toolbar-menu a {
  64. padding-right: 4em; /* LTR */
  65. padding-left: 2.75em; /* LTR */
  66. }
  67. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu a {
  68. padding-right: 2.75em;
  69. padding-left: 4em;
  70. }
  71. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon.is-active::before {
  72. filter: invert(100%);
  73. }
  74. /**
  75. * Top level icons.
  76. */
  77. .toolbar-bar .toolbar-icon-menu::before {
  78. background-image: url(../../../../misc/icons/bebebe/hamburger.svg);
  79. }
  80. .toolbar-bar .toolbar-icon-menu:active::before,
  81. .toolbar-bar .toolbar-icon-menu.is-active::before {
  82. background-image: url(../../../../misc/icons/ffffff/hamburger.svg);
  83. }
  84. .toolbar-bar .toolbar-icon-help::before {
  85. background-image: url(../../../../misc/icons/bebebe/questionmark-disc.svg);
  86. }
  87. .toolbar-bar .toolbar-icon-help:active::before,
  88. .toolbar-bar .toolbar-icon-help.is-active::before {
  89. background-image: url(../../../../misc/icons/ffffff/questionmark-disc.svg);
  90. }
  91. /**
  92. * Main menu icons.
  93. */
  94. .toolbar-icon-system-admin-content::before {
  95. background-image: url(../../../../misc/icons/787878/file.svg);
  96. }
  97. .toolbar-icon-system-admin-content:active::before,
  98. .toolbar-icon-system-admin-content.is-active::before {
  99. background-image: url(../../../../misc/icons/000000/file.svg);
  100. }
  101. .toolbar-icon-system-admin-structure::before {
  102. background-image: url(../../../../misc/icons/787878/orgchart.svg);
  103. }
  104. .toolbar-icon-system-admin-structure:active::before,
  105. .toolbar-icon-system-admin-structure.is-active::before {
  106. background-image: url(../../../../misc/icons/000000/orgchart.svg);
  107. }
  108. .toolbar-icon-system-themes-page::before {
  109. background-image: url(../../../../misc/icons/787878/paintbrush.svg);
  110. }
  111. .toolbar-icon-system-themes-page:active::before,
  112. .toolbar-icon-system-themes-page.is-active::before {
  113. background-image: url(../../../../misc/icons/000000/paintbrush.svg);
  114. }
  115. .toolbar-icon-entity-user-collection::before {
  116. background-image: url(../../../../misc/icons/787878/people.svg);
  117. }
  118. .toolbar-icon-entity-user-collection:active::before,
  119. .toolbar-icon-entity-user-collection.is-active::before {
  120. background-image: url(../../../../misc/icons/000000/people.svg);
  121. }
  122. .toolbar-icon-system-modules-list::before {
  123. background-image: url(../../../../misc/icons/787878/puzzlepiece.svg);
  124. }
  125. .toolbar-icon-system-modules-list:active::before,
  126. .toolbar-icon-system-modules-list.is-active::before {
  127. background-image: url(../../../../misc/icons/000000/puzzlepiece.svg);
  128. }
  129. .toolbar-icon-system-admin-config::before {
  130. background-image: url(../../../../misc/icons/787878/wrench.svg);
  131. }
  132. .toolbar-icon-system-admin-config:active::before,
  133. .toolbar-icon-system-admin-config.is-active::before {
  134. background-image: url(../../../../misc/icons/000000/wrench.svg);
  135. }
  136. .toolbar-icon-system-admin-reports::before {
  137. background-image: url(../../../../misc/icons/787878/barchart.svg);
  138. }
  139. .toolbar-icon-system-admin-reports:active::before,
  140. .toolbar-icon-system-admin-reports.is-active::before {
  141. background-image: url(../../../../misc/icons/000000/barchart.svg);
  142. }
  143. .toolbar-icon-help-main::before {
  144. background-image: url(../../../../misc/icons/787878/questionmark-disc.svg);
  145. }
  146. .toolbar-icon-help-main:active::before,
  147. .toolbar-icon-help-main.is-active::before {
  148. background-image: url(../../../../misc/icons/000000/questionmark-disc.svg);
  149. }
  150. @media only screen and (min-width: 16.5em) {
  151. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  152. width: 4em;
  153. margin-right: 0;
  154. margin-left: 0;
  155. padding-right: 0;
  156. padding-left: 0;
  157. text-indent: -9999px;
  158. }
  159. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  160. left: 0; /* LTR */
  161. width: 100%;
  162. background-size: 42% auto;
  163. }
  164. .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  165. background-size: auto auto;
  166. }
  167. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  168. right: 0;
  169. left: auto;
  170. }
  171. }
  172. @media only screen and (min-width: 36em) {
  173. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  174. width: auto;
  175. padding-right: 1.3333em; /* LTR */
  176. padding-left: 2.75em; /* LTR */
  177. text-indent: 0;
  178. background-position: left center; /* LTR */
  179. }
  180. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  181. padding-right: 2.75em;
  182. padding-left: 1.3333em;
  183. background-position: right center;
  184. }
  185. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  186. left: 0.6667em; /* LTR */
  187. width: 1.538em;
  188. background-size: 100% auto;
  189. }
  190. .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  191. background-size: auto auto;
  192. }
  193. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  194. right: 0.6667em;
  195. left: 0;
  196. }
  197. }
  198. /**
  199. * Accessibility/focus
  200. */
  201. .toolbar-tab a:focus {
  202. text-decoration: underline;
  203. outline: none;
  204. }
  205. .toolbar-lining button:focus {
  206. outline: none;
  207. }
  208. .toolbar-tray-horizontal a:focus,
  209. .toolbar-box a:focus {
  210. outline: none;
  211. background-color: #f5f5f5;
  212. }
  213. .toolbar-box a:hover:focus {
  214. text-decoration: underline;
  215. }
  216. .toolbar .toolbar-icon.toolbar-handle:focus {
  217. outline: none;
  218. background-color: #f5f5f5;
  219. }
  220. /**
  221. * Handle.
  222. */
  223. .toolbar .toolbar-icon.toolbar-handle {
  224. width: 4em;
  225. text-indent: -9999px;
  226. }
  227. .toolbar .toolbar-icon.toolbar-handle::before {
  228. left: 1.6667em; /* LTR */
  229. }
  230. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle::before {
  231. right: 1.6667em;
  232. left: auto;
  233. }
  234. .toolbar .toolbar-icon.toolbar-handle::before {
  235. background-image: url(../../../../misc/icons/5181c6/chevron-disc-down.svg);
  236. }
  237. .toolbar .toolbar-icon.toolbar-handle.open::before {
  238. background-image: url(../../../../misc/icons/787878/chevron-disc-up.svg);
  239. }
  240. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle::before {
  241. background-image: url(../../../../misc/icons/5181c6/twistie-down.svg);
  242. background-size: 75%;
  243. }
  244. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle.open::before {
  245. background-image: url(../../../../misc/icons/787878/twistie-up.svg);
  246. background-size: 75%;
  247. }
  248. .toolbar .toolbar-icon-escape-admin::before {
  249. background-image: url(../../../../misc/icons/bebebe/chevron-disc-left.svg);
  250. }
  251. [dir="rtl"] .toolbar .toolbar-icon-escape-admin::before {
  252. background-image: url(../../../../misc/icons/bebebe/chevron-disc-right.svg);
  253. }
  254. /**
  255. * Orientation toggle.
  256. */
  257. .toolbar .toolbar-toggle-orientation button {
  258. width: 39px;
  259. height: 39px;
  260. padding: 0;
  261. text-indent: -999em;
  262. }
  263. .toolbar .toolbar-toggle-orientation button::before {
  264. right: 0;
  265. left: 0;
  266. margin: 0 auto;
  267. }
  268. [dir="rtl"] .toolbar .toolbar-toggle-orientation .toolbar-icon {
  269. padding: 0;
  270. }
  271. /**
  272. * In order to support a hover effect on the SVG images, while also supporting
  273. * RTL text direction and no SVG support, this little icon requires some very
  274. * specific targeting, setting and unsetting.
  275. */
  276. .toolbar .toolbar-toggle-orientation [value="vertical"]::before {
  277. background-image: url(../../../../misc/icons/bebebe/push-left.svg); /* LTR */
  278. }
  279. .toolbar .toolbar-toggle-orientation [value="vertical"]:hover::before,
  280. .toolbar .toolbar-toggle-orientation [value="vertical"]:focus::before {
  281. background-image: url(../../../../misc/icons/787878/push-left.svg); /* LTR */
  282. }
  283. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]::before {
  284. background-image: url(../../../../misc/icons/bebebe/push-right.svg);
  285. }
  286. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]:hover::before,
  287. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]:focus::before {
  288. background-image: url(../../../../misc/icons/787878/push-right.svg);
  289. }
  290. .toolbar .toolbar-toggle-orientation [value="horizontal"]::before {
  291. background-image: url(../../../../misc/icons/bebebe/push-up.svg);
  292. }
  293. .toolbar .toolbar-toggle-orientation [value="horizontal"]:hover::before,
  294. .toolbar .toolbar-toggle-orientation [value="horizontal"]:focus::before {
  295. background-image: url(../../../../misc/icons/787878/push-up.svg);
  296. }

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