Commit d099cc09 authored by timel's avatar timel

feat: 卡片阴影/手卡z/hint style

parent 63461ca2
Pipeline #22595 passed with stages
in 12 minutes and 12 seconds
...@@ -10,9 +10,9 @@ import { useConfig } from "@/config"; ...@@ -10,9 +10,9 @@ import { useConfig } from "@/config";
import { HandResult, matStore } from "@/stores"; import { HandResult, matStore } from "@/stores";
const style = { const style = {
borderStyle: "groove", // borderStyle: "groove",
borderRadius: "8px", // borderRadius: "8px",
backgroundColor: "#303030", backgroundColor: "#444",
}; };
const NeosConfig = useConfig(); const NeosConfig = useConfig();
......
...@@ -107,9 +107,12 @@ section#mat { ...@@ -107,9 +107,12 @@ section#mat {
} }
.mat-card.highlight .card-shadow { .mat-card.highlight .card-shadow {
--card-shadow-color: #0099ff;
display: block !important; display: block !important;
background: linear-gradient(to right, #0079c6, #009cff) !important; background: var(--card-shadow-color) !important;
filter: blur(8px); border-radius: 5px;
box-shadow: 0 0 4px 0 var(--card-shadow-color), 0 0 25px 2px #0099ff87;
transform: translateZ(calc((var(--z)) * 1px + 0.1px));
} }
@keyframes focus { @keyframes focus {
......
...@@ -320,7 +320,7 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => { ...@@ -320,7 +320,7 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
<div className="card-shadow" /> <div className="card-shadow" />
<Dropdown <Dropdown
menu={dropdownMenu} menu={dropdownMenu}
placement="bottom" placement="top"
overlayClassName="card-dropdown" overlayClassName="card-dropdown"
arrow arrow
trigger={["click"]} trigger={["click"]}
......
...@@ -51,7 +51,7 @@ export const moveToHand: MoveFunc = async (props) => { ...@@ -51,7 +51,7 @@ export const moveToHand: MoveFunc = async (props) => {
await asyncStart(api)({ await asyncStart(api)({
x: isMe(controller) ? x : -x, x: isMe(controller) ? x : -x,
y: isMe(controller) ? y : -y, y: isMe(controller) ? y : -y,
z: 15, z: sequence,
rz: isMe(controller) ? _rz : 180 - _rz, rz: isMe(controller) ? _rz : 180 - _rz,
ry: isMe(controller) ? 0 : 180, ry: isMe(controller) ? 0 : 180,
height: HAND_CARD_HEIGHT.value, height: HAND_CARD_HEIGHT.value,
......
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