From b7da2420138829f6d896b2e0a7d40ccc6ddf489a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Tue, 9 Aug 2022 21:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E5=9C=B0=E6=96=B9=E6=94=B9?= =?UTF-8?q?=E4=B8=BAgrid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style.css | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/style.css b/style.css index d555a581..3188735e 100644 --- a/style.css +++ b/style.css @@ -1770,7 +1770,7 @@ icon.inflicts::after { animation: icon-active 0.2s; } -.search-box .awoken-ul { +.awoken-ul { display: grid; grid-template-columns: repeat(auto-fill, 32px); grid-auto-rows: 32px; @@ -1782,22 +1782,18 @@ icon.inflicts::after .official-awoken-sorting { display: inline-block; } +.team-awoken .awoken-ul { + grid-template-columns: repeat(auto-fill, 67px); +} .awoken-ul .awoken-count { font-family: var(--game-font-family); - display: inline-block; grid-column: span 1; grid-row: span 1; font-size: 16px; line-height: 32px; -} -.awoken-ul .count -{ - height: 32px; - width: 37px; - display: inline-block; - vertical-align: middle; + white-space: nowrap; } .awoken-ul .count::before { @@ -2080,16 +2076,19 @@ icon.inflicts::after box-sizing: border-box; vertical-align: top; } -.row-mon-awoken .awoken-icon, -.row-mon-super-awoken .awoken-icon +.row-mon-awoken .awoken-ul, +.row-mon-super-awoken .awoken-ul { - margin-right: 5px; + grid-template-columns: repeat(10, 32px); } -.row-mon-awoken .awoken-icon:last-of-type, -.row-mon-super-awoken .awoken-icon:last-of-type +.row-mon-awoken .awoken-count-num, +.row-mon-awoken .awoken-icon, +.row-mon-super-awoken .awoken-icon { - margin-left: unset; + grid-column: span 1; + grid-row: span 1; } + /*未选中的超觉醒半透明,选中的不透明*/ .row-mon-super-awoken .sawoken-choice{display:none;} .row-mon-super-awoken .sawoken-choice+label