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
938dea2a
Commit
938dea2a
authored
Jun 25, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: life bar style
parent
979e3104
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
22 deletions
+50
-22
src/styles/core.scss
src/styles/core.scss
+16
-1
src/ui/Duel/Message/CardModal/index.scss
src/ui/Duel/Message/CardModal/index.scss
+0
-3
src/ui/Duel/PlayMat/LifeBar/index.scss
src/ui/Duel/PlayMat/LifeBar/index.scss
+26
-12
src/ui/Duel/PlayMat/LifeBar/index.tsx
src/ui/Duel/PlayMat/LifeBar/index.tsx
+8
-6
No files found.
src/styles/core.scss
View file @
938dea2a
// ref: https://github.com/jvcjunior/login-react-redux
// ref: https://github.com/jvcjunior/login-react-redux
// thanks!
// thanks!
@charset
"utf-8"
;
@charset
"utf-8"
;
@import
url("https://fonts.googleapis.com/css2?family=Electrolize&display=swap")
;
ol
,
ol
,
ul
{
ul
{
...
@@ -34,7 +35,8 @@ body {
...
@@ -34,7 +35,8 @@ body {
color-scheme
:
light
dark
;
color-scheme
:
light
dark
;
color
:
rgba
(
255
,
255
,
255
,
0
.87
);
color
:
rgba
(
255
,
255
,
255
,
0
.87
);
background-color
:
#141414
;
background-color
:
#141414
;
font
:
87
.5%
/
1
.5em
"Open Sans"
,
sans-serif
;
// font: 87.5%/1.5em "Open Sans", sans-serif;
font-size
:
14px
;
display
:
flex
;
display
:
flex
;
margin
:
0
;
margin
:
0
;
place-items
:
center
;
place-items
:
center
;
...
@@ -94,3 +96,16 @@ img {
...
@@ -94,3 +96,16 @@ img {
user-select
:
none
;
user-select
:
none
;
-webkit-user-drag
:
none
;
-webkit-user-drag
:
none
;
}
}
div
,
p
,
section
,
span
,
image
,
img
{
box-sizing
:
border-box
;
}
body
{
--theme-font
:
"Electrolize"
,
sans-serif
;
}
src/ui/Duel/Message/CardModal/index.scss
View file @
938dea2a
@import
url("https://fonts.googleapis.com/css2?family=Electrolize&display=swap")
;
.card-modal-root
{
.card-modal-root
{
--theme-font
:
"Electrolize"
,
sans-serif
;
.ant-drawer-content-wrapper
{
.ant-drawer-content-wrapper
{
box-shadow
:
none
;
box-shadow
:
none
;
}
}
...
...
src/ui/Duel/PlayMat/LifeBar/index.scss
View file @
938dea2a
#life-bar-container
{
#life-bar-container
{
position
:
fixed
;
position
:
fixed
;
display
:
flex
;
display
:
flex
;
gap
:
20px
;
top
:
0
;
top
:
20px
;
left
:
0
;
right
:
20px
;
height
:
100vh
;
// FIXME: 100% on safari
font-size
:
1
.5em
;
display
:
flex
;
font-weight
:
500
;
font-family
:
inherit
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
padding
:
20px
35px
;
pointer-events
:
none
;
z-index
:
100
;
}
}
#life-bar
{
.life-bar
{
padding
:
0
.8em
1
.6em
;
width
:
160px
;
background-color
:
#a9a9a9
;
color
:
white
;
background-color
:
rgb
(
50
,
50
,
50
);
font-family
:
var
(
--
theme-font
);
border
:
1px
solid
#222
;
padding
:
1rem
;
padding-bottom
:
0
.6rem
;
border-radius
:
8px
;
border-radius
:
8px
;
text-align
:
left
;
text-align
:
left
;
border
:
1px
solid
transparent
;
display
:
flex
;
color
:
black
;
flex-direction
:
column
;
opacity
:
0
.4
;
gap
:
8px
;
.name
{
font-size
:
0
.8rem
;
font-weight
:
bold
;
}
.life
{
font-size
:
2rem
;
}
}
}
src/ui/Duel/PlayMat/LifeBar/index.tsx
View file @
938dea2a
...
@@ -11,12 +11,14 @@ export const LifeBar: React.FC = () => {
...
@@ -11,12 +11,14 @@ export const LifeBar: React.FC = () => {
return
(
return
(
<
div
id=
"life-bar-container"
>
<
div
id=
"life-bar-container"
>
<
div
id=
"life-bar"
>
{
`${snapPlayer.getMePlayer().name}: ${
<
div
className=
"life-bar"
>
snap.me.life
<
div
className=
"name"
>
{
snapPlayer
.
getMePlayer
().
name
}
</
div
>
}`
}
</
div
>
<
div
className=
"life"
>
{
snap
.
me
.
life
}
</
div
>
<
div
id=
"life-bar"
>
{
`${snapPlayer.getOpPlayer().name}: ${
</
div
>
snap.op.life
<
div
className=
"life-bar"
>
}`
}
</
div
>
<
div
className=
"name"
>
{
snapPlayer
.
getOpPlayer
().
name
}
</
div
>
<
div
className=
"life"
>
{
snap
.
op
.
life
}
</
div
>
</
div
>
</
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