mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
variant: fix primary color and avoid sorting of stylesheet #239
This commit is contained in:
parent
74c47913af
commit
1900ddb589
1 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ var variants = {
|
||||||
var style =
|
var style =
|
||||||
'/* ' + this.customvariantname + ' */\n' +
|
'/* ' + this.customvariantname + ' */\n' +
|
||||||
':root {\n' +
|
':root {\n' +
|
||||||
this.variantvariables.sort( function( l, r ){ return l.name.localeCompare(r.name); } ).reduce( function( a, e ){ return a + this.generateColorVariable( e, read_style ); }.bind( this ), '' ) +
|
this.variantvariables.reduce( function( a, e ){ return a + this.generateColorVariable( e, read_style ); }.bind( this ), '' ) +
|
||||||
'}\n';
|
'}\n';
|
||||||
console.log( style );
|
console.log( style );
|
||||||
return style;
|
return style;
|
||||||
|
@ -517,7 +517,7 @@ var variants = {
|
||||||
},
|
},
|
||||||
|
|
||||||
variantvariables: [
|
variantvariables: [
|
||||||
{ name: 'PRIMARY-color', group: 'content', default: '#7dc903', tooltip: 'brand primary color', },
|
{ name: 'PRIMARY-color', group: 'content', fallback: 'MENU-HEADER-BG-color', tooltip: 'brand primary color', },
|
||||||
{ name: 'SECONDARY-color', group: 'content', fallback: 'MAIN-LINK-color', tooltip: 'brand secondary color', },
|
{ name: 'SECONDARY-color', group: 'content', fallback: 'MAIN-LINK-color', tooltip: 'brand secondary color', },
|
||||||
|
|
||||||
{ name: 'MAIN-TEXT-color', group: 'content', default: '#101010', tooltip: 'text color of content and h1 titles', },
|
{ name: 'MAIN-TEXT-color', group: 'content', default: '#101010', tooltip: 'text color of content and h1 titles', },
|
||||||
|
|
Loading…
Reference in a new issue