From a2e096b6f39822f999ca8a18c9efddca4988739b Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Wed, 18 Jul 2018 12:58:24 +0200 Subject: [PATCH] Unfortunately, optional parameters need to be optional in both ._vars() and ._main() --- customize.dist/src/less2/include/avatar.less | 2 +- customize.dist/src/less2/include/checkmark.less | 2 +- customize.dist/src/less2/include/creation.less | 4 ++-- customize.dist/src/less2/include/help.less | 5 ++++- customize.dist/src/less2/include/toolbar.less | 6 +++--- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/customize.dist/src/less2/include/avatar.less b/customize.dist/src/less2/include/avatar.less index aa5ebd54c..87b4a3a32 100644 --- a/customize.dist/src/less2/include/avatar.less +++ b/customize.dist/src/less2/include/avatar.less @@ -5,7 +5,7 @@ @avatar-width: @width; @avatar-font-size: @width / 1.2; } -.avatar_main(@width) { +.avatar_main(@width: 30px) { --LessLoader_require: LessLoader_currentFile(); .avatar_vars(@width); --avatar-width: @avatar-width; diff --git a/customize.dist/src/less2/include/checkmark.less b/customize.dist/src/less2/include/checkmark.less index 8f6e38cbb..ec3f8b528 100644 --- a/customize.dist/src/less2/include/checkmark.less +++ b/customize.dist/src/less2/include/checkmark.less @@ -11,7 +11,7 @@ @checkmark-radio-size: @checkmark-dim1 * 3; } -.checkmark_main(@size) { +.checkmark_main(@size: 20px) { --LessLoader_require: LessLoader_currentFile(); .checkmark_vars(@size); --checkmark-size: @checkmark-size; diff --git a/customize.dist/src/less2/include/creation.less b/customize.dist/src/less2/include/creation.less index 284c5ed39..06d6434ca 100644 --- a/customize.dist/src/less2/include/creation.less +++ b/customize.dist/src/less2/include/creation.less @@ -12,8 +12,8 @@ }; .creation_main( - @color, - @bg-color + @color: @colortheme_default-color, + @bg-color: @colortheme_default-bg ) { --LessLoader_require: LessLoader_currentFile(); .creation_vars(@color, @bg-color); diff --git a/customize.dist/src/less2/include/help.less b/customize.dist/src/less2/include/help.less index c39d167d0..cb6d374e1 100644 --- a/customize.dist/src/less2/include/help.less +++ b/customize.dist/src/less2/include/help.less @@ -8,7 +8,10 @@ @help-text-color: contrast(@help-bg-color-l15, #fff, #000); //@color; @help-link-color: contrast(@help-bg-color-l15, lighten(spin(@bg-color, 180), 10%), darken(spin(@bg-color, 180), 10%)); } -.help_main (@color, @bg-color) { +.help_main ( + @color: @colortheme_default-color, + @bg-color: @colortheme_default-bg +) { --LessLoader_require: LessLoader_currentFile(); .help_vars(@color, @bg-color); --help-bg-color-l15: @help-bg-color-l15; diff --git a/customize.dist/src/less2/include/toolbar.less b/customize.dist/src/less2/include/toolbar.less index 122fff891..fdbe006d5 100644 --- a/customize.dist/src/less2/include/toolbar.less +++ b/customize.dist/src/less2/include/toolbar.less @@ -33,9 +33,9 @@ }; .toolbar_main ( - @color, // Color of the text for the toolbar - @bg-color, // color of the toolbar background - @warn-color, // color of the warning text in the toolbar + @color: @colortheme_default-color, // Color of the text for the toolbar + @bg-color: @colortheme_default-bg, // color of the toolbar background + @warn-color: @colortheme_default-warn, // color of the warning text in the toolbar @barWidth: 600px // width of the toolbar ) { --LessLoader_require: LessLoader_currentFile();