Skip to content

Commit

Permalink
variant: fix primary color and avoid sorting of stylesheet matcornic#239
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed May 22, 2022
1 parent 74c4791 commit 1900ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/variant.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ var variants = {
var style =
'/* ' + this.customvariantname + ' */\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';
console.log( style );
return style;
Expand Down Expand Up @@ -517,7 +517,7 @@ var variants = {
},

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: 'MAIN-TEXT-color', group: 'content', default: '#101010', tooltip: 'text color of content and h1 titles', },
Expand Down

0 comments on commit 1900ddb

Please sign in to comment.