From 0c6721e3191e2ac61dead377c40f0d2fb3b8eae2 Mon Sep 17 00:00:00 2001 From: PhilW Date: Sun, 12 Apr 2026 11:14:55 +0100 Subject: [PATCH] download table layout improvements --- download/index.html | 14 +++++----- index.html | 2 +- styles/styles.less | 65 ++++++++++++++++++++++++--------------------- 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/download/index.html b/download/index.html index 42e557d..eeba2a6 100644 --- a/download/index.html +++ b/download/index.html @@ -26,20 +26,20 @@

{{ params.title }}{% if params.titleVersion %} - {{ params.pac Package Size - SHA-256 checksum + SHA-256 checksum {% for package in params.packages %} {% unless params.titleVersion %}{{ package.version }} - {% endunless %}{{ package.package }}{% if package.package == "Dependent" %}1{% endif %} - Download + Download {{ package.size }} - - - {{ package.checksum }} + + + {{ package.checksum }} - + {% endfor %} @@ -47,7 +47,7 @@

{{ params.title }}{% if params.titleVersion %} - {{ params.pac {% endfor %} -

1. Dependent packages only contain sources which are licensed under the GPL but they require some third-party +

1. Dependent packages only contain sources which are licensed under the GPL but they require some third-party packages to be installed along with Roundcube. All requirements are listed in the INSTALL instructions within the package file.

Other sources and downloads

diff --git a/index.html b/index.html index d69dc44..83df609 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ Welcome Roundcube Webmail
- Download + Download Version {{ site.data.downloads.stable.packages[0].version }}
diff --git a/styles/styles.less b/styles/styles.less index 890253e..fb3e1d3 100644 --- a/styles/styles.less +++ b/styles/styles.less @@ -16,6 +16,8 @@ @color-banner-background: fadeout(mix(@color-primary, #fff, 33%), 50%); @color-thumbnail-background: @color-background-alt; @color-footer: #495057; +@color-success: #3fb950; +@color-error: #f85149; @color-dark-primary: darken(@color-primary, 30%); @color-dark-background-alt: rgba(255, 255, 255, 0.05); @@ -35,6 +37,8 @@ --rc-color-thumbnail-background: @color-thumbnail-background; --rc-color-footer: @color-footer; --rc-color-footer-hover: darken(@color-footer, 15%); + --rc-color-success: @color-success; + --rc-color-error: @color-error; } html[data-bs-theme="dark"] { @@ -233,11 +237,13 @@ a.copy-link { &.complete:after { font: var(--fa-font-solid); content: @fa-var-check; + color: var(--rc-color-success); } &.error:after { font: var(--fa-font-solid); content: @fa-var-triangle-exclamation; + color: var(--rc-color-error); } } @@ -360,27 +366,23 @@ a.current-theme::after { } &::before { - margin-right: .5rem; + margin-right: 0; content: @fa-var-download; } + > span { + margin-left: @icon-margin * 2; + } + &.btn-sm { - & > span { + > span { display: none; } - &::before { - margin-right: 0; - } - - @media (min-width: @min-width-sm) { - & > span { + @media (min-width: @min-width-lg) { + > span { display: inline; } - - &::before { - margin-right: .5rem; - } } } } @@ -466,49 +468,50 @@ table.download-table { vertical-align: middle; } - th.package { - width: 55%; - } - td.link { - width: 20%; + width: 60px; } td.size { - width: 20%; + width: 80px; } td.checksum { font-size: 0.9em; - width: 5%; + width: 40px; } @media (min-width: @min-width-md) { th.package { - width: 40%; + width: 255px; + } + + td.checksum { + width: auto; } + } + @media (min-width: @min-width-lg) { td.link { - width: 35%; + width: 170px; } td.size { - width: 20%; + width: 120px; } + } - td.checksum { - width: auto; + td.checksum > span > span.copy-target { + @media (min-width: @min-width-md) { + width: 254px; } - } - @media (min-width: @min-width-lg) { - th.package { - width: 20%; + @media (min-width: @min-width-lg) { + width: 344px; } - td.link, - td.size { - width: 15%; + @media (min-width: @min-width-xl) { + width: auto; } } }