toolbar.icons.theme.pcss.css

Same filename in this branch
  1. main core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  2. main core/modules/toolbar/css/toolbar.icons.theme.pcss.css
  3. main core/themes/admin/css/theme/toolbar.icons.theme.pcss.css
  4. main core/themes/default_admin/css/theme/toolbar.icons.theme.pcss.css
  5. main core/modules/toolbar/css/default_admin/theme/toolbar.icons.theme.pcss.css
Same filename and directory in other branches
  1. 10 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
  4. 10 core/modules/toolbar/css/toolbar.icons.theme.pcss.css
  5. 9 core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  6. 11.x core/themes/admin/css/theme/toolbar.icons.theme.pcss.css
  7. 11.x core/themes/default_admin/css/theme/toolbar.icons.theme.pcss.css
  8. 11.x core/modules/toolbar/css/claro/theme/toolbar.icons.theme.pcss.css
  9. 11.x core/modules/toolbar/css/default_admin/theme/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/modules/toolbar/css/claro/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. .toolbar-bar .toolbar-icon-user::before {
  92. background-image: url(../../../icons/bebebe/person.svg);
  93. }
  94. .toolbar-bar .toolbar-icon-user:active::before,
  95. .toolbar-bar .toolbar-icon-user.is-active::before {
  96. background-image: url(../../../icons/ffffff/person.svg);
  97. }
  98. .toolbar-bar .toolbar-icon-edit::before {
  99. background-image: url(../../../icons/bebebe/pencil.svg);
  100. }
  101. .toolbar-bar .toolbar-icon-edit:active::before,
  102. .toolbar-bar .toolbar-icon-edit.is-active::before {
  103. background-image: url(../../../icons/ffffff/pencil.svg);
  104. }
  105. /**
  106. * Main menu icons.
  107. */
  108. .toolbar-icon-system-admin-content::before {
  109. background-image: url(../../../../../misc/icons/787878/file.svg);
  110. }
  111. .toolbar-icon-system-admin-content:active::before,
  112. .toolbar-icon-system-admin-content.is-active::before {
  113. background-image: url(../../../../../misc/icons/000000/file.svg);
  114. }
  115. .toolbar-icon-system-admin-structure::before {
  116. background-image: url(../../../../../misc/icons/787878/orgchart.svg);
  117. }
  118. .toolbar-icon-system-admin-structure:active::before,
  119. .toolbar-icon-system-admin-structure.is-active::before {
  120. background-image: url(../../../../../misc/icons/000000/orgchart.svg);
  121. }
  122. .toolbar-icon-system-themes-page::before {
  123. background-image: url(../../../../../misc/icons/787878/paintbrush.svg);
  124. }
  125. .toolbar-icon-system-themes-page:active::before,
  126. .toolbar-icon-system-themes-page.is-active::before {
  127. background-image: url(../../../../../misc/icons/000000/paintbrush.svg);
  128. }
  129. .toolbar-icon-entity-user-collection::before {
  130. background-image: url(../../../../../misc/icons/787878/people.svg);
  131. }
  132. .toolbar-icon-entity-user-collection:active::before,
  133. .toolbar-icon-entity-user-collection.is-active::before {
  134. background-image: url(../../../../../misc/icons/000000/people.svg);
  135. }
  136. .toolbar-icon-system-modules-list::before {
  137. background-image: url(../../../../../misc/icons/787878/puzzlepiece.svg);
  138. }
  139. .toolbar-icon-system-modules-list:active::before,
  140. .toolbar-icon-system-modules-list.is-active::before {
  141. background-image: url(../../../../../misc/icons/000000/puzzlepiece.svg);
  142. }
  143. .toolbar-icon-system-admin-config::before {
  144. background-image: url(../../../../../misc/icons/787878/wrench.svg);
  145. }
  146. .toolbar-icon-system-admin-config:active::before,
  147. .toolbar-icon-system-admin-config.is-active::before {
  148. background-image: url(../../../../../misc/icons/000000/wrench.svg);
  149. }
  150. .toolbar-icon-system-admin-reports::before {
  151. background-image: url(../../../../../misc/icons/787878/barchart.svg);
  152. }
  153. .toolbar-icon-system-admin-reports:active::before,
  154. .toolbar-icon-system-admin-reports.is-active::before {
  155. background-image: url(../../../../../misc/icons/000000/barchart.svg);
  156. }
  157. .toolbar-icon-help-main::before {
  158. background-image: url(../../../../../misc/icons/787878/questionmark-disc.svg);
  159. }
  160. .toolbar-icon-help-main:active::before,
  161. .toolbar-icon-help-main.is-active::before {
  162. background-image: url(../../../../../misc/icons/000000/questionmark-disc.svg);
  163. }
  164. @media only screen and (min-width: 16.5em) {
  165. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  166. width: 4em;
  167. margin-right: 0;
  168. margin-left: 0;
  169. padding-right: 0;
  170. padding-left: 0;
  171. text-indent: -9999px;
  172. }
  173. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  174. left: 0; /* LTR */
  175. width: 100%;
  176. background-size: 42% auto;
  177. }
  178. .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  179. background-size: auto auto;
  180. }
  181. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  182. right: 0;
  183. left: auto;
  184. }
  185. }
  186. @media only screen and (min-width: 36em) {
  187. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  188. width: auto;
  189. padding-right: 1.3333em; /* LTR */
  190. padding-left: 2.75em; /* LTR */
  191. text-indent: 0;
  192. background-position: left center; /* LTR */
  193. }
  194. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  195. padding-right: 2.75em;
  196. padding-left: 1.3333em;
  197. background-position: right center;
  198. }
  199. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  200. left: 0.6667em; /* LTR */
  201. width: 1.538em;
  202. background-size: 100% auto;
  203. }
  204. .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  205. background-size: auto auto;
  206. }
  207. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon::before {
  208. right: 0.6667em;
  209. left: 0;
  210. }
  211. }
  212. /**
  213. * Accessibility/focus
  214. */
  215. .toolbar-tab a:focus {
  216. text-decoration: underline;
  217. outline: none;
  218. }
  219. .toolbar-lining button:focus {
  220. outline: none;
  221. }
  222. .toolbar-tray-horizontal a:focus,
  223. .toolbar-box a:focus {
  224. outline: none;
  225. background-color: #f5f5f5;
  226. }
  227. .toolbar-box a:hover:focus {
  228. text-decoration: underline;
  229. }
  230. .toolbar .toolbar-icon.toolbar-handle:focus {
  231. outline: none;
  232. background-color: #f5f5f5;
  233. }
  234. /**
  235. * Handle.
  236. */
  237. .toolbar .toolbar-icon.toolbar-handle {
  238. width: 4em;
  239. text-indent: -9999px;
  240. }
  241. .toolbar .toolbar-icon.toolbar-handle::before {
  242. left: 1.6667em; /* LTR */
  243. }
  244. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle::before {
  245. right: 1.6667em;
  246. left: auto;
  247. }
  248. .toolbar .toolbar-icon.toolbar-handle::before {
  249. background-image: url(../../../../../misc/icons/5181c6/chevron-disc-down.svg);
  250. }
  251. .toolbar .toolbar-icon.toolbar-handle.open::before {
  252. background-image: url(../../../../../misc/icons/787878/chevron-disc-up.svg);
  253. }
  254. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle::before {
  255. background-image: url(../../../../../misc/icons/5181c6/twistie-down.svg);
  256. background-size: 75%;
  257. }
  258. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle.open::before {
  259. background-image: url(../../../../../misc/icons/787878/twistie-up.svg);
  260. background-size: 75%;
  261. }
  262. .toolbar .toolbar-icon-escape-admin::before {
  263. background-image: url(../../../../../misc/icons/bebebe/chevron-disc-left.svg);
  264. }
  265. [dir="rtl"] .toolbar .toolbar-icon-escape-admin::before {
  266. background-image: url(../../../../../misc/icons/bebebe/chevron-disc-right.svg);
  267. }
  268. /**
  269. * Orientation toggle.
  270. */
  271. .toolbar .toolbar-toggle-orientation button {
  272. width: 39px;
  273. height: 39px;
  274. padding: 0;
  275. text-indent: -999em;
  276. }
  277. .toolbar .toolbar-toggle-orientation button::before {
  278. right: 0;
  279. left: 0;
  280. margin: 0 auto;
  281. }
  282. [dir="rtl"] .toolbar .toolbar-toggle-orientation .toolbar-icon {
  283. padding: 0;
  284. }
  285. /**
  286. * In order to support a hover effect on the SVG images, while also supporting
  287. * RTL text direction and no SVG support, this little icon requires some very
  288. * specific targeting, setting and unsetting.
  289. */
  290. .toolbar .toolbar-toggle-orientation [value="vertical"]::before {
  291. background-image: url(../../../../../misc/icons/bebebe/push-left.svg); /* LTR */
  292. }
  293. .toolbar .toolbar-toggle-orientation [value="vertical"]:hover::before,
  294. .toolbar .toolbar-toggle-orientation [value="vertical"]:focus::before {
  295. background-image: url(../../../../../misc/icons/787878/push-left.svg); /* LTR */
  296. }
  297. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]::before {
  298. background-image: url(../../../../../misc/icons/bebebe/push-right.svg);
  299. }
  300. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]:hover::before,
  301. [dir="rtl"] .toolbar .toolbar-toggle-orientation [value="vertical"]:focus::before {
  302. background-image: url(../../../../../misc/icons/787878/push-right.svg);
  303. }
  304. .toolbar .toolbar-toggle-orientation [value="horizontal"]::before {
  305. background-image: url(../../../../../misc/icons/bebebe/push-up.svg);
  306. }
  307. .toolbar .toolbar-toggle-orientation [value="horizontal"]:hover::before,
  308. .toolbar .toolbar-toggle-orientation [value="horizontal"]:focus::before {
  309. background-image: url(../../../../../misc/icons/787878/push-up.svg);
  310. }

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