Skip to content

Commit

Permalink
🎨 Update cell deleted popup styling (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Feb 25, 2025
1 parent a27ffb3 commit f8724fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
11 changes: 2 additions & 9 deletions frontend/components/UndoDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,15 @@ export const UndoDelete = ({ recently_deleted, on_click }) => {
let text = recently_deleted == null ? "" : recently_deleted.length === 1 ? "Cell deleted" : `${recently_deleted.length} cells deleted`

return html`
<nav
id="undo_delete"
inert=${hidden}
class=${cl({
hidden: hidden,
})}
>
<nav id="undo_delete" inert=${hidden} class=${cl({ hidden })}>
${text} (<a
href="#"
onClick=${(e) => {
e.preventDefault()
set_hidden(true)
on_click()
}}
>UNDO</a
><strong>UNDO</strong></a
>)
</nav>
`
Expand Down
11 changes: 4 additions & 7 deletions frontend/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2953,14 +2953,11 @@ nav#undo_delete {
left: 0px;
margin: 0.75rem;
padding: 0.5rem;

font-family: var(--roboto-mono-font-stack);
font-size: 0.75rem;

background-color: var(--white);
border-radius: 3px;
font-family: var(--system-ui-font-stack);
font-size: .8rem;
background-color: var(--helpbox-header-tab-bg-color);
border-radius: 8px;
color: var(--black);

box-shadow: 00px 00px 10px 2px var(--undo-delete-box-shadow-color);
opacity: 1;
transition: 0.2s linear box-shadow, 0.2s ease-out margin-bottom, 0.05s linear opacity;
Expand Down
2 changes: 1 addition & 1 deletion frontend/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
--footnote-border-color: rgba(114, 225, 231, 0.15);

/* undo delete cell*/
--undo-delete-box-shadow-color: rgba(213, 213, 214, 0.2);
--undo-delete-box-shadow-color: rgb(0 0 0 / 6%);

/*codemirror hints*/
--cm-color-editor-tooltip-border: rgba(0, 0, 0, 0.2);
Expand Down
2 changes: 1 addition & 1 deletion frontend/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
--footnote-border-color: rgba(23, 115, 119, 0.15);

/* undo delete cell*/
--undo-delete-box-shadow-color: #0083;
--undo-delete-box-shadow-color: #0000000f;

/*codemirror hints*/
--cm-color-editor-tooltip-border: rgba(0, 0, 0, 0.2);
Expand Down

0 comments on commit f8724fc

Please # to comment.