Compile hook-inverse colours as CSS variables now components don't import the full less theme
This commit is contained in:
parent
21d0beedb9
commit
7aab8b742a
4 changed files with 24 additions and 23 deletions
|
|
@ -160,6 +160,27 @@
|
|||
@sidebar-right-left: 0px;
|
||||
@sidebar-right-left-xl: 60px;
|
||||
|
||||
/**
|
||||
* Self inverting colours
|
||||
*
|
||||
* These invert automatically when the theme inverts. these need to be used as css variables.
|
||||
* They can be used without importing uikit/src/less/uikit.theme.less fully into the
|
||||
* component.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--theme-text-colour: @global-color;
|
||||
.hook-inverse() {
|
||||
--theme-text-colour: @inverse-global-color;
|
||||
}
|
||||
|
||||
--theme-primary-background: @global-primary-background;
|
||||
.hook-inverse() {
|
||||
--theme-primary-background: @inverse-primary-muted-color;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Navbar
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue