mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Add in-app search for subjects, lessons and exercises.
The header magnifier and Cmd/Ctrl+K open a palette that jumps straight to a matching page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
45ed500fa2
commit
cafa18b189
8 changed files with 658 additions and 5 deletions
|
|
@ -57,6 +57,7 @@ tooltip {
|
|||
.btn-primary:focus-visible,
|
||||
.back-btn:focus-visible,
|
||||
.settings-btn:focus-visible,
|
||||
.search-hit:focus-visible,
|
||||
.pill:focus-visible,
|
||||
.chip:focus-visible,
|
||||
.group-btn:focus-visible,
|
||||
|
|
@ -1040,6 +1041,53 @@ flowboxchild {
|
|||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.search-scrim {
|
||||
background-color: alpha(@bg_crust, 0.46);
|
||||
}
|
||||
.search-card {
|
||||
background-color: @bg_surface0;
|
||||
border: 1px solid alpha(@fg_text, 0.10);
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
min-width: 520px;
|
||||
}
|
||||
.search-entry {
|
||||
min-height: 40px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.search-empty {
|
||||
color: @fg_subtext;
|
||||
font-size: 14px;
|
||||
padding: 18px 8px 8px;
|
||||
}
|
||||
.search-results {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
border: none;
|
||||
}
|
||||
.search-results row {
|
||||
border-radius: 12px;
|
||||
margin-bottom: 4px;
|
||||
background-color: transparent;
|
||||
}
|
||||
.search-results row:hover,
|
||||
.search-results row:selected {
|
||||
background-color: alpha(@fg_text, 0.07);
|
||||
}
|
||||
.search-hit-title {
|
||||
color: @fg_text;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.search-hit-sub {
|
||||
color: @fg_subtext;
|
||||
font-size: 13px;
|
||||
}
|
||||
.search-hit-locked .search-hit-title,
|
||||
.search-hit-locked .search-hit-sub {
|
||||
opacity: 0.62;
|
||||
}
|
||||
|
||||
/* no-scale */
|
||||
/* Rules below keep a fixed size (symbols/icons) even when the window grows. */
|
||||
.bubble-number.branch-star {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue