public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH widget-toolkit-assets 1/2] dialog: side dialog: add drag handle to bottom dialog
Date: Tue,  1 Jul 2025 10:38:31 +0200	[thread overview]
Message-ID: <20250701083832.2075506-1-d.csapak@proxmox.com> (raw)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 scss/_dialog.scss | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/scss/_dialog.scss b/scss/_dialog.scss
index cd9d533..8121b75 100644
--- a/scss/_dialog.scss
+++ b/scss/_dialog.scss
@@ -230,6 +230,8 @@ dialog.pwt-outer-dialog {
         bottom: 0px;
         left: 0px;
         right: 0px;
+        // for the drag handle
+        padding-top: var(--pwt-spacer-2);
 
         &.visible {
             transform: translateY(0);
@@ -238,5 +240,18 @@ dialog.pwt-outer-dialog {
         &.hidden {
             transform: translateY(100%);
         }
+
+        // drag handle
+        &:before {
+            content: "";
+            height: 4px;
+            position: absolute;
+            opacity: 0.4;
+            width: var(--pwt-spacer-3);
+            background-color: var(--pwt-color-on-surface);
+            border-radius: var(--pwt-dialog-corner-shape);
+            inset-inline-start: calc(50% - var(--pwt-spacer-3) / 2);
+            inset-block-start: calc((var(--pwt-spacer-2) - 4px) / 2);
+        }
     }
 }
-- 
2.39.5



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


             reply	other threads:[~2025-07-01  8:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-01  8:38 Dominik Csapak [this message]
2025-07-01  8:38 ` [yew-devel] [PATCH widget-toolkit-assets 2/2] add mobile theme Dominik Csapak
2025-07-01  9:26 ` [yew-devel] applied: [PATCH widget-toolkit-assets 1/2] dialog: side dialog: add drag handle to bottom dialog Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250701083832.2075506-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=yew-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal