mirror of
https://github.com/bspeice/speice.io
synced 2025-07-04 15:26:13 -04:00
Reorganize a bit, write some more
This commit is contained in:
@ -1,13 +0,0 @@
|
||||
import {useColorMode} from "@docusaurus/theme-common";
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
srcLight: string;
|
||||
srcDark: string;
|
||||
alt: string;
|
||||
}
|
||||
const DualImage = ({srcLight, srcDark, alt}: Props) => {
|
||||
const {colorMode} = useColorMode();
|
||||
return <img src={colorMode === "dark" ? srcDark : srcLight} alt={alt} />
|
||||
}
|
||||
export default DualImage;
|
@ -29,4 +29,11 @@ adapted for Victory charts
|
||||
*/
|
||||
[data-theme='dark'] .VictoryContainer {
|
||||
filter: invert(75%) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
/*
|
||||
Custom magic comment for Prism - hide parts of the code in display
|
||||
*/
|
||||
.code-block-hidden {
|
||||
display: none;
|
||||
}
|
Reference in New Issue
Block a user