basic.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * The MIT License
  3. * Copyright (c) 2012 Matias Meno <m@tias.me>
  4. */
  5. // Permission is hereby granted, free of charge, to any person obtaining a copy of
  6. // this software and associated documentation files (the "Software"), to deal in
  7. // the Software without restriction, including without limitation the rights to
  8. // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  9. // of the Software, and to permit persons to whom the Software is furnished to do
  10. // so, subject to the following conditions:
  11. // The above copyright notice and this permission notice shall be included in all
  12. // copies or substantial portions of the Software.
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  19. // SOFTWARE.
  20. .dropzone, .dropzone * {
  21. box-sizing: border-box;
  22. }
  23. .dropzone {
  24. position: relative;
  25. .dz-preview {
  26. position: relative;
  27. display: inline-block;
  28. width: 120px;
  29. margin: 0.5em;
  30. .dz-progress {
  31. display: block;
  32. height: 15px;
  33. border: 1px solid #aaa;
  34. .dz-upload {
  35. display: block;
  36. height: 100%;
  37. width: 0;
  38. background: green;
  39. }
  40. }
  41. .dz-error-message {
  42. color: red;
  43. display: none;
  44. }
  45. &.dz-error {
  46. .dz-error-message, .dz-error-mark {
  47. display: block;
  48. }
  49. }
  50. &.dz-success {
  51. .dz-success-mark {
  52. display: block;
  53. }
  54. }
  55. .dz-error-mark, .dz-success-mark {
  56. position: absolute;
  57. display: none;
  58. left: 30px;
  59. top: 30px;
  60. width: 54px;
  61. height: 58px;
  62. left: 50%;
  63. margin-left: -(54px/2);
  64. }
  65. }
  66. }