Commit a412766d authored by Tino Goratsch's avatar Tino Goratsch

run the autoprefixer as part of the scss gulp task

parent 704ce746
Pipeline #50969742 passed with stages
in 2 minutes and 39 seconds
.loading-layer{align-items:center;background:rgba(255,255,255,0.5);display:flex;justify-content:center;left:0;height:100%;opacity:0;overflow:hidden;position:fixed;top:0;transition:opacity 0.5s, visibility 0.5s;visibility:hidden;width:100%;z-index:999999}.loading-layer.loading-layer__active{opacity:1;visibility:visible}.loading-layer h1{width:100%;margin:0;font-size:26px;text-align:center}#toc{width:25%;margin:0 1rem 1rem 0;float:left}#page-break-link{margin:1rem 0 0 0}.cookie-consent{background:rgba(0,0,0,0.8);bottom:0;color:#fff;left:0;padding:10px 0;position:fixed;width:100%;z-index:999}.cookie-consent .cookie-consent__button{margin-left:15px}.cookie-consent .cookie-consent__body{overflow:hidden}#adm-list .navbar-text{margin:0}#adm-list .navbar-text a{color:#212529}#adm-list .navbar-text .btn-link{border:0;margin-left:.5rem;padding:0}#adm-list .navbar-text .fas{font-size:1.25rem}#adm-list a,#adm-list input,#adm-list button{margin:0 0 0 .5rem;float:right}.datagrid thead th{white-space:nowrap}.datagrid .datagrid-column__mass-action{width:5%}.datagrid .datagrid-column__max-width{width:100%}.datagrid .datagrid-column__date-range{width:22%}.datagrid th.datagrid-column__actions{text-indent:-9999em}.datagrid .datagrid-column__actions{width:7%}.datagrid .datagrid-column__action-buttons{visibility:hidden}.datagrid tr:hover .datagrid-column__action-buttons,.datagrid tr.row-selected .datagrid-column__action-buttons{visibility:visible}.datagrid-mass-actions{bottom:0;position:fixed;left:0;width:100%;z-index:1030}.control-label,.col-form-label{overflow:hidden;position:relative;text-overflow:ellipsis}.control-label.required:after,.col-form-label.required:after{color:#dc3545;content:' *';margin-left:5px;position:absolute}input[placeholder],textarea[placeholder]{font-style:italic}.pagination{margin-top:0}.blockquote p:last-of-type{margin-bottom:0}.datepicker .table tbody+tbody,.datepicker .table td,.datepicker .table th,.datepicker .table thead th{border:0}.modal.modal-static{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:1;display:block}
.loading-layer{-ms-flex-align:center;align-items:center;background:rgba(255,255,255,0.5);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;left:0;height:100%;opacity:0;overflow:hidden;position:fixed;top:0;transition:opacity 0.5s, visibility 0.5s;visibility:hidden;width:100%;z-index:999999}.loading-layer.loading-layer__active{opacity:1;visibility:visible}.loading-layer h1{width:100%;margin:0;font-size:26px;text-align:center}#toc{width:25%;margin:0 1rem 1rem 0;float:left}#page-break-link{margin:1rem 0 0 0}.cookie-consent{background:rgba(0,0,0,0.8);bottom:0;color:#fff;left:0;padding:10px 0;position:fixed;width:100%;z-index:999}.cookie-consent .cookie-consent__button{margin-left:15px}.cookie-consent .cookie-consent__body{overflow:hidden}#adm-list .navbar-text{margin:0}#adm-list .navbar-text a{color:#212529}#adm-list .navbar-text .btn-link{border:0;margin-left:.5rem;padding:0}#adm-list .navbar-text .fas{font-size:1.25rem}#adm-list a,#adm-list input,#adm-list button{margin:0 0 0 .5rem;float:right}.datagrid thead th{white-space:nowrap}.datagrid .datagrid-column__mass-action{width:5%}.datagrid .datagrid-column__max-width{width:100%}.datagrid .datagrid-column__date-range{width:22%}.datagrid th.datagrid-column__actions{text-indent:-9999em}.datagrid .datagrid-column__actions{width:7%}.datagrid .datagrid-column__action-buttons{visibility:hidden}.datagrid tr:hover .datagrid-column__action-buttons,.datagrid tr.row-selected .datagrid-column__action-buttons{visibility:visible}.datagrid-mass-actions{bottom:0;position:fixed;left:0;width:100%;z-index:1030}.control-label,.col-form-label{overflow:hidden;position:relative;text-overflow:ellipsis}.control-label.required:after,.col-form-label.required:after{color:#dc3545;content:' *';margin-left:5px;position:absolute}input[placeholder],textarea[placeholder]{font-style:italic}.pagination{margin-top:0}.blockquote p:last-of-type{margin-bottom:0}.datepicker .table tbody+tbody,.datepicker .table td,.datepicker .table th,.datepicker .table thead th{border:0}.modal.modal-static{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:1;display:block}
/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
module.exports = (gulp, plugins) => {
'use strict';
const autoprefixer = require('autoprefixer');
return () => {
return gulp
.src(
[
'./ACP3/Modules/*/*/Resources/Assets/css/style.css',
'./designs/*/*/Assets/css/*.css',
'./designs/**/Assets/css/*.css',
'./installation/design/Assets/css/*.css',
'./installation/Installer/Modules/*/Resources/Assets/css/style.css',
],
{base: './'}
)
.pipe(plugins.postcss([autoprefixer()]))
.pipe(plugins.plumber())
.pipe(gulp.dest('./'));
};
};
......@@ -6,8 +6,8 @@
module.exports = (gulp, plugins) => {
'use strict';
const autoprefixer = require('autoprefixer');
const sass = require('gulp-sass');
sass.compiler = require('node-sass');
return () => {
......@@ -24,7 +24,8 @@ module.exports = (gulp, plugins) => {
)
.pipe(plugins.plumber())
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(plugins.rename(function (path) {
.pipe(plugins.postcss([autoprefixer()]))
.pipe(plugins.rename((path) => {
path.dirname = path.dirname.substring(0, path.dirname.length - 4) + 'css';
path.basename += '.min';
}))
......
......@@ -15,8 +15,7 @@
gulp.task('copy', getTask('copy'));
gulp.task('bump-version', getTask('bump-version'));
gulp.task('autoprefixer', getTask('autoprefixer'));
gulp.task('scss', gulp.series(getTask('scss'), 'autoprefixer'));
gulp.task('scss', gulp.series(getTask('scss')));
gulp.task('watch', gulp.series('scss', getTask('watch')));
gulp.task('default', gulp.series('watch'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment