refactor: remove exact nested css duplicates

This commit is contained in:
leefer
2026-08-02 12:43:30 +08:00
parent 86227cec37
commit 104b267627
6 changed files with 148 additions and 98 deletions
-65
View File
@@ -4775,10 +4775,6 @@ body.sidebar-collapsed .sidebar-collapse-button .lucide {
}
@media (min-width: 721px) and (max-width: 1279px) {
.market-tape {
display: none;
}
.app-header {
grid-template-columns: 190px minmax(0, 1fr) auto;
}
@@ -4980,21 +4976,6 @@ body.sidebar-collapsed .sidebar-collapse-button .lucide {
box-shadow: 0 -4px 18px rgba(24, 34, 45, 0.07);
}
.module-nav .nav-brand,
.module-nav .nav-group-label,
.module-nav .market-sub-tab,
.module-nav .sidebar-collapse-button {
display: none;
}
.module-nav .nav-group,
body.sidebar-collapsed .module-nav .nav-group {
display: contents;
margin: 0;
padding: 0;
border: 0;
}
.module-nav .module-tab,
body.sidebar-collapsed .module-nav .module-tab {
min-height: 54px;
@@ -5009,11 +4990,6 @@ body.sidebar-collapsed .sidebar-collapse-button .lucide {
text-align: center;
}
.module-nav .module-tab.mobile-primary-tab,
body.sidebar-collapsed .module-nav .module-tab.mobile-primary-tab {
display: flex;
}
.module-nav .module-tab span,
body.sidebar-collapsed .module-nav .module-tab span {
display: block;
@@ -13017,10 +12993,6 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
}
@media (max-width: 720px) {
body.mentor-directory-open {
overflow: hidden;
}
.mentor-layout {
height: auto;
min-height: 580px;
@@ -14874,13 +14846,6 @@ dialog::backdrop {
width: 100%;
}
body,
body.sidebar-collapsed {
display: block;
min-height: 100dvh;
padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
.app-header {
width: 100%;
height: 108px;
@@ -14893,10 +14858,6 @@ dialog::backdrop {
background: rgba(255, 255, 255, .98);
}
.brand-block {
height: 42px;
}
.brand-block .brand-mark,
.brand-block .brand-logo {
width: 34px;
@@ -14912,20 +14873,6 @@ dialog::backdrop {
font-size: 16px;
}
.header-actions {
position: absolute;
inset: 56px 10px auto;
display: flex;
justify-content: space-between;
gap: 6px;
}
.header-date-group {
height: 42px;
min-width: 0;
flex: 1;
}
.header-date-group .date-input {
width: 112px;
flex: 1;
@@ -14937,12 +14884,6 @@ dialog::backdrop {
min-width: 30px;
}
.header-actions > .icon-button {
width: 40px;
min-width: 40px;
min-height: 42px;
}
.header-menu-button {
display: grid;
}
@@ -15056,9 +14997,7 @@ dialog::backdrop {
font-size: 14px;
}
.overview-strip .metric:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.overview-strip .metric:nth-of-type(2) { grid-column: 3; grid-row: 1; border-right: 0; }
.overview-strip .metric:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.overview-strip .metric:nth-of-type(4) { grid-column: 3; grid-row: 2; border-right: 0; }
.overview-strip .metric:nth-of-type(5) { grid-column: 1 / 2; grid-row: 3; border-bottom: 0; }
.overview-strip .metric:nth-of-type(6) { grid-column: 2 / 4; grid-row: 3; border-right: 0; border-bottom: 0; }
@@ -15315,10 +15254,6 @@ dialog::backdrop {
overflow-y: auto;
}
.curated-strategy-list {
grid-template-columns: 1fr;
}
.quant-universe-grid {
grid-template-columns: 1fr 1fr;
}