jquery.validator.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .n-inline-block,
  2. .nice-validator input,
  3. .nice-validator select,
  4. .nice-validator textarea,
  5. .nice-validator [contenteditable],
  6. .msg-wrap,
  7. .n-icon,
  8. .n-msg {
  9. display: inline-block;
  10. *display: inline;
  11. *zoom: 1;
  12. }
  13. .nice-validator .msg-container .msg-box {
  14. display: block;
  15. }
  16. .nice-validator .msg-container .msg-wrap {
  17. position: static;
  18. }
  19. .msg-box {
  20. position: relative;
  21. *zoom: 1;
  22. }
  23. .msg-wrap {
  24. position: relative;
  25. white-space: nowrap;
  26. line-height: 16px;
  27. font-size: 12px;
  28. }
  29. .msg-wrap,
  30. .n-icon,
  31. .n-msg {
  32. vertical-align: top;
  33. }
  34. .msg-box .msg-wrap .n-error,
  35. .msg-box .msg-wrap .n-ok,
  36. .msg-box .msg-wrap .n-tip {
  37. display: block;
  38. background: none;
  39. box-shadow: none;
  40. padding: 3px 2px;
  41. }
  42. .n-arrow {
  43. position: absolute;
  44. overflow: hidden;
  45. }
  46. .n-arrow b,
  47. .n-arrow i {
  48. position: absolute;
  49. left: 0;
  50. top: 0;
  51. border: 0;
  52. margin: 0;
  53. padding: 0;
  54. overflow: hidden;
  55. font-weight: 400;
  56. font-style: normal;
  57. font-size: 12px;
  58. font-family: serif;
  59. line-height: 14px;
  60. _line-height: 15px;
  61. }
  62. .n-arrow i {
  63. text-shadow: none;
  64. }
  65. .n-icon {
  66. width: 16px;
  67. height: 16px;
  68. overflow: hidden;
  69. background-repeat: no-repeat;
  70. }
  71. .n-msg {
  72. display: inline-block;
  73. *display: inline;
  74. *zoom: 1;
  75. margin-left: 1px;
  76. }
  77. .n-error {
  78. color: #c33;
  79. }
  80. .n-ok {
  81. color: #390;
  82. }
  83. .n-tip .n-msg,
  84. .n-loading {
  85. color: #808080;
  86. }
  87. .n-error .n-icon {
  88. background-position: 0 0;
  89. }
  90. .n-ok .n-icon {
  91. background-position: -16px 0;
  92. }
  93. .n-tip .n-icon {
  94. background-position: -32px 0;
  95. }
  96. .n-loading .n-icon {
  97. background: url("images/loading.gif") 0 center no-repeat !important;
  98. }
  99. .n-top,
  100. .n-right,
  101. .n-bottom,
  102. .n-left {
  103. display: inline-block;
  104. *display: inline;
  105. *zoom: 1;
  106. line-height: 0;
  107. vertical-align: top;
  108. outline: 0;
  109. }
  110. .n-top .n-arrow,
  111. .n-bottom .n-arrow {
  112. height: 6px;
  113. width: 12px;
  114. left: 8px;
  115. }
  116. .n-left .n-arrow,
  117. .n-right .n-arrow {
  118. width: 6px;
  119. height: 12px;
  120. top: 6px;
  121. }
  122. .n-top {
  123. vertical-align: top;
  124. }
  125. .n-top .msg-wrap {
  126. margin-bottom: 6px;
  127. }
  128. .n-top .n-arrow {
  129. bottom: -6px;
  130. }
  131. .n-top .n-arrow b {
  132. top: -6px;
  133. }
  134. .n-top .n-arrow i {
  135. top: -7px;
  136. }
  137. .n-bottom {
  138. vertical-align: bottom;
  139. }
  140. .n-bottom .msg-wrap {
  141. margin-top: 6px;
  142. }
  143. .n-bottom .n-arrow {
  144. top: -6px;
  145. }
  146. .n-bottom .n-arrow b {
  147. top: -1px;
  148. }
  149. .n-bottom .n-arrow i {
  150. top: 0;
  151. }
  152. .n-left .msg-wrap {
  153. right: 100%;
  154. margin-right: 6px;
  155. }
  156. .n-left .n-arrow {
  157. right: -6px;
  158. }
  159. .n-left .n-arrow b {
  160. left: -6px;
  161. }
  162. .n-left .n-arrow i {
  163. left: -7px;
  164. }
  165. .n-right .msg-wrap {
  166. margin-left: 6px;
  167. display: none;
  168. }
  169. .n-right .n-arrow {
  170. left: -6px;
  171. }
  172. .n-right .n-arrow b {
  173. left: 1px;
  174. }
  175. .n-right .n-arrow i {
  176. left: 2px;
  177. }
  178. /*********************
  179. * Themes
  180. *********************/
  181. .n-default .n-left,
  182. .n-default .n-right {
  183. margin-top: 5px;
  184. }
  185. .n-default .n-top .msg-wrap {
  186. bottom: 100%;
  187. }
  188. .n-default .n-bottom .msg-wrap {
  189. top: 100%;
  190. }
  191. .n-default .msg-wrap {
  192. position: absolute;
  193. z-index: 1;
  194. }
  195. .n-default .msg-wrap .n-icon {
  196. background-image: url("images/validator_default.png");
  197. }
  198. .n-default .n-tip .n-icon {
  199. display: none;
  200. }
  201. .n-simple .msg-wrap {
  202. position: absolute;
  203. z-index: 1;
  204. }
  205. .n-simple .msg-wrap .n-icon {
  206. background-image: url("images/validator_simple.png");
  207. }
  208. .n-simple .n-top .msg-wrap {
  209. bottom: 100%;
  210. }
  211. .n-simple .n-bottom .msg-wrap {
  212. top: 100%;
  213. }
  214. .n-simple .n-left,
  215. .n-simple .n-right {
  216. margin-top: 5px;
  217. }
  218. .n-simple .n-bottom .msg-wrap {
  219. margin-top: 3px;
  220. }
  221. .n-simple .n-tip .n-icon {
  222. display: none;
  223. }
  224. .n-yellow .msg-wrap {
  225. position: absolute;
  226. z-index: 1;
  227. padding: 4px 6px;
  228. font-size: 12px;
  229. border: 1px solid transparent;
  230. background-color: #fffcef;
  231. border-color: #ffbb76;
  232. color: #db7c22;
  233. box-shadow: 0 1px 3px #ccc;
  234. border-radius: 2px;
  235. }
  236. .n-yellow .msg-wrap .n-arrow b {
  237. color: #ffbb76;
  238. text-shadow: 0 0 2px #ccc;
  239. }
  240. .n-yellow .msg-wrap .n-arrow i {
  241. color: #fffcef;
  242. }
  243. .n-yellow .msg-wrap .n-icon {
  244. background-image: url("images/validator_simple.png");
  245. }
  246. .n-yellow .n-top .msg-wrap {
  247. bottom: 100%;
  248. }
  249. .n-yellow .n-bottom .msg-wrap {
  250. top: 100%;
  251. }
  252. .n-yellow .n-tip,
  253. .n-yellow .n-ok,
  254. .n-yellow .n-loading {
  255. background-color: #f8fdff;
  256. border-color: #ddd;
  257. color: #333;
  258. box-shadow: 0 1px 3px #ccc;
  259. }
  260. .n-yellow .n-tip .n-arrow b,
  261. .n-yellow .n-ok .n-arrow b,
  262. .n-yellow .n-loading .n-arrow b {
  263. color: #ddd;
  264. text-shadow: 0 0 2px #ccc;
  265. }
  266. .n-yellow .n-tip .n-arrow i,
  267. .n-yellow .n-ok .n-arrow i,
  268. .n-yellow .n-loading .n-arrow i {
  269. color: #f8fdff;
  270. }