Files
rednote-tool-studio/app/globals.css
T
hexin-codex-bot e961e3091b
Verify and deploy production / verify-and-deploy (push) Successful in 2m29s
ui: mirror rednote creator platform layout
2026-10-05 13:50:21 +08:00

152 lines
4.8 KiB
CSS

:root {
color-scheme: light;
--red: #ff2442;
--ink: #1f1f1f;
--muted: #8b8b8b;
--sidebar: #f7f7f7;
--panel: #f8f8f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 1024px; min-height: 100%; background: #fff; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { border: 0; font: inherit; cursor: pointer; }
.creator-shell { min-height: 100vh; background: var(--sidebar); }
.creator-header {
position: fixed;
z-index: 10;
inset: 0 0 auto 0;
height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 19px 0 20px;
background: #fff;
}
.creator-brand { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.creator-brand strong { font-size: 20px; line-height: 1; font-weight: 600; letter-spacing: -.4px; }
.xiaohongshu-logo {
width: 73px;
height: 31px;
display: grid;
place-items: center;
border-radius: 17px;
background: var(--red);
color: #fff;
font-size: 15px;
font-weight: 800;
letter-spacing: -.5px;
}
.creator-account { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 2px 0 10px; background: transparent; color: #242424; font-size: 16px; }
.account-photo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 65% 25%, #f6a45c 0 10%, transparent 11%), linear-gradient(135deg, #302722, #8b5b38 55%, #191919); color: #fff; font-size: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.creator-account svg { color: #a0a0a0; margin-left: 2px; }
.creator-sidebar {
position: fixed;
z-index: 5;
left: 0;
top: 64px;
bottom: 0;
width: 220px;
padding: 16px 20px 24px;
background: var(--sidebar);
}
.publish-button {
width: 177px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
border-radius: 24px;
background: var(--red);
color: #fff;
font-size: 15px;
font-weight: 600;
box-shadow: none;
}
.publish-button span { margin: 0 2px; }
.creator-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 18px; }
.creator-nav-item {
width: 100%;
height: 47px;
display: grid;
grid-template-columns: 25px 1fr 18px;
align-items: center;
padding: 0 13px;
border-radius: 9px;
background: transparent;
color: #898989;
text-align: left;
font-size: 14px;
}
.creator-nav-item span { padding-left: 6px; }
.creator-nav-item > svg:last-child { grid-column: 3; }
.creator-nav-item:hover { background: #ededed; color: #555; }
.creator-main {
position: fixed;
left: 220px;
right: 0;
top: 64px;
bottom: 0;
overflow-y: auto;
background: #fff;
border-top-left-radius: 20px;
}
.creator-toolbar {
height: 73px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 39px 0 49px;
}
.creator-tabs { height: 100%; display: flex; align-items: center; gap: 17px; }
.creator-tabs button { min-width: 94px; height: 42px; padding: 0 16px; border-radius: 23px; background: transparent; color: #929292; font-size: 16px; font-weight: 600; }
.creator-tabs button.active { background: #f7f7f7; color: #202020; }
.draft-button { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-radius: 22px; background: #f8f8f8; color: #262626; font-size: 14px; }
.upload-panel {
min-height: 606px;
height: calc(100vh - 199px);
margin: 0 39px 0 34px;
display: grid;
place-items: center;
border-radius: 15px;
background: var(--panel);
}
.upload-center { display: flex; flex-direction: column; align-items: center; transform: translateY(-4px); }
.cloud-upload { height: 103px; display: flex; align-items: center; color: #dfdfdf; }
.cloud-upload svg { fill: #dfdfdf; stroke: #f8f8f8; }
.upload-center p { margin: 10px 0 14px; color: #242424; font-size: 14px; }
.upload-action { min-width: 120px; height: 41px; padding: 0 23px; border-radius: 22px; background: var(--red); color: #fff; font-size: 14px; }
.upload-action:hover, .publish-button:hover { background: #f20f35; }
.upload-guides {
min-height: 134px;
display: grid;
grid-template-columns: repeat(3, 1fr);
margin: 56px 39px 0 203px;
}
.upload-guides > div { min-height: 112px; padding: 16px 42px; border-left: 1px solid #efefef; }
.upload-guides > div:first-child { border-left: 0; }
.upload-guides strong { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.upload-guides p { margin: 0; color: #a0a0a0; font-size: 12px; line-height: 1.8; }
@media (max-width: 1300px) {
.creator-tabs { gap: 2px; }
.creator-tabs button { min-width: 82px; padding: 0 11px; }
.upload-guides { margin-left: 70px; }
}
@media (max-height: 800px) {
.upload-panel { min-height: 480px; height: calc(100vh - 185px); }
.upload-guides { margin-top: 34px; }
}