Skip to content

Commit

Permalink
feat(rtl): component customisation
Browse files Browse the repository at this point in the history
specific sass file for rtl components
concat to boosted-rtl.css
  • Loading branch information
ygatesoupe committed Apr 1, 2016
1 parent 8990086 commit b7813d6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = function (grunt) {
dist: 'dist',
docs: 'docs/dist',
/* Boosted mod */
rtl: 'dist/css/o-rtl.*',
tmp: '.tmpdocs'
/* end mod */
},
Expand Down Expand Up @@ -205,6 +206,10 @@ module.exports = function (grunt) {
dest: 'dist/js/<%= pkg.name %>.js'
},
/* boosted mod */
rtlCss: {
src: ['dist/css/boosted-rtl.css', 'dist/css/o-rtl.css'],
dest: 'dist/css/boosted-rtl.css'
},
docsJs: {
src: [
'.tmpdocs/assets/js/src/application.js',
Expand Down Expand Up @@ -689,9 +694,9 @@ module.exports = function (grunt) {
require('./grunt/bs-sass-compile/' + sassCompilerName + '.js')(grunt);
})(process.env.TWBS_SASS || 'libsass');
// grunt.registerTask('sass-compile', ['sass:core', 'sass:extras', 'sass:docs']);
grunt.registerTask('sass-compile', ['sass:core', 'sass:docs']);
grunt.registerTask('sass-compile', ['sass:core', 'sass:rtl', 'sass:docs']);

grunt.registerTask('dist-css', ['sass-compile', 'postcss:core', 'rtlcss:core','cssmin:core', 'cssmin:docs']);
grunt.registerTask('dist-css', ['sass-compile', 'postcss:core', 'rtlcss:core','concat:rtlCss', 'clean:rtl', 'cssmin:core', 'cssmin:docs']);

// Full distribution task.
/* boosted mod */
Expand Down
10 changes: 10 additions & 0 deletions grunt/bs-sass-compile/libsass.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ module.exports = function configureLibsass(grunt) {
/* end mod */
}
},
// boosted mod
rtl: {
options: {
sourceMap: false
},
files: {
'dist/css/o-rtl.css': 'scss/o-rtl.scss'
}
},
// end mod
docs: {
files: {
/* boosted mod */
Expand Down
10 changes: 10 additions & 0 deletions grunt/bs-sass-compile/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ module.exports = function configureRubySass(grunt) {
/* end mod */
}
},
// boosted mod
rtl: {
options: {
sourceMap: false
},
files: {
'dist/css/o-rtl.css': 'scss/o-rtl.scss'
}
},
// end mod
docs: {
options: options,
files: {
Expand Down
18 changes: 18 additions & 0 deletions scss/o-rtl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Orange rtl overrides
//
//

// invert chevrons

.icon-arrow-next::before {
content: "\ea53";
}
.icon-arrow-previous::before {
content: "\ea52";
}

// rotate stepbar chevrons
.stepbar-item::after {
transform: rotateY(180deg);
}

0 comments on commit b7813d6

Please sign in to comment.