initial commit
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
const gulp = require('gulp');
|
||||
const uglify = require("gulp-uglify");
|
||||
const cleanCss = require("gulp-clean-css");
|
||||
const eslint = require("gulp-eslint");
|
||||
const rename = require("gulp-rename");
|
||||
const sass = require('gulp-sass');
|
||||
|
||||
const file = 'jquery.nestable';
|
||||
|
||||
// compress js
|
||||
gulp.task('js', function () {
|
||||
gulp.src(file + '.js')
|
||||
.pipe(uglify())
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
|
||||
// compile SASS to CSS
|
||||
gulp.task('sass', function () {
|
||||
return gulp.src(file + '.scss')
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
// compress css
|
||||
gulp.task('css', ['sass'], function () {
|
||||
gulp.src(file + '.css')
|
||||
.pipe(cleanCss())
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
|
||||
gulp.task('test', function () {
|
||||
return gulp.src([file + '.js'])
|
||||
.pipe(eslint())
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
});
|
||||
|
||||
// build assets
|
||||
gulp.task('default', ['js', 'css']);
|
||||
+1087
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+203
@@ -0,0 +1,203 @@
|
||||
@charset "utf-8";
|
||||
|
||||
.dd {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 22px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.dd-list {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.dd-list .dd-list {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.dd-item, .dd-empty, .dd-placeholder {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-height: 22px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.dd-handle {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
height: 34px;
|
||||
padding: 6px 10px;
|
||||
margin: 5px 0;
|
||||
text-decoration: none;
|
||||
background: #fff;
|
||||
border: 1px solid #e4eaec;
|
||||
border-radius: .215rem;
|
||||
}
|
||||
|
||||
.dd-handle:hover {
|
||||
color: #589ffc;
|
||||
background: #f3f7f9;
|
||||
}
|
||||
|
||||
.dd-content {
|
||||
padding: 10px;
|
||||
margin-top: -5px;
|
||||
background: #fff;
|
||||
border: 1px solid #e4eaec;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.dd-item > button {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 25px;
|
||||
height: 22px;
|
||||
padding: 0;
|
||||
margin: 6px 0;
|
||||
overflow: hidden;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
text-indent: 100%;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dd-item > button:before {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.dd-item > button.dd-expand:before {
|
||||
content: "+";
|
||||
}
|
||||
|
||||
.dd-item > button.dd-collapse:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
.dd-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dd-collapsed .dd-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dd-collapsed .dd-collapse {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dd-collapsed .dd-expand {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dd-dragel {
|
||||
position: absolute;
|
||||
z-index: 1300;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.dd-dragel > .dd-item .dd-handle {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.dd-dragel .dd-handle {
|
||||
box-shadow: 1px 3px 5px 0 rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
.dd-empty, .dd-placeholder {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.dd-placeholder {
|
||||
min-height: 30px;
|
||||
background: #f3f7f9;
|
||||
border: 1px dashed #e4eaec;
|
||||
}
|
||||
|
||||
.dd-empty {
|
||||
min-height: 100px;
|
||||
background-color: #f3f7f9;
|
||||
background-position: 0 0, 30px 30px;
|
||||
background-size: 60px 60px;
|
||||
border: 1px dashed #e4eaec;
|
||||
}
|
||||
|
||||
.dd-item-alt .dd-handle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
margin: 0;
|
||||
font-family: "Web Icons";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
-webkit-transform: translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
text-rendering: auto;
|
||||
speak: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.dd-item-alt .dd-handle:before {
|
||||
position: relative;
|
||||
top: auto;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.dd-item-alt .dd-handle:hover {
|
||||
background: #f3f7f9;
|
||||
}
|
||||
|
||||
.dd-item-alt > button {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.dd-item-alt .dd-content {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
height: 34px;
|
||||
padding: 6px 10px 6px 40px;
|
||||
margin: 5px 0;
|
||||
text-decoration: none;
|
||||
background: #fff;
|
||||
border: 1px solid #e4eaec;
|
||||
border-radius: .215rem;
|
||||
}
|
||||
|
||||
.dd-item-alt .dd-content:hover {
|
||||
color: #589ffc;
|
||||
background: #f3f7f9;
|
||||
}
|
||||
|
||||
.dd-item-with-media .dd-handle {
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.dd-item-with-media .dd-content {
|
||||
border-bottom-right-radius: .215rem;
|
||||
border-bottom-left-radius: .215rem;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
@charset "utf-8";.dd{position:relative;display:block;padding:0;margin:0;line-height:22px;list-style:none}.dd-list{position:relative;display:block;padding:0;margin:0;list-style:none}.dd-list .dd-list{padding-left:30px}.dd-empty,.dd-item,.dd-placeholder{position:relative;display:block;min-height:22px;padding:0;margin:0;line-height:22px}.dd-handle{box-sizing:border-box;display:block;height:34px;padding:6px 10px;margin:5px 0;text-decoration:none;background:#fff;border:1px solid #e4eaec;border-radius:.215rem}.dd-handle:hover{color:#589ffc;background:#f3f7f9}.dd-content{padding:10px;margin-top:-5px;background:#fff;border:1px solid #e4eaec;border-top:0}.dd-item>button{position:relative;float:left;width:25px;height:22px;padding:0;margin:6px 0;overflow:hidden;line-height:1;text-align:center;text-indent:100%;white-space:nowrap;cursor:pointer;background:0 0;border:0}.dd-item>button:before{position:absolute;display:block;width:100%;text-align:center;text-indent:0}.dd-item>button.dd-expand:before{content:"+"}.dd-item>button.dd-collapse:before{content:"-"}.dd-expand{display:none}.dd-collapsed .dd-list{display:none}.dd-collapsed .dd-collapse{display:none}.dd-collapsed .dd-expand{display:block}.dd-dragel{position:absolute;z-index:1300;pointer-events:none}.dd-dragel>.dd-item .dd-handle{margin-top:0}.dd-dragel .dd-handle{box-shadow:1px 3px 5px 0 rgba(0,0,0,.1)}.dd-empty,.dd-placeholder{box-sizing:border-box;padding:0;margin:5px 0}.dd-placeholder{min-height:30px;background:#f3f7f9;border:1px dashed #e4eaec}.dd-empty{min-height:100px;background-color:#f3f7f9;background-position:0 0,30px 30px;background-size:60px 60px;border:1px dashed #e4eaec}.dd-item-alt .dd-handle{position:absolute;top:0;left:0;display:inline-block;width:30px;margin:0;font-family:"Web Icons";font-style:normal;font-weight:400;text-align:center;cursor:pointer;background:0 0;border-top-right-radius:0;border-bottom-right-radius:0;-webkit-transform:translate(0,0);transform:translate(0,0);text-rendering:auto;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dd-item-alt .dd-handle:before{position:relative;top:auto;content:""}.dd-item-alt .dd-handle:hover{background:#f3f7f9}.dd-item-alt>button{margin-left:30px}.dd-item-alt .dd-content{box-sizing:border-box;display:block;height:34px;padding:6px 10px 6px 40px;margin:5px 0;text-decoration:none;background:#fff;border:1px solid #e4eaec;border-radius:.215rem}.dd-item-alt .dd-content:hover{color:#589ffc;background:#f3f7f9}.dd-item-with-media .dd-handle{border-bottom-right-radius:0;border-bottom-left-radius:0}.dd-item-with-media .dd-content{border-bottom-right-radius:.215rem;border-bottom-left-radius:.215rem}
|
||||
Reference in New Issue
Block a user