Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
sutpc
/
heatmap
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45926c9c
authored
Oct 13, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
视觉优化
1 parent
633e7be0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
6 deletions
src/features/heatmap/detail/BucketDrawer.tsx
src/theme/design.css
src/features/heatmap/detail/BucketDrawer.tsx
View file @
45926c9
...
@@ -19,6 +19,7 @@ export function BucketDrawer() {
...
@@ -19,6 +19,7 @@ export function BucketDrawer() {
return (
return (
<Drawer
<Drawer
rootClassName="hm-drawer-glass"
title={
title={
<span style={{ fontSize: 14 }}>
<span style={{ fontSize: 14 }}>
网格案件明细
网格案件明细
...
...
src/theme/design.css
View file @
45926c9
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
--hm-glass-side
:
rgba
(
255
,
255
,
255
,
0.62
);
--hm-glass-side
:
rgba
(
255
,
255
,
255
,
0.62
);
--hm-glass-side-strong
:
rgba
(
255
,
255
,
255
,
0.78
);
--hm-glass-side-strong
:
rgba
(
255
,
255
,
255
,
0.78
);
--hm-glass-drawer
:
rgba
(
255
,
255
,
255
,
0.74
);
--hm-glass-border
:
rgba
(
255
,
255
,
255
,
0.6
);
--hm-glass-border
:
rgba
(
255
,
255
,
255
,
0.6
);
--hm-glass-blur
:
blur
(
20px
)
saturate
(
150%
);
--hm-glass-blur
:
blur
(
20px
)
saturate
(
150%
);
--hm-glass-shadow
:
0
8px
32px
-8px
rgba
(
16
,
24
,
40
,
0.28
);
--hm-glass-shadow
:
0
8px
32px
-8px
rgba
(
16
,
24
,
40
,
0.28
);
...
@@ -727,10 +728,12 @@ body {
...
@@ -727,10 +728,12 @@ body {
position
:
absolute
;
position
:
absolute
;
z-index
:
40
;
z-index
:
40
;
width
:
328px
;
width
:
328px
;
background
:
var
(
--hm-
surfac
e
);
background
:
var
(
--hm-
glass-sid
e
);
border
:
1px
solid
var
(
--hm-border
);
border
:
1px
solid
var
(
--hm-
glass-
border
);
border-radius
:
var
(
--hm-radius-lg
);
border-radius
:
var
(
--hm-radius-lg
);
box-shadow
:
var
(
--hm-shadow-pop
);
box-shadow
:
var
(
--hm-glass-shadow
);
backdrop-filter
:
var
(
--hm-glass-blur
);
-webkit-backdrop-filter
:
var
(
--hm-glass-blur
);
overflow
:
hidden
;
overflow
:
hidden
;
animation
:
hm-pop
0.16s
ease-out
;
animation
:
hm-pop
0.16s
ease-out
;
}
}
...
@@ -752,10 +755,16 @@ body {
...
@@ -752,10 +755,16 @@ body {
justify-content
:
space-between
;
justify-content
:
space-between
;
gap
:
8px
;
gap
:
8px
;
padding
:
10px
12px
;
padding
:
10px
12px
;
background
:
linear-gradient
(
135deg
,
var
(
--hm-primary
)
0%
,
var
(
--hm-primary-light
)
100%
);
background
:
linear-gradient
(
135deg
,
rgba
(
48
,
58
,
124
,
0.94
)
0%
,
rgba
(
70
,
83
,
162
,
0.88
)
100%
);
border-bottom
:
1px
solid
var
(
--hm-glass-border
);
color
:
#fff
;
color
:
#fff
;
}
}
/* 头部数字加一层极淡投影:半透明玻璃底下,白字在亮色热力/浅色底图上更稳 */
.hm-bucket-card__count
{
.hm-bucket-card__count
{
display
:
flex
;
display
:
flex
;
align-items
:
baseline
;
align-items
:
baseline
;
...
@@ -763,6 +772,8 @@ body {
...
@@ -763,6 +772,8 @@ body {
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
700
;
font-weight
:
700
;
font-variant-numeric
:
tabular-nums
;
font-variant-numeric
:
tabular-nums
;
/* 头部数字加一层极淡投影:半透明玻璃底下,白字在亮色热力/浅色底图上更稳 */
text-shadow
:
0
1px
2px
rgba
(
16
,
24
,
40
,
0.4
);
}
}
.hm-bucket-card__count
span
{
.hm-bucket-card__count
span
{
...
@@ -821,8 +832,8 @@ body {
...
@@ -821,8 +832,8 @@ body {
justify-content
:
space-between
;
justify-content
:
space-between
;
gap
:
8px
;
gap
:
8px
;
padding
:
8px
12px
;
padding
:
8px
12px
;
border-top
:
1px
solid
var
(
--hm-
divi
der
);
border-top
:
1px
solid
var
(
--hm-
glass-bor
der
);
background
:
var
(
--hm-surface-sunken
);
background
:
rgba
(
255
,
255
,
255
,
0.4
);
font-size
:
11px
;
font-size
:
11px
;
color
:
var
(
--hm-text-3
);
color
:
var
(
--hm-text-3
);
}
}
...
@@ -1018,3 +1029,71 @@ body {
...
@@ -1018,3 +1029,71 @@ body {
.hm-perf
{
.hm-perf
{
font-variant-numeric
:
tabular-nums
;
font-variant-numeric
:
tabular-nums
;
}
}
/* ------------------------------- 明细抽屉(毛玻璃) ------------------------------- */
/*
* 抽屉是 antd 组件,样式靠运行时注入,这里用 rootClassName 作用域覆盖,
* 让内容区 / 头部 / 表格都透出被模糊的地图底色,与左右操作栏、桶卡保持同一套玻璃语言。
* 内容底不透明度取 0.74(比侧栏略高),保证密集表格仍清晰可读。
*/
.hm-drawer-glass
.ant-drawer-section
,
.hm-drawer-glass
.ant-drawer-content
{
background
:
var
(
--hm-glass-drawer
)
!important
;
backdrop-filter
:
var
(
--hm-glass-blur
);
-webkit-backdrop-filter
:
var
(
--hm-glass-blur
);
box-shadow
:
var
(
--hm-glass-shadow
);
}
.hm-drawer-glass
.ant-drawer-header
{
background
:
var
(
--hm-glass-side-strong
)
!important
;
border-bottom
:
1px
solid
var
(
--hm-glass-border
)
!important
;
}
.hm-drawer-glass
.ant-drawer-header-title
.ant-drawer-title
{
color
:
var
(
--hm-text-1
)
!important
;
font-weight
:
600
;
}
.hm-drawer-glass
.ant-drawer-body
{
background
:
transparent
!important
;
}
.hm-drawer-glass
.ant-drawer-mask
{
background
:
rgba
(
18
,
26
,
52
,
0.3
)
!important
;
backdrop-filter
:
blur
(
2px
);
-webkit-backdrop-filter
:
blur
(
2px
);
}
/* 表格整体透明化,行悬浮用品牌色淡染,避免实心白块破坏玻璃质感 */
.hm-drawer-glass
.ant-table
,
.hm-drawer-glass
.ant-table-container
,
.hm-drawer-glass
.ant-table-content
,
.hm-drawer-glass
.ant-table-wrapper
,
.hm-drawer-glass
.ant-table-thead
>
tr
>
th
,
.hm-drawer-glass
.ant-table-tbody
>
tr
>
td
{
background
:
transparent
!important
;
}
.hm-drawer-glass
.ant-table-thead
>
tr
>
th
{
color
:
var
(
--hm-text-2
)
!important
;
border-bottom
:
1px
solid
var
(
--hm-glass-border
)
!important
;
}
.hm-drawer-glass
.ant-table-tbody
>
tr
>
td
{
color
:
var
(
--hm-text-1
);
border-bottom
:
1px
solid
var
(
--hm-divider
)
!important
;
}
/* 淡玻璃斑马纹:偶数行叠一层更亮的半透明白,在透明表格上勾出节奏又不破坏质感 */
.hm-drawer-glass
.ant-table-tbody
>
tr
:nth-child
(
even
)
>
td
{
background
:
rgba
(
255
,
255
,
255
,
0.42
)
!important
;
}
.hm-drawer-glass
.ant-table-tbody
>
tr
.ant-table-row
:hover
>
td
,
.hm-drawer-glass
.ant-table-tbody
>
tr
>
td
.ant-table-cell-row-hover
{
background
:
rgba
(
70
,
83
,
162
,
0.14
)
!important
;
}
.hm-drawer-glass
.ant-table-placeholder
.ant-table-cell
{
background
:
transparent
!important
;
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment