_icons.less 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. // # Icons
  6. // Icons can be represented by using the fonts, images, or sprites.
  7. //
  8. // An icon can be added to any HTML tag. For this purpose you need to use additional <code>&lt;span&gt;</code> tag within your tag. This additional tag serves for displaying an icon without visible text, thus following the **accessibility requirements**. Then you need to apply appropriate <code>icon</code> mixin for this tag's class. Icon can be added both before and after element's text. Also, icon can be displayed instead of element's text (in this case the text is hidden).
  9. //
  10. // There are two ways to insert icon: first you can use **sprite or image**, second you can use **an icon font**. Magento UI library provides mixins for both of them.
  11. // ```
  12. // <a href="#" class="example-icon-1"><span>sprite icon before the text</span></a>
  13. // <br>
  14. // <a href="#" class="example-icon-2"><span>sprite icon after the text</span></a>
  15. // <br>
  16. // <a href="#" class="example-icon-3" title="sprite icon instead of the text"><span>icon instead of the text</span></a>
  17. // <br>
  18. // <a href="#" class="example-icon-4"><span>font icon before the text</span></a>
  19. // <br>
  20. // <a href="#" class="example-icon-5"><span>font icon after the text</span></a>
  21. // <br>
  22. // <a href="#" class="example-icon-6" title="font icon instead of the text"><span>icon instead of the text</span></a>
  23. // ```
  24. .example-icon-1 {
  25. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  26. }
  27. .example-icon-2 {
  28. .lib-icon-image(
  29. @_icon-image: '@{baseDir}images/blank-theme-icons.png',
  30. @_icon-image-position-x: -26px,
  31. @_icon-image-position-y: 0,
  32. @_icon-image-position: after
  33. );
  34. }
  35. .example-icon-3 {
  36. .lib-icon-image(
  37. @_icon-image: '@{baseDir}images/blank-theme-icons.png',
  38. @_icon-image-position-x: -156px,
  39. @_icon-image-position-y: -52px,
  40. @_icon-image-text-hide: true
  41. );
  42. }
  43. .example-icon-4 {
  44. .lib-icon-font(
  45. @_icon-font-content: @icon-settings,
  46. @_icon-font-size: 24px
  47. );
  48. }
  49. .example-icon-5 {
  50. .lib-icon-font(
  51. @_icon-font-content: @icon-star,
  52. @_icon-font-size: 24px,
  53. @_icon-font-position: after
  54. );
  55. }
  56. .example-icon-6 {
  57. .lib-icon-font(
  58. @_icon-font-content: @icon-flag,
  59. @_icon-font-size: 24px,
  60. @_icon-font-text-hide: true
  61. );
  62. }
  63. // # Icon with image or sprite
  64. // the <code>.lib-icon-image()</code> mixin is used to create icons using single image or sprite. It has one mandatory parameter - <code>@_icon-image</code>. This parameter accepts the path to an image or sprite.
  65. //
  66. // ```
  67. // <a href="#" class="example-icon-7"><span>icon-search</span></a>
  68. // ```
  69. .example-icon-7 {
  70. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  71. }
  72. // # Icon with image or sprite variables
  73. //
  74. // <pre>
  75. // <table>
  76. // <tr>
  77. // <th class="vars_head">Mixin variable</th>
  78. // <th class="vars_head">Global variable</th>
  79. // <th class="vars_head">Default value</th>
  80. // <th class="vars_head">Allowed values</th>
  81. // <th class="vars_head">Comment</th>
  82. // </tr>
  83. // <tr>
  84. // <th>@_icon-image</th>
  85. // <td>-</td>
  86. // <td class="vars_value">-</td>
  87. // <td class="vars_value">'' | false | value</td>
  88. // <td>A link to an image or sprite, mandatory parameter</td>
  89. // </tr>
  90. // <tr>
  91. // <th>@_icon-image-height</th>
  92. // <td>@icon__height</td>
  93. // <td class="vars_value">26px</td>
  94. // <td class="vars_value">'' | false | value</td>
  95. // <td>Icon image height</td>
  96. // </tr>
  97. // <tr>
  98. // <th>@_icon-image-width</th>
  99. // <td>@icon__width</td>
  100. // <td class="vars_value">26px</td>
  101. // <td class="vars_value">'' | false | value</td>
  102. // <td>Icon image width</td>
  103. // </tr>
  104. // <tr>
  105. // <th>@_icon-image-margin</th>
  106. // <td>@icon__margin</td>
  107. // <td class="vars_value">0</td>
  108. // <td class="vars_value">'' | false | value</td>
  109. // <td>Icon image margin</td>
  110. // </tr>
  111. // <tr>
  112. // <th nowrap="nowrap">@_icon-image-vertical-align</th>
  113. // <td>@icon__vertical-align</td>
  114. // <td class="vars_value">middle</td>
  115. // <td class="vars_value">'' | false | value</td>
  116. // <td>Icon image vertical align</td>
  117. // </tr>
  118. // <tr>
  119. // <th>@_icon-image-position-x</th>
  120. // <td>@icon-image__position-x</td>
  121. // <td class="vars_value">0</td>
  122. // <td class="vars_value">'' | false | value</td>
  123. // <td>Horizontal image position</td>
  124. // </tr>
  125. // <tr>
  126. // <th>@_icon-image-position-y</th>
  127. // <td>@icon-image__position-y</td>
  128. // <td class="vars_value">0</td>
  129. // <td class="vars_value">'' | false | value</td>
  130. // <td>Vertical image position</td>
  131. // </tr>
  132. // <tr>
  133. // <th>@_icon-image-position</th>
  134. // <td>@icon__position</td>
  135. // <td class="vars_value">before</td>
  136. // <td class="vars_value">before | after</td>
  137. // <td>Icon image position</td>
  138. // </tr>
  139. // <tr>
  140. // <th>@_icon-image-text-hide</th>
  141. // <td>@icon__text-hide</td>
  142. // <td class="vars_value">false</td>
  143. // <td class="vars_value">true | false</td>
  144. // <td>The text in the &lt;span&gt; tag should be hidden</td>
  145. // </tr>
  146. // </table>
  147. // </pre>
  148. // # Icon position for an icon with image or sprite
  149. // To change the position for icons with image the <code>.lib-icon-image-position()</code> mixin is used. By managing its <code>@_icon-image-position-x</code> and <code>@_icon-image-position-y</code> variables you can move the image on element's background. The <code>@_icon-image-position</code> variable is used to define the position of icon (before or after the element).
  150. // ```
  151. // <a href="#" class="example-icon-8"><span>icon-star</span></a>
  152. // <br>
  153. // <a href="#" class="example-icon-9"><span>icon-heart</span></a>
  154. // ```
  155. .example-icon-8 {
  156. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  157. .lib-icon-image-position(
  158. @_icon-image-position-x: -182px
  159. );
  160. }
  161. .example-icon-9 {
  162. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png', @_icon-image-position: after);
  163. .lib-icon-image-position(
  164. @_icon-image-position-x: -52px,
  165. @_icon-image-position-y: -26px,
  166. @_icon-image-position: after
  167. );
  168. }
  169. // # Position for icon with image or sprite mixin variables
  170. //
  171. // <pre>
  172. // <table>
  173. // <tr>
  174. // <th class="vars_head">Mixin variable</th>
  175. // <th class="vars_head">Global variable</th>
  176. // <th class="vars_head">Default value</th>
  177. // <th class="vars_head">Allowed values</th>
  178. // <th class="vars_head">Comment</th>
  179. // </tr>
  180. // <tr>
  181. // <th>@_icon-image-position-x</th>
  182. // <td>@icon-image__position-x</td>
  183. // <td class="vars_value">0</td>
  184. // <td class="vars_value">'' | false | value</td>
  185. // <td>Horizontal starting position of icon image</td>
  186. // </tr>
  187. // <tr>
  188. // <th nowrap="nowrap">@_icon-image-position-y</th>
  189. // <td>@icon-image__position-y</td>
  190. // <td class="vars_value">0</td>
  191. // <td class="vars_value">'' | false | value</td>
  192. // <td>Vertical starting position of icon image</td>
  193. // </tr>
  194. // <tr>
  195. // <th>@_icon-image-position</th>
  196. // <td>@icon__position</td>
  197. // <td class="vars_value">before</td>
  198. // <td class="vars_value">before | after</td>
  199. // <td>Position of the icon which is set for the element</td>
  200. // </tr>
  201. // </table>
  202. // </pre>
  203. // # Icon sprite position (with grid)
  204. // Mixin <code>.lib-icon-sprite-position()</code> is used to manage the position of sprite background image. It assumes the use of a single sprite image with individual images **placed on a regular grid**.
  205. // ```
  206. // <a href="#" class="example-icon-10"><span>icon text</span></a>
  207. // ```
  208. .example-icon-10 {
  209. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  210. .lib-icon-sprite-position(4, 0);
  211. }
  212. // # Icon sprite position variables
  213. //
  214. // <pre>
  215. // <table>
  216. // <tr>
  217. // <th class="vars_head">Mixin variable</th>
  218. // <th class="vars_head">Global variable</th>
  219. // <th class="vars_head">Default value</th>
  220. // <th class="vars_head">Allowed values</th>
  221. // <th class="vars_head">Comment</th>
  222. // </tr>
  223. // <tr>
  224. // <th>@_icon-sprite-position-x</th>
  225. // <td>@icon-sprite__position-x</td>
  226. // <td class="vars_value">0</td>
  227. // <td class="vars_value">'' | false | value</td>
  228. // <td>The x coordinate of the desired image on the grid</td>
  229. // </tr>
  230. // <tr>
  231. // <th nowrap="nowrap">@_icon-sprite-position-y</th>
  232. // <td>@icon-sprite__position-y</td>
  233. // <td class="vars_value">0</td>
  234. // <td class="vars_value">'' | false | value</td>
  235. // <td>The y coordinate of the desired image on the grid</td>
  236. // </tr>
  237. // <tr>
  238. // <th>@_icon-sprite-grid</th>
  239. // <td>@icon-sprite__grid</td>
  240. // <td class="vars_value">26px</td>
  241. // <td class="vars_value">'' | false | value</td>
  242. // <td>The size of the grid (in pixels) that the individal images are placed on</td>
  243. // </tr>
  244. // <tr>
  245. // <th>@_icon-sprite-position</th>
  246. // <td>@icon__position</td>
  247. // <td class="vars_value">before</td>
  248. // <td class="vars_value">before | after</td>
  249. // <td>Icon image position</td>
  250. // </tr>
  251. // </table>
  252. // </pre>
  253. // # Image/sprite icon size
  254. // Mixin <code>.lib-icon-image-size()</code> is used to change the image/sprite icon size
  255. // ```
  256. // <a href="#" class="example-icon-11"><span>icon-search</span></a>
  257. // ```
  258. .example-icon-11 {
  259. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  260. .lib-icon-image-size(30px, 30px);
  261. &:before {
  262. background-color: #f1f1f1;
  263. }
  264. }
  265. // # Image/sprite icon size variables
  266. //
  267. // <pre>
  268. // <table>
  269. // <tr>
  270. // <th class="vars_head">Mixin variable</th>
  271. // <th class="vars_head">Global variable</th>
  272. // <th class="vars_head">Default value</th>
  273. // <th class="vars_head">Allowed values</th>
  274. // <th class="vars_head">Comment</th>
  275. // </tr>
  276. // <tr>
  277. // <th>@_icon-image-width</th>
  278. // <td>@icon__width</td>
  279. // <td class="vars_value">26px</td>
  280. // <td class="vars_value">'' | false | value</td>
  281. // <td>Icon image width</td>
  282. // </tr>
  283. // <tr>
  284. // <th nowrap="nowrap">@_icon-image-height</th>
  285. // <td>@icon__height</td>
  286. // <td class="vars_value">26px</td>
  287. // <td class="vars_value">'' | false | value</td>
  288. // <td>Icon image height</td>
  289. // </tr>
  290. // <tr>
  291. // <th>@_icon-image-position</th>
  292. // <td>@icon__position</td>
  293. // <td class="vars_value">before</td>
  294. // <td class="vars_value">before | after</td>
  295. // <td>Icon image position</td>
  296. // </tr>
  297. // </table>
  298. // </pre>
  299. //
  300. // # Font icon
  301. // The <code>.lib-icon-font()</code> mixin is used to create icons using font icons. It has one mandatory parameter - <code>@_icon-font-content</code>. This parameter accepts the font icon code.
  302. //
  303. // ```
  304. // <a href="#" class="example-icon-12"><span>icon-calendar</span></a>
  305. // ```
  306. .example-icon-12 {
  307. .lib-icon-font(
  308. @icon-calendar,
  309. @_icon-font-size: 28px
  310. );
  311. }
  312. // # Font icon variables
  313. //
  314. // <pre>
  315. // <table>
  316. // <tr>
  317. // <th class="vars_head">Mixin variable</th>
  318. // <th class="vars_head">Global variable</th>
  319. // <th class="vars_head">Default value</th>
  320. // <th class="vars_head">Allowed values</th>
  321. // <th class="vars_head">Comment</th>
  322. // </tr>
  323. // <tr>
  324. // <th>@_icon-font-content</th>
  325. // <td>-</td>
  326. // <td class="vars_value">&nbsp;</td>
  327. // <td class="vars_value">'' | icon code | icon variables</td>
  328. // <td>Font icon code</td>
  329. // </tr>
  330. // <tr>
  331. // <th nowrap="nowrap">@_icon-font</th>
  332. // <td>@icon-font</td>
  333. // <td class="vars_value">@icons__font-name</td>
  334. // <td class="vars_value">'' | false | value</td>
  335. // <td>The icon font</td>
  336. // </tr>
  337. // <tr>
  338. // <th>@_icon-font-size</th>
  339. // <td>@icon-font__size</td>
  340. // <td class="vars_value">inherit</td>
  341. // <td class="vars_value">'' | false | value</td>
  342. // <td>Font icon size</td>
  343. // </tr>
  344. // <tr>
  345. // <th>@_icon-font-line-height</th>
  346. // <td>@icon-font__line-height</td>
  347. // <td class="vars_value">@icon-font__size</td>
  348. // <td class="vars_value">'' | false | value</td>
  349. // <td>Font icon line height</td>
  350. // </tr>
  351. // <tr>
  352. // <th nowrap="nowrap">@_icon-font-color</th>
  353. // <td>@icon-font__color</td>
  354. // <td class="vars_value">inherit</td>
  355. // <td class="vars_value">'' | inherit | color code</td>
  356. // <td>Font icon color</td>
  357. // </tr>
  358. // <tr>
  359. // <th>@_icon-font-color-hover</th>
  360. // <td>@icon-font__color-hover</td>
  361. // <td class="vars_value">false</td>
  362. // <td class="vars_value">'' | inherit | color code</td>
  363. // <td>Font icon color - hover state</td>
  364. // </tr>
  365. // <tr>
  366. // <th>@_icon-font-color-active</th>
  367. // <td>@icon-font__color-active</td>
  368. // <td class="vars_value">false</td>
  369. // <td class="vars_value">'' | inherit | color code</td>
  370. // <td>Font icon color - active state</td>
  371. // </tr>
  372. // <tr>
  373. // <th nowrap="nowrap">@_icon-font-margin</th>
  374. // <td>@icon-font__margin</td>
  375. // <td class="vars_value">@icon__margin</td>
  376. // <td class="vars_value">'' | false | value</td>
  377. // <td>Font icon margin</td>
  378. // </tr>
  379. // <tr>
  380. // <th nowrap="nowrap">@_icon-font-vertical-align</th>
  381. // <td>@icon-font__vertical-align</td>
  382. // <td class="vars_value" nowrap="nowrap">@icon__vertical-align</td>
  383. // <td class="vars_value">'' | false | value</td>
  384. // <td>Font icon vertical align</td>
  385. // </tr>
  386. // <tr>
  387. // <th nowrap="nowrap">@_icon-font-position</th>
  388. // <td>@icon-font__position</td>
  389. // <td class="vars_value">@icon__position</td>
  390. // <td class="vars_value">before | after</td>
  391. // <td>Font icon position</td>
  392. // </tr>
  393. // <tr>
  394. // <th>@_icon-font-text-hide</th>
  395. // <td>@icon-font__text-hide</td>
  396. // <td class="vars_value">@icon__text-hide</td>
  397. // <td class="vars_value">true | false</td>
  398. // <td>The text of the element is replaced with the icon(true), or the icon is on the side of the text (false)</td>
  399. // </tr>
  400. // <tr>
  401. // <th>@_icon-font-display</th>
  402. // <td>@icon-font__display</td>
  403. // <td class="vars_value">inline-block</td>
  404. // <td class="vars_value">'' | false | value</td>
  405. // <td>The 'display' property of the icon container</td>
  406. // </tr>
  407. // </table>
  408. // </pre>
  409. // # Change the size of font icon
  410. // The <code>.lib-icon-font-size()</code> mixin is used to change size of the font icon which is already defined. The mixin generates only new font size and line height without any other options. @_icon-font-position variable is used to define the position of icon (before or after the element) which we want to set font size of.
  411. //
  412. // ```
  413. // <a href="#" class="example-icon-13"><span>icon-calendar</span></a>
  414. // ```
  415. .example-icon-13 {
  416. .lib-icon-font(@icon-calendar);
  417. .lib-icon-font-size(
  418. @_icon-font-size: 26px
  419. );
  420. }
  421. // # Change the size of font icon variables
  422. //
  423. // <pre>
  424. // <table>
  425. // <tr>
  426. // <th class="vars_head">Mixin variable</th>
  427. // <th class="vars_head">Global variable</th>
  428. // <th class="vars_head">Default value</th>
  429. // <th class="vars_head">Allowed values</th>
  430. // <th class="vars_head">Comment</th>
  431. // </tr>
  432. // <tr>
  433. // <th>@_icon-font-size</th>
  434. // <td>@icon-font__size</td>
  435. // <td class="vars_value">inherit</td>
  436. // <td class="vars_value">'' | false | value</td>
  437. // <td>Font icon font size</td>
  438. // </tr>
  439. // <tr>
  440. // <th nowrap="nowrap">@_icon-font-line-height</th>
  441. // <td>@icon-font__line-height</td>
  442. // <td class="vars_value">@icon-font__size</td>
  443. // <td class="vars_value">'' | false | value</td>
  444. // <td>Font icon line height</td>
  445. // </tr>
  446. // <tr>
  447. // <th>@_icon-font-position</th>
  448. // <td>@icon-font__position</td>
  449. // <td class="vars_value">before</td>
  450. // <td class="vars_value">before | after</td>
  451. // <td>Font icon - icon position</td>
  452. // </tr>
  453. // </table>
  454. // </pre>
  455. //
  456. // # Hide icon text
  457. // The <code>.lib-icon-text-hide()</code> mixin can be used separately to hide text of an element that has an icon text. This mixin accepts no variables.
  458. //
  459. // ```
  460. // <a href="#" class="example-icon-14"><span>icon-calendar</span></a>
  461. // ```
  462. .example-icon-14 {
  463. .lib-icon-font(
  464. @icon-envelope,
  465. @_icon-font-size: 26px
  466. );
  467. .lib-icon-text-hide();
  468. }
  469. // # Sprite and font icons for Blank theme
  470. // You can use the icons designed to our Blank theme, which are also available in two variants: sprite and font
  471. // ##Icons using sprite
  472. // ```
  473. // <ul class="icons-image-list">
  474. // <li>
  475. // <span class="icon-search"><span>icon-search</span></span>
  476. // </li>
  477. // <li>
  478. // <span class="icon-cart"><span>icon-cart</span></span>
  479. // </li>
  480. // <li>
  481. // <span class="icon-arrow-down"><span>icon-arrow-down</span></span>
  482. // </li>
  483. // <li>
  484. // <span class="icon-arrow-up"><span>icon-arrow-up</span></span>
  485. // </li>
  486. // <li>
  487. // <span class="icon-grid"><span>icon-grid</span></span>
  488. // </li>
  489. // <li>
  490. // <span class="icon-list"><span>icon-list</span></span>
  491. // </li>
  492. // <li>
  493. // <span class="icon-remove"><span>icon-remove</span></span>
  494. // </li>
  495. // <li>
  496. // <span class="icon-star"><span>icon-star</span></span>
  497. // </li>
  498. // <li>
  499. // <span class="icon-pointer-down"><span>icon-pointer-down</span></span>
  500. // </li>
  501. // <li>
  502. // <span class="icon-pointer-up"><span>icon-pointer-up</span></span>
  503. // </li>
  504. // <li>
  505. // <span class="icon-pointer-left"><span>icon-pointer-left</span></span>
  506. // </li>
  507. // <li>
  508. // <span class="icon-pointer-right"><span>icon-pointer-right</span></span>
  509. // </li>
  510. // <li>
  511. // <span class="icon-compare-empty"><span>icon-compare-empty</span></span>
  512. // </li>
  513. // <li>
  514. // <span class="icon-compare-full"><span>icon-compare-full</span></span>
  515. // </li>
  516. // <li>
  517. // <span class="icon-wishlist-empty"><span>icon-wishlist-empty</span></span>
  518. // </li>
  519. // <li>
  520. // <span class="icon-wishlist-full"><span>icon-wishlist-full</span></span>
  521. // </li>
  522. // <li>
  523. // <span class="icon-update"><span>icon-update</span></span>
  524. // </li>
  525. // <li>
  526. // <span class="icon-collapse"><span>icon-collapse</span></span>
  527. // </li>
  528. // <li>
  529. // <span class="icon-expand"><span>icon-expand</span></span>
  530. // </li>
  531. // <li>
  532. // <span class="icon-menu"><span>icon-menu</span></span>
  533. // </li>
  534. // <li>
  535. // <span class="icon-prev"><span>icon-prev</span></span>
  536. // </li>
  537. // <li>
  538. // <span class="icon-next"><span>icon-next</span></span>
  539. // </li>
  540. // <li>
  541. // <span class="icon-settings"><span>icon-settings</span></span>
  542. // </li>
  543. // <li>
  544. // <span class="icon-info"><span>icon-info</span></span>
  545. // </li>
  546. // <li>
  547. // <span class="icon-checkmark"><span>icon-checkmark</span></span>
  548. // </li>
  549. // <li>
  550. // <span class="icon-calendar"><span>icon-calendar</span></span>
  551. // </li>
  552. // <li>
  553. // <span class="icon-comment"><span>icon-comment</span></span>
  554. // </li>
  555. // <li>
  556. // <span class="icon-comment-reflected"><span>icon-comment-reflected</span></span>
  557. // </li>
  558. // <li>
  559. // <span class="icon-envelope"><span>icon-envelope</span></span>
  560. // </li>
  561. // <li>
  562. // <span class="icon-warning"><span>icon-warning</span></span>
  563. // </li>
  564. // <li>
  565. // <span class="icon-trash"><span>icon-trash</span></span>
  566. // </li>
  567. // <li>
  568. // <span class="icon-flag"><span>icon-flag</span></span>
  569. // </li>
  570. // <li>
  571. // <span class="icon-location"><span>icon-location</span></span>
  572. // </li>
  573. // <li>
  574. // <span class="icon-up"><span>icon-up</span></span>
  575. // </li>
  576. // <li>
  577. // <span class="icon-down"><span>icon-down</span></span>
  578. // </li>
  579. // </ul>
  580. // ```
  581. //
  582. // ## Icons using font
  583. // ```
  584. // <ul class="icons-font-list">
  585. // <li>
  586. // <span class="icon-wishlist-full" data-icon="&#xe600"><span>@icon-wishlist-full</span></span>
  587. // </li>
  588. // <li>
  589. // <span class="icon-wishlist-empty" data-icon="&#xe601"><span>@icon-wishlist-empty</span></span>
  590. // </li>
  591. // <li>
  592. // <span class="icon-warning" data-icon="&#xe602"><span>@icon-warning</span></span>
  593. // </li>
  594. // <li>
  595. // <span class="icon-update" data-icon="&#xe603"><span>@icon-update</span></span>
  596. // </li>
  597. // <li>
  598. // <span class="icon-trash" data-icon="&#xe604"><span>@icon-trash</span></span>
  599. // </li>
  600. // <li>
  601. // <span class="icon-star" data-icon="&#xe605"><span>@icon-star</span></span>
  602. // </li>
  603. // <li>
  604. // <span class="icon-settings" data-icon="&#xe606"><span>@icon-settings</span></span>
  605. // </li>
  606. // <li>
  607. // <span class="icon-next" data-icon="&#xe608"><span>@icon-next</span></span>
  608. // </li>
  609. // <li>
  610. // <span class="icon-menu" data-icon="&#xe609"><span>@icon-menu</span></span>
  611. // </li>
  612. // <li>
  613. // <span class="icon-location" data-icon="&#xe60a"><span>@icon-location</span></span>
  614. // </li>
  615. // <li>
  616. // <span class="icon-list" data-icon="&#xe60b"><span>@icon-list</span></span>
  617. // </li>
  618. // <li>
  619. // <span class="icon-info" data-icon="&#xe60c"><span>@icon-info</span></span>
  620. // </li>
  621. // <li>
  622. // <span class="icon-grid" data-icon="&#xe60d"><span>@icon-grid</span></span>
  623. // </li>
  624. // <li>
  625. // <span class="icon-checkmark" data-icon="&#xe610"><span>@icon-checkmark</span></span>
  626. // </li>
  627. // <li>
  628. // <span class="icon-cart" data-icon="&#xe611"><span>@icon-cart</span></span>
  629. // </li>
  630. // <li>
  631. // <span class="icon-calendar" data-icon="&#xe612"><span>@icon-calendar</span></span>
  632. // </li>
  633. // <li>
  634. // <span class="icon-arrow-up" data-icon="&#xe613"><span>@icon-arrow-up</span></span>
  635. // </li>
  636. // <li>
  637. // <span class="icon-arrow-down" data-icon="&#xe614"><span>@icon-arrow-down</span></span>
  638. // </li>
  639. // <li>
  640. // <span class="icon-search" data-icon="&#xe615"><span>@icon-search</span></span>
  641. // </li>
  642. // <li>
  643. // <span class="icon-remove" data-icon="&#xe616"><span>@icon-remove</span></span>
  644. // </li>
  645. // <li>
  646. // <span class="icon-prev" data-icon="&#xe617"><span>@icon-prev</span></span>
  647. // </li>
  648. // <li>
  649. // <span class="icon-pointer-down" data-icon="&#xe607"><span>@icon-pointer-down</span></span>
  650. // </li>
  651. // <li>
  652. // <span class="icon-pointer-up" data-icon="&#xe618"><span>@icon-pointer-up</span></span>
  653. // </li>
  654. // <li>
  655. // <span class="icon-pointer-left" data-icon="&#xe61a"><span>@icon-pointer-left</span></span>
  656. // </li>
  657. // <li>
  658. // <span class="icon-pointer-right" data-icon="&#xe619"><span>@icon-pointer-right</span></span>
  659. // </li>
  660. // <li>
  661. // <span class="icon-flag" data-icon="&#xe61b"><span>@icon-flag</span></span>
  662. // </li>
  663. // <li>
  664. // <span class="icon-collapse" data-icon="&#xe60f"><span>@icon-collapse</span></span>
  665. // </li>
  666. // <li>
  667. // <span class="icon-expand" data-icon="&#xe61c"><span>@icon-expand</span></span>
  668. // </li>
  669. // <li>
  670. // <span class="icon-envelope" data-icon="&#xe61d"><span>@icon-envelope</span></span>
  671. // </li>
  672. // <li>
  673. // <span class="icon-compare-empty" data-icon="&#xe61f"><span>@icon-compare-empty</span></span>
  674. // </li>
  675. // <li>
  676. // <span class="icon-compare-full" data-icon="&#xe61e"><span>@icon-compare-full</span></span>
  677. // </li>
  678. // <li>
  679. // <span class="icon-comment" data-icon="&#xe620"><span>@icon-comment</span></span>
  680. // </li>
  681. // <li>
  682. // <span class="icon-comment-reflected" data-icon="&#xe60e"><span>@icon-comment-reflected</span></span>
  683. // </li>
  684. // <li>
  685. // <span class="icon-up" data-icon="&#xe621"><span>@icon-up</span></span>
  686. // </li>
  687. // <li>
  688. // <span class="icon-down" data-icon="&#xe622"><span>@icon-down</span></span>
  689. // </li>
  690. // <li>
  691. // <span class="icon-arrow-up-thin" data-icon="&#xe623"><span>@icon-arrow-up-thin</span></span>
  692. // </li>
  693. // <li>
  694. // <span class="icon-arrow-right-thin" data-icon="&#xe624"><span>@icon-arrow-right-thin</span></span>
  695. // </li>
  696. // <li>
  697. // <span class="icon-arrow-left-thin" data-icon="&#xe625"><span>@icon-arrow-left-thin</span></span>
  698. // </li>
  699. // <li>
  700. // <span class="icon-arrow-down-thin" data-icon="&#xe626"><span>@icon-arrow-down-thin</span></span>
  701. // </li>
  702. // <li>
  703. // <span class="icon-arrow-left-thin" data-icon="&#xe628"><span>@icon-gift-registry</span></span>
  704. // </li>
  705. // <li>
  706. // <span class="icon-arrow-down-thin" data-icon="&#xe629"><span>@icon-present</span></span>
  707. // </li>
  708. // </ul>
  709. // ```
  710. .icons-image-list {
  711. list-style: none;
  712. padding: 0;
  713. li {
  714. float: left;
  715. width: 33%;
  716. > span {
  717. .lib-icon-image(@_icon-image: '@{baseDir}images/blank-theme-icons.png');
  718. }
  719. .icon-search {
  720. .lib-icon-sprite-position(0, 0);
  721. }
  722. .icon-cart {
  723. .lib-icon-sprite-position(1, 0);
  724. }
  725. .icon-arrow-down {
  726. .lib-icon-sprite-position(2, 0);
  727. }
  728. .icon-arrow-up {
  729. .lib-icon-sprite-position(3, 0);
  730. }
  731. .icon-grid {
  732. .lib-icon-sprite-position(4, 0);
  733. }
  734. .icon-list {
  735. .lib-icon-sprite-position(5, 0);
  736. }
  737. .icon-remove {
  738. .lib-icon-sprite-position(6, 0);
  739. }
  740. .icon-star {
  741. .lib-icon-sprite-position(7, 0);
  742. }
  743. .icon-pointer-down {
  744. .lib-icon-sprite-position(8, 0);
  745. }
  746. .icon-pointer-up {
  747. .lib-icon-sprite-position(9, 0);
  748. }
  749. .icon-pointer-left {
  750. .lib-icon-sprite-position(10, 0);
  751. }
  752. .icon-pointer-right {
  753. .lib-icon-sprite-position(11, 0);
  754. }
  755. .icon-compare-empty {
  756. .lib-icon-sprite-position(0, 1);
  757. }
  758. .icon-compare-full {
  759. .lib-icon-sprite-position(1, 1);
  760. }
  761. .icon-wishlist-empty {
  762. .lib-icon-sprite-position(2, 1);
  763. }
  764. .icon-wishlist-full {
  765. .lib-icon-sprite-position(3, 1);
  766. }
  767. .icon-update {
  768. .lib-icon-sprite-position(4, 1);
  769. }
  770. .icon-collapse {
  771. .lib-icon-sprite-position(5, 1);
  772. }
  773. .icon-expand {
  774. .lib-icon-sprite-position(6, 1);
  775. }
  776. .icon-menu {
  777. .lib-icon-sprite-position(7, 1);
  778. }
  779. .icon-prev {
  780. .lib-icon-sprite-position(8, 1);
  781. }
  782. .icon-next {
  783. .lib-icon-sprite-position(9, 1);
  784. }
  785. .icon-settings {
  786. .lib-icon-sprite-position(10, 1);
  787. }
  788. .icon-info {
  789. .lib-icon-sprite-position(11, 1);
  790. }
  791. .icon-checkmark {
  792. .lib-icon-sprite-position(0, 2);
  793. }
  794. .icon-calendar {
  795. .lib-icon-sprite-position(1, 2);
  796. }
  797. .icon-comment {
  798. .lib-icon-sprite-position(2, 2);
  799. }
  800. .icon-comment-reflected {
  801. .lib-icon-sprite-position(3, 2);
  802. }
  803. .icon-envelope {
  804. .lib-icon-sprite-position(4, 2);
  805. }
  806. .icon-warning {
  807. .lib-icon-sprite-position(5, 2);
  808. }
  809. .icon-trash {
  810. .lib-icon-sprite-position(6, 2);
  811. }
  812. .icon-flag {
  813. .lib-icon-sprite-position(7, 2);
  814. }
  815. .icon-location {
  816. .lib-icon-sprite-position(8, 2);
  817. }
  818. .icon-up {
  819. .lib-icon-sprite-position(9, 2);
  820. }
  821. .icon-down {
  822. .lib-icon-sprite-position(10, 2);
  823. }
  824. }
  825. }
  826. @icon-wishlist-full: '\e600';
  827. @icon-wishlist-empty: '\e601';
  828. @icon-warning: '\e602';
  829. @icon-update: '\e603';
  830. @icon-trash: '\e604';
  831. @icon-star: '\e605';
  832. @icon-settings: '\e606';
  833. @icon-pointer-down: '\e607';
  834. @icon-next: '\e608';
  835. @icon-menu: '\e609';
  836. @icon-location: '\e60a';
  837. @icon-list: '\e60b';
  838. @icon-info: '\e60c';
  839. @icon-grid: '\e60d';
  840. @icon-comment-reflected: '\e60e';
  841. @icon-collapse: '\e60f';
  842. @icon-checkmark: '\e610';
  843. @icon-cart: '\e611';
  844. @icon-calendar: '\e612';
  845. @icon-arrow-up: '\e613';
  846. @icon-arrow-down: '\e614';
  847. @icon-search: '\e615';
  848. @icon-remove: '\e616';
  849. @icon-prev: '\e617';
  850. @icon-pointer-up: '\e618';
  851. @icon-pointer-right: '\e619';
  852. @icon-pointer-left: '\e61a';
  853. @icon-flag: '\e61b';
  854. @icon-expand: '\e61c';
  855. @icon-envelope: '\e61d';
  856. @icon-compare-full: '\e61e';
  857. @icon-compare-empty: '\e61f';
  858. @icon-comment: '\e620';
  859. @icon-up: '\e621';
  860. @icon-down: '\e622';
  861. @icon-arrow-up-thin: '\e623';
  862. @icon-arrow-right-thin: '\e624';
  863. @icon-arrow-left-thin: '\e625';
  864. @icon-arrow-down-thin: '\e626';
  865. .icons-font-list {
  866. list-style: none;
  867. padding: 0;
  868. li {
  869. float: left;
  870. width: 25%;
  871. margin-bottom: 35px;
  872. text-align: center;
  873. > span {
  874. .lib-icon-font('', @_icon-font-size: 34px);
  875. &:before {
  876. content: attr(data-icon);
  877. margin: 0 auto;
  878. display: block;
  879. }
  880. }
  881. }
  882. }