toolbar.icons.theme.pcss.css

Same filename in other branches
  1. 10 core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  2. 10 core/modules/toolbar/css/toolbar.icons.theme.pcss.css
  3. 11.x core/themes/claro/css/theme/toolbar.icons.theme.pcss.css
  4. 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: 20px;
  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. /**
  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.