summaryrefslogtreecommitdiff
path: root/css/components/nestable.css
blob: 946dfa6f7de8f5112ed0e921535ae38189203743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*! UIkit 2.26.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/* ========================================================================
   Component: Nestable
 ========================================================================== */
.uk-nestable {
  padding: 0;
  list-style: none;
}
/*
 * Disables the default callout shown when you touch and hold a touch target
 * Currently only works in Webkit
 */
.uk-nestable a,
.uk-nestable img {
  -webkit-touch-callout: none;
}
/* Sub-object `uk-nestable-list`
 ========================================================================== */
.uk-nestable-list {
  margin: 0;
  padding-left: 40px;
  list-style: none;
}
/* Sub-modifier `uk-nestable-item`
 ========================================================================== */
/*
 * 1. Deactivate browser touch actions in IE11
 */
.uk-nestable-item {
  /* 1 */
  touch-action: none;
}
.uk-nestable-item + .uk-nestable-item {
  margin-top: 10px;
}
.uk-nestable-list:not(.uk-nestable-dragged) > .uk-nestable-item:first-child {
  margin-top: 10px;
}
/* Sub-modifier `uk-nestable-dragged`
 ========================================================================== */
/*
 * 1. Reset style
 */
.uk-nestable-dragged {
  position: absolute;
  z-index: 1050;
  pointer-events: none;
  /* 1 */
  padding-left: 0;
}
/* Sub-modifier `uk-nestable-placeholder`
 ========================================================================== */
.uk-nestable-placeholder {
  position: relative;
}
.uk-nestable-placeholder > * {
  opacity: 0;
}
.uk-nestable-placeholder:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 1px dashed #ddd;
  opacity: 1;
}
/* Empty List
 ========================================================================== */
.uk-nestable-empty {
  min-height: 30px;
}
/* Sub-object `uk-nestable-handle`
 ========================================================================== */
/*
 * Deactivate browser touch actions in IE11
 */
.uk-nestable-handle {
  touch-action: none;
}
/* Hover */
.uk-nestable-handle:hover {
  cursor: move;
}
/* Sub-object `uk-nestable-moving`
 ========================================================================== */
.uk-nestable-moving,
.uk-nestable-moving * {
  cursor: move;
}
/* Fixes dragging items over iframes */
.uk-nestable-moving iframe {
  pointer-events: none;
}
/* [data-nestable-action='toggle']
 ========================================================================== */
/*
 * 1. Makes text unselectable. Happens if double clicked by mistake
 */
[data-nestable-action='toggle'] {
  cursor: pointer;
  /* 1 */
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Sub-object `.uk-nestable-toggle`
 ========================================================================== */
.uk-nestable-toggle {
  display: inline-block;
  visibility: hidden;
}
.uk-nestable-toggle:after {
  content: "\f147";
  font-family: FontAwesome;
}
.uk-parent > :not(.uk-nestable-list) .uk-nestable-toggle {
  visibility: visible;
}
/*
 * Collapsed
 */
.uk-collapsed .uk-nestable-list {
  display: none;
}
.uk-collapsed .uk-nestable-toggle:after {
  content: "\f196";
}
/* Sub-object `uk-nestable-panel`
 ========================================================================== */
.uk-nestable-panel {
  padding: 5px;
  background: #f5f5f5;
}