From d0262beaf6385b5f3c375e197b0391b2355416d4 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 9 Oct 2024 14:34:53 -0700 Subject: [PATCH] fix: Fix "Reasons to use Nextcloud" design Signed-off-by: Christopher Ng --- apps/settings/css/settings.scss | 18 +++++++----------- .../settings/personal/development.notice.php | 5 ++++- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/apps/settings/css/settings.scss b/apps/settings/css/settings.scss index 210d46c6491..e2745c40611 100644 --- a/apps/settings/css/settings.scss +++ b/apps/settings/css/settings.scss @@ -132,7 +132,7 @@ select { } .link-button { - display: inline-block; + display: inline-flex; margin: calc(2 * var(--default-grid-baseline)); padding: calc(2 * var(--default-grid-baseline)) calc(4 * var(--default-grid-baseline)); background-color: var(--color-primary-element); @@ -140,6 +140,8 @@ select { border-radius: var(--border-radius-element); border: 1px solid var(--color-primary-element); box-shadow: 0 2px 9px var(--color-box-shadow); + align-items: center; + gap: calc(var(--default-grid-baseline) * 2); &:hover, &:focus { @@ -152,19 +154,13 @@ select { outline: 2px solid var(--color-main-text) !important; } - &.icon-file { - padding-inline-start: calc(var(--default-grid-baseline) + var(--default-clickable-area)); - background-position: calc(2 * var(--default-grid-baseline)); + .icon-file-text { + filter: var(--primary-invert-if-dark); + width: 20px; + height: 20px; } } -body[dir='ltr'] .link-button.icon-file { - background-position: left 24px center; -} -body[dir='rtl'] .link-button.icon-file { - background-position: right 24px center; -} - .personal-settings-container { display: inline-grid; grid-template-columns: 1fr 1fr 1fr; diff --git a/apps/settings/templates/settings/personal/development.notice.php b/apps/settings/templates/settings/personal/development.notice.php index e0f66863efa..723f954ecc5 100644 --- a/apps/settings/templates/settings/personal/development.notice.php +++ b/apps/settings/templates/settings/personal/development.notice.php @@ -6,7 +6,10 @@ ?>