From a4ce7274cd20273eb255e1605c8e48828a5dacb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Tue, 24 Mar 2026 23:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=20CSS=20=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=89=8D=E7=BC=80=EF=BC=8C=E4=BD=BF=E7=94=A8=E7=8E=B0?= =?UTF-8?q?=E4=BB=A3=E6=A0=87=E5=87=86=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _mixin.less: 移除 -ms-transition - _reset.less: 使用标准 text-size-adjust 和 appearance - share.less: 移除 -moz-inline-stack 和 zoom:1 hack - tooltip.less: 移除 -webkit-transform 前缀 Co-Authored-By: Claude Opus 4.6 --- themes/yilia/source-src/css/core/_mixin.less | 2 -- themes/yilia/source-src/css/core/_reset.less | 9 ++++----- themes/yilia/source-src/css/share.less | 2 -- themes/yilia/source-src/css/tooltip.less | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/themes/yilia/source-src/css/core/_mixin.less b/themes/yilia/source-src/css/core/_mixin.less index efaaa44..30c7475 100644 --- a/themes/yilia/source-src/css/core/_mixin.less +++ b/themes/yilia/source-src/css/core/_mixin.less @@ -285,13 +285,11 @@ // trans .trans() { transition: all 0.2s ease-in; - -ms-transition: all 0.2s ease-in; } // trans8 .trans8() { transition: all 0.8s ease-in; - -ms-transition: all 0.8s ease-in; } // display-flex diff --git a/themes/yilia/source-src/css/core/_reset.less b/themes/yilia/source-src/css/core/_reset.less index 0d78ec9..7bce5a6 100644 --- a/themes/yilia/source-src/css/core/_reset.less +++ b/themes/yilia/source-src/css/core/_reset.less @@ -12,8 +12,7 @@ // 1. Prevent mobile text size adjust after orientation change, without disabling user zoom. // 2. Remove the gray background color from tap, default value is inherit html { - -ms-text-size-adjust: 100%; // 1 - -webkit-text-size-adjust: 100%; // 1 + text-size-adjust: 100%; // 1 -webkit-tap-highlight-color: transparent; // 2 height: 100%; } @@ -188,7 +187,7 @@ button, html input[type="button"], input[type="reset"], input[type="submit"] { - -webkit-appearance: button; // 1 + appearance: button; // 1 cursor: pointer; // 2 } @@ -226,14 +225,14 @@ input[type="number"]::-webkit-outer-spin-button { // 1. Address `appearance` set to `searchfield` in Safari and Chrome. // 2. Address `box-sizing` set to `border-box` in Safari and Chrome. input[type="search"] { - -webkit-appearance: textfield; // 1 + appearance: textfield; // 1 box-sizing: content-box; // 2 } // Remove inner padding and search cancel button in Safari and Chrome on OS X. input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; + appearance: none; } // Define consistent border, margin, and padding. diff --git a/themes/yilia/source-src/css/share.less b/themes/yilia/source-src/css/share.less index 486f1a6..fd1c69b 100644 --- a/themes/yilia/source-src/css/share.less +++ b/themes/yilia/source-src/css/share.less @@ -13,10 +13,8 @@ a { border: 1px solid @colorBorder; border-radius: 50%; - display: -moz-inline-stack; display: inline-block; vertical-align: middle; - zoom: 1; margin: 10px; transition: 0.3s; text-align: center; diff --git a/themes/yilia/source-src/css/tooltip.less b/themes/yilia/source-src/css/tooltip.less index c762629..4e926cd 100644 --- a/themes/yilia/source-src/css/tooltip.less +++ b/themes/yilia/source-src/css/tooltip.less @@ -112,7 +112,6 @@ bottom: 100%; left: 50%; pointer-events: none; - -webkit-transform: translateX(-50%); transform: translateX(-50%); }