From 5a6300f473b8be0e90a16e2b5992299b0ea1ddff Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 27 Jan 2025 19:45:39 +0000 Subject: context menus and note deletion --- static/popup-menu.css | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 static/popup-menu.css (limited to 'static/popup-menu.css') diff --git a/static/popup-menu.css b/static/popup-menu.css new file mode 100644 index 0000000..e0ec6c9 --- /dev/null +++ b/static/popup-menu.css @@ -0,0 +1,38 @@ +.menuButton { + display: flex; + &:not(:has(li)) { + display: none; + } +} + +ul.popupMenu { + position: absolute; + border: var(--border); + border-radius: var(--border-radius); + background: var(--clr-panel-background); + z-index: 10; + box-shadow: var(--overlay-shadow); + list-style: none; + margin: 0; + padding: 0; + + li > * { + padding: var(--spacing-single); + display: grid; + grid-template-columns: var(--icon-size) auto; + gap: var(--spacing-single); + align-items: center; + + border: none; + background: none; + font-family: inherit; + font-size: var(--font-normal-size) !important; + color: var(--clr-foreground) !important; + width: max-content !important; + text-decoration: none; + cursor: pointer; + } + li:not(:last-child) { + border-bottom: var(--border); + } +} -- cgit v1.3