iconpicker.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /* Icon Picker by QueryLoop
  2. * Author: @eliorivero
  3. * URL: http://queryloop.com/
  4. * License: GPLv2
  5. */
  6. .icon-set {
  7. display: none;
  8. background: #fff;
  9. overflow-y: auto;
  10. -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  11. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  12. }
  13. .icon-set ul {
  14. list-style: none;
  15. padding: 0;
  16. margin: 0;
  17. }
  18. .icon-set li {
  19. display: inline-block;
  20. cursor: pointer;
  21. padding: 8px;
  22. margin: 0 0 5px;
  23. width: 48px;
  24. height: 48px;
  25. font-size: 24px;
  26. text-align: center;
  27. }
  28. .icon-set li:hover:before, .icon-set .icon-selected:before {
  29. font-size: 32px;
  30. position: relative;
  31. top: 5px;
  32. line-height: 1px;
  33. width: 32px;
  34. display: inline-block;
  35. }
  36. .icon-set.large li {
  37. width: 32px;
  38. height: 32px;
  39. font-size: 32px;
  40. }
  41. .icon-set.large li:hover:before, .icon-set.large .icon-selected:before {
  42. font-size: 48px;
  43. width: 48px;
  44. line-height: 24px;
  45. }
  46. .icon-highlight {
  47. background: #00a6cf;
  48. color: #fff;
  49. }
  50. .dialog {
  51. display: block;
  52. margin: 20px 0 0;
  53. position: fixed;
  54. right: 30%;
  55. bottom: 30%;
  56. width: 40%;
  57. height: 40%;
  58. max-height: 315px;
  59. z-index: 19998;
  60. visibility:hidden;
  61. opacity: 0;
  62. -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  63. box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  64. -webkit-transform: scale(0.7) translateZ(0);
  65. -ms-transform: scale(0.7) translateZ(0);
  66. transform: scale(0.7) translateZ(0);
  67. -webkit-transition: all 0.2s;
  68. transition: all 0.2s;
  69. }
  70. .dialog-open {
  71. padding: 10px;
  72. visibility:visible;
  73. -webkit-transform: scale(1);
  74. -ms-transform: scale(1);
  75. transform: scale(1);
  76. opacity: 1;
  77. }
  78. .icon-set-wrap {
  79. position: relative;
  80. }
  81. .ip-inline {
  82. display: block;
  83. width: 276px;
  84. height: 0;
  85. opacity: 0;
  86. visibility:hidden;
  87. -webkit-transform: scaleX(0.5) rotateX(90deg);
  88. -ms-transform: scaleX(0.5) rotateX(90deg);
  89. transform: scaleX(0.5) rotateX(90deg);
  90. -webkit-transform-style: preserve-3d;
  91. transform-style: preserve-3d;
  92. -webkit-transform-origin: 50% 0;
  93. transform-origin: 50% 0;
  94. -webkit-transition: transform 0.3s ease-out;
  95. transition: transform 0.3s ease-out;
  96. }
  97. .ip-inline-open {
  98. padding: 10px;
  99. border: 1px solid #eee;
  100. height: auto;
  101. visibility:visible;
  102. -webkit-transform: scaleX(1) rotateY(0deg);
  103. -ms-transform: scaleX(1) rotateY(0deg);
  104. transform: scaleX(1) rotateY(0deg);
  105. opacity: 1;
  106. }
  107. .dialog, .icon-picker-close {
  108. top: 30%;
  109. left: 30%;
  110. }
  111. .icon-picker-close {
  112. opacity: 0;
  113. visibility: hidden;
  114. display: block;
  115. width: 20px;
  116. height: 20px;
  117. color: #fff;
  118. background: #333;
  119. font-size: 19px;
  120. margin: 30px 0 0 20px;
  121. position: fixed;
  122. z-index: 19999;
  123. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  124. box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  125. -webkit-transition: all 0.2s;
  126. transition: all 0.2s;
  127. }
  128. .icon-picker-close:after {
  129. content: "\00D7";
  130. width: 20px;
  131. display: block;
  132. position: absolute;
  133. text-align: center;
  134. }
  135. .icon-picker-overlay {
  136. opacity: 0;
  137. visibility: hidden;
  138. background: #222;
  139. background: rgba(0, 0, 0, 0.5);
  140. position: fixed;
  141. top: 0;
  142. left: 0;
  143. width: 100%;
  144. height: 100%;
  145. z-index: 19997;
  146. -webkit-transition: all 0.2s;
  147. transition: all 0.2s;
  148. }
  149. .icon-picker-close.make-visible {
  150. margin: 10px 0 0 -10px;
  151. }
  152. .ip-inline .icon-picker-close {
  153. position: absolute;
  154. z-index: 8;
  155. top: 0;
  156. right: 0;
  157. left: auto;
  158. opacity: 1;
  159. visibility: visible;
  160. margin: 0;
  161. }
  162. .make-visible {
  163. visibility: visible;
  164. opacity: 1;
  165. }
  166. .icon-selected {
  167. background: #349886;
  168. color: #fff;
  169. }
  170. .icon-preview {
  171. display: none;
  172. margin: 10px 0;
  173. position: relative;
  174. }
  175. .icon-preview-on {
  176. display: inline-block;
  177. }
  178. .icon-preview i {
  179. width: 48px;
  180. height: 48px;
  181. text-align: center;
  182. border: 1px solid #d5d5d5;
  183. border-radius: 3px;
  184. background: #fff;
  185. }
  186. .icon-preview i:before {
  187. font-size: 32px;
  188. line-height: 48px;
  189. }
  190. .remove-icon {
  191. background-color: #00a6cf;
  192. color: #fff !important;
  193. border-radius: 3px;
  194. transition: background .2s ease-out;
  195. position: absolute;
  196. top: -10px;
  197. right: -10px;
  198. }
  199. .remove-icon:hover {
  200. color: #fff !important;
  201. background-color: #00a6cf;
  202. cursor: pointer;
  203. }
  204. .remove-times {
  205. width: 20px;
  206. height: 20px;
  207. font-size: 21px;
  208. text-align: center;
  209. line-height: 99%;
  210. }
  211. .remove-times:after {
  212. content: "\00D7";
  213. display: block;
  214. line-height: 15px;
  215. }
  216. .launch-icons {
  217. margin: 5px 3px 0 0;
  218. }
  219. .launch-icons:active {
  220. margin: 5px 3px 0 0;
  221. }