Skip to content

Commit 33aad6b

Browse files
authored
fix(bstats): various fixes (catppuccin#218)
* fix: wrong color of (plugin) delete button * fix: wrong colors in custom chart creation menu * fix: themed the "Load full data" button
1 parent 7963027 commit 33aad6b

1 file changed

Lines changed: 95 additions & 8 deletions

File tree

styles/bstats/catppuccin.user.css

Lines changed: 95 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name bStats Catppuccin
33
@namespace github.com/catppuccin/userstyles/styles/bstats
44
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/bstats
5-
@version 0.2.0
5+
@version 0.2.1
66
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/bstats/catppuccin.user.css
77
@description Soothing pastel theme for bStats
88
@author Catppuccin
@@ -287,6 +287,9 @@
287287
.red-text {
288288
color: @red !important;
289289
}
290+
.red {
291+
background-color: @red;
292+
}
290293

291294
/* discord logo on homepage */
292295
img[src="/images/discord.svg"] when (@flavor=latte) {
@@ -329,7 +332,7 @@
329332
background-color: fade(@surface2, 5%);
330333
}
331334

332-
.input-field .active {
335+
.input-field label {
333336
color: @accent-color !important;
334337
}
335338
/* search unfocused */
@@ -366,6 +369,36 @@
366369
border-bottom: 1px solid @accent-color;
367370
box-shadow: 0 1px 0 0 @accent-color;
368371
}
372+
/* valid input */
373+
input:not([type]).valid,
374+
input:not([type]):focus.valid,
375+
input[type="text"].valid,
376+
input[type="text"]:focus.valid,
377+
input[type="password"].valid,
378+
input[type="password"]:focus.valid,
379+
input[type="email"].valid,
380+
input[type="email"]:focus.valid,
381+
input[type="url"].valid,
382+
input[type="url"]:focus.valid,
383+
input[type="time"].valid,
384+
input[type="time"]:focus.valid,
385+
input[type="date"].valid,
386+
input[type="date"]:focus.valid,
387+
input[type="datetime"].valid,
388+
input[type="datetime"]:focus.valid,
389+
input[type="datetime-local"].valid,
390+
input[type="datetime-local"]:focus.valid,
391+
input[type="tel"].valid,
392+
input[type="tel"]:focus.valid,
393+
input[type="number"].valid,
394+
input[type="number"]:focus.valid,
395+
input[type="search"].valid,
396+
input[type="search"]:focus.valid,
397+
textarea.materialize-textarea.valid,
398+
textarea.materialize-textarea:focus.valid {
399+
border-bottom: 1px solid @green;
400+
box-shadow: 0 1px 0 0 @green;
401+
}
369402

370403
.teal-text,
371404
.teal-text.text-darken-2,
@@ -392,13 +425,15 @@
392425
[disabled].btn-large,
393426
.btn-floating[disabled],
394427
.btn-large[disabled],
395-
.btn-flat[disabled] {
428+
.btn-flat[disabled],
429+
.btn-large.red[disabled],
430+
.btn-large.red.disabled[id="delete_button"] {
396431
background-color: @mantle !important;
397432
color: @subtext0 !important;
398433
}
399-
400-
.btn-large.red {
401-
background-color: darken(@red, 30%) !important;
434+
.btn-large.red[id="delete_button"] {
435+
color: @mantle !important;
436+
background-color: @red !important;
402437
}
403438

404439
.card {
@@ -439,7 +474,7 @@
439474
}
440475

441476
.divider {
442-
background-color: @overlay2;
477+
background-color: @surface1;
443478
}
444479
.caret {
445480
color: @overlay1 !important;
@@ -453,12 +488,51 @@
453488
}
454489
}
455490
.switch label input[type="checkbox"]:checked + .lever {
456-
background-color: desaturate(darken(@accent-color, 30%), 50%);
491+
background-color: desaturate(darken(@accent-color, 25%), 50%);
492+
& when (@flavor=latte) {
493+
background-color: desaturate(lighten(@accent-color, 12%), 30%);
494+
}
457495
&::after {
458496
background-color: @accent-color;
459497
}
460498
}
461499

500+
/* custom chart filter data */
501+
.chip {
502+
color: @text;
503+
background-color: @surface1;
504+
}
505+
.chips .chip.selected {
506+
background-color: @accent-color;
507+
color: @base;
508+
}
509+
.chips.focus {
510+
border-bottom: 1px solid @accent-color;
511+
box-shadow: 0 1px 0 0 @accent-color;
512+
}
513+
.chips .input {
514+
color: @text;
515+
}
516+
input:not([type]),
517+
input[type="text"],
518+
input[type="password"],
519+
input[type="email"],
520+
input[type="url"],
521+
input[type="time"],
522+
input[type="date"],
523+
input[type="datetime"],
524+
input[type="datetime-local"],
525+
input[type="tel"],
526+
input[type="number"],
527+
input[type="search"],
528+
textarea.materialize-textarea {
529+
border-bottom: 1px solid @overlay2;
530+
box-shadow: 1 1px 0 0 @overlay2 !important;
531+
}
532+
input[placeholder="Add an other value"] {
533+
border-bottom: 0px solid @overlay2 !important;
534+
}
535+
462536
/* HIGHCHARTS "let's hope this does'nt break"-section */
463537
/* all the charts */
464538
.highcharts-graph when (@graphUseAccentColor=1) {
@@ -613,6 +687,19 @@
613687
stroke: @surface0 !important;
614688
}
615689

690+
/* "Load full data" button */
691+
.highcharts-menu {
692+
background: @surface0 !important;
693+
border: 1px solid @surface1 !important;
694+
box-shadow: @mantle 3px 3px 10px !important;
695+
}
696+
.highcharts-menu-item {
697+
color: @text !important;
698+
&:hover {
699+
color: @base !important;
700+
background: @accent-color !important;
701+
}
702+
}
616703
/* pie text "shadow" */
617704
.highcharts-text-outline {
618705
stroke: @mantle;

0 commit comments

Comments
 (0)