Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal 8 SASS Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Composer
plugin
Drupal 8 SASS Theme
Commits
e139088e
Commit
e139088e
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c2b79922
dabeba48
No related branches found
Branches containing commit
Tags
v0.6.1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/gulpfile.js.twig
+9
-6
9 additions, 6 deletions
templates/gulpfile.js.twig
templates/package.json
+6
-0
6 additions, 0 deletions
templates/package.json
templates/sass/_settings.scss.twig
+2
-2
2 additions, 2 deletions
templates/sass/_settings.scss.twig
with
17 additions
and
8 deletions
templates/gulpfile.js.twig
+
9
−
6
View file @
e139088e
// Run with "--env production" to get production optimized output
// Load plugins
var gulp = require('gulp'),
var autoprefixer = require('autoprefixer'),
gulp = require('gulp'),
gulpif = require('gulp-if'),
postcss = require('gulp-postcss'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
notify = require('gulp-notify'),
...
...
@@ -58,11 +60,12 @@ gulp.task('css', function() {
'
{{
package.sass.relative
}}
',
{%
endif
%}
{%
endfor
%}
]})
.on("error", notify.onError(function (error) {
return "Error: " + error.message;
})))
.pipe(gulpif(options.env !== 'production', sourcemaps.write('./maps')))
]})
.on("error", notify.onError(function (error) {
return "Error: " + error.message;
})))
.pipe(postcss([autoprefixer()]))
.pipe(gulpif(options.env !== 'production', sourcemaps.write('./maps')))
.pipe(gulp.dest(config.cssPath));
});
...
...
This diff is collapsed.
Click to expand it.
templates/package.json
+
6
−
0
View file @
e139088e
...
...
@@ -4,13 +4,19 @@
"node"
:
">=4.2.0"
},
"dependencies"
:
{
"autoprefixer"
:
"^7.1.1"
,
"gulp"
:
"^3.9.0"
,
"gulp-if"
:
"^2.0.0"
,
"gulp-notify"
:
"^2.2.0"
,
"gulp-postcss"
:
"^7.0.0"
,
"gulp-sass"
:
"^2.0.5"
,
"gulp-sourcemaps"
:
"^1.6.0"
,
"minimist"
:
"^1.2.0"
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
],
"scripts"
:
{
"postinstall"
:
"find node_modules/ -name '*.info' -type f -delete"
}
...
...
This diff is collapsed.
Click to expand it.
templates/sass/_settings.scss.twig
+
2
−
2
View file @
e139088e
...
...
@@ -4,14 +4,14 @@
// Set the directory for the Bootstrap Glyphicon font.
$icon-font-path: '../fonts/bootstrap/';
{%
endif
%}
{%
if
bower_assets
[
'flat-ui'
]
is
defined
%}
{%
if
bower_assets
[
'flat-ui
-sass
'
]
is
defined
%}
// Workaround for Flat-UI issue with node-sass:
// @see https://github.com/wingrunr21/flat-ui-sass/issues/39
@function tint($color, $percentage){
@return mix(#fff, $color, $percentage)
}
{%
if
bower_assets
[
'flat-ui'
]
.
fonts
is
defined
%}
{%
if
bower_assets
[
'flat-ui
-sass
'
]
.
fonts
is
defined
%}
// Set the directory for the Flat-UI Glyphicon font.
$icon-font-path: '../fonts/flat-ui';
$icon-font-name: 'flat-ui-icons-regular';
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment