Skip to content

Commit 9ce7365

Browse files
committed
Apply liquid glass theme to Content Moderation blocked and flagged access sections
1 parent 11cb819 commit 9ce7365

3 files changed

Lines changed: 75 additions & 19 deletions

File tree

src/components/blocked-pubkeys/BlockedPubkeys.styles.ts

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,24 @@ export const BaseColRoot = styled(BaseCol)`
1313
export const TableContainer = styled.div`
1414
border-radius: 12px;
1515
margin: 0 2px;
16-
padding-top: 0.4rem;
17-
padding-bottom: 2rem;
18-
background-color: var(--secondary-background-color);
19-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
20-
border: 1px solid var(--border-base-color);
16+
padding: 0.4rem;
17+
background: rgba(0, 255, 255, 0.05) !important;
18+
border: 1px solid rgba(0, 255, 255, 0.2) !important;
19+
backdrop-filter: blur(5px);
20+
-webkit-backdrop-filter: blur(5px);
21+
transition: all 0.3s ease;
22+
23+
&:hover {
24+
border-color: rgba(0, 255, 255, 0.5) !important;
25+
box-shadow: 0 0 10px rgba(0, 255, 255, 0.2) !important;
26+
}
27+
28+
/* Round the table corners to match */
29+
& .ant-table {
30+
border-radius: 8px !important;
31+
overflow: hidden;
32+
background: transparent !important;
33+
}
2134
`;
2235
export const CardRoot = styled(Card)`
2336
border: none;
@@ -48,7 +61,6 @@ export const TitleWrapper = styled.div`
4861
export const NavContainer = styled.div`
4962
display: flex;
5063
margin-bottom: 1rem;
51-
border-bottom: 1px solid var(--border-color);
5264
`;
5365

5466
export const NavLink = styled.div<{ active: boolean }>`
@@ -83,11 +95,15 @@ export const CircularBadge = styled.div<{ color: string }>`
8395
font-weight: bold;
8496
margin-right: 8px;
8597
`;
98+
8699
export const EmptyList = styled.div`
87100
min-height: 4rem;
88101
display: flex;
89102
align-items: center;
90103
justify-content: center;
91-
color: var(--text-light-color);
104+
color: rgba(255, 255, 255, 0.5);
92105
border-bottom: none;
106+
padding: 2rem;
107+
background: transparent;
108+
border-radius: 8px;
93109
`;

src/components/blocked-pubkeys/BlockedPubkeys.tsx

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,38 @@ export function createStyledTable<T extends object = any>() {
2424
const GenericTable: FC<TableProps<T>> = (props) => <Table {...props} />;
2525

2626
const StyledTable = styled(GenericTable)`
27-
border-radius: 12px;
27+
border-radius: 8px !important;
28+
overflow: hidden;
2829
29-
& .ant-table-thead .ant-table-cell {
30-
background-color: var(--secondary-background-color);
30+
& .ant-table {
31+
background: transparent;
3132
}
3233
33-
.ant-table-tbody {
34-
background-color: var(--layout-sider-bg-color);
34+
& .ant-table-thead > tr > th {
35+
background: transparent;
36+
border-bottom: none;
3537
}
36-
.ant-table-placeholder .ant-table-cell {
37-
background-color: var(--layout-sider-bg-color);
38-
transition: none;
38+
39+
& .ant-table-thead > tr > th:first-child {
40+
border-top-left-radius: 8px !important;
41+
}
42+
43+
& .ant-table-thead > tr > th:last-child {
44+
border-top-right-radius: 8px !important;
45+
}
46+
47+
& .ant-table-tbody > tr > td {
48+
border-bottom: none;
49+
background: transparent;
3950
}
40-
.ant-table-placeholder .ant-table-cell:hover {
41-
background-color: var(--layout-sider-bg-color);
51+
52+
& .ant-table-tbody > tr:hover > td {
53+
background: rgba(255, 255, 255, 0.02);
54+
}
55+
56+
.ant-table-placeholder .ant-table-cell {
57+
background: transparent;
58+
border-bottom: none;
4259
}
4360
`;
4461
return StyledTable;

src/components/blocked-pubkeys/components/BlockPubkeyForm.tsx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,47 @@ interface BlockPubkeyFormProps {
1212
const CardRoot = styled(Card)`
1313
border-color: var(--border-base-color) !important;
1414
border-width: 1px;
15+
border-radius: 12px !important;
1516
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
1617
background-color: var(--secondary-background-color) !important;
1718
1819
& .ant-card-head {
1920
border-bottom-color: var(--border-base-color) !important;
21+
border-radius: 12px 12px 0 0 !important;
2022
}
2123
2224
/* Remove the card body padding and background */
2325
& .ant-card-body {
2426
padding: 0 !important;
2527
background: transparent !important;
28+
border-radius: 0 0 12px 12px !important;
2629
}
2730
`;
2831
const TextArea = styled(Input.TextArea)`
29-
background-color: var(--layout-sider-bg-color) !important;
32+
background: rgba(0, 255, 255, 0.05) !important;
33+
border: 1px solid rgba(0, 255, 255, 0.2) !important;
34+
backdrop-filter: blur(5px);
35+
-webkit-backdrop-filter: blur(5px);
36+
border-radius: 8px !important;
37+
color: rgba(255, 255, 255, 0.9) !important;
38+
39+
&:hover, &:focus {
40+
border-color: rgba(0, 255, 255, 0.5) !important;
41+
box-shadow: 0 0 10px rgba(0, 255, 255, 0.2) !important;
42+
}
3043
`;
3144
const InputArea = styled(Input)`
32-
background-color: var(--layout-sider-bg-color) !important;
45+
background: rgba(0, 255, 255, 0.05) !important;
46+
border: 1px solid rgba(0, 255, 255, 0.2) !important;
47+
backdrop-filter: blur(5px);
48+
-webkit-backdrop-filter: blur(5px);
49+
border-radius: 8px !important;
50+
color: rgba(255, 255, 255, 0.9) !important;
51+
52+
&:hover, &:focus {
53+
border-color: rgba(0, 255, 255, 0.5) !important;
54+
box-shadow: 0 0 10px rgba(0, 255, 255, 0.2) !important;
55+
}
3356
`;
3457

3558
export const BlockPubkeyForm: React.FC<BlockPubkeyFormProps> = ({ onSubmit, disabled }) => {

0 commit comments

Comments
 (0)