Skip to content

Commit 56aaf94

Browse files
authored
fix(hackage): color haddock menus (catppuccin#938)
* fix(hackage): color mathjax menus and quick jump * style(hackage): fix lint errors
1 parent 6e1c9af commit 56aaf94

1 file changed

Lines changed: 141 additions & 1 deletion

File tree

styles/hackage/catppuccin.user.css

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name Hackage Catppuccin
33
@namespace github.com/catppuccin/userstyles/styles/hackage
44
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/hackage
5-
@version 0.1.1
5+
@version 0.1.2
66
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/hackage/catppuccin.user.css
77
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ahackage
88
@description Soothing pastel theme for Hackage
@@ -254,6 +254,77 @@
254254
}
255255
}
256256

257+
/*
258+
* Quick jump
259+
*/
260+
261+
#search p.error {
262+
color: @red;
263+
}
264+
265+
#search-form,
266+
#search-results {
267+
box-shadow: 2px 2px 6px fade(@mantle, 20%);
268+
}
269+
270+
#search-form {
271+
input {
272+
border-color: @accent-color;
273+
}
274+
}
275+
276+
#search-results {
277+
border-color: @accent-color;
278+
279+
& > ul > li {
280+
border-bottom-color: @overlay0;
281+
}
282+
}
283+
284+
.search-module > ul > li > a[href].active-link {
285+
background-color: @surface2;
286+
}
287+
288+
.search-result ul.subs::after {
289+
color: @subtext1;
290+
}
291+
292+
.more-results,
293+
.more-results::before {
294+
color: @subtext0;
295+
}
296+
297+
.keyboard-shortcuts th {
298+
color: @accent-color;
299+
}
300+
301+
.key {
302+
background-color: @mantle;
303+
color: @text;
304+
border-color: @mantle;
305+
}
306+
307+
/*
308+
* Dropdown
309+
*/
310+
311+
.dropdown-menu {
312+
background-color: @surface0;
313+
border-color: @surface0;
314+
315+
button {
316+
background-color: @accent-color;
317+
color: @mantle;
318+
border-color: @surface2;
319+
320+
&:hover,
321+
&:active {
322+
background-color: @accent-color;
323+
color: @mantle;
324+
}
325+
}
326+
}
327+
257328
/*
258329
* Tables
259330
*/
@@ -416,6 +487,10 @@
416487
}
417488
}
418489

490+
input[type="submit"] {
491+
color: @text;
492+
}
493+
419494
input[type="range"]:hover,
420495
input[type="submit"]:hover {
421496
background-color: @crust;
@@ -500,12 +575,77 @@
500575
border-color: @overlay0;
501576
}
502577

578+
/*
579+
* MathJax
580+
*/
581+
503582
#MathJax_Message {
504583
background-color: @mantle;
505584
border-color: @surface1;
506585
color: @text;
507586
}
508587

588+
#MathJax_About,
589+
#MathJax_Help,
590+
.MathJax_Menu {
591+
background-color: @surface0;
592+
color: @text;
593+
border-color: @accent-color;
594+
box-shadow: 0 10px 20px @mantle;
595+
-webkit-box-shadow: 0 10px 20px @mantle;
596+
-moz-box-shadow: 0 10px 20px @mantle;
597+
}
598+
599+
#MathJax_About > span,
600+
#MathJax_HelpContent {
601+
background-color: @surface1 !important;
602+
color: @subtext1 !important;
603+
border-color: @overlay0 !important;
604+
}
605+
606+
.MathJax_MenuArrow {
607+
color: @subtext1;
608+
}
609+
610+
.MathJax_MenuRule {
611+
border-top-color: @overlay0;
612+
}
613+
614+
.MathJax_MenuActive {
615+
background-color: @surface1;
616+
color: @text;
617+
}
618+
619+
.MathJax_MenuDisabled {
620+
color: @overlay2;
621+
}
622+
623+
.MathJax_MenuDisabled:focus,
624+
.MathJax_MenuLabel:focus {
625+
background-color: @surface1;
626+
}
627+
628+
#MathJax_AboutClose,
629+
#MathJax_HelpClose {
630+
border-color: @surface2;
631+
color: @subtext0;
632+
span {
633+
background-color: @surface2;
634+
}
635+
636+
&:hover {
637+
color: @text !important;
638+
border-color: @overlay0 !important;
639+
span {
640+
background-color: @overlay0 !important;
641+
}
642+
}
643+
}
644+
645+
span.mathjax img when not (@lookup = latte) {
646+
filter: invert(100%);
647+
}
648+
509649
/*
510650
* Sources
511651
*/

0 commit comments

Comments
 (0)