From fcaf9f84b7c8b604ccc2e1100306fc39f4445084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 26 Apr 2021 09:07:52 +0800 Subject: [PATCH] =?UTF-8?q?style:=E7=BA=A0=E6=AD=A3=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=A0=B7=E5=BC=8F=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/grid/source/css/common.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/themes/grid/source/css/common.less b/themes/grid/source/css/common.less index ce0e76d..17e696b 100644 --- a/themes/grid/source/css/common.less +++ b/themes/grid/source/css/common.less @@ -59,16 +59,19 @@ fit: fit-content; }; each(@special-basis, { - &.w-@{key}-@{media} { + .b-@{key}-@{media} { flex-basis: @value; } }); @basis-percent: 2, 3, 4, 5, 8, 10, 12, 16, 20, 24; each(@basis-percent, .(@max) { each(range(1, @max), .(@i) { - &.w-@{i}-@{max}-@{media} { + .b-@{i}-@{max}-@{media} { flex-basis: percentage(@i / @max); } + .w-@{i}-@{max}-@{media} { + width: percentage(@i / @max); + } }); }); @wrap-modes: {