add normalize.css
All checks were successful
/ depoly (push) Successful in 1m25s

This commit is contained in:
thislight 2024-10-30 14:13:19 +08:00
parent 9e97f9b611
commit 2a47403c7b
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
5 changed files with 6 additions and 2 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -49,6 +49,7 @@
"iso-639-1": "^3.1.3", "iso-639-1": "^3.1.3",
"masto": "^6.10.0", "masto": "^6.10.0",
"nanostores": "^0.11.3", "nanostores": "^0.11.3",
"normalize.css": "^8.0.1",
"solid-js": "^1.9.2", "solid-js": "^1.9.2",
"solid-styled": "^0.11.1", "solid-styled": "^0.11.1",
"stacktrace-js": "^2.0.2", "stacktrace-js": "^2.0.2",

View file

@ -1,3 +1,6 @@
@import "normalize.css/normalize.css";
@import "./material/theme.css";
:root { :root {
--safe-area-inset-top: env(safe-area-inset-top); --safe-area-inset-top: env(safe-area-inset-top);
--safe-area-inset-left: env(safe-area-inset-left); --safe-area-inset-left: env(safe-area-inset-left);

View file

@ -1,5 +1,4 @@
import { render } from "solid-js/web"; import { render } from "solid-js/web";
import App from "./App.js"; import App from "./App.js";
import "./material/theme.css";
render(() => <App />, document.getElementById("root")!); render(() => <App />, document.getElementById("root")!);

View file

@ -169,7 +169,8 @@ const Home: ParentComponent = (props) => {
scroll-snap-align: center; scroll-snap-align: center;
overscroll-behavior-block: none; overscroll-behavior-block: none;
contain: strict; contain: strict;
contain-intrinsic-size: 100% 100%; contain-intrinsic-size: auto 560px auto 100vh;
contain-intrinsic-size: auto 560px auto 100dvh;
@media (max-width: 600px) { @media (max-width: 600px) {
padding: 0; padding: 0;