Skip to content

Commit ca0c8c0

Browse files
committed
Auto-cleant non-mixins added by bootstrap2.
1 parent c151eb5 commit ca0c8c0

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var fs = require('fs');
2+
13
module.exports = function(grunt) {
24
grunt.loadNpmTasks('grunt-bower-cli');
35
grunt.loadNpmTasks('grunt-contrib-uglify');
@@ -15,12 +17,20 @@ module.exports = function(grunt) {
1517
'concat:less_plugins',
1618
'concat:js',
1719
'recess',
20+
'clean_bootstrap2_css',
1821
'replace',
1922
'concat:js_standalone',
2023
'uglify',
2124
'clean:post',
2225
]);
2326

27+
grunt.registerTask('clean_bootstrap2_css', 'Cleans CSS rules ocurring before the header comment.', function() {
28+
var file = 'dist/css/selectize.bootstrap2.css';
29+
var source = fs.readFileSync(file, 'utf8');
30+
fs.writeFileSync(file, source.replace(/^(.|\s)+?\/\*/m, '/*'), 'utf8');
31+
grunt.log.writeln('Cleaned "' + file + '".');
32+
});
33+
2434
var files_js = [
2535
'src/contrib/*.js',
2636
'src/*.js',

dist/css/selectize.bootstrap2.css

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
.clearfix {
2-
*zoom: 1;
3-
}
4-
5-
.clearfix:before,
6-
.clearfix:after {
7-
display: table;
8-
line-height: 0;
9-
content: "";
10-
}
11-
12-
.clearfix:after {
13-
clear: both;
14-
}
15-
16-
.hide-text {
17-
font: 0/0 a;
18-
color: transparent;
19-
text-shadow: none;
20-
background-color: transparent;
21-
border: 0;
22-
}
23-
24-
.input-block-level {
25-
display: block;
26-
width: 100%;
27-
min-height: 30px;
28-
-webkit-box-sizing: border-box;
29-
-moz-box-sizing: border-box;
30-
box-sizing: border-box;
31-
}
32-
331
/**
342
* selectize.bootstrap2.css (v0.6.14) - Bootstrap 2 Theme
353
* Copyright (c) 2013 Brian Reavis & contributors

0 commit comments

Comments
 (0)