mediawiki-skins-Citizen/skinStyles/extensions/Graph/ext.graph.styles.less
alistair3149 2bf20397e1
feat(core): use filter-invert CSS variable to flip color
This decouple the filter style from the  class.
Instead, filter-invert can be redefined if needed (e.g. :root.skin-citizen-dark)
2023-07-10 16:56:56 -04:00

81 lines
1.5 KiB
Plaintext

/*
* Citizen - Graph
* https://starcitizen.tools
*/
.skin-citizen {
.vega {
background: var( --color-surface-0 );
}
/* responsive layout */
.mw-graph {
overflow: auto;
min-width: auto !important;
max-width: 100%;
canvas {
filter: var( --filter-invert );
}
}
}
.client-js {
.mw-graph-interactable {
&:hover {
.mw-graph-layover {
background-color: var( --background-color-overlay--lighter );
}
.mw-graph-switch {
&.mw-graph-loading {
background-color: var( --color-surface-0 );
}
&:hover {
background-color: var( --color-surface-0 );
}
}
}
}
.mw-graph-hover-title {
background-color: var( --color-surface-0 );
}
/* common button style */
.mw-graph-switch {
border-color: var( --border-color-base );
background-color: var( --background-color-overlay--lighter );
color: var( --color-base );
&:hover {
border-color: var( --color-primary );
background-color: var( --color-surface-0 );
color: var( --color-primary );
}
&:active {
border-color: var( --color-primary--active );
background-color: var( --color-surface-0 );
color: var( --color-primary );
}
&:focus {
border-color: var( --color-primary );
box-shadow: inset 0 0 0 1px var( --color-surface-0 );
}
/* Loading button style */
&.mw-graph-loading {
border-color: var( --color-primary--active );
background-color: var( --color-surface-0 );
color: var( --color-base--subtle );
&:hover {
border-color: var( --color-primary );
}
}
}
}