3x-ui/frontend/src/pages/sub/SubPage.css
MHSanaei 9292464418
refactor(frontend): switch sub page theme icons to AntD primitives
Replace the three hand-rolled SVG theme icons (sun, moon, moon+star)
with AntD `<SunOutlined />`, `<MoonOutlined />`, `<MoonFilled />`
for the light / dark / ultra-dark states. Switch the theme `<Button>`
to use the `icon` prop instead of children so it renders the same
way as the language button. Drop `.toolbar-btn svg` CSS — no longer
needed once the icon comes from AntD.
2026-05-25 03:58:31 +02:00

135 lines
2.1 KiB
CSS

.subscription-page {
--bg-page: #e6e8ec;
--bg-card: #ffffff;
min-height: 100vh;
background: var(--bg-page);
}
.subscription-page.is-dark {
--bg-page: #1a1b1f;
--bg-card: #23252b;
}
.subscription-page.is-dark.is-ultra {
--bg-page: #000;
--bg-card: #101013;
}
.subscription-page .ant-layout,
.subscription-page .ant-layout-content {
background: transparent;
}
.subscription-page .content {
padding: 24px 12px;
}
.subscription-card {
margin-top: 8px;
}
.qr-row {
margin-bottom: 12px;
}
.qr-col {
display: flex;
justify-content: center;
}
.qr-box {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 4px;
width: 240px;
}
.qr-tag {
width: 100%;
text-align: center;
margin: 0;
}
.qr-code {
cursor: pointer;
}
.info-table {
margin-top: 12px;
}
.links-section {
margin-top: 16px;
}
.link-row {
position: relative;
margin-bottom: 16px;
text-align: center;
}
.link-tag {
margin-bottom: -10px;
position: relative;
z-index: 2;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.link-box {
cursor: pointer;
border-radius: 12px;
padding: 22px 18px 14px;
margin-top: -10px;
word-break: break-all;
font-size: 13px;
line-height: 1.5;
text-align: left;
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
transition: background 120ms ease, border-color 120ms ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
background: rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.08);
}
.link-box:hover {
background: rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.14);
}
.link-copy-icon {
margin-right: 6px;
opacity: 0.6;
}
.is-dark .link-box {
background: rgba(0, 0, 0, 0.2);
border-color: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.85);
}
.is-dark .link-box:hover {
background: rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.2);
}
.apps-row {
margin-top: 24px;
}
.app-col {
text-align: center;
}
.toolbar-btn {
width: 40px;
height: 40px;
min-width: 40px;
border-radius: 50%;
padding: 0;
}
.toolbar-btn .anticon {
font-size: 18px;
}