fix(bstats): improve highcharts theming (#201)
* fix: improved highcharts theming - hovering over a line graph is now themed - fix theming of the time navigator - "graps use accent color" is now fully finished - map legend & info box when hovering over the map is now properly themed * update images
This commit is contained in:
1 parent
f16f4c9b12
commit
9b67098d34
6 files changed
+98
-35
No files matched your search
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:00d929a2b28e7e48a76e24e4a5c0da7368b064a516ab28480c834c9d9b1680a7
|
oid sha256:d7ed0004a943e500a92d6ab4ffc6007282b114f20bb9a46753dc3bb8761f5c96
|
||||||
size 82034
|
size 78040
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:80bb819ae9168ab0477f16b437d7d76c54a6fd7ace4cbfa2d2ce4157a3e345e3
|
oid sha256:3d1adfa06e8be863dd10fbf2bc60ad82c3de97d7fe2068040fd57d2a20805f97
|
||||||
size 40578
|
size 38248
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:30aa36fa43b58b38330cd6d97e8e72fd112bd6177513eaa85a59172814916af5
|
oid sha256:88c214f4c3fff852243a256de31d95bec6927532368340cb096ee1d522238de4
|
||||||
size 42688
|
size 40968
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9c8ddc789e2b0297fc33f6c5c2a515c9caf907f0727db50ab7d4bc36613d6c2a
|
oid sha256:010068b1cbe3063ba8c434b3d8c0298d1ffbe7cff3be651a80787467b7778473
|
||||||
size 41436
|
size 39370
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c1e3bc5358440019af1f6ebc363ce00e8ef76dfcd24e6b5cd7bf58ce0634e1da
|
oid sha256:f7cb1159318edbbe8f32d5deab1a4ace55e0a07d6fe536e84847ee8c02b045fc
|
||||||
size 41604
|
size 40054
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
@name bStats Catppuccin
|
@name bStats Catppuccin
|
||||||
@namespace github.com/catppuccin/userstyles/styles/bstats
|
@namespace github.com/catppuccin/userstyles/styles/bstats
|
||||||
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/bstats
|
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/bstats
|
||||||
@version 0.1.0
|
@version 0.1.1
|
||||||
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/bstats/catppuccin.user.css
|
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/bstats/catppuccin.user.css
|
||||||
@description Soothing pastel theme for bStats
|
@description Soothing pastel theme for bStats
|
||||||
@author Catppuccin
|
@author Catppuccin
|
||||||
@@ -466,52 +466,89 @@
|
|||||||
.highcharts-graph when (@graphUseAccentColor=0) {
|
.highcharts-graph when (@graphUseAccentColor=0) {
|
||||||
stroke: @red;
|
stroke: @red;
|
||||||
}
|
}
|
||||||
|
/* "shadow" area below graph in time navigator */
|
||||||
|
.highcharts-area {
|
||||||
|
fill: fade(@red, 5%) !important;
|
||||||
|
& when (@graphUseAccentColor=1) {
|
||||||
|
fill: fade(@accent-color, 5%) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*background*/
|
/* charts background */
|
||||||
.highcharts-container {
|
.highcharts-container {
|
||||||
background: @base !important;
|
background: @base !important;
|
||||||
}
|
}
|
||||||
/* map blends in with background on latte flavor */
|
/* map blends in with background on latte flavor */
|
||||||
.highcharts-point when (@flavor=latte) {
|
.highcharts-point {
|
||||||
|
stroke: @base !important;
|
||||||
|
& when (@flavor=latte) {
|
||||||
stroke: @overlay0 !important;
|
stroke: @overlay0 !important;
|
||||||
}
|
}
|
||||||
.highcharts-point {
|
|
||||||
stroke: @base;
|
|
||||||
}
|
}
|
||||||
/*grid*/
|
/* graph chart grid */
|
||||||
.highcharts-grid .highcharts-yaxis-grid,
|
.highcharts-grid.highcharts-yaxis-grid .highcharts-grid-line {
|
||||||
.highcharts-grid-line {
|
|
||||||
stroke: @surface0;
|
stroke: @surface0;
|
||||||
}
|
}
|
||||||
.highcharts-axis .highcharts-xaxis,
|
/* bottom timeline line */
|
||||||
.highcharts-tick,
|
.highcharts-tick,
|
||||||
.highcharts-axis-line {
|
.highcharts-xaxis .highcharts-axis-line {
|
||||||
stroke: @surface1;
|
stroke: @surface1;
|
||||||
}
|
}
|
||||||
|
/* bottom timeline & y axis text text */
|
||||||
|
.highcharts-axis-labels.highcharts-xaxis-labels text,
|
||||||
|
.highcharts-axis-labels.highcharts-yaxis-labels text {
|
||||||
|
fill: @subtext1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* vertical line on graph hover */
|
/* vertical line on graph hover */
|
||||||
.highcharts-crosshair,
|
.highcharts-crosshair,
|
||||||
.highcharts-crosshair-thin {
|
.highcharts-crosshair-thin {
|
||||||
stroke: @overlay2;
|
stroke: @overlay2;
|
||||||
}
|
}
|
||||||
|
/* circle marker on graph */
|
||||||
|
.highcharts-markers .highcharts-halo.highcharts-color-0 {
|
||||||
|
fill: @red !important;
|
||||||
|
stroke: none !important;
|
||||||
|
& when (@graphUseAccentColor=1) {
|
||||||
|
fill: @accent-color !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.highcharts-markers path {
|
||||||
|
fill: @red !important;
|
||||||
|
stroke: @base !important;
|
||||||
|
& when (@graphUseAccentColor=1) {
|
||||||
|
fill: @accent-color !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* time navigator on bottom */
|
/* time navigator on bottom */
|
||||||
|
/* active time span */
|
||||||
.highcharts-navigator,
|
.highcharts-navigator,
|
||||||
.highcharts-navigator-mask-inside {
|
.highcharts-navigator-mask-inside {
|
||||||
fill: fade(@surface1, 33%);
|
fill: fade(@surface1, 33%);
|
||||||
}
|
}
|
||||||
.highcharts-navigator,
|
.highcharts-navigator .highcharts-navigator-outline {
|
||||||
.highcharts-navigator-outline {
|
|
||||||
stroke: @surface1;
|
stroke: @surface1;
|
||||||
}
|
}
|
||||||
.highcharts-navigator,
|
/* navigator handles on the left & right */
|
||||||
.highcharts-navigator-handle {
|
.highcharts-navigator .highcharts-navigator-handle {
|
||||||
fill: @surface2;
|
fill: @surface0;
|
||||||
stroke: @overlay1;
|
stroke: @overlay1;
|
||||||
}
|
}
|
||||||
|
/* vertical timestamp lines */
|
||||||
|
.highcharts-grid.highcharts-xaxis-grid.highcharts-navigator-xaxis .highcharts-grid-line {
|
||||||
|
stroke: @surface1;
|
||||||
|
}
|
||||||
|
/* time navigator timestamp text */
|
||||||
|
.highcharts-xaxis-labels.highcharts-navigator-xaxis tspan {
|
||||||
|
fill: @subtext0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* scrollbar */
|
/* scrollbar */
|
||||||
.highcharts-scrollbar,
|
.highcharts-scrollbar,
|
||||||
.highcharts-scrollbar-track {
|
.highcharts-scrollbar-track {
|
||||||
fill: @surface0;
|
fill: @surface0;
|
||||||
stroke: @surface0;
|
stroke: @surface1;
|
||||||
}
|
}
|
||||||
.highcharts-scrollbar,
|
.highcharts-scrollbar,
|
||||||
.highcharts-scrollbar-thumb {
|
.highcharts-scrollbar-thumb {
|
||||||
@@ -574,33 +611,59 @@
|
|||||||
stroke: @surface0 !important;
|
stroke: @surface0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*pie text*/
|
/* pie text "shadow" */
|
||||||
.highcharts-text-outline {
|
.highcharts-text-outline {
|
||||||
stroke: @mantle;
|
stroke: @mantle;
|
||||||
stroke-width: 2px;
|
stroke-width: 2px;
|
||||||
}
|
}
|
||||||
.highcharts-label,
|
/* pie text */
|
||||||
.highcharts-data-label,
|
.highcharts-label.highcharts-data-label tspan {
|
||||||
tspan {
|
|
||||||
fill: @subtext1;
|
fill: @subtext1;
|
||||||
}
|
}
|
||||||
.highcharts-label,
|
/* pie subtitle */
|
||||||
.highcharts-tooltip span {
|
.highcharts-subtitle tspan {
|
||||||
|
fill: @subtext0;
|
||||||
|
}
|
||||||
|
/* pie hover text */
|
||||||
|
.highcharts-label.highcharts-tooltip text {
|
||||||
|
fill: @subtext1 !important;
|
||||||
color: @subtext1 !important;
|
color: @subtext1 !important;
|
||||||
}
|
}
|
||||||
|
/* hover text */
|
||||||
|
.highcharts-label.highcharts-tooltip-box tspan {
|
||||||
|
fill: @subtext1;
|
||||||
|
}
|
||||||
|
/* hover text red dot */
|
||||||
|
.highcharts-label.highcharts-tooltip-box tspan[style="fill:#F44336"] {
|
||||||
|
fill: @red !important;
|
||||||
|
& when (@graphUseAccentColor=1) {
|
||||||
|
fill: @accent-color !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* map hover text */
|
||||||
|
.highcharts-label.highcharts-tooltip span:not(div.highcharts-label > span:nth-child(1) > span:nth-child(1)) {
|
||||||
|
color: @subtext1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* hover text background */
|
/* hover text background */
|
||||||
.highcharts-label-box,
|
.highcharts-label-box,
|
||||||
.highcharts-tooltip-box {
|
.highcharts-tooltip-box {
|
||||||
fill: @surface0;
|
fill: @surface0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* map legend */
|
/* map legend */
|
||||||
.highcharts-label,
|
/* legend title */
|
||||||
.highcharts-legend-title text {
|
.highcharts-label.highcharts-legend-title text {
|
||||||
fill: @subtext0 !important;
|
fill: @subtext1 !important;
|
||||||
}
|
}
|
||||||
|
/* legend labels */
|
||||||
.highcharts-axis-labels,
|
.highcharts-axis-labels,
|
||||||
.highcharts-coloraxis-labels text {
|
.highcharts-coloraxis-labels text {
|
||||||
fill: @subtext0 !important;
|
fill: @subtext0 !important;
|
||||||
}
|
}
|
||||||
|
/* vertical lines */
|
||||||
|
.highcharts-legend-item .highcharts-grid.highcharts-coloraxis-grid .highcharts-grid-line {
|
||||||
|
stroke: @base;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user