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
23ca402b
Commit
23ca402b
authored
Aug 04, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: styles
parent
057d1e06
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
22 deletions
+41
-22
src/styles/utils.scss
src/styles/utils.scss
+14
-0
src/ui/BuildDeck/CardDetail.module.scss
src/ui/BuildDeck/CardDetail.module.scss
+6
-4
src/ui/BuildDeck/DeckSelect.module.scss
src/ui/BuildDeck/DeckSelect.module.scss
+1
-0
src/ui/BuildDeck/index.module.scss
src/ui/BuildDeck/index.module.scss
+1
-0
src/ui/BuildDeck/index.tsx
src/ui/BuildDeck/index.tsx
+14
-5
src/ui/NewMatch/index.module.scss
src/ui/NewMatch/index.module.scss
+1
-1
src/ui/NewMatch/index.tsx
src/ui/NewMatch/index.tsx
+1
-0
src/ui/Shared/Background/index.module.scss
src/ui/Shared/Background/index.module.scss
+3
-12
No files found.
src/styles/utils.scss
View file @
23ca402b
...
...
@@ -18,3 +18,17 @@
background
:
rgba
(
136
,
136
,
136
,
0
.8
);
}
}
@mixin
noise-bg
(
$opacity
:
0
.3
)
{
&
:
:
before
{
content
:
""
;
position
:
absolute
;
left
:
0
;
top
:
0
;
height
:
100%
;
max-height
:
100%
;
width
:
100%
;
background-image
:
url("/neos-assets/noise-light.webp")
;
opacity
:
$opacity
;
}
}
src/ui/BuildDeck/CardDetail.module.scss
View file @
23ca402b
@use
"/src/styles/utils.scss"
;
.detail
{
z-index
:
10
;
position
:
absolute
;
...
...
@@ -6,7 +8,7 @@
width
:
100%
;
height
:
100%
;
padding
:
0
10px
20px
10px
;
transition
:
0
.2s
;
//
transition: 0.2s;
}
.detail.open
{
...
...
@@ -15,10 +17,10 @@
.container
{
height
:
100%
;
background-color
:
rgba
(
141
,
133
,
166
,
0
.245
);
bo
rder
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.2
)
;
background-color
:
hsla
(
0
,
0%
,
100%
,
0
.1
);
bo
x-shadow
:
0
0
0
1px
rgba
(
255
,
255
,
255
,
0
.2
)
,
0
0
30px
0
#ffffff
54
;
backdrop-filter
:
blur
(
20px
);
border-radius
:
4px
;
@include
utils
.
noise-bg
;
}
.btn-close
{
...
...
src/ui/BuildDeck/DeckSelect.module.scss
View file @
23ca402b
...
...
@@ -58,6 +58,7 @@
&
:hover
{
background-color
:
rgba
(
0
,
168
,
202
,
0
.451
)
!
important
;
transform
:
scale
(
1
.1
);
filter
:
brightness
(
1
.2
);
}
}
}
src/ui/BuildDeck/index.module.scss
View file @
23ca402b
...
...
@@ -50,6 +50,7 @@
.title
{
height
:
44px
;
flex
:
0
0
44px
;
justify-content
:
space-between
;
}
.deck-zone
{
@include
utils
.
scrollbar
;
...
...
src/ui/BuildDeck/index.tsx
View file @
23ca402b
...
...
@@ -7,7 +7,14 @@ import {
SortAscendingOutlined
,
UndoOutlined
,
}
from
"
@ant-design/icons
"
;
import
{
Button
,
ConfigProvider
,
Input
,
Space
,
type
ThemeConfig
}
from
"
antd
"
;
import
{
Button
,
ConfigProvider
,
Input
,
Space
,
type
ThemeConfig
,
Badge
,
}
from
"
antd
"
;
import
{
Background
}
from
"
../Shared
"
;
import
{
CardDetail
}
from
"
./CardDetail
"
;
...
...
@@ -53,14 +60,12 @@ export const Component: React.FC = () => {
};
Component
.
displayName
=
"
Build
"
;
/** 正在编辑的卡组 */
const
Deck
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
{
styles
.
deck
}
>
<
div
className=
{
styles
.
container
}
>
<
Space
className=
{
styles
.
title
}
style=
{
{
justifyContent
:
"
space-between
"
}
}
>
<
Space
className=
{
styles
.
title
}
>
<
Input
placeholder=
"我的卡组"
bordered=
{
false
}
...
...
@@ -107,6 +112,7 @@ const Deck: React.FC = () => {
);
};
/** 卡片库,选择卡片加入正在编辑的卡组 */
const
CardSelect
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
{
styles
.
select
}
>
...
...
@@ -121,9 +127,12 @@ const CardSelect: React.FC = () => {
<
div
className=
{
styles
[
"
select-btns
"
]
}
>
<
Button
block
type=
"text"
icon=
{
<
FilterOutlined
/>
}
>
筛选
{
/* TODO: 下面这个Badge应根据有无筛选规则而显示 */
}
{
false
&&
<
Badge
dot
offset=
{
[
5
,
-
5
]
}
/>
}
</
Button
>
<
Button
block
type=
"text"
icon=
{
<
SortAscendingOutlined
/>
}
>
排列
{
false
&&
<
Badge
dot
offset=
{
[
5
,
-
5
]
}
/>
}
</
Button
>
<
Button
block
type=
"text"
icon=
{
<
DeleteOutlined
/>
}
>
重置
...
...
src/ui/NewMatch/index.module.scss
View file @
23ca402b
...
...
@@ -54,7 +54,7 @@
transition
:
0
.2s
;
cursor
:
pointer
;
&
:hover
{
box-shadow
:
0
0
0
4px
#2
a556
0
;
box-shadow
:
0
0
0
4px
#2
2617
0
;
// background: hsla(0, 0%, 100%, 0.07);
filter
:
brightness
(
1
.2
);
}
...
...
src/ui/NewMatch/index.tsx
View file @
23ca402b
...
...
@@ -15,6 +15,7 @@ export const loader: LoaderFunction = () => {
if
(
user
)
{
accountStore
.
login
(
user
);
setCookie
(
CookieKeys
.
USER
,
JSON
.
stringify
(
user
));
// TODO: toast显示登录成功
}
return
null
;
};
...
...
src/ui/Shared/Background/index.module.scss
View file @
23ca402b
@use
"/src/styles/utils.scss"
;
.background
{
position
:
fixed
;
left
:
0
;
...
...
@@ -10,18 +12,7 @@
z-index
:
-1
;
display
:
flex
;
justify-content
:
center
;
// align-items: center;
&
:
:
before
{
content
:
""
;
position
:
absolute
;
left
:
0
;
top
:
0
;
height
:
100%
;
max-height
:
100%
;
width
:
100%
;
background-image
:
url("/neos-assets/noise-light.webp")
;
opacity
:
0
.3
;
}
@include
utils
.
noise-bg
;
}
.inner
{
...
...
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