From efbadcfbf21bf7fb13766370b43733bed219c473 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 1 Oct 2026 02:25:26 +0800 Subject: [PATCH] fix: remove underlines from user buttons --- web/public/cloud/client.css | 4 ++-- web/public/cloud/styles.css | 15 ++++++++++++++- web/resources/views/venix/layout_assets.tpl | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/web/public/cloud/client.css b/web/public/cloud/client.css index c6acb88d..e27e66b1 100644 --- a/web/public/cloud/client.css +++ b/web/public/cloud/client.css @@ -37,8 +37,8 @@ /* Keep the icon as compact as the avatar; only the invisible hit area grows. */ .panel-announcements-trigger.button::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; } } -.panel-announcements-link { display: inline-block; width: fit-content; padding: 0; border: 0; background: transparent; color: #0f8f9a; font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; } -.panel-announcements-link:hover { text-decoration: underline; } +.panel-announcements-link { display: inline-block; width: fit-content; padding: 0; border: 0; background: transparent; color: #0f8f9a; font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; text-decoration: none; } +.panel-announcements-link:hover { text-decoration: none; } html.panel-announcements-open { overflow: hidden; overscroll-behavior: none; scroll-behavior: auto !important; } html.panel-announcements-open body { position: fixed; top: var(--panel-announcements-scroll-top, 0px); left: 0; right: 0; width: 100%; overflow: hidden; } .panel-announcements-drawer { position: fixed; inset: 0 0 0 auto; width: min(540px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #25384e; box-shadow: -12px 0 48px rgba(19,42,65,.16); overflow: hidden; } diff --git a/web/public/cloud/styles.css b/web/public/cloud/styles.css index c3768899..8bdf7013 100644 --- a/web/public/cloud/styles.css +++ b/web/public/cloud/styles.css @@ -42,7 +42,7 @@ input:focus,select:focus,button:focus-visible{outline:3px solid rgba(18,166,176, .form-stack input::placeholder,.field input::placeholder{color:#a6b1be} .form-stack input{margin-bottom:23px} .form-error{color:#bf3e48;font-size:13px;line-height:1.5;margin:0 0 16px} -.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:10px 17px;min-height:41px;background:#fff;color:#304158;font-size:13px;font-weight:700;white-space:nowrap;transition:transform .15s,box-shadow .15s,background .15s,border-color .15s} +.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:10px 17px;min-height:41px;background:#fff;color:#304158;font-size:13px;font-weight:700;white-space:nowrap;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s,border-color .15s} .button:not(:disabled):hover{transform:translateY(-1px)} .button-primary{background:#0f9eaa;color:#fff;box-shadow:0 8px 17px rgba(15,158,170,.16)} .button-primary:not(:disabled):hover{background:#0b8c98;box-shadow:0 10px 19px rgba(15,158,170,.22)} @@ -232,6 +232,19 @@ tbody tr:hover{background:#fcfefe} .user-iso-option small{color:#8a9aa8;font-size:10px} .user-iso-empty{display:flex;align-items:center;justify-content:space-between;gap:12px} .user-iso-empty .ssh-key-picker-manage{flex:none;margin:0} + +/* Keep every user-facing button control free of browser or hover underlines. + Plain content and navigation links intentionally keep their own styling. */ +body[data-cloud-page] :is(button, [role="button"], .button, .row-button, .icon-button, .vu-btn, .vu-icon-btn), +body.vu-body :is(button, [role="button"], .button, .row-button, .icon-button, .vu-btn, .vu-icon-btn), +body.venix-auth :is(button, [role="button"], .button, .row-button, .icon-button, .vu-btn, .vu-icon-btn) { + text-decoration: none; +} +body.venix-auth .auth-switch button:hover, +body[data-cloud-page] .ssh-key-picker-manage:hover, +body.vu-body .ssh-key-picker-manage:hover { + text-decoration: none; +} .user-isos-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:19px;align-items:start} .user-isos-grid .host-card{min-width:0} .user-iso-hint{display:block;margin:-13px 0 18px;color:#8798a7;font-size:10px;line-height:1.65} diff --git a/web/resources/views/venix/layout_assets.tpl b/web/resources/views/venix/layout_assets.tpl index d0fd27ac..8e201af5 100644 --- a/web/resources/views/venix/layout_assets.tpl +++ b/web/resources/views/venix/layout_assets.tpl @@ -1,2 +1,2 @@ {* Shared Venix CSS/JS cache key. Increment whenever a shared browser asset changes. *} -{assign var=venix_asset_version value='2026100105' scope='global'} +{assign var=venix_asset_version value='2026100106' scope='global'}