UploadFile.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .upload {
  2. width: 100%;
  3. height: 30px;
  4. padding: 5px 10px;
  5. font-size: 12px;
  6. line-height: 1.5;
  7. border-radius: 3px;
  8. border: 1px solid #ddd;
  9. position: relative;
  10. }
  11. .upload.file-error {
  12. background: rgb(251, 227, 228);
  13. border: 1px solid #fbc2c4;
  14. color: #8a1f11;
  15. }
  16. .upload.file-success {
  17. border: 1px solid #A4E4B9;
  18. color: #3c3c3c;
  19. background: rgba(0, 128, 0,.1);
  20. }
  21. .file {
  22. position: absolute;
  23. right: 0;
  24. top: 0;
  25. height: 28px;
  26. border-radius: 0 3px 3px 0;
  27. background: #F5F5F5;
  28. border: 1px solid #ddd;
  29. color: #666;
  30. line-height: 28px;
  31. padding: 0 15px;
  32. overflow: hidden;
  33. cursor: pointer;
  34. }
  35. .file input {
  36. position: absolute;
  37. font-size: 100px;
  38. right: 0;
  39. top: 0;
  40. opacity: 0;
  41. }
  42. .file:hover {
  43. color: #777;
  44. text-decoration: none;
  45. background: #fff;
  46. }
  47. .upload label {
  48. position: absolute;
  49. right: 0;
  50. top: 0;
  51. height: 28px;
  52. border-radius: 0 3px 3px 0;
  53. background: #F5F5F5;
  54. border: 1px solid #ddd;
  55. color: #666;
  56. line-height: 28px;
  57. padding: 0 15px;
  58. }
  59. .upload label:hover, .upload label:active, .upload label:focus {
  60. color: #666;
  61. }