refactor(frontend): move stylings out of logic into centralized file
This commit is contained in:
28
frontend/src/styles/stats/modal.ts
Normal file
28
frontend/src/styles/stats/modal.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { palette } from "./palette";
|
||||
import type { StyleMap } from "./types";
|
||||
|
||||
export const modalStyles: StyleMap = {
|
||||
modalRoot: {
|
||||
position: "relative",
|
||||
zIndex: 50,
|
||||
},
|
||||
|
||||
modalBackdrop: {
|
||||
position: "fixed",
|
||||
inset: 0,
|
||||
background: palette.modalBackdrop,
|
||||
},
|
||||
|
||||
modalContainer: {
|
||||
position: "fixed",
|
||||
inset: 0,
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
padding: 16,
|
||||
},
|
||||
|
||||
modalPanel: {
|
||||
width: "min(520px, 95vw)",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user