Add autoprefixer
Mostly for flexbox, including leaflet-sidebar-v2 custom fork. Unsure about Browsers to support, browserslist is a combination of: - 'defaults', see https://github.com/ai/browserslist#queries - "support all of the browsers that can display flexbox" https://davidwalsh.name/goodbye-vendor-prefixes
This commit is contained in:
parent
093db8bfe2
commit
ed07a6c3c3
3 changed files with 6 additions and 21 deletions
|
|
@ -15,30 +15,18 @@ body, #content {
|
||||||
.dataTables_wrapper,
|
.dataTables_wrapper,
|
||||||
.dataTables_scroll,
|
.dataTables_scroll,
|
||||||
.dataTables_scrollBody {
|
.dataTables_scrollBody {
|
||||||
display: -webkit-box;
|
|
||||||
display: -moz-box;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexrow {
|
.flexrow {
|
||||||
display: -webkit-box;
|
|
||||||
display: -moz-box;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexgrow {
|
.flexgrow {
|
||||||
-webkit-box-flex: 1;
|
|
||||||
-moz-box-flex: 1;
|
|
||||||
-webkit-flex: 1;
|
|
||||||
-ms-flex: 1;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -47,18 +35,10 @@ body, #content {
|
||||||
.dataTables_scroll,
|
.dataTables_scroll,
|
||||||
.dataTables_scrollBody,
|
.dataTables_scrollBody,
|
||||||
table.dataTable {
|
table.dataTable {
|
||||||
-webkit-box-flex: auto;
|
|
||||||
-moz-box-flex: auto;
|
|
||||||
-webkit-flex: auto;
|
|
||||||
-ms-flex: auto;
|
|
||||||
flex: auto;
|
flex: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
-webkit-box-flex: none;
|
|
||||||
-moz-box-flex: none;
|
|
||||||
-webkit-flex: none;
|
|
||||||
-ms-flex: none;
|
|
||||||
flex: none;
|
flex: none;
|
||||||
|
|
||||||
background-color: #f7f7f9;
|
background-color: #f7f7f9;
|
||||||
|
|
@ -153,7 +133,6 @@ footer {
|
||||||
https://css-tricks.com/svg-line-animation-works/
|
https://css-tricks.com/svg-line-animation-works/
|
||||||
*/
|
*/
|
||||||
.loading-trailer {
|
.loading-trailer {
|
||||||
-webkit-animation: dash 0.4s linear infinite;
|
|
||||||
animation: dash 0.4s linear infinite;
|
animation: dash 0.4s linear infinite;
|
||||||
}
|
}
|
||||||
@-webkit-keyframes dash {
|
@-webkit-keyframes dash {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ var gulp = require('gulp');
|
||||||
var concat = require('gulp-concat');
|
var concat = require('gulp-concat');
|
||||||
var concatCss = require('gulp-concat-css');
|
var concatCss = require('gulp-concat-css');
|
||||||
var minifyCss = require('gulp-minify-css');
|
var minifyCss = require('gulp-minify-css');
|
||||||
|
var postcss = require('gulp-postcss');
|
||||||
|
var autoprefixer = require('autoprefixer');
|
||||||
var uglify = require('gulp-uglify');
|
var uglify = require('gulp-uglify');
|
||||||
var sourcemaps = require('gulp-sourcemaps');
|
var sourcemaps = require('gulp-sourcemaps');
|
||||||
var gulpDebug = require('gulp-debug');
|
var gulpDebug = require('gulp-debug');
|
||||||
|
|
@ -91,6 +93,7 @@ gulp.task('styles', function() {
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.pipe(concatCss(paths.destName + '.css'))
|
.pipe(concatCss(paths.destName + '.css'))
|
||||||
|
.pipe(postcss([ autoprefixer({ remove: false }) ]))
|
||||||
.pipe(minifyCss({
|
.pipe(minifyCss({
|
||||||
rebase: false
|
rebase: false
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
"url": "https://github.com/nrenner/brouter-web.git"
|
"url": "https://github.com/nrenner/brouter-web.git"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"browserslist": "> 0.5%, last 2 versions, Firefox ESR, not dead, Explorer >= 10, Android >= 4.1, Safari >= 7, iOS >= 7",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^8.1.0",
|
||||||
"del": "^1.1.1",
|
"del": "^1.1.1",
|
||||||
"gulp": "^3.8.11",
|
"gulp": "^3.8.11",
|
||||||
"gulp-bump": "^2.7.0",
|
"gulp-bump": "^2.7.0",
|
||||||
|
|
@ -25,6 +27,7 @@
|
||||||
"gulp-if": "^2.0.0",
|
"gulp-if": "^2.0.0",
|
||||||
"gulp-inject": "^1.2.0",
|
"gulp-inject": "^1.2.0",
|
||||||
"gulp-minify-css": "^1.0.0",
|
"gulp-minify-css": "^1.0.0",
|
||||||
|
"gulp-postcss": "^7.0.1",
|
||||||
"gulp-remember": "^0.3.0",
|
"gulp-remember": "^0.3.0",
|
||||||
"gulp-rename": "^1.2.0",
|
"gulp-rename": "^1.2.0",
|
||||||
"gulp-replace": "^0.5.4",
|
"gulp-replace": "^0.5.4",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue