_draggable.scss 1.8 KB
Newer Older
1
2
.drag-default-button {
    @extend .btn-default; // Button like styling for drag element
Pat Kira's avatar
Pat Kira committed
3
4
5
6
    background-color: #ffffff;
    border-color: $list-group-border;
    border-left: none; // Don't need side borders because the elements are inside panel
    border-right: none;
7
8
}

Naomi Guyer's avatar
Naomi Guyer committed
9
10
.btn-draggable .btn-group-vertical > .btn {
    @extend .icon;
Pat Kira's avatar
Pat Kira committed
11
    padding: 10px 12px 10px 35px;
Naomi Guyer's avatar
Naomi Guyer committed
12
13
14
15
    text-align: left;

    &:before {
        box-sizing: border-box;
Pat Kira's avatar
Pat Kira committed
16
17
        color: #777;
        opacity: 0.7;
Naomi Guyer's avatar
Naomi Guyer committed
18
19
20
21
22
        content: "\f047";
        display: block;
        height: 100%;
        left: 0px;
        line-height: 1.3em;
Pat Kira's avatar
Pat Kira committed
23
        padding: 10px 15px 5px;
Naomi Guyer's avatar
Naomi Guyer committed
24
25
26
27
        position: absolute;
        top: 0px;
        width: 22px;
    }
Pat Kira's avatar
Pat Kira committed
28
29
30
    &.checkbox {
        margin-top: -1px;
    }
Naomi Guyer's avatar
Naomi Guyer committed
31
32
    .checkbox {
        right: 10px;
Pat Kira's avatar
Pat Kira committed
33
        top: 10px;
Naomi Guyer's avatar
Naomi Guyer committed
34
35
36
37
38
39
40
41
42
43
44
    }
}
.draggable {
    z-index: 1;
    position: relative;
}

.droppable {
    z-index: 0;
    position: relative;
}
Pat Kira's avatar
Pat Kira committed
45

Naomi Guyer's avatar
Naomi Guyer committed
46
// This is a different case where we can use the icon itself
Pat Kira's avatar
Pat Kira committed
47
.icon-drag:before {
Naomi Guyer's avatar
Naomi Guyer committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
    display: block;
    float: left;
    margin-right: 10px;
    height: 100%;
    color: rgba(#555, 0.4);
}

.icon-drag-current {
    border: 1px dashed #ccc;
    min-width: 200px;
}


.ui-draggable-dragging {
    .blocktype-drag {
        overflow: hidden;
        min-width: 200px;
    }
    label {
        @include text-overflow;
        max-width: 80%;
        line-height: 1em;
        padding-top: 3px;
        margin:0;
    }
    .icon, .indicator {
        padding-top: 3px;
        vertical-align: top;
    }
    .indicator {
        padding-top: 5px;
    }
}

82
83
84
85
86
// Droppable area background indicator
.block-drop-on {
    background: darken($panel-default-heading-bg, 5%) ;
}

Naomi Guyer's avatar
Naomi Guyer committed
87
88
89
90
91
92
93
94
.drag-handle,
.ui-draggable {
  cursor: move;
}

.ui-sortable-helper {
    overflow: hidden;
}
Pat Kira's avatar
Pat Kira committed
95
96
97
98

.ui-sortable {
    list-style-type: none;
}