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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
love_飞影
Neos
Commits
35f6ae2e
Commit
35f6ae2e
authored
Jul 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: small
parent
6dcb5e7d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
27 deletions
+35
-27
src/ui/Duel/PlayMat/LifeBar/index.scss
src/ui/Duel/PlayMat/LifeBar/index.scss
+28
-0
src/ui/Duel/PlayMat/LifeBar/index.tsx
src/ui/Duel/PlayMat/LifeBar/index.tsx
+7
-4
src/ui/Duel/PlayMat/Menu/index.scss
src/ui/Duel/PlayMat/Menu/index.scss
+0
-22
src/ui/Duel/PlayMat/Menu/index.tsx
src/ui/Duel/PlayMat/Menu/index.tsx
+0
-1
No files found.
src/ui/Duel/PlayMat/LifeBar/index.scss
View file @
35f6ae2e
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
.life-bar
{
.life-bar
{
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
width
:
100%
;
width
:
100%
;
color
:
white
;
color
:
white
;
background-color
:
var
(
--
bg-color
);
background-color
:
var
(
--
bg-color
);
...
@@ -47,4 +48,31 @@
...
@@ -47,4 +48,31 @@
display
:
flex
;
display
:
flex
;
gap
:
8px
;
gap
:
8px
;
align-items
:
center
;
align-items
:
center
;
overflow
:
hidden
;
position
:
relative
;
.timer-text
{
min-width
:
3
.25em
;
}
}
.floodlight
{
position
:
absolute
;
height
:
100%
;
width
:
40px
;
background-color
:
#aaa
;
top
:
0
;
right
:
0
;
filter
:
blur
(
30px
);
transform
:
skewX
(
-20deg
);
}
.floodlight-run
{
animation
:
floodlight
4s
linear
infinite
;
}
@keyframes
floodlight
{
0
%
{
right
:
-80px
;
}
100
%
{
right
:
calc
(
100%
+
80px
);
}
}
}
src/ui/Duel/PlayMat/LifeBar/index.tsx
View file @
35f6ae2e
...
@@ -89,12 +89,14 @@ const LifeBarItem: React.FC<{
...
@@ -89,12 +89,14 @@ const LifeBarItem: React.FC<{
?
"
00:00
"
?
"
00:00
"
:
`
${
mm
<
10
?
"
0
"
+
mm
:
mm
}
:
${
ss
<
10
?
"
0
"
+
ss
:
ss
}
`
;
:
`
${
mm
<
10
?
"
0
"
+
mm
:
mm
}
:
${
ss
<
10
?
"
0
"
+
ss
:
ss
}
`
;
return
(
return
(
<
Space
<
div
direction=
"vertical"
style=
{
{
style=
{
{
flexDirection
:
isMe
?
"
column-reverse
"
:
"
column
"
,
flexDirection
:
isMe
?
"
column-reverse
"
:
"
column
"
,
overflow
:
"
hidden
"
,
display
:
"
flex
"
,
gap
:
"
0.5rem
"
,
position
:
"
relative
"
,
}
}
}
}
size=
{
12
}
>
>
<
div
<
div
className=
{
classNames
(
"
life-bar
"
,
{
className=
{
classNames
(
"
life-bar
"
,
{
...
@@ -113,8 +115,9 @@ const LifeBarItem: React.FC<{
...
@@ -113,8 +115,9 @@ const LifeBarItem: React.FC<{
size=
{
14
}
size=
{
14
}
/>
/>
<
div
className=
"timer-text"
>
{
timeText
}
</
div
>
<
div
className=
"timer-text"
>
{
timeText
}
</
div
>
<
div
className=
"floodlight floodlight-run"
/>
</
div
>
</
div
>
)
}
)
}
</
Space
>
</
div
>
);
);
};
};
src/ui/Duel/PlayMat/Menu/index.scss
View file @
35f6ae2e
...
@@ -10,26 +10,4 @@
...
@@ -10,26 +10,4 @@
padding
:
8px
;
padding
:
8px
;
border-radius
:
6px
;
border-radius
:
6px
;
overflow
:
hidden
;
overflow
:
hidden
;
.floodlight
{
position
:
absolute
;
height
:
100%
;
width
:
40px
;
background-color
:
white
;
top
:
0
;
right
:
0
;
filter
:
blur
(
30px
);
transform
:
skewX
(
-20deg
);
}
.floodlight-run
{
animation
:
floodlight
1s
linear
infinite
;
}
}
@keyframes
floodlight
{
0
%
{
right
:
-80px
;
}
100
%
{
right
:
calc
(
100%
+
80px
);
}
}
}
src/ui/Duel/PlayMat/Menu/index.tsx
View file @
35f6ae2e
...
@@ -124,7 +124,6 @@ export const Menu = () => {
...
@@ -124,7 +124,6 @@ export const Menu = () => {
>
>
<
Button
icon=
{
<
CloseCircleFilled
/>
}
type=
"text"
></
Button
>
<
Button
icon=
{
<
CloseCircleFilled
/>
}
type=
"text"
></
Button
>
</
DropdownWithTitle
>
</
DropdownWithTitle
>
{
/* <div className="floodlight floodlight-run" /> */
}
</
div
>
</
div
>
</>
</>
);
);
...
...
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