MuK IT GmbH
6 years ago
4 changed files with 83 additions and 23 deletions
-
18muk_web_utils/static/src/js/core/dropzone.js
-
27muk_web_utils/static/src/js/fields/share.js
-
60muk_web_utils/static/src/scss/dropzone.scss
-
1muk_web_utils/template/assets.xml
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************************************** |
||||
|
* |
||||
|
* Copyright (C) 2017 MuK IT GmbH |
||||
|
* |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU Affero General Public License as |
||||
|
* published by the Free Software Foundation, either version 3 of the |
||||
|
* License, or (at your option) any later version. |
||||
|
* |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU Affero General Public License for more details. |
||||
|
* |
||||
|
* You should have received a copy of the GNU Affero General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
* |
||||
|
**********************************************************************************/ |
||||
|
|
||||
|
.mk_dropzone { |
||||
|
&:before { |
||||
|
display:flex; |
||||
|
z-index: 1052; |
||||
|
color: gray('700'); |
||||
|
flex-direction:row; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
width: #{"calc(100% - 20px)"}; |
||||
|
height: #{"calc(100% - 10px)"}; |
||||
|
border: 2px dashed gray('700'); |
||||
|
@include gradient-y($white, gray('100')); |
||||
|
@include o-position-absolute(0, 0, 0, 10px); |
||||
|
} |
||||
|
&:after { |
||||
|
display:flex; |
||||
|
z-index: 1052; |
||||
|
color: gray('700'); |
||||
|
flex-direction:row; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
width: #{"calc(100% - 20px)"}; |
||||
|
height: #{"calc(100% - 10px)"}; |
||||
|
@include o-position-absolute(0, 0, 0, 0); |
||||
|
} |
||||
|
&.mk_dropzone_file { |
||||
|
&:before { |
||||
|
font-family: FontAwesome; |
||||
|
text-decoration: inherit; |
||||
|
font-style: normal; |
||||
|
font-weight: normal; |
||||
|
font-size: 15rem; |
||||
|
content: "\f0ee"; |
||||
|
} |
||||
|
&:after { |
||||
|
padding-top: 18rem; |
||||
|
font-size: 3rem; |
||||
|
content: "Drop files here to upload!"; |
||||
|
} |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue