Merge branch 'fix-hook-inverse' into 'v3'
Compile hook-inverse colours as CSS variables now components don't import the full less theme See merge request openflexure/openflexure-microscope-server!623
This commit is contained in:
commit
e08e996f48
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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -63,14 +63,7 @@ export default {
|
|||
|
||||
.progress .indeterminate,
|
||||
.progress .determinate {
|
||||
background-color: @global-primary-background;
|
||||
}
|
||||
|
||||
.hook-inverse() {
|
||||
.progress .indeterminate,
|
||||
.progress .determinate {
|
||||
background-color: @inverse-primary-muted-color;
|
||||
}
|
||||
background-color: var(--theme-primary-background);
|
||||
}
|
||||
|
||||
.progress .indeterminate::before {
|
||||
|
|
|
|||
|
|
@ -81,14 +81,7 @@ export default {
|
|||
|
||||
.progress .indeterminate,
|
||||
.progress .determinate {
|
||||
background-color: @global-primary-background;
|
||||
}
|
||||
|
||||
.hook-inverse() {
|
||||
.progress .indeterminate,
|
||||
.progress .determinate {
|
||||
background-color: @inverse-primary-muted-color;
|
||||
}
|
||||
background-color: var(--theme-primary-background);
|
||||
}
|
||||
|
||||
.progress .indeterminate::before {
|
||||
|
|
|
|||
|
|
@ -147,13 +147,7 @@ export default {
|
|||
}
|
||||
|
||||
.copy-button:hover {
|
||||
color: @global-color;
|
||||
}
|
||||
|
||||
.hook-inverse() {
|
||||
.copy-button:hover {
|
||||
color: @inverse-global-color;
|
||||
}
|
||||
color: var(--themed-global-colour);
|
||||
}
|
||||
|
||||
.copy-button.success {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue