Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
d099cc09
Commit
d099cc09
authored
Jul 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 卡片阴影/手卡z/hint style
parent
63461ca2
Pipeline
#22595
passed with stages
in 12 minutes and 12 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
src/ui/Duel/Message/HintNotification/index.tsx
src/ui/Duel/Message/HintNotification/index.tsx
+3
-3
src/ui/Duel/PlayMat/Card/index.scss
src/ui/Duel/PlayMat/Card/index.scss
+5
-2
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+1
-1
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+1
-1
No files found.
src/ui/Duel/Message/HintNotification/index.tsx
View file @
d099cc09
...
@@ -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
();
...
...
src/ui/Duel/PlayMat/Card/index.scss
View file @
d099cc09
...
@@ -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
#0099ff
87
;
transform
:
translateZ
(
calc
((
var
(
--
z
))
*
1px
+
0
.1px
));
}
}
@keyframes
focus
{
@keyframes
focus
{
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
d099cc09
...
@@ -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
"
]
}
...
...
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
d099cc09
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment