优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@import './foundation.css';
|
||||
@import './shell.css';
|
||||
@import './workspace-tabs.css';
|
||||
|
||||
.auth-page { min-height: 100vh; background: #edf2f4; color: var(--navy); }
|
||||
.auth-header { display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 90px); border-bottom: 1px solid #dfe6e8; background: #fff; color: #59646d; font-size: 13px; }
|
||||
@@ -144,7 +145,7 @@
|
||||
.client-sidebar-scrim { position: fixed; inset: 0; z-index: 20; display: block; padding: 0; border: 0; background: rgba(7, 18, 34, .56); }
|
||||
.client-header-menu-button { background: #eef3f8; color: #24324a; }
|
||||
.client-sidebar-brand button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; place-items: center; }
|
||||
.client-main { width: 100%; max-width: 100%; margin-left: 0; padding: 88px 14px 30px; }
|
||||
.client-main { width: 100%; max-width: 100%; margin-left: 0; padding: 136px 14px 30px; }
|
||||
.client-header-menu-button { display: grid; }
|
||||
.client-header-heading p, .client-user-copy { display: none; }
|
||||
.client-header-heading h1 { font-size: 16px; }
|
||||
|
||||
@@ -56,4 +56,4 @@
|
||||
.client-sidebar-logout { display: flex; width: 100%; height: 44px; align-items: center; justify-content: flex-start; gap: 11px; margin: 10px 0 0; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(239, 68, 68, .12); color: #fca5a5; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; }
|
||||
.client-sidebar-logout:hover { background: rgba(239, 68, 68, .22); color: #fff; }
|
||||
.client-sidebar-logout svg { flex: 0 0 18px; }
|
||||
.client-main { width: calc(100% - 250px); max-width: 100%; min-height: 100vh; margin-left: 250px; padding: 88px 20px 40px; }
|
||||
.client-main { width: calc(100% - 250px); max-width: 100%; min-height: 100vh; margin-left: 250px; padding: 134px 20px 40px; }
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
.workspace-tabs { position: fixed; inset: 68px 0 auto 250px; z-index: 19; display: flex; min-width: 0; height: 46px; align-items: stretch; border-bottom: 1px solid var(--border); background: #fff; box-shadow: 0 3px 12px rgba(15, 31, 58, .04); }
|
||||
.workspace-tabs__scroller { display: flex; min-width: 0; flex: 1; align-items: end; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 6px 8px 0; overscroll-behavior-inline: contain; scrollbar-width: none; -ms-overflow-style: none; }
|
||||
.workspace-tabs__scroller::-webkit-scrollbar { display: none; width: 0; height: 0; }
|
||||
.workspace-tab { display: flex; min-width: 112px; max-width: 220px; height: 39px; flex: 0 0 auto; align-items: center; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: #657184; }
|
||||
.workspace-tab:hover { background: #f5f8fc; color: var(--navy); }
|
||||
.workspace-tab.is-active { border-color: var(--border); background: #f5f7fa; color: var(--primary); }
|
||||
.workspace-tab__label { display: flex; min-width: 0; height: 100%; flex: 1; align-items: center; gap: 7px; padding: 0 6px 0 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; text-align: left; }
|
||||
.workspace-tab__label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.workspace-tab__label i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #d97706; }
|
||||
.workspace-tab__close { display: grid; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8b95a5; cursor: pointer; place-items: center; }
|
||||
.workspace-tab__close:hover { background: #e8edf4; color: #27364d; }
|
||||
.workspace-tab__label:focus-visible, .workspace-tab__close:focus-visible, .workspace-tabs__more:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
|
||||
.workspace-tabs__more { display: grid; width: 46px; height: 46px; flex: 0 0 46px; padding: 0; border: 0; border-left: 1px solid var(--border); background: #fff; color: #647187; cursor: pointer; place-items: center; }
|
||||
.workspace-tabs__more:hover { background: #f4f7fb; color: var(--primary); }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.workspace-tabs { inset: 68px 0 auto 0; height: 48px; }
|
||||
.workspace-tabs__scroller { padding-left: 8px; }
|
||||
.workspace-tab { min-width: 132px; height: 41px; }
|
||||
.workspace-tab__label { min-height: 40px; }
|
||||
.workspace-tab__close { width: 40px; height: 40px; flex-basis: 40px; }
|
||||
.workspace-tabs__more { width: 48px; height: 48px; flex-basis: 48px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.workspace-tabs__scroller { scroll-behavior: auto; }
|
||||
}
|
||||
Reference in New Issue
Block a user