mirror of
https://github.com/QingdaoU/Spirit.git
synced 2024-12-29 07:51:56 +00:00
gulp refactor css
This commit is contained in:
parent
222f35b873
commit
5704ed4463
15
gulpfile.js
15
gulpfile.js
@ -22,26 +22,19 @@ gulp.task('_sass', function () {
|
||||
});
|
||||
|
||||
|
||||
gulp.task('_css-minify', ['_sass'], function () {
|
||||
return gulp.src(cssPath + 'styles.css')
|
||||
.pipe(minifyCss({compatibility: 'ie8'}))
|
||||
.pipe(rename({suffix: ".min"}))
|
||||
.pipe(gulp.dest(cssPath))
|
||||
});
|
||||
|
||||
|
||||
gulp.task('_css-concat', ['_css-minify'], function() {
|
||||
gulp.task('_css-minify', ['_sass'], function() {
|
||||
var path = cssPath + 'vendors/';
|
||||
return gulp.src([
|
||||
path + '*.min.css',
|
||||
cssPath + 'styles.min.css',
|
||||
cssPath + 'styles.css',
|
||||
])
|
||||
.pipe(minifyCss({compatibility: 'ie8', target: cssPath, relativeTo: cssPath}))
|
||||
.pipe(concat('styles.all.min.css'))
|
||||
.pipe(gulp.dest(cssPath))
|
||||
});
|
||||
|
||||
|
||||
gulp.task('css', ['_sass', '_css-minify', '_css-concat']);
|
||||
gulp.task('css', ['_sass', '_css-minify']);
|
||||
|
||||
|
||||
gulp.task('coffee', function() {
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,46 +0,0 @@
|
||||
.atwho-view {
|
||||
position:absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
margin-top: 18px;
|
||||
background: white;
|
||||
border: 1px solid #DDD;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 5px rgba(0,0,0,0.1);
|
||||
min-width: 120px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.atwho-view .cur {
|
||||
background: #3366FF;
|
||||
color: white;
|
||||
}
|
||||
.atwho-view .cur small {
|
||||
color: white;
|
||||
}
|
||||
.atwho-view strong {
|
||||
color: #3366FF;
|
||||
}
|
||||
.atwho-view .cur strong {
|
||||
color: white;
|
||||
font:bold;
|
||||
}
|
||||
.atwho-view ul {
|
||||
/* width: 100px; */
|
||||
list-style:none;
|
||||
padding:0;
|
||||
margin:auto;
|
||||
}
|
||||
.atwho-view ul li {
|
||||
display: block;
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #DDD;
|
||||
cursor: pointer;
|
||||
/* border-top: 1px solid #C8C8C8; */
|
||||
}
|
||||
.atwho-view small {
|
||||
font-size: smaller;
|
||||
color: #777;
|
||||
font-weight: normal;
|
||||
}
|
Loading…
Reference in New Issue
Block a user