Skip to content

Commit

Permalink
Merge branch 'master' into 202-sticky
Browse files Browse the repository at this point in the history
* master:
  89 browsersync (#272)
  189 Alert Component (#263)
  216 Create site search component (#262)
  266: Update scss file to reference logo.twig and update twig file to … (#267)
  246 homepage (#258)
  reversed order of modular scale type mixin (#260)
  122 hero (#259)

# Conflicts: - all resolved using master
#	core/scss/homepage.md
#	kss/builder/decanter/index.twig
#	kss/builder/decanter/kss-assets/css/kss.css
#	kss/builder/decanter/scss/_home.scss
#	kss/builder/decanter/scss/kss.scss
  • Loading branch information
JBCSU committed Nov 9, 2018
2 parents c8576e4 + b35407f commit 8c2ae9d
Show file tree
Hide file tree
Showing 54 changed files with 3,289 additions and 1,476 deletions.
20 changes: 18 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,22 @@ module.exports = function(grunt) {
tasks: ['uglify']
},
twig: {
files: ['**/*.twig'],
tasks: ['uglify', 'sass', 'styleguide']
files: ['**/*.twig', '**/*.json'],
tasks: ['styleguide']
}
},
browserSync: {
dev: {
bsFiles: {
src : [
'styleguide/css/decanter.css',
'styleguide/**/*.html'
]
},
options: {
watchTask: true,
server: './styleguide'
}
}
},
clean: {
Expand Down Expand Up @@ -108,6 +122,7 @@ module.exports = function(grunt) {
});

grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
Expand All @@ -120,6 +135,7 @@ module.exports = function(grunt) {
grunt.registerTask('deploy', ['styleguide', 'deploy_site:styleguide', 'clean:postdeploy']);
grunt.registerTask('styleguide', ['compile', 'uglify', 'clean:styleguide', 'run:styleguide', 'copy:styleguide']);
grunt.registerTask('compile', ['sass:dist', 'postcss:dist']);
grunt.registerTask('dev', ['styleguide', 'browserSync', 'watch']);
grunt.registerTask('default', ['watch']);

}
194 changes: 163 additions & 31 deletions core/css/decanter.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
2 changes: 1 addition & 1 deletion core/img/error.svg → core/img/alert-error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 1 addition & 1 deletion core/img/info.svg → core/img/alert-info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 1 addition & 1 deletion core/img/success.svg → core/img/alert-success.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added core/img/cubes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/img/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions core/img/icon-search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions core/scss/components/alert/_alert--error.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@charset "UTF-8";

// Error alert.
.su-alert--error {
background-color: map-get($alert-colors, 'error');
background-image: url("#{$image-path}/alert-error.png");
background-image: url("#{$image-path}/alert-error.svg");
color: $color-white;
}
9 changes: 9 additions & 0 deletions core/scss/components/alert/_alert--info.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@charset "UTF-8";

// Info alert.
.su-alert--info {
background-color: map-get($alert-colors, 'info');
background-image: url("#{$image-path}/alert-info.png");
background-image: url("#{$image-path}/alert-info.svg");
color: $color-white;
}
9 changes: 9 additions & 0 deletions core/scss/components/alert/_alert--success.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@charset "UTF-8";

// Success alert.
.su-alert--success {
background-color: map-get($alert-colors, 'success');
background-image: url("#{$image-path}/alert-success.png");
background-image: url("#{$image-path}/alert-success.svg");
color: $color-white;
}
8 changes: 8 additions & 0 deletions core/scss/components/alert/_alert--warning.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@charset "UTF-8";

// Warning alert.
.su-alert--warning {
background-color: map-get($alert-colors, 'warning');
background-image: url("#{$image-path}/alert-warning.png");
background-image: url("#{$image-path}/alert-warning.svg");
}
Loading

0 comments on commit 8c2ae9d

Please sign in to comment.