iconpicker.css 4.1 KB

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