toolbar.icons.theme.css 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /**
  2. * @file
  3. * Styling for toolbar module icons.
  4. */
  5. [dir="rtl"] .toolbar .toolbar-icon {
  6. padding-left: 1.3333em;
  7. padding-right: 2.75em;
  8. }
  9. .toolbar .toolbar-icon::before {
  10. background-attachment: scroll;
  11. background-color: transparent;
  12. background-position: center center;
  13. background-repeat: no-repeat;
  14. background-size: 100% auto;
  15. content: '';
  16. display: block;
  17. height: 100%;
  18. left: 15px; /* LTR */
  19. position: absolute;
  20. top: 0;
  21. width: 18px;
  22. filter: brightness(0) invert(1);
  23. }
  24. [dir="rtl"] .toolbar .toolbar-icon::before {
  25. left: auto;
  26. right: 15px;
  27. }
  28. .toolbar-horizontal .toolbar .toolbar-tray-horizontal .toolbar-icon::before {
  29. display: none;
  30. }
  31. @media only screen and (min-width: 1024px) {
  32. .toolbar .toolbar-icon {
  33. padding-left: 40px; /* LTR */
  34. position: relative;
  35. }
  36. .toolbar .toolbar-icon:before {
  37. left: 15px;
  38. }
  39. .toolbar-horizontal .toolbar .toolbar-tray-horizontal .toolbar-icon:before {
  40. display: block;
  41. filter: brightness(0) invert(1);
  42. }
  43. }
  44. @media only screen and (min-width: 1280px) {
  45. .toolbar .toolbar-icon {
  46. padding-left: 50px; /* LTR */
  47. position: relative;
  48. }
  49. .toolbar .toolbar-icon:before {
  50. left: 20px;
  51. }
  52. }
  53. .toolbar button.toolbar-icon {
  54. background-color: transparent;
  55. border: 0;
  56. font-size: 1em;
  57. }
  58. .toolbar .toolbar-menu ul .toolbar-icon {
  59. padding-left: 1.3333em; /* LTR */
  60. }
  61. [dir="rtl"] .toolbar .toolbar-menu ul .toolbar-icon {
  62. padding-left: 0;
  63. padding-right: 1.3333em;
  64. }
  65. .toolbar .toolbar-menu ul a.toolbar-icon:before {
  66. display: none;
  67. }
  68. .toolbar .toolbar-tray-vertical .toolbar-menu a.toolbar-icon {
  69. padding-left: 50px;
  70. position: relative;
  71. }
  72. .toolbar .toolbar-tray-vertical .toolbar-menu ul .level-2 a {
  73. padding-left: 50px; /* LTR */
  74. }
  75. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul a {
  76. padding-left: 0;
  77. padding-right: 50px;
  78. }
  79. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul .level-3 a {
  80. padding-left: 65px; /* LTR */
  81. }
  82. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul ul .level-4 a {
  83. padding-left: 75px; /* LTR */
  84. }
  85. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a {
  86. padding-left: 0;
  87. padding-right: 65px;
  88. }
  89. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu a {
  90. padding-left: 50px;
  91. padding-right: 50px;
  92. }
  93. /**
  94. * Top level icons.
  95. */
  96. .toolbar-bar .toolbar-icon-menu:before,
  97. .toolbar-bar .toolbar-icon-menu:active:before,
  98. .toolbar-bar .toolbar-icon-menu.is-active:before {
  99. background-image: url(../../images/icons/menu.svg);
  100. }
  101. .toolbar .toolbar-icon-escape-admin:before {
  102. background-image: url(../../images/icons/arrow_back.svg);
  103. }
  104. /**
  105. * Main menu icons.
  106. */
  107. .toolbar-icon-system-admin-content:before {
  108. background-image: url(../../images/icons/content.svg);
  109. }
  110. .toolbar-icon-system-admin-structure:before {
  111. background-image: url(../../images/icons/structure.svg);
  112. }
  113. .toolbar-icon-system-themes-page:before {
  114. background-image: url(../../images/icons/devices.svg);
  115. }
  116. .toolbar-icon-entity-user-collection:before {
  117. background-image: url(../../images/icons/users.svg);
  118. }
  119. .toolbar-icon-system-modules-list:before {
  120. background-image: url(../../images/icons/extend.svg);
  121. }
  122. .toolbar-icon-system-admin-config:before {
  123. background-image: url(../../images/icons/settings.svg);
  124. }
  125. .toolbar-icon-system-admin-reports:before {
  126. background-image: url(../../images/icons/reports.svg);
  127. }
  128. .toolbar-icon-help-main:before,
  129. .toolbar-bar .toolbar-icon-help:active:before,
  130. .toolbar-bar .toolbar-icon-help:before {
  131. background-image: url(../../images/icons/help.svg);
  132. }
  133. .toolbar-bar .toolbar-icon-edit.is-active:before {
  134. background-image: url(../../images/icons/edit.svg);
  135. }
  136. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:focus {
  137. outline: transparent;
  138. }
  139. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  140. font-size: 0;
  141. line-height: 16px;
  142. }
  143. @media only screen and (min-width: 16.5em) {
  144. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  145. margin-left: 0;
  146. margin-right: 0;
  147. padding-left: 0;
  148. padding-right: 0;
  149. width: 60px;
  150. }
  151. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before {
  152. background-size: 40% auto;
  153. left: 0; /* LTR */
  154. width: 100%;
  155. margin-left: 0;
  156. filter: brightness(0) invert(1);
  157. }
  158. .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before {
  159. background-size: auto auto;
  160. }
  161. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before {
  162. left: auto;
  163. right: 0;
  164. }
  165. }
  166. @media only screen and (min-width: 660px) {
  167. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  168. background-position: left center; /* LTR */
  169. padding-left: 52px; /* LTR */
  170. padding-right: 1.3333em; /* LTR */
  171. text-indent: 0;
  172. width: auto;
  173. font-size: 16px;
  174. }
  175. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  176. background-position: right center;
  177. padding-left: 1.3333em;
  178. padding-right: 2.75em;
  179. }
  180. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before {
  181. background-size: 100% auto;
  182. left: 20px; /* LTR */
  183. width: 24px;
  184. margin-left: 0;
  185. filter: brightness(0) invert(1);
  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. left: 0;
  192. right: 0.6667em;
  193. }
  194. }
  195. .toolbar-tab a:focus,
  196. .toolbar-lining button:focus,
  197. .toolbar-tray-horizontal a:focus,
  198. .toolbar-box a:focus,
  199. .toolbar .toolbar-icon.toolbar-handle:focus {
  200. outline: transparent;
  201. }
  202. /**
  203. * Handle.
  204. */
  205. .toolbar .toolbar-icon.toolbar-handle {
  206. width: 60px;
  207. font-size: 0;
  208. }
  209. .toolbar .toolbar-icon.toolbar-handle:before {
  210. left: 20px; /* LTR */
  211. background-image: url(../../images/icons/arrow_bottom_small.svg);
  212. background-size: 24px 24px;
  213. }
  214. .toolbar .toolbar-icon.toolbar-handle.open:before {
  215. background-image: url(../../images/icons/arrow_top_small.svg);
  216. background-size: 24px 24px;
  217. }
  218. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle:before {
  219. left: auto;
  220. right: 20px;
  221. }
  222. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle:before,
  223. .toolbar .toolbar-menu .toolbar-menu .toolbar-icon.toolbar-handle.open:before {
  224. left: 20px;
  225. background-size: 18px 18px;
  226. }
  227. /**
  228. * Orientation toggle.
  229. */
  230. .toolbar-fixed .toolbar .toolbar-toggle-orientation button {
  231. height: 44px;
  232. padding: 0;
  233. font-size: 0;
  234. }
  235. .toolbar-horizontal .toolbar .toolbar-toggle-orientation button {
  236. width: 42px;
  237. }
  238. .toolbar-vertical .toolbar .toolbar-toggle-orientation button {
  239. width: 55px;
  240. }
  241. .toolbar .toolbar-toggle-orientation button:before {
  242. left: 0;
  243. right: 0;
  244. margin: 0 auto;
  245. }
  246. [dir="rtl"] .toolbar .toolbar-toggle-orientation .toolbar-icon {
  247. padding: 0;
  248. }
  249. /**
  250. * In order to support a hover effect on the SVG images, while also supporting
  251. * RTL text direction and no SVG support, this little icon requires some very
  252. * specific targeting, setting and unsetting.
  253. */
  254. .toolbar .toolbar-toggle-orientation [value="vertical"]:before,
  255. .toolbar .toolbar-toggle-orientation [value="vertical"]:hover:before,
  256. .toolbar .toolbar-toggle-orientation [value="vertical"]:focus:before {
  257. background-image: url(../../images/icons/orientaion-vertical.svg); /* LTR */
  258. }
  259. .toolbar .toolbar-toggle-orientation [value="horizontal"]:before,
  260. .toolbar .toolbar-toggle-orientation [value="horizontal"]:hover:before,
  261. .toolbar .toolbar-toggle-orientation [value="horizontal"]:focus:before {
  262. background-image: url(../../images/icons/orientaion-horizontal.svg);
  263. }