Convention over configuration for themes
This commit is contained in:
parent
7cdc97b58a
commit
90027b2a0e
Gruntfile.js
img
libs
templates/default/themes
_common/less
bootstrap
alerts.lessbadges.lessbootstrap.lessbreadcrumbs.lessbutton-groups.lessbuttons.lesscarousel.lessclose.lesscode.lesscomponent-animations.lessdropdowns.lessforms.lessglyphicons.lessgrid.lessinput-groups.lessjumbotron.lesslabels.lesslist-group.lessmedia.lessmixins.less
components.lessdaux-base.lesshighlight.lessmixins.lessstructure.lesstools.lessmixins
alerts.lessbackground-variant.lessborder-radius.lessbuttons.lesscenter-block.lessclearfix.lessforms.lessgradients.lessgrid-framework.lessgrid.lesshide-text.lessimage.lesslabels.lesslist-group.lessnav-divider.lessnav-vertical-align.lessopacity.lesspagination.lesspanels.lessprogress-bar.lessreset-filter.lessresize.lessresponsive-visibility.lesssize.lesstab-focus.lesstable-row.lesstext-emphasis.lesstext-overflow.lessvendor-prefixes.less
modals.lessnavbar.lessnavs.lessnormalize.lesspager.lesspagination.lesspanels.lesspopovers.lessprint.lessprogress-bars.lessresponsive-embed.lessresponsive-utilities.lessscaffolding.lesstables.lesstheme.lessthumbnails.lesstooltip.lesstype.lessutilities.lessvariables.lesswells.lessdaux-blue
daux-green
daux-navy
daux-red
10
Gruntfile.js
10
Gruntfile.js
@ -22,16 +22,16 @@ module.exports = function (grunt) {
|
||||
report: 'min'
|
||||
},
|
||||
files: {
|
||||
"css/daux-blue.min.css": "less/daux-blue.less",
|
||||
"css/daux-green.min.css": "less/daux-green.less",
|
||||
"css/daux-navy.min.css": "less/daux-navy.less",
|
||||
"css/daux-red.min.css": "less/daux-red.less"
|
||||
"templates/default/themes/daux-blue/css/theme.min.css": "templates/default/themes/daux-blue/less/theme.less",
|
||||
"templates/default/themes/daux-green/css/theme.min.css": "templates/default/themes/daux-green/less/theme.less",
|
||||
"templates/default/themes/daux-navy/css/theme.min.css": "templates/default/themes/daux-navy/less/theme.less",
|
||||
"templates/default/themes/daux-red/css/theme.min.css": "templates/default/themes/daux-red/less/theme.less"
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
scripts: {
|
||||
files: ['less/**/*.less'],
|
||||
files: ['templates/default/theme/**/*.less'],
|
||||
tasks: ['less'],
|
||||
options: {
|
||||
nospawn: true
|
||||
|
Binary file not shown.
Before ![]() (image error) Size: 8.6 KiB |
Binary file not shown.
Before ![]() (image error) Size: 12 KiB |
@ -227,7 +227,7 @@
|
||||
|
||||
$params['template'] = $this->options['template'];
|
||||
$params['theme'] = DauxHelper::configure_theme($this->local_base . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR .
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '.thm', $params['base_url'],
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '/config.json', $params['base_url'],
|
||||
$this->local_base, $params['base_url'] . "templates/" . $params['template'] . "/themes/" . $this->options['theme'] . '/');
|
||||
break;
|
||||
|
||||
@ -257,7 +257,7 @@
|
||||
|
||||
$params['template'] = $this->options['template'];
|
||||
$params['theme'] = DauxHelper::configure_theme($this->local_base . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR .
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '.thm', $params['base_url'],
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '/config.json', $params['base_url'],
|
||||
$this->local_base, $params['base_url'] . "templates/" . $params['template'] . "/themes/" . $this->options['theme'] . '/', $mode);
|
||||
|
||||
|
||||
@ -301,7 +301,7 @@
|
||||
|
||||
$params['template'] = $this->options['template'];
|
||||
$params['theme'] = DauxHelper::configure_theme($this->local_base . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR .
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '.thm', $params['base_url'],
|
||||
$this->options['template'] . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $this->options['theme'] . '/config.json', $params['base_url'],
|
||||
$this->local_base, $params['base_url'] . "templates/" . $params['template'] . "/themes/" . $this->options['theme'] . '/', $mode);
|
||||
|
||||
if ($params['breadcrumbs'] = $this->options['breadcrumbs'])
|
||||
|
0
less/import/bootstrap/carousel.less → templates/default/themes/_common/less/bootstrap/carousel.less
0
less/import/bootstrap/carousel.less → templates/default/themes/_common/less/bootstrap/carousel.less
0
less/import/bootstrap/popovers.less → templates/default/themes/_common/less/bootstrap/popovers.less
0
less/import/bootstrap/popovers.less → templates/default/themes/_common/less/bootstrap/popovers.less
@ -1,6 +1,6 @@
|
||||
{
|
||||
"favicon": "<theme_url>img/favicon-blue.png",
|
||||
"css": ["<theme_url>css/daux-blue.css"],
|
||||
"css": ["<theme_url>css/theme.min.css"],
|
||||
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
|
||||
"js": [],
|
||||
"require-jquery": true,
|
File diff suppressed because one or more lines are too long
@ -10,4 +10,4 @@
|
||||
@syntax-number: #2f9b92;
|
||||
@syntax-label: #840d7a;
|
||||
|
||||
@import "import/daux-base.less";
|
||||
@import "../../_common/less/daux-base.less";
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"favicon": "<theme_url>img/favicon-green.png",
|
||||
"css": ["<theme_url>css/daux-green.css"],
|
||||
"css": ["<theme_url>css/theme.min.css"],
|
||||
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
|
||||
"js": [],
|
||||
"require-jquery": true,
|
File diff suppressed because one or more lines are too long
@ -10,4 +10,4 @@
|
||||
@syntax-number: #097c4e;
|
||||
@syntax-label: #022e99;
|
||||
|
||||
@import "import/daux-base.less";
|
||||
@import "../../_common/less/daux-base.less";
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"favicon": "<theme_url>img/favicon-navy.png",
|
||||
"css": ["<theme_url>css/daux-navy.css"],
|
||||
"css": ["<theme_url>css/theme.min.css"],
|
||||
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
|
||||
"js": [],
|
||||
"require-jquery": true,
|
File diff suppressed because one or more lines are too long
@ -10,4 +10,4 @@
|
||||
@syntax-number: #09559b;
|
||||
@syntax-label: #001775;
|
||||
|
||||
@import "import/daux-base.less";
|
||||
@import "../../_common/less/daux-base.less";
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"favicon": "<theme_url>img/favicon-red.png",
|
||||
"css": ["<theme_url>css/daux-red.css"],
|
||||
"css": ["<theme_url>css/theme.min.css"],
|
||||
"fonts": ["//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,cyrillic-ext,cyrillic"],
|
||||
"js": [],
|
||||
"require-jquery": true,
|
File diff suppressed because one or more lines are too long
@ -10,4 +10,4 @@
|
||||
@syntax-number: #9b2f7d;
|
||||
@syntax-label: #a31621;
|
||||
|
||||
@import "import/daux-base.less";
|
||||
@import "../../_common/less/daux-base.less";
|
Loading…
x
Reference in New Issue
Block a user