1
0

sprites.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. //
  2. // Sprites
  3. // --------------------------------------------------
  4. // ICONS
  5. // -----
  6. // All icons receive the styles of the <i> tag with a base class
  7. // of .i and are then given a unique class to add width, height,
  8. // and background-position. Your resulting HTML will look like
  9. // <i class="icon-inbox"></i>.
  10. // For the white version of the icons, just add the .icon-white class:
  11. // <i class="icon-inbox icon-white"></i>
  12. [class^="icon-"],
  13. [class*=" icon-"] {
  14. display: inline-block;
  15. width: 14px;
  16. height: 14px;
  17. .ie7-restore-right-whitespace();
  18. line-height: 14px;
  19. vertical-align: text-top;
  20. background-image: url("@{iconSpritePath}");
  21. background-position: 14px 14px;
  22. background-repeat: no-repeat;
  23. margin-top: 1px;
  24. }
  25. /* White icons with optional class, or on hover/focus/active states of certain elements */
  26. .icon-white,
  27. .nav-pills > .active > a > [class^="icon-"],
  28. .nav-pills > .active > a > [class*=" icon-"],
  29. .nav-list > .active > a > [class^="icon-"],
  30. .nav-list > .active > a > [class*=" icon-"],
  31. .navbar-inverse .nav > .active > a > [class^="icon-"],
  32. .navbar-inverse .nav > .active > a > [class*=" icon-"],
  33. .dropdown-menu > li > a:hover > [class^="icon-"],
  34. .dropdown-menu > li > a:focus > [class^="icon-"],
  35. .dropdown-menu > li > a:hover > [class*=" icon-"],
  36. .dropdown-menu > li > a:focus > [class*=" icon-"],
  37. .dropdown-menu > .active > a > [class^="icon-"],
  38. .dropdown-menu > .active > a > [class*=" icon-"],
  39. .dropdown-submenu:hover > a > [class^="icon-"],
  40. .dropdown-submenu:focus > a > [class^="icon-"],
  41. .dropdown-submenu:hover > a > [class*=" icon-"],
  42. .dropdown-submenu:focus > a > [class*=" icon-"] {
  43. background-image: url("@{iconWhiteSpritePath}");
  44. }
  45. .icon-glass { background-position: 0 0; }
  46. .icon-music { background-position: -24px 0; }
  47. .icon-search { background-position: -48px 0; }
  48. .icon-envelope { background-position: -72px 0; }
  49. .icon-heart { background-position: -96px 0; }
  50. .icon-star { background-position: -120px 0; }
  51. .icon-star-empty { background-position: -144px 0; }
  52. .icon-user { background-position: -168px 0; }
  53. .icon-film { background-position: -192px 0; }
  54. .icon-th-large { background-position: -216px 0; }
  55. .icon-th { background-position: -240px 0; }
  56. .icon-th-list { background-position: -264px 0; }
  57. .icon-ok { background-position: -288px 0; }
  58. .icon-remove { background-position: -312px 0; }
  59. .icon-zoom-in { background-position: -336px 0; }
  60. .icon-zoom-out { background-position: -360px 0; }
  61. .icon-off { background-position: -384px 0; }
  62. .icon-signal { background-position: -408px 0; }
  63. .icon-cog { background-position: -432px 0; }
  64. .icon-trash { background-position: -456px 0; }
  65. .icon-home { background-position: 0 -24px; }
  66. .icon-file { background-position: -24px -24px; }
  67. .icon-time { background-position: -48px -24px; }
  68. .icon-road { background-position: -72px -24px; }
  69. .icon-download-alt { background-position: -96px -24px; }
  70. .icon-download { background-position: -120px -24px; }
  71. .icon-upload { background-position: -144px -24px; }
  72. .icon-inbox { background-position: -168px -24px; }
  73. .icon-play-circle { background-position: -192px -24px; }
  74. .icon-repeat { background-position: -216px -24px; }
  75. .icon-refresh { background-position: -240px -24px; }
  76. .icon-list-alt { background-position: -264px -24px; }
  77. .icon-lock { background-position: -287px -24px; } // 1px off
  78. .icon-flag { background-position: -312px -24px; }
  79. .icon-headphones { background-position: -336px -24px; }
  80. .icon-volume-off { background-position: -360px -24px; }
  81. .icon-volume-down { background-position: -384px -24px; }
  82. .icon-volume-up { background-position: -408px -24px; }
  83. .icon-qrcode { background-position: -432px -24px; }
  84. .icon-barcode { background-position: -456px -24px; }
  85. .icon-tag { background-position: 0 -48px; }
  86. .icon-tags { background-position: -25px -48px; } // 1px off
  87. .icon-book { background-position: -48px -48px; }
  88. .icon-bookmark { background-position: -72px -48px; }
  89. .icon-print { background-position: -96px -48px; }
  90. .icon-camera { background-position: -120px -48px; }
  91. .icon-font { background-position: -144px -48px; }
  92. .icon-bold { background-position: -167px -48px; } // 1px off
  93. .icon-italic { background-position: -192px -48px; }
  94. .icon-text-height { background-position: -216px -48px; }
  95. .icon-text-width { background-position: -240px -48px; }
  96. .icon-align-left { background-position: -264px -48px; }
  97. .icon-align-center { background-position: -288px -48px; }
  98. .icon-align-right { background-position: -312px -48px; }
  99. .icon-align-justify { background-position: -336px -48px; }
  100. .icon-list { background-position: -360px -48px; }
  101. .icon-indent-left { background-position: -384px -48px; }
  102. .icon-indent-right { background-position: -408px -48px; }
  103. .icon-facetime-video { background-position: -432px -48px; }
  104. .icon-picture { background-position: -456px -48px; }
  105. .icon-pencil { background-position: 0 -72px; }
  106. .icon-map-marker { background-position: -24px -72px; }
  107. .icon-adjust { background-position: -48px -72px; }
  108. .icon-tint { background-position: -72px -72px; }
  109. .icon-edit { background-position: -96px -72px; }
  110. .icon-share { background-position: -120px -72px; }
  111. .icon-check { background-position: -144px -72px; }
  112. .icon-move { background-position: -168px -72px; }
  113. .icon-step-backward { background-position: -192px -72px; }
  114. .icon-fast-backward { background-position: -216px -72px; }
  115. .icon-backward { background-position: -240px -72px; }
  116. .icon-play { background-position: -264px -72px; }
  117. .icon-pause { background-position: -288px -72px; }
  118. .icon-stop { background-position: -312px -72px; }
  119. .icon-forward { background-position: -336px -72px; }
  120. .icon-fast-forward { background-position: -360px -72px; }
  121. .icon-step-forward { background-position: -384px -72px; }
  122. .icon-eject { background-position: -408px -72px; }
  123. .icon-chevron-left { background-position: -432px -72px; }
  124. .icon-chevron-right { background-position: -456px -72px; }
  125. .icon-plus-sign { background-position: 0 -96px; }
  126. .icon-minus-sign { background-position: -24px -96px; }
  127. .icon-remove-sign { background-position: -48px -96px; }
  128. .icon-ok-sign { background-position: -72px -96px; }
  129. .icon-question-sign { background-position: -96px -96px; }
  130. .icon-info-sign { background-position: -120px -96px; }
  131. .icon-screenshot { background-position: -144px -96px; }
  132. .icon-remove-circle { background-position: -168px -96px; }
  133. .icon-ok-circle { background-position: -192px -96px; }
  134. .icon-ban-circle { background-position: -216px -96px; }
  135. .icon-arrow-left { background-position: -240px -96px; }
  136. .icon-arrow-right { background-position: -264px -96px; }
  137. .icon-arrow-up { background-position: -289px -96px; } // 1px off
  138. .icon-arrow-down { background-position: -312px -96px; }
  139. .icon-share-alt { background-position: -336px -96px; }
  140. .icon-resize-full { background-position: -360px -96px; }
  141. .icon-resize-small { background-position: -384px -96px; }
  142. .icon-plus { background-position: -408px -96px; }
  143. .icon-minus { background-position: -433px -96px; }
  144. .icon-asterisk { background-position: -456px -96px; }
  145. .icon-exclamation-sign { background-position: 0 -120px; }
  146. .icon-gift { background-position: -24px -120px; }
  147. .icon-leaf { background-position: -48px -120px; }
  148. .icon-fire { background-position: -72px -120px; }
  149. .icon-eye-open { background-position: -96px -120px; }
  150. .icon-eye-close { background-position: -120px -120px; }
  151. .icon-warning-sign { background-position: -144px -120px; }
  152. .icon-plane { background-position: -168px -120px; }
  153. .icon-calendar { background-position: -192px -120px; }
  154. .icon-random { background-position: -216px -120px; width: 16px; }
  155. .icon-comment { background-position: -240px -120px; }
  156. .icon-magnet { background-position: -264px -120px; }
  157. .icon-chevron-up { background-position: -288px -120px; }
  158. .icon-chevron-down { background-position: -313px -119px; } // 1px, 1px off
  159. .icon-retweet { background-position: -336px -120px; }
  160. .icon-shopping-cart { background-position: -360px -120px; }
  161. .icon-folder-close { background-position: -384px -120px; width: 16px; }
  162. .icon-folder-open { background-position: -408px -120px; width: 16px; }
  163. .icon-resize-vertical { background-position: -432px -119px; } // 1px, 1px off
  164. .icon-resize-horizontal { background-position: -456px -118px; } // 1px, 2px off
  165. .icon-hdd { background-position: 0 -144px; }
  166. .icon-bullhorn { background-position: -24px -144px; }
  167. .icon-bell { background-position: -48px -144px; }
  168. .icon-certificate { background-position: -72px -144px; }
  169. .icon-thumbs-up { background-position: -96px -144px; }
  170. .icon-thumbs-down { background-position: -120px -144px; }
  171. .icon-hand-right { background-position: -144px -144px; }
  172. .icon-hand-left { background-position: -168px -144px; }
  173. .icon-hand-up { background-position: -192px -144px; }
  174. .icon-hand-down { background-position: -216px -144px; }
  175. .icon-circle-arrow-right { background-position: -240px -144px; }
  176. .icon-circle-arrow-left { background-position: -264px -144px; }
  177. .icon-circle-arrow-up { background-position: -288px -144px; }
  178. .icon-circle-arrow-down { background-position: -312px -144px; }
  179. .icon-globe { background-position: -336px -144px; }
  180. .icon-wrench { background-position: -360px -144px; }
  181. .icon-tasks { background-position: -384px -144px; }
  182. .icon-filter { background-position: -408px -144px; }
  183. .icon-briefcase { background-position: -432px -144px; }
  184. .icon-fullscreen { background-position: -456px -144px; }