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/themes/admin/css/theme/toolbar.icons.theme.pcss.css
  3. main core/themes/default_admin/css/theme/toolbar.icons.theme.pcss.css
  4. main core/modules/toolbar/css/claro/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.

File

core/modules/toolbar/css/toolbar.icons.theme.pcss.css

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

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