Open Huauauaa opened 2 years ago
input:-webkit-autofill,
input:-webkit-autofill:focus {
transition: background-color 600000s 0s, color 600000s 0s;
}
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
css or js
css
body { color: black; background: white; } @media (prefers-color-scheme: dark) { body { color: white; background: black; } }
js
import { useEffect, useState } from "react"
export type ThemeName = "light" | "dark"
function useTheme() {
const [themeName, setThemeName] = useState
export default useTheme
i[class*='icon-'] {
font-size: 1rem;
}
i[class^='icon-'] {
font-size: 1rem;
}
专为英文场景设计
- 默认值:manual
hyphens: auto
可以让英文单词断开时带上连字符
设置父元素 css overflow: hidden
省略号
一行
两行