public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>, yew-devel@lists.proxmox.com
Subject: Re: [PATCH yew-widget-toolkit-assets 2/3] material: reduce default spacing to 8px
Date: Fri, 30 Oct 2026 12:49:25 +0100	[thread overview]
Message-ID: <2c69c6bc-ed87-4cd8-8631-c85d8d07cbc0@proxmox.com> (raw)
In-Reply-To: <20261022174334.2286071-3-t.lamprecht@proxmox.com>

applied this one  (see ongoing discussion on patch 1 and 3)

On 10/22/26 7:43 PM, Thomas Lamprecht wrote:
> Material Design aligns components to an 8dp grid, with a 4dp grid for
> finer elements such as icons and type. A 10px spacer put the spacer
> steps at 10, 20, 30 and 40px, off that grid; with 8px they are 8, 16,
> 24 and 32px.
>
> The 10px default also left a lot of room between controls, on desktops
> as well as on phones, and 8px fits more content at the same font size.
> Anyone who wants more room can choose Relaxed, and on touch screens
> the controls keep a fingertip-sized target.
>
> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
> ---
>   scss/material/_theme_config_material.scss | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/scss/material/_theme_config_material.scss b/scss/material/_theme_config_material.scss
> index 7e7c040..2eeecb8 100644
> --- a/scss/material/_theme_config_material.scss
> +++ b/scss/material/_theme_config_material.scss
> @@ -1,11 +1,10 @@
>   /// ### The "Material" Theme
>   ///
> -/// This theme is intended for use on mobile/touch devices and uses a very
> -/// large `10px` spacer. It is broadly similar to material design as
> -/// described in <https://m3.material.io/>.
> +/// This theme uses an `8px` default spacer, with relaxed spacing and coarse-pointer control sizing
> +/// available. It is broadly similar to Material Design as described in <https://m3.material.io/>.
>   ///
>   
> -$spacer: 10px;
> +$spacer: 8px;
>   
>   $button-corner-shape: map-get($shape-corner, full);
>   $fab-corner-shape: map-get($shape-corner, large);




  reply	other threads:[~2026-10-30 11:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22 17:40 [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 1/3] material: give controls a fingertip-sized target on touch screens Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 2/3] material: reduce default spacing to 8px Thomas Lamprecht
2026-10-30 11:49   ` Dietmar Maurer [this message]
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 3/3] material: let an application turn the touch-sized controls off Thomas Lamprecht
2026-10-29 12:29 ` [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls Dietmar Maurer
2026-10-29 14:40   ` Thomas Lamprecht
2026-10-30 11:03     ` 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=2c69c6bc-ed87-4cd8-8631-c85d8d07cbc0@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=t.lamprecht@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