Skip to content

Commit

Permalink
feat: minimal deletion prompt (+ style-setting for full info)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Aug 24, 2024
1 parent 2b25ee8 commit 50e9d99
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 14 deletions.
29 changes: 29 additions & 0 deletions source/04 search-container deletion-prompt.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* ───────────────────────────────────────────────── */
/** Search container (cmd+f)
──────────────────────────────────────────────────── */
.document-search-container {
margin-right: 0;
margin-left: 0;
border-bottom: var(--thin-border);
box-shadow: var(--shadow-s);
}

body:not(.show-close-buttons, .is-mobile) .document-search-close-button {
display: none;
}

/* ───────────────────────────────────────────────── */
/** Deletion Prompt
──────────────────────────────────────────────────── */

/* deletion prompts do not have their own selector, so making the selectors as
* specific as possible to ensure no other prompts are unintentionally targeted. */
body:not(.full-info-on-deletion-prompt)
.modal-container.mod-confirmation.mod-dim
> .modal
:is(
.modal-content > p:not(.mod-warning),
.modal-button-container > .mod-checkbox
) {
display: none;
}
13 changes: 0 additions & 13 deletions source/04 search-container.css

This file was deleted.

8 changes: 7 additions & 1 deletion source/style-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ settings:
By default, the buttons at the top of the sidebar panels are only visible when hovering.
type: class-toggle
default: false
- id: full-info-on-deletion-prompt
title: Show full deletion prompt
description:
The theme hides non-critical information and the "Don't ask again" checkbox. Enable this to show them again.
type: class-toggle
default: false
- id: show-suggester-instructions
title: Re-enable suggester hints
type: class-toggle
description:
Suggesters are modals like the command palette or quick switcher. By default, this theme hides
the keyboard hints at the bottom of those suggesters. Enable this, to display them again.
the keyboard hints at the bottom of those suggesters. Enable this to display them again.
default: false
- id: show-new-tab-button
title: Re-enable new tab button
Expand Down

0 comments on commit 50e9d99

Please sign in to comment.