Update OpenAboutPage.ts - Move css to injected.scss

This commit is contained in:
Jones
2025-05-30 12:16:53 +09:30
committed by GitHub
parent 59e195d2aa
commit 280163111e
-20
View File
@@ -5,26 +5,6 @@ import { animate, stagger } from "motion";
import { DeleteWhatsNew } from "../Whatsnew"; import { DeleteWhatsNew } from "../Whatsnew";
export function OpenAboutPage() { export function OpenAboutPage() {
if (!document.getElementById('about-here-link-style')) {
const style = document.createElement('style');
style.id = 'about-here-link-style';
style.textContent = `
.about-here-link {
background: rgba(0, 102, 255, 0.07) !important;
border-radius: 0.3em !important;
padding: 2px 10px !important;
color:rgb(56, 166, 255) !important;
font-weight: 500 !important;
transition: background 0.2s, color 0.2s !important;
cursor: pointer !important;
}
.about-here-link:hover {
background: rgba(0, 102, 255, 0.13) !important;
color:rgb(80, 168, 255) !important;
}
`;
document.head.appendChild(style);
}
const background = document.createElement("div"); const background = document.createElement("div");
background.id = "whatsnewbk"; background.id = "whatsnewbk";
background.classList.add("whatsnewBackground"); background.classList.add("whatsnewBackground");