HexagonJS
Palette Changelog
1.7.0
hx.palette.context
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.contextString
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.textContext
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.textContextString
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.backgroundContext
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.backgroundContextString
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.borderContext
Updated
#298
Added 'disabled' to the list of context classes
hx.palette.borderContextString
Updated
#298
Added 'disabled' to the list of context classes
1.3.1
Bugfix
Fixed an issue where calline hx.palette.context(selection, undefined) would return undefined instead of the selection. This was introduced accidentally as part of 1.3.0.
1.3.0
hx.palette.borderContext
Added
#196
A function for setting the border context of an element
hx.palette.borderContextString
Added
#196
A function for getting the border context of an element
1.0.0
hx-text-compliment
Removed
Use hx-text-complement instead
hx-background-compliment
Removed
Use hx-background-complement instead
hx.theme.palette
complimentColString
Added
Removed
Use hx.theme.palette.complementCol instead
hx.theme.palette
complementColStringThecomplementarycolorusedbythecurrenttheme
Added
hx-text-complement
Added
Applies the complement color to the text in the element.
hx-background-complement
Added
Applies the complementary color to the background of the element. The text color will also be set so that it works well with the background color.
hx-border-action
Added
Applies the complementary color to the border-color of the element.
hx-text-action
Added
Added new action context class.
hx-background-action
Added
Added new action context class.
hx-border-action
Added
Added new action context class.
hx.palette.context
Added
Adds a context class to an element.
// adds the 'hx-positive' class to the element, and removes all other context classes
hx.palette.context('.my-element', 'positive')
hx.palette.contextString
Added
Gets a context class of an element.
// gets the context of the element (by looking at the class of the element)
hx.palette.context('.my-element')
hx.palette.textContext
Added
Adds a text context class to an element.
// adds the 'hx-text-positive' class to the element, and removes all other text context classes
hx.palette.context('.my-element', 'positive')
hx.palette.textContextString
Added
Gets the text context class of an element.
// gets the context of the element (by looking at the class of the element)
hx.palette.textContext('.my-element')
hx.palette.backgroundContext
Added
Adds a background context class to an element.
// adds the 'hx-background-positive' class to the element, and removes all other background context classes
hx.palette.context('.my-element', 'positive')
hx.palette.backgroundContextString
Added
Gets the background context class of an element.
// gets the context of the element (by looking at the class of the element)
hx.palette.backgroundContext('.my-element')
0.15.2
Added
Added the .hx-background-text-color class to allow child elements of elements with a hx-background- class the correct text color for that background.
hx-background-default
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-positive
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-warning
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-negative
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-info
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-compliment
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
hx-background-contrast
hx-background-text-color
Added
Applies the text color to a child element of any element with a background class.
0.13.0
Updated
Updated to add !important flag to the styles added by palette to make sure when the palette classes are added, the colors are applied.
0.12.8
hx-border-default
Added
Added border context classes
hx-border-positive
Added
Added border context classes
hx-border-warning
Added
Added border context classes
hx-border-negative
Added
Added border context classes
hx-border-info
Added
Added border context classes
hx-border-compliment
Added
Added border context classes
hx-border-contrast
Added
Added border context classes
hx-border-disabled
Added
Added disabled context classes
hx-text-disabled
Added
Added disabled context classes
hx-background-disabled
Added
Added disabled context classes
0.11.0
hx-background-default
Updated
Updated the background classes to override the link color
hx-background-positive
Updated
Updated the background classes to override the link color
hx-background-warning
Updated
Updated the background classes to override the link color
hx-background-negative
Updated
Updated the background classes to override the link color
hx-background-info
Updated
Updated the background classes to override the link color
hx-background-compliment
Updated
Updated the background classes to override the link color
hx-background-contrast
Updated
Updated the background classes to override the link color