mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-02-16 14:50:44 +00:00
chore: fixes, several improvements and refactorings (#2)
* chore: fixes * chore: rubocop fixes, linting, etc. * chore: switching to use `brew style` only * chore: use `brew style` for linting, skip example formulae in ci.yml * chore(lint): fixes, additions and tweaks
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
}
|
||||
|
||||
function getSystemTheme() {
|
||||
return window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||
return window.matchMedia?.("(prefers-color-scheme: dark)").matches
|
||||
? "dark"
|
||||
: "light";
|
||||
}
|
||||
|
||||
function getCurrentTheme() {
|
||||
@@ -137,8 +139,11 @@
|
||||
const cards = document.querySelectorAll(".formula-card");
|
||||
|
||||
cards.forEach((card) => {
|
||||
const text = `${card.querySelector("h3")?.textContent || ""} ${card.querySelector("p")?.textContent || ""}`;
|
||||
card.style.display = !searchTerm || fuzzyMatch(searchTerm, text) ? "" : "none";
|
||||
const text = `${card.querySelector("h3")?.textContent || ""} ${
|
||||
card.querySelector("p")?.textContent || ""
|
||||
}`;
|
||||
card.style.display =
|
||||
!searchTerm || fuzzyMatch(searchTerm, text) ? "" : "none";
|
||||
});
|
||||
}
|
||||
searchInput.addEventListener("input", () => {
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
@font-face {
|
||||
font-family: "Monaspace Argon";
|
||||
src:
|
||||
url("assets/MonaspaceArgonVar.woff2") format("woff2"),
|
||||
url("assets/MonaspaceArgonVar.woff") format("woff");
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-family: "Monaspace Argon";
|
||||
src:
|
||||
url("assets/MonaspaceArgonVar.woff2") format("woff2"),
|
||||
url("assets/MonaspaceArgonVar.woff") format("woff");
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family:
|
||||
"Monaspace Argon",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
font-family:
|
||||
"Monaspace Argon",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family:
|
||||
"Monaspace Argon",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
font-family:
|
||||
"Monaspace Argon",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
code,
|
||||
pre {
|
||||
font-family: "Monaspace Argon", monospace;
|
||||
font-feature-settings:
|
||||
"calt", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08", "ss09", "ss10",
|
||||
"liga";
|
||||
font-family: "Monaspace Argon", monospace;
|
||||
font-feature-settings:
|
||||
"calt", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08",
|
||||
"ss09", "ss10", "liga";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user