File size: 5,130 Bytes
25b02dd 4f9240f 25b02dd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | /* The app shell (AppSidebar, TopBar): a light sidebar with small section labels, counts and the latest test runs; a
hairline top bar with the page name, Ask AI and the search field. Tokens only (tokens.css). Loaded after apple*.css. */
/* ------------------------------------------------------------------ sidebar */
.fpt-sidebar .fpt-sb, .mantine-Drawer-body .fpt-sb { background: var(--bg-base); }
.fpt-sb .fpt-sb-nav { display: flex; flex-direction: column; gap: 1px; }
.fpt-sb .fpt-sb-nav h6, .pw-sb-recent h6 {
margin: var(--sp-4) var(--sp-2) var(--sp-1); font-size: var(--fs-2xs); line-height: var(--lh-2xs); font-weight: var(--fw-medium);
color: var(--label-3); /* case, family and tracking come from type.css */
}
.fpt-sb .fpt-sb-nav h6:first-child { margin-top: var(--sp-3); }
.fpt-sb .fpt-nav-item {
display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 0 var(--sp-2); border-radius: var(--r-md);
font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: var(--fw-regular); color: var(--label-2);
border: 1px solid transparent; background: transparent; text-decoration: none;
}
.fpt-sb .fpt-nav-item svg { flex: none; color: var(--label-3); }
.fpt-sb .fpt-nav-item:hover { background: var(--fill); color: var(--label); }
.fpt-sb .fpt-nav-item[data-active='true'] { background: var(--bg-elev); border-color: var(--sep); color: var(--label); font-weight: var(--fw-medium); box-shadow: none; }
.fpt-sb .fpt-nav-item[data-active='true'] svg { color: var(--label); }
.fpt-sb .fpt-nav-badge {
margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill);
font-size: var(--fs-2xs); line-height: 1; font-weight: var(--fw-semibold); background: var(--orange-soft); color: var(--orange);
}
/* the latest test runs */
.pw-sb-recent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.pw-sb-recent-item {
display: flex; align-items: center; gap: var(--sp-2); min-height: 30px; padding: 0 var(--sp-2); border-radius: var(--r-md);
font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-2); text-decoration: none; border: 1px solid transparent;
}
.pw-sb-recent-item:hover { background: var(--fill); color: var(--label); }
.pw-sb-recent-item[aria-current='page'] { background: var(--bg-elev); border-color: var(--sep); color: var(--label); }
.pw-sb-recent-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-sb-recent .pw-icon-sq { flex: none; width: 14px; height: 14px; border-radius: 4px; }
/* the small info box above the account row */
.pw-sb-usage {
display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--sp-2); padding: var(--sp-2) var(--sp-3);
border: 1px solid var(--sep); border-radius: var(--r-md); background: var(--bg-elev);
}
.pw-sb-usage b { font-size: var(--fs-xs); line-height: var(--lh-xs); font-weight: var(--fw-semibold); color: var(--label); }
.pw-sb-usage span { font-size: var(--fs-2xs); line-height: var(--lh-2xs); color: var(--label-2); }
/* the account row */
.fpt-sb .fpt-me { border: 1px solid var(--sep); border-radius: var(--r-md); background: var(--bg-elev); }
.fpt-sb .fpt-me:hover { background: var(--fill); }
/* ------------------------------------------------------------------ top bar */
.fpt-topbar.pw-topbar { background: var(--bg-elev); border-bottom: 1px solid var(--sep); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; min-height: var(--topbar-h); }
.pw-topbar .fpt-title { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: var(--fw-medium); letter-spacing: 0; color: var(--label); }
.pw-topbar .fpt-topbar-menu { color: var(--label-3); }
.pw-topbar .fpt-back { font-size: var(--fs-sm); color: var(--label-2); }
.pw-topbar .fpt-back::after { content: '/'; margin-left: var(--sp-2); color: var(--label-3); }
.pw-topbar .pw-askai { height: var(--h-sm); font-weight: var(--fw-medium); border-radius: var(--r-md); }
.pw-topbar .fpt-search {
width: 220px; height: var(--h-sm); padding: 0 var(--sp-2) 0 var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-2);
border: 1px solid var(--sep); border-radius: var(--r-md); background: var(--bg); color: var(--label-3); font-size: var(--fs-sm); cursor: text;
}
.pw-topbar .fpt-search > svg { position: static; flex: none; } /* the older rule places it absolutely; here the field is a flex row */
.pw-topbar .fpt-search:hover { border-color: var(--sep-strong); background: var(--bg-elev); }
.pw-topbar .fpt-search span { flex: 1; text-align: left; }
.pw-topbar .fpt-search kbd {
font-family: var(--mono); font-size: var(--fs-2xs); line-height: 1; padding: 3px 5px; border-radius: 4px;
border: 1px solid var(--sep); background: var(--bg-elev); color: var(--label-2);
}
@media (max-width: 1279px) { .pw-topbar .fpt-search { width: var(--h-sm); padding: 0; justify-content: center; } }
@media (max-width: 767px) { .fpt-topbar.pw-topbar { min-height: 48px; } }
|