form-styles.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .form-errors {
  2. background: #fdf7f7;
  3. color: #b52b27;
  4. padding: 0 5px;
  5. border-radius: 3px;
  6. margin-bottom: 10px;
  7. }
  8. .form-errors p {
  9. margin: 0;
  10. line-height: 2;
  11. }
  12. .form-field.has-errors .form-errors {
  13. margin-top: -5px;
  14. }
  15. .form-field.has-errors label {
  16. color: #b52b27;
  17. }
  18. .form-field.has-errors .form-input-wrapper input,
  19. .form-field.has-errors .form-input-wrapper select,
  20. .form-field.has-errors .form-input-wrapper textarea {
  21. border: 1px solid #d9534f;
  22. }
  23. .form-input-file.dropzone {
  24. position: relative;
  25. min-height: 70px;
  26. border-radius: 3px;
  27. margin-bottom: .85rem;
  28. border: 2px dashed #ccc;
  29. color: #aaa;
  30. padding: 0.5rem;
  31. }
  32. .form-input-file input {
  33. display: none;
  34. }
  35. .form-input-file .dz-default.dz-message {
  36. position: absolute;
  37. text-align: center;
  38. left: 0;
  39. right: 0;
  40. top: 50%;
  41. transform: translateY(-50%);
  42. margin: 0;
  43. }
  44. .form-input-file.dropzone .dz-preview {
  45. margin: 0.5rem;
  46. }
  47. .form-input-file.dropzone .dz-preview:hover {
  48. z-index: 2;
  49. }
  50. .form-input-file.dropzone .dz-preview .dz-error-message {
  51. min-width: 140px;
  52. width: auto;
  53. }
  54. .form-input-file.dropzone .dz-preview .dz-image,
  55. .form-input-file.dropzone .dz-preview.dz-file-preview .dz-image {
  56. border-radius: 3px;
  57. z-index: 1;
  58. }