Commit 6fc2f688 authored by Thomas Park's avatar Thomas Park
Browse files

tabs to spaces

parent 6fc7bce6
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
builddir: '.',
banner: '/*!\n' +
' * <%= pkg.name %> v<%= pkg.version %>\n' +
' * Homepage: <%= pkg.homepage %>\n' +
' * Copyright 2012-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under <%= pkg.license %>\n' +
' * Based on Bootstrap\n' +
'*/\n',
swatch: {
amelia:{}, cerulean:{}, cosmo:{}, cyborg:{}, flatly:{}, journal:{},
readable:{}, simplex:{}, slate:{}, spacelab:{}, united:{}, yeti:{},
custom:{}
},
clean: {
build: {
src: ['*/build.less', '!global/build.less']
}
},
concat: {
options: {
banner: '<%= banner %>',
stripBanners: false
},
dist: {
src: [],
dest: ''
}
},
less: {
dist: {
options: {
compress: false
},
files: {}
}
}
});
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
builddir: '.',
banner: '/*!\n' +
' * <%= pkg.name %> v<%= pkg.version %>\n' +
' * Homepage: <%= pkg.homepage %>\n' +
' * Copyright 2012-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed under <%= pkg.license %>\n' +
' * Based on Bootstrap\n' +
'*/\n',
swatch: {
amelia:{}, cerulean:{}, cosmo:{}, cupid:{}, cyborg:{}, flatly:{},
journal:{}, lumen:{}, readable:{}, simplex:{}, slate:{}, spacelab:{},
superhero:{}, united:{}, yeti:{}, custom:{}
},
clean: {
build: {
src: ['*/build.less', '!global/build.less']
}
},
concat: {
options: {
banner: '<%= banner %>',
stripBanners: false
},
dist: {
src: [],
dest: ''
}
},
less: {
dist: {
options: {
compress: false
},
files: {}
}
}
});
grunt.registerTask('none', function() {});
grunt.registerTask('none', function() {});
grunt.registerTask('build', 'build a regular theme', function(theme, compress) {
var compress = compress == undefined ? true : compress;
grunt.registerTask('build', 'build a regular theme', function(theme, compress) {
var compress = compress == undefined ? true : compress;
var concatSrc;
var concatDest;
var lessDest;
var lessSrc;
var files = {};
var dist = {};
concatSrc = 'global/build.less';
concatDest = theme + '/build.less';
lessDest = '<%=builddir%>/' + theme + '/bootstrap.css';
lessSrc = [ theme + '/' + 'build.less' ];
var concatSrc;
var concatDest;
var lessDest;
var lessSrc;
var files = {};
var dist = {};
concatSrc = 'global/build.less';
concatDest = theme + '/build.less';
lessDest = '<%=builddir%>/' + theme + '/bootstrap.css';
lessSrc = [ theme + '/' + 'build.less' ];
dist = {src: concatSrc, dest: concatDest};
grunt.config('concat.dist', dist);
files = {}; files[lessDest] = lessSrc;
grunt.config('less.dist.files', files);
grunt.config('less.dist.options.compress', false);
dist = {src: concatSrc, dest: concatDest};
grunt.config('concat.dist', dist);
files = {}; files[lessDest] = lessSrc;
grunt.config('less.dist.files', files);
grunt.config('less.dist.options.compress', false);
grunt.task.run(['concat', 'less:dist', 'clean:build',
compress ? 'compress:'+lessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']);
});
grunt.task.run(['concat', 'less:dist', 'clean:build',
compress ? 'compress:'+lessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']);
});
grunt.registerTask('compress', 'compress a generic css', function(fileSrc, fileDst) {
var files = {}; files[fileDst] = fileSrc;
grunt.log.writeln('compressing file ' + fileSrc);
grunt.registerTask('compress', 'compress a generic css', function(fileSrc, fileDst) {
var files = {}; files[fileDst] = fileSrc;
grunt.log.writeln('compressing file ' + fileSrc);
grunt.config('less.dist.files', files);
grunt.config('less.dist.options.compress', true);
grunt.task.run(['less:dist']);
});
grunt.config('less.dist.files', files);
grunt.config('less.dist.options.compress', true);
grunt.task.run(['less:dist']);
});
grunt.registerMultiTask('swatch', 'build a theme', function() {
var t = this.target;
grunt.task.run('build:'+t);
});
grunt.registerTask('default', 'build a theme', function() {
grunt.task.run('swatch');
});
grunt.registerMultiTask('swatch', 'build a theme', function() {
var t = this.target;
grunt.task.run('build:'+t);
});
grunt.registerTask('default', 'build a theme', function() {
grunt.task.run('swatch');
});
};
......@@ -8,125 +8,125 @@
.navbar {
&-brand {
font-family: 'Lobster', cursive;
}
&-brand {
font-family: 'Lobster', cursive;
}
}
// Buttons ====================================================================
.btn {
.caret {
border-top-color: #fff;
}
.caret {
border-top-color: #fff;
}
}
.btn-default {
&:hover {
color: @btn-default-color;
}
&:hover {
color: @btn-default-color;
}
.caret {
border-top-color: @btn-default-color;
}
.caret {
border-top-color: @btn-default-color;
}
}
// Typography =================================================================
.text-primary,
.text-primary:hover {
color: lighten(@brand-primary, 40%);
color: lighten(@brand-primary, 40%);
}
.text-success,
.text-success:hover {
color: lighten(@brand-success, 20%);
color: lighten(@brand-success, 20%);
}
.text-danger,
.text-danger:hover {
color: lighten(@brand-danger, 20%);
color: lighten(@brand-danger, 20%);
}
.text-warning,
.text-warning:hover {
color: lighten(@brand-warning, 20%);
color: lighten(@brand-warning, 20%);
}
.text-info,
.text-info:hover {
color: lighten(@brand-info, 40%);
color: lighten(@brand-info, 40%);
}
// Tables =====================================================================
.table-responsive > .table {
background-color: @table-bg;
background-color: @table-bg;
}
// Forms ======================================================================
.has-warning {
.help-block,
.control-label {
color: lighten(@brand-warning, 20%);
}
.help-block,
.control-label {
color: lighten(@brand-warning, 20%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-warning, 20%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-warning, 20%);
}
}
.has-error {
.help-block,
.control-label {
color: lighten(@brand-primary, 40%);
}
.help-block,
.control-label {
color: lighten(@brand-primary, 40%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-primary, 40%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-primary, 40%);
}
}
.has-success {
.help-block,
.control-label {
color: lighten(@brand-success, 20%);
}
.help-block,
.control-label {
color: lighten(@brand-success, 20%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-success, 20%);
}
.form-control,
.form-control:focus {
border-color: lighten(@brand-success, 20%);
}
}
legend {
font-family: 'Lobster', cursive;
color: #fff;
font-family: 'Lobster', cursive;
color: #fff;
}
.input-group-addon {
color: @btn-default-color;
color: @btn-default-color;
}
// Navs =======================================================================
.pagination {
a:hover {
color: #fff;
}
a:hover {
color: #fff;
}
}
.pager {
a:hover {
color: #fff;
}
a:hover {
color: #fff;
}
}
// Indicators =================================================================
......@@ -136,9 +136,9 @@ legend {
// Containers =================================================================
.list-group-item {
background-color: lighten(@body-bg, 5%);
background-color: lighten(@body-bg, 5%);
}
.popover {
color: @gray-dark;
color: @gray-dark;
}
......@@ -3,76 +3,76 @@
// -----------------------------------------------------
.btn-shadow(@color) {
#gradient > .vertical-three-colors(lighten(@color, 8%), @color, 60%, darken(@color, 4%));
filter: none;
border-bottom: 1px solid darken(@color, 10%);
#gradient > .vertical-three-colors(lighten(@color, 8%), @color, 60%, darken(@color, 4%));
filter: none;
border-bottom: 1px solid darken(@color, 10%);
}
// Navbar =====================================================================
.navbar {
.btn-shadow(@navbar-default-bg);
filter: none;
.box-shadow(0 1px 10px rgba(0, 0, 0, 0.1));
.navbar-nav > li > a,
&-brand {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.btn-shadow(@navbar-default-bg);
filter: none;
.box-shadow(0 1px 10px rgba(0, 0, 0, 0.1));
.navbar-nav > li > a,
&-brand {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
}
.navbar-inverse {
#gradient > .vertical-three-colors(lighten(@navbar-inverse-bg, 8%), lighten(@navbar-inverse-bg, 4%), 60%, darken(@navbar-inverse-bg, 2%));
filter: none;
border-bottom: 1px solid darken(@navbar-inverse-bg, 10%);
#gradient > .vertical-three-colors(lighten(@navbar-inverse-bg, 8%), lighten(@navbar-inverse-bg, 4%), 60%, darken(@navbar-inverse-bg, 2%));
filter: none;
border-bottom: 1px solid darken(@navbar-inverse-bg, 10%);
}
// Buttons ====================================================================
.btn {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
.caret {
border-top-color: #fff;
}
.caret {
border-top-color: #fff;
}
}
.btn-default {
.btn-shadow(@btn-default-bg);
.btn-shadow(@btn-default-bg);
&:hover {
color: @btn-default-color;
}
&:hover {
color: @btn-default-color;
}
.caret {
border-top-color: @text-color;
}
.caret {
border-top-color: @text-color;
}
}
.btn-default {
.btn-shadow(@btn-default-bg);
.btn-shadow(@btn-default-bg);
}
.btn-primary {
.btn-shadow(@btn-primary-bg);
.btn-shadow(@btn-primary-bg);
}
.btn-success {
.btn-shadow(@btn-success-bg);
.btn-shadow(@btn-success-bg);
}
.btn-info {
.btn-shadow(@btn-info-bg);
.btn-shadow(@btn-info-bg);
}
.btn-warning {
.btn-shadow(@btn-warning-bg);
.btn-shadow(@btn-warning-bg);
}
.btn-danger {
.btn-shadow(@btn-danger-bg);
.btn-shadow(@btn-danger-bg);
}
// Typography =================================================================
......@@ -95,8 +95,8 @@
.panel-danger,
.panel-info {
.panel-heading,
.panel-title {
color: #fff;
}
.panel-heading,
.panel-title {
color: #fff;
}
}
......@@ -9,135 +9,135 @@
// Buttons ====================================================================
.btn {
border: none;
border: none;
}
// Typography =================================================================
.text-primary,
.text-primary:hover {
color: @brand-primary;
color: @brand-primary;
}
.text-success,
.text-success:hover {
color: @brand-success;
color: @brand-success;
}
.text-danger,
.text-danger:hover {
color: @brand-danger;
color: @brand-danger;
}
.text-warning,
.text-warning:hover {
color: @brand-warning;
color: @brand-warning;
}
.text-info,
.text-info:hover {
color: @brand-info;
color: @brand-info;
}
// Tables =====================================================================
.table {
tr.success,
tr.warning,
tr.danger {
color: #fff;
}
tr.success,
tr.warning,
tr.danger {
color: #fff;
}
}
// Forms ======================================================================
.has-warning {
.help-block,
.control-label {
color: @brand-warning;
}
.help-block,
.control-label {
color: @brand-warning;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-warning;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-warning;
}
}
.has-error {
.help-block,
.control-label {
color: @brand-danger;
}
.help-block,
.control-label {
color: @brand-danger;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-danger;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-danger;
}
}
.has-success {
.help-block,
.control-label {
color: @brand-success;
}
.help-block,
.control-label {
color: @brand-success;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-success;
}
.form-control,
.form-control:focus {
border: 1px solid @brand-success;
}
}
// Navs =======================================================================
.nav-pills {
& > li > a {
border-radius: 0;
}
& > li > a {
border-radius: 0;
}
}
.dropdown-menu {
& > li > a:hover,
& > li > a:focus {
background-image: none;
}
& > li > a:hover,
& > li > a:focus {
background-image: none;
}
}
// Indicators =================================================================
.alert {
border: none;
border: none;
.alert-link {
text-decoration: underline;
color: #fff;
}
.alert-link {
text-decoration: underline;