toolbar.icons.theme.pcss.css

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

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