Skip to content

Commit 17fc308

Browse files
committed
Merge pull request django-cms#623 from divio/feature/drag-and-drop-widget-upload
drag and drop widget upload
2 parents 09e30b1 + f4e9465 commit 17fc308

File tree

14 files changed

+684
-87
lines changed

14 files changed

+684
-87
lines changed

filer/private/sass/layout/_all.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
@import "old";
44
@import "main";
55
@import "modal";
6+
@import "drag-and-drop";
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.dropzone {
2+
border-radius: $border-radius-base;
3+
border: solid 1px $gray-lighter;
4+
background-color: $gray-lightest;
5+
&.dz-drag-hover {
6+
border: solid 1px $color-primary !important;
7+
}
8+
.dz-message {
9+
color: $gray;
10+
float: right;
11+
width: 85%;
12+
margin: 40px 0 0;
13+
}
14+
.icon {
15+
color: $gray;
16+
margin-right: 10px;
17+
}
18+
.fileUpload {
19+
position: relative;
20+
overflow: hidden;
21+
margin: 40px 0 0;
22+
&.fileUpload-btn {
23+
@include button-variant($btn-action-color, $btn-action-bgcolor, $btn-action-border, true);
24+
}
25+
}
26+
.fileUpload input.upload {
27+
position: absolute;
28+
top: 0;
29+
right: 0;
30+
margin: 0;
31+
padding: 0;
32+
font-size: 20px;
33+
cursor: pointer;
34+
opacity: 0;
35+
}
36+
}

filer/private/sass/libs/_all.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
@import "bootstrap.custom.min";
44
@import "font-awesome.min";
5+
@import "dropzone";

0 commit comments

Comments
 (0)