From b8eb67a14a8da208fcadbb65c0dea7dae46fe2ed Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sun, 1 Nov 2020 19:29:21 -0500 Subject: [PATCH] Provides a way to adjust a theme to handle feature development using non-theme supported classes. --- Gruntfile.js | 30 ++++++++++++------------- application/views/partial/header.php | 6 +++++ public/css/darkly.css | 33 ++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 15 deletions(-) create mode 100644 public/css/darkly.css diff --git a/Gruntfile.js b/Gruntfile.js index 76b2755c8..de3d09757 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,6 @@ module.exports = function(grunt) { - grunt.initConfig({ + grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), wiredep: { task: { @@ -53,7 +53,7 @@ module.exports = function(grunt) { cssmin: { target: { files: { - 'public/dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css'] + 'public/dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css', '!public/css/darkly.css'] } } }, @@ -106,7 +106,7 @@ module.exports = function(grunt) { closeTag: '', ignorePath: '../../../public/' }, - src: ['public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css'], + src: ['public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css', '!public/css/darkly.css'], dest: 'application/views/partial/header.php', }, mincss_header: { @@ -125,7 +125,7 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - ignorePath: '../../public/' + ignorePath: '../../public/' }, src: ['public/css/login.css'], dest: 'application/views/login.php' @@ -145,7 +145,7 @@ module.exports = function(grunt) { scriptTemplate: '', openTag: '', closeTag: '', - ignorePath: '../../../public/' + ignorePath: '../../../public/' }, src: ['public/dist/*min.js'], dest: 'application/views/partial/header.php' @@ -255,17 +255,17 @@ module.exports = function(grunt) { } }); - require('load-grunt-tasks')(grunt); - grunt.loadNpmTasks('grunt-mocha-webdriver'); + require('load-grunt-tasks')(grunt); + grunt.loadNpmTasks('grunt-mocha-webdriver'); grunt.loadNpmTasks('grunt-composer'); grunt.loadNpmTasks('grunt-apigen'); - grunt.loadNpmTasks('grunt-contrib-compress'); - - grunt.registerTask('default', ['wiredep', 'bower_concat', 'bowercopy', 'concat', 'uglify', 'cssmin', 'tags', 'cachebreaker']); - grunt.registerTask('update', ['composer:update', 'bower:update']); - grunt.registerTask('genlicense', ['clean:license', 'license', 'bower-licensechecker']); - grunt.registerTask('package', ['default', 'compress']); - grunt.registerTask('packages', ['composer:update']); - grunt.registerTask('gendocs', ['apigen:generate']); + grunt.loadNpmTasks('grunt-contrib-compress'); + + grunt.registerTask('default', ['wiredep', 'bower_concat', 'bowercopy', 'concat', 'uglify', 'cssmin', 'tags', 'cachebreaker']); + grunt.registerTask('update', ['composer:update', 'bower:update']); + grunt.registerTask('genlicense', ['clean:license', 'license', 'bower-licensechecker']); + grunt.registerTask('package', ['default', 'compress']); + grunt.registerTask('packages', ['composer:update']); + grunt.registerTask('gendocs', ['apigen:generate']); }; diff --git a/application/views/partial/header.php b/application/views/partial/header.php index 26efc5c23..736343a50 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -77,6 +77,12 @@ + + + config->item('theme') != 'flatly' && file_exists($_SERVER['DOCUMENT_ROOT'] . '/public/css/' . $this->config->item('theme') . '.css')) { ?> + + + diff --git a/public/css/darkly.css b/public/css/darkly.css new file mode 100644 index 000000000..202254e16 --- /dev/null +++ b/public/css/darkly.css @@ -0,0 +1,33 @@ +/* Since flatly is the default theme, all css design should use flatly as the starting point. */ +/* Any css color attributes that need to be overridden for a particular theme */ +/* should be included in a css file file named. */ + +.fixed-table-container tbody .selected td { + background-color:#757575 +} + +/* Receivings & Sales */ + +#register td { + background-color:#757575; +} + +#add_item_form,#overall_sale { + background-color:#757575 +} + +#mode_form,#payment_details { + background-color:#757575 +} + +/* Reports > Graphical Reports */ + +.ct-label { + fill:#eee; + color:#eee; +} + +text.ct-axis-title{ + fill:#eee; + color:#eee; +}