feat: 收口组件样式并调整移动端侧栏
This commit is contained in:
1 parent
d252d5513f
commit
e6e0f08072
68 files changed
+2717
-2775
No files matched your search
@@ -621,3 +621,117 @@ watch(
|
||||
@generate="generateCastingCandidate"
|
||||
/></WorkspacePage>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* 本组件专属布局与 Naive 内部结构覆盖。 */
|
||||
@reference "../../styles/styles.css";
|
||||
.identity-workspace {
|
||||
@apply grid grid-cols-[240px_minmax(0,_1fr)] items-start gap-5;
|
||||
}
|
||||
.identity-subject-list {
|
||||
@apply max-h-[560px] overflow-hidden;
|
||||
}
|
||||
.casting-stats {
|
||||
@apply grid grid-cols-[repeat(5,_minmax(0,_1fr))] gap-2.5;
|
||||
}
|
||||
.casting-stats div {
|
||||
@apply py-2.5 px-3 rounded-none bg-(--app-subtle);
|
||||
}
|
||||
.casting-stats dt {
|
||||
@apply text-muted text-[10px];
|
||||
}
|
||||
.casting-stats dd {
|
||||
@apply mt-[5px] font-mono text-[13px];
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.identity-workspace {
|
||||
@apply grid-cols-[minmax(0,_1fr)];
|
||||
}
|
||||
.identity-subject-list {
|
||||
@apply max-h-[220px];
|
||||
}
|
||||
.casting-stats {
|
||||
@apply grid-cols-[repeat(2,_minmax(0,_1fr))];
|
||||
}
|
||||
}
|
||||
.toolbar-type-filter {
|
||||
@apply w-[152px];
|
||||
}
|
||||
.identity-tools-intro {
|
||||
@apply mb-6;
|
||||
}
|
||||
.identity-workspace {
|
||||
@apply flex-1 min-h-0 items-stretch overflow-hidden;
|
||||
}
|
||||
.identity-workspace {
|
||||
@apply grid-cols-[clamp(240px,_22%,_280px)_minmax(0,_1fr)];
|
||||
}
|
||||
.identity-workspace > div {
|
||||
@apply min-h-0 overflow-hidden overscroll-contain;
|
||||
}
|
||||
.identity-subject-list {
|
||||
@apply max-h-none min-h-0 flex-1;
|
||||
}
|
||||
.directory-filters {
|
||||
@apply grid gap-2.5 pt-0 px-3 pb-3 shrink-0;
|
||||
}
|
||||
.directory-filters > * {
|
||||
@apply min-w-0;
|
||||
}
|
||||
.identity-subject-list-content {
|
||||
@apply gap-0.5 pt-0 px-0 pb-2;
|
||||
}
|
||||
.n-button.identity-subject-item {
|
||||
@apply min-h-[86px] py-2.5 px-3.5;
|
||||
}
|
||||
.n-button.identity-subject-item:not(.selected) {
|
||||
@apply bg-(--app-surface);
|
||||
}
|
||||
.n-button.identity-subject-item:not(.selected):hover {
|
||||
@apply bg-(--app-subtle);
|
||||
}
|
||||
.identity-subject-item .directory-item-body {
|
||||
@apply gap-[3px];
|
||||
}
|
||||
.identity-subject-item .directory-item-title {
|
||||
@apply order-0 text-sm font-semibold;
|
||||
}
|
||||
.identity-subject-item .directory-item-eyebrow {
|
||||
@apply order-1 text-[10px];
|
||||
}
|
||||
.identity-subject-item .directory-item-meta {
|
||||
@apply order-2 gap-y-1 gap-x-1.5 text-[10px];
|
||||
}
|
||||
.casting-list {
|
||||
@apply grid grid-cols-[repeat(auto-fit,_minmax(min(100%,_260px),_1fr))] gap-3 mt-6 pt-5;
|
||||
}
|
||||
.n-button.casting-item {
|
||||
@apply w-full min-w-0 h-auto min-h-[76px] py-3 px-3.5 whitespace-normal text-left bg-(--app-subtle);
|
||||
}
|
||||
.n-button.casting-item.selected {
|
||||
@apply bg-(--app-selected) shadow-[inset_3px_0_0_var(--app-accent)];
|
||||
}
|
||||
.n-button.casting-item .n-button__content {
|
||||
@apply flex w-full min-w-0 items-center justify-between gap-4 text-left;
|
||||
}
|
||||
.casting-item-identity {
|
||||
@apply flex flex-col gap-[5px] min-w-0;
|
||||
}
|
||||
.casting-item-name {
|
||||
@apply text-sm font-medium leading-normal wrap-anywhere;
|
||||
}
|
||||
.casting-item-ref {
|
||||
@apply text-muted font-mono text-[11px] leading-normal wrap-anywhere;
|
||||
}
|
||||
.casting-item-status {
|
||||
@apply shrink-0;
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.identity-workspace {
|
||||
@apply grid-cols-[minmax(0,_1fr)] grid-rows-[250px_minmax(0,_1fr)] gap-2.5;
|
||||
}
|
||||
.directory-filters {
|
||||
@apply grid-cols-[minmax(0,_1fr)_120px];
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user