Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Next: Restyle the "Jump to Note" dialog #802

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions src/public/stylesheets/theme-next/shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,97 @@ body .calendar-dropdown-widget .calendar-body a:hover {
padding-top: 12px;
}

/*
* Jump to note
*/

.jump-to-note-dialog .modal-dialog {
--modal-background-color: var(--menu-background-color);
--bs-modal-header-border-width: 0;
--bs-modal-footer-border-width: 0;
--bs-modal-footer-gap: 0;

backdrop-filter: var(--dropdown-backdrop-filter);
}

.jump-to-note-dialog .modal-content {
box-shadow: 0 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
border: 1px solid var(--dropdown-border-color);
padding: 32px;
border-radius: 8px;
}

.jump-to-note-dialog .modal-header {
padding: unset !important;
}

.jump-to-note-dialog .modal-body {
padding: 26px 0 !important;
}

/* Search box wrapper */
.jump-to-note-dialog .input-group {
margin-right: 16px;
background: var(--quick-search-background);
border: 2px solid transparent;
border-radius: 6px;
color: var(--quick-search-color);
}

.jump-to-note-dialog .input-group:hover {
background: var(--quick-search-hover-background);
}

/* Focused search box */
.jump-to-note-dialog .input-group:focus-within {
border-color: var(--quick-search-focus-border);
background: var(--quick-search-focus-background);
color: var(--quick-search-focus-color)
}

/* Search box input */
.jump-to-note-dialog .input-group input {
--bs-border-width: 0;

box-shadow: unset;
background: transparent;
color: currentColor;
}

/* Search box buttons */
.jump-to-note-dialog .input-group button {
--bs-border-width: 0;
--accented-background-color: transparent;
padding: 0 4px;
}

.jump-to-note-dialog .input-group button:last-child {
padding-right: .75em;
}

.jump-to-note-dialog .input-clearer-button {
background: transparent !important;
}

/* List body */
.jump-to-note-dialog .jump-to-note-results .aa-suggestions {
padding: 0;
}

/* List item */
.jump-to-note-dialog .aa-suggestions div {
border-radius: 6px;
padding: 6px 12px;
color: var(--menu-text-color);
cursor: default;
}

/* Selected list item */
.jump-to-note-dialog .aa-suggestions div.aa-cursor {
background: var(--hover-item-background-color);
color: var(--hover-item-text-color);
}

/*
* Recent changes list
*/
Expand Down
Loading