mediawiki-skins-Citizen/skinStyles/extensions/Graph/ext.graph.styles.less

81 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-03-26 16:03:03 +00:00
/*
* Citizen - Graph
* https://starcitizen.tools
*/
.skin-citizen {
.vega {
background: var( --color-surface-0 );
2021-03-26 16:03:03 +00:00
}
/* responsive layout */
.mw-graph {
min-width: auto !important;
max-width: 100%;
overflow: auto;
canvas {
filter: var( --filter-invert );
}
}
2021-03-26 16:03:03 +00:00
}
.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 );
2021-03-26 16:03:03 +00:00
}
&:hover {
background-color: var( --color-surface-0 );
2021-03-26 16:03:03 +00:00
}
}
}
}
.mw-graph-hover-title {
background-color: var( --color-surface-0 );
2021-03-26 16:03:03 +00:00
}
/* common button style */
.mw-graph-switch {
color: var( --color-base );
background-color: var( --background-color-overlay--lighter );
border-color: var( --border-color-base );
2021-03-26 16:03:03 +00:00
&:hover {
color: var( --color-primary );
background-color: var( --color-surface-0 );
border-color: var( --color-primary );
2021-03-26 16:03:03 +00:00
}
&:active {
color: var( --color-primary );
background-color: var( --color-surface-0 );
border-color: var( --color-primary--active );
2021-03-26 16:03:03 +00:00
}
&:focus {
border-color: var( --color-primary );
box-shadow: inset 0 0 0 1px var( --color-surface-0 );
2021-03-26 16:03:03 +00:00
}
/* Loading button style */
&.mw-graph-loading {
color: var( --color-base--subtle );
background-color: var( --color-surface-0 );
border-color: var( --color-primary--active );
2021-03-26 16:03:03 +00:00
&:hover {
border-color: var( --color-primary );
}
}
}
}