/** * jQuery Nestable */ .dd { position: relative; display: block; margin: 0; padding: 0; /* max-width: 600px; */ list-style: none; font-size: 13px; line-height: 20px; } .dd-list, .dd-list ol { display: block; position: relative; margin: 0; padding: 0; list-style: none; } .dd-list ol { padding-left: 30px; } .dd-item, .dd-placeholder { display: block; position: relative; margin: 0; padding: 0; min-height: 20px; font-size: 13px; line-height: 20px; } .dd-item .label { margin-right: 10px; } .dd-item img { display: inline-block; margin-left: 10px; } .dd-item > div { // position: relative } .dd-handle { display: block; position: absolute; top: 0; left: 0; bottom: 0; width: 30px; padding: 5px 10px; color: #333; text-decoration: none; font-weight: bold; border: 1px solid #ccc; background: #fafafa; background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%); background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%); background: linear-gradient(top, #fafafa 0%, #eee 100%); -webkit-border-radius: 3px; border-radius: 3px; box-sizing: border-box; -moz-box-sizing: border-box; cursor: move; } .dd-handle:hover { color: #2ea8e5; background: #fff; } .dd-item { margin-top: 5px } .dd-placeholder { margin: 5px 0; padding: 0; min-height: 30px; background: #f2fbff; border: 1px dashed #b6bcbf; &.mjs-nestedSortable-error { border: 1px solid red; } } .dd3-content { display: block; min-height: 30px; padding: 5px 10px 5px 40px; color: #333; text-decoration: none; font-weight: bold; border: 1px solid #ccc; background: #fafafa; background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%); background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%); background: linear-gradient(top, #fafafa 0%, #eee 100%); -webkit-border-radius: 3px; border-radius: 3px; box-sizing: border-box; -moz-box-sizing: border-box; } .dd3-content:hover { color: #2ea8e5; background: #fff; } .dd-dragel > .dd3-item > .dd3-content { margin: 0; } .dd3-item > button { margin-left: 30px; } .dd3-handle { position: absolute; margin: 0; left: 0; top: 0; cursor: pointer; width: 30px; text-indent: 100px; white-space: nowrap; overflow: hidden; border: 1px solid #aaa; background: #ddd; background: -webkit-linear-gradient(top, #ddd 0%, #bbb 100%); background: -moz-linear-gradient(top, #ddd 0%, #bbb 100%); background: linear-gradient(top, #ddd 0%, #bbb 100%); border-top-right-radius: 0; border-bottom-right-radius: 0; } .dd3-handle:before { content: '≡'; display: block; position: absolute; left: 0; top: 3px; width: 100%; text-align: center; text-indent: 0; color: #fff; font-size: 20px; font-weight: normal; } .dd3-handle:hover { background: #ddd; } .dd3-content .links { width: auto; } .dd3-content ul.inline.actions { margin: 0; padding: 0; list-style: none; display: block } .dd3-content ul.inline.actions li { display: inline-block } .dd3-content ul.inline.actions li a { width: 14px; height: 16px; text-decoration: none; } .dd3-content ul.inline.actions li a:hover { text-decoration: none; } .rails_admin_nestable { position: relative; margin-bottom: 100px; } .nestable-flash { position: fixed; top: 80px; width: auto; right: 20px; display: none; min-width: 150px; }