Commit dc06b81c authored by timel's avatar timel Committed by Chunchi Che

feat: update style

parent 69398078
import { Button, Modal, type ModalProps } from "antd"; import { Button, Modal, type ModalProps } from "antd";
import { type FC, useRef, useState, type CSSProperties } from "react"; import { type FC, useRef, useState, type CSSProperties } from "react";
import { MinusOutlined } from "@ant-design/icons"; import { MinusOutlined, UpOutlined } from "@ant-design/icons";
import classNames from "classnames"; import classNames from "classnames";
import "./index.scss"; import "./index.scss";
...@@ -8,16 +8,18 @@ interface Props extends ModalProps { ...@@ -8,16 +8,18 @@ interface Props extends ModalProps {
canBeMinimized?: boolean; canBeMinimized?: boolean;
} }
export const NewModal: FC<Props> = (props) => { export const NeosModal: FC<Props> = (props) => {
const { canBeMinimized = true } = props; const { canBeMinimized = true } = props;
const [mini, setMini] = useState(false); const [mini, setMini] = useState(false);
return ( return (
<Modal <Modal
className={classNames("neos-modal", { "neos-modal-mini": mini })} className={classNames("neos-modal", { "neos-modal-mini": mini })}
centered centered
maskClosable={false}
onCancel={() => setMini(!mini)} onCancel={() => setMini(!mini)}
closeIcon={<MinusOutlined />} closeIcon={mini ? <UpOutlined /> : <MinusOutlined />}
bodyStyle={{ padding: "10px 0" }} bodyStyle={{ padding: "10px 0" }}
mask={!mini}
{...props} {...props}
/> />
); );
......
...@@ -25,7 +25,7 @@ import { matStore } from "@/stores"; ...@@ -25,7 +25,7 @@ import { matStore } from "@/stores";
import { groupBy } from "../../utils"; import { groupBy } from "../../utils";
import { NewModal } from "../NewModal"; import { NeosModal } from "../NewModal";
import { YgoCard } from "@/ui/Shared"; import { YgoCard } from "@/ui/Shared";
import "./index.scss"; import "./index.scss";
...@@ -133,7 +133,7 @@ export const NewSelectActionsModal: FC = () => { ...@@ -133,7 +133,7 @@ export const NewSelectActionsModal: FC = () => {
); );
return ( return (
<NewModal <NeosModal
title={ title={
<> <>
<span>{preHintMsg}</span> <span>{preHintMsg}</span>
...@@ -204,7 +204,7 @@ export const NewSelectActionsModal: FC = () => { ...@@ -204,7 +204,7 @@ export const NewSelectActionsModal: FC = () => {
))} ))}
</Space> </Space>
</div> </div>
</NewModal> </NeosModal>
); );
}; };
......
...@@ -19,7 +19,7 @@ section#mat { ...@@ -19,7 +19,7 @@ section#mat {
height: var(--block-height-m); height: var(--block-height-m);
width: var(--block-width); width: var(--block-width);
// background-color: rgba(128, 128, 128, 0.447); // background-color: rgba(128, 128, 128, 0.447);
background: radial-gradient(#232323, #212121); background: radial-gradient(#262626, #303030);
// box-shadow: 0 0 0 1px purple; // box-shadow: 0 0 0 1px purple;
position: relative; position: relative;
&.extra { &.extra {
...@@ -29,13 +29,17 @@ section#mat { ...@@ -29,13 +29,17 @@ section#mat {
height: var(--block-height-s); height: var(--block-height-s);
} }
&.highlight { &.highlight {
box-shadow: 0 0 0 1px #00b0ff, 0 0 13px 0px #0077ff, // box-shadow: 0 0 0 1px #00b0ff, 0 0 13px 0px #0077ff,
0 0 11px 0 skyblue inset; // 0 0 11px 0 skyblue inset;
background: #142f47;
.triangle {
--color: #006eff;
}
} }
.triangle { .triangle {
width: 0; width: 0;
height: 0; height: 0;
--color: #292929; --color: #444444;
border-width: 5px; border-width: 5px;
border-style: solid; border-style: solid;
position: absolute; position: absolute;
......
...@@ -94,7 +94,7 @@ section#mat { ...@@ -94,7 +94,7 @@ section#mat {
} }
} }
.highlight { .mat-card .highlight {
box-shadow: 0 0 10px 2px #5db7ff; box-shadow: 0 0 10px 2px #5db7ff;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment