You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .mk_dropzone {
  20. position: relative;
  21. &:before {
  22. display:flex;
  23. z-index: 1052;
  24. color: gray('700');
  25. flex-direction:row;
  26. align-items: center;
  27. justify-content: center;
  28. width: #{"calc(100% - 20px)"};
  29. height: #{"calc(100% - 20px)"};
  30. border: 2px dashed gray('700');
  31. @include gradient-y($white, gray('100'));
  32. @include o-position-absolute(10px, 0, 0, 10px);
  33. }
  34. &:after {
  35. display:flex;
  36. z-index: 1052;
  37. color: gray('700');
  38. flex-direction:row;
  39. align-items: center;
  40. justify-content: center;
  41. width: #{"calc(100% - 20px)"};
  42. height: #{"calc(100% - 10px)"};
  43. @include o-position-absolute(0, 0, 0, 0);
  44. }
  45. &.mk_dropzone_file {
  46. &:before {
  47. font-family: FontAwesome;
  48. text-decoration: inherit;
  49. font-style: normal;
  50. font-weight: normal;
  51. font-size: 15rem;
  52. content: "\f0ee";
  53. }
  54. &:after {
  55. padding-top: 18rem;
  56. font-size: 3rem;
  57. content: attr(data-dropzone-text);
  58. }
  59. }
  60. }