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.

63 lines
1.9 KiB

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