demo.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. body {font: 100%/1.5 "Helvetica", "Arial", "Microsoft Yahei";}
  2. input[type="text"],
  3. input[type="password"],
  4. input[type="number"],
  5. select,
  6. textarea,
  7. [contenteditable] {
  8. width:250px; height:26px; line-height: 26px;
  9. padding: 0;
  10. padding-left: 5px;
  11. box-sizing: border-box;
  12. border: 1px solid #d9d9d9;
  13. border-top: 1px solid #c0c0c0;
  14. box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  15. }
  16. input[type="text"]:focus,
  17. input[type="password"]:focus,
  18. input[type="number"]:focus,
  19. select:focus,
  20. textarea:focus,
  21. [contenteditable]:focus {
  22. outline: none;
  23. border-color: #1E90FF;
  24. box-shadow: 0 0 4px rgba(30,144,255,.5);
  25. }
  26. [contenteditable] {display: inline-block; overflow: hidden; white-space: nowrap;}
  27. .form {max-width:600px;margin: 40px 20px;}
  28. .form h3 {font-weight: 400; margin: 1.2em 0 .8em;}
  29. .form p {margin: .8em 0;}
  30. .form .note {color:#ccc; font-weight:200; font-size: .9em}
  31. .form-item {margin: .8em 0;}
  32. .form-item .label {display:block; margin:10px 0 2px; font-size:14px;}
  33. .form-item .n-invalid {border:1px solid #c00;}
  34. .form-item .n-invalid:focus {outline: none; border-color:#c00; box-shadow: 0 0 4px rgba(192,0,0,0.5);}
  35. .form-item button {padding:5px 20px;}
  36. .form-item .input-sm {width:120px;}