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
294d0f81
Commit
294d0f81
authored
Aug 03, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: small styles
parent
e3920259
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
36 deletions
+37
-36
src/styles/core.scss
src/styles/core.scss
+1
-6
src/ui/BuildDeck/DeckSelect.module.scss
src/ui/BuildDeck/DeckSelect.module.scss
+6
-3
src/ui/BuildDeck/DeckSelect.tsx
src/ui/BuildDeck/DeckSelect.tsx
+2
-2
src/ui/BuildDeck/index.module.scss
src/ui/BuildDeck/index.module.scss
+9
-8
src/ui/BuildDeck/index.tsx
src/ui/BuildDeck/index.tsx
+19
-16
src/ui/Duel/Message/CardModal/Desc.module.scss
src/ui/Duel/Message/CardModal/Desc.module.scss
+0
-1
No files found.
src/styles/core.scss
View file @
294d0f81
...
...
@@ -35,17 +35,16 @@ body {
color-scheme
:
light
dark
;
color
:
rgba
(
255
,
255
,
255
,
0
.87
);
background
:
#0f131e
;
// font: 87.5%/1.5em "Open Sans", sans-serif;
font-size
:
14px
;
display
:
flex
;
margin
:
0
;
// place-items: center;
min-width
:
320px
;
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
font-family
:
var
(
--
theme-font
);
}
a
{
...
...
@@ -80,10 +79,6 @@ p {
}
.container
{
// left: 50%;
// position: fixed;
// top: 50%;
// transform: translate(-50%, -50%);
margin
:
0
auto
;
width
:
100%
;
max-width
:
300px
;
...
...
src/ui/BuildDeck/DeckSelect.module.scss
View file @
294d0f81
...
...
@@ -33,6 +33,8 @@
.btns
{
transition
:
0
.2s
;
opacity
:
0
;
display
:
flex
;
gap
:
4px
;
}
&
:hover
{
.hover
,
...
...
@@ -44,14 +46,15 @@
}
.btn-add
{
position
:
fixed
;
position
:
absolute
;
bottom
:
40px
;
left
:
calc
(
300px
/
2
);
// 暂时没想到太好的办法,只能先设为sider的一半
left
:
50%
;
transform
:
translate
(
-50%
);
background
-color
:
rgb
(
59
,
0
,
169
);
background
:
linear-gradient
(
rgba
(
89
,
0
,
255
,
0
.611
)
,
rgba
(
38
,
0
,
255
,
0
.611
)
);
box-shadow
:
0
0
10px
0
rgba
(
0
,
0
,
0
,
0
.5
);
&
:hover
{
background-color
:
rgb
(
78
,
0
,
223
)
!
important
;
box-shadow
:
0
0
20px
0
rgba
(
128
,
0
,
255
,
0
.5
);
transform
:
translate
(
-50%
)
scale
(
1
.3
);
}
}
src/ui/BuildDeck/DeckSelect.tsx
View file @
294d0f81
...
...
@@ -27,13 +27,13 @@ export const DeckSelect: React.FC<{
<
Button
icon=
{
<
DeleteOutlined
/>
}
type=
"text"
s
hape=
"circle
"
s
ize=
"small
"
onClick=
{
cancelBubble
(()
=>
onDelete
(
id
))
}
/>
<
Button
icon=
{
<
DownloadOutlined
/>
}
type=
"text"
s
hape=
"circle
"
s
ize=
"small
"
onClick=
{
cancelBubble
(()
=>
onDownload
(
id
))
}
/>
</
div
>
...
...
src/ui/BuildDeck/index.module.scss
View file @
294d0f81
...
...
@@ -5,19 +5,20 @@
left
:
0
;
top
:
var
(
--
nav-height
);
height
:
calc
(
100%
-
var
(
--
nav-height
));
display
:
flex
;
}
.sider
{
max-height
:
100%
;
min-height
:
100%
;
overflow-x
:
hidden
;
overflow-y
:
overlay
;
--sider-width
:
300px
;
width
:
var
(
--
sider-width
);
flex
:
0
0
var
(
--
sider-width
);
background
:
transparent
!
important
;
position
:
relative
;
.deck-select-container
{
max-height
:
100%
;
min-height
:
100%
;
@include
utils
.
scrollbar
;
// 去掉menu
.menu
{
// min-height: 100%;
padding-bottom
:
1rem
;
}
}
...
...
src/ui/BuildDeck/index.tsx
View file @
294d0f81
...
...
@@ -35,10 +35,11 @@ export const Component: React.FC = () => {
return
(
<
ConfigProvider
theme=
{
theme
}
>
<
Background
/>
<
Layout
className=
{
styles
.
layout
}
style=
{
{
width
:
"
100%
"
}
}
>
<
Sider
width=
{
300
}
className=
{
styles
.
sider
}
>
<
div
className=
{
styles
.
layout
}
style=
{
{
width
:
"
100%
"
}
}
>
<
div
className=
{
styles
.
sider
}
>
<
div
className=
{
styles
[
"
deck-select-container
"
]
}
>
<
DeckSelect
decks=
{
Array
.
from
({
length
:
17
}).
map
((
_
,
i
)
=>
({
decks=
{
Array
.
from
({
length
:
18
}).
map
((
_
,
i
)
=>
({
name
:
`卡组 ${i}`
,
id
:
i
,
}))
}
...
...
@@ -48,13 +49,14 @@ export const Component: React.FC = () => {
onDownload=
{
(
id
)
=>
console
.
log
(
id
)
}
onAdd=
{
()
=>
console
.
log
(
"
add
"
)
}
/>
</
div
>
<
CardDetail
code=
{
123
}
open=
{
false
}
onClose=
{
()
=>
{}
}
/>
</
Sider
>
</
div
>
<
Content
className=
{
styles
.
content
}
>
<
Deck
/>
<
CardSelect
/>
</
Content
>
</
Layout
>
</
div
>
</
ConfigProvider
>
);
};
...
...
@@ -72,6 +74,7 @@ const Deck: React.FC = () => {
placeholder=
"我的卡组"
bordered=
{
false
}
prefix=
{
<
EditOutlined
/>
}
style=
{
{
width
:
400
}
}
/>
<
Space
style=
{
{
marginRight
:
6
}
}
>
<
Button
type=
"text"
size=
"small"
icon=
{
<
DeleteOutlined
/>
}
>
...
...
@@ -88,7 +91,7 @@ const Deck: React.FC = () => {
<
div
className=
{
styles
[
"
deck-zone
"
]
}
>
<
div
className=
{
styles
.
main
}
>
<
div
className=
{
styles
[
"
card-continer
"
]
}
>
{
Array
.
from
({
length
:
60
}).
map
((
_
,
i
)
=>
(
{
Array
.
from
({
length
:
42
}).
map
((
_
,
i
)
=>
(
<
div
className=
{
styles
.
card
}
key=
{
i
}
/>
))
}
</
div
>
...
...
src/ui/Duel/Message/CardModal/Desc.module.scss
View file @
294d0f81
.desc
{
line-height
:
1
.6
;
font-size
:
14px
;
font-family
:
var
(
--
theme-font
);
max-height
:
calc
(
100%
-
237px
);
overflow-y
:
overlay
;
&
:hover
{
...
...
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