spvld.css 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*表单验证:右侧提示信息*/
  2. /**给元素加上relative20180710**/
  3. .sp-relative{position:relative;}
  4. /*.sp-error{position: relative;line-height:18px; padding:4px 5px;white-space:nowrap;display:none;vertical-align:top;background: #d45252;border-radius:3px;color:#fff;font-size:12px;margin-left:5px; top:7px;}
  5. .sp-error:after, .sp-error:before {right: 100%;top: 50%;border: solid transparent;content: " "; height: 0;width: 0;position: absolute;pointer-events: none;}
  6. .sp-error:after {border-color: rgba(136, 183, 213, 0);border-right-color: #d45252;border-width: 6px;margin-top: -6px;}*/
  7. .sp-error{position: absolute;line-height:18px; white-space:nowrap;display:none;vertical-align:middle;background: #fff;color:#d45252;font-size:12px; top:8px; right:32px; }
  8. .sp-errorTip{border:1px solid #d45252 !important;}
  9. .sp-errorTip:hover{border:1px solid #d45252 !important;}/**验证错误后,边框变红**/
  10. .sp-errorTip:focus{border:1px solid #d45252 !important;box-shadow:0 0 2px rgba(212,82,82,0.8);-moz-box-shadow:0 0 2px rgba(212,82,82,0.8);-ms-box-shadow:0 0 2px rgba(212,82,82,0.8);-webkit-box-shadow:0 0 2px rgba(212,82,82,0.8);}
  11. .sp-requireLogo{background:url('images/input-require.png') no-repeat right center;}
  12. .sp-errorLogo{background:url('images/input-errorLogo.png') no-repeat right center;}
  13. .sp-rightLogo{background:url('images/input-rightLogo.png') no-repeat right center;}
  14. textarea.sp-errorLogo {background-position:right 7px;}
  15. textarea.sp-requireLogo {background-position:right 7px;}
  16. .sp-strength-tip{position: relative;line-height:18px; padding:4px 5px;white-space:nowrap;display:none;vertical-align:top; background: #59c153;border-radius:3px;color:#fff;font-size:12px;margin-left:5px; top:7px;}
  17. .sp-strength-tip:after, .sp-strength-tip:before {right: 100%;top: 50%;border: solid transparent;content: " "; height: 0;width: 0;position: absolute;pointer-events: none;}
  18. .sp-strength-tip:after {border-color: rgba(136, 183, 213, 0);border-right-color: #59c153;border-width: 6px;margin-top: -6px;}
  19. .sp-text-nowrap {white-space: nowrap;} /*禁止文字换行*/
  20. /*表单验证是需要用到的class名*/
  21. .sp-required{}
  22. .sp-telephone{}
  23. .sp-phone{}
  24. .sp-tel{}
  25. .sp-card{}
  26. .sp-email{}
  27. .sp-postcode{}
  28. .sp-fax{}
  29. .sp-num{}
  30. .sp-decimal{}
  31. .sp-url{}
  32. .sp-ip{}
  33. .sp-chinese{}
  34. .sp-username{}
  35. .sp-password{}
  36. /*日期控件加上必填class*/
  37. .sp-required-date{}
  38. /*end 表单验证:右侧提示信息*/
  39. .sp-grid-job .sp-error{top:6px; right:22px;}