* overviewBlock: adjust default style.

This commit is contained in:
liugang
2023-07-14 16:23:31 +08:00
parent 69aec0edb7
commit 5fd889a2cb
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -1,3 +1 @@
.overview-block .cards {margin-top: -20px;}
.overview-block .cards > .card + .card > :first-child {border-left-width: 1px;}
.overview-block .bar-chart ul {height: 60px;}
+3 -1
View File
@@ -28,7 +28,7 @@ class overviewBlock extends wg
protected function buildCard($card): wg
{
$class = 'text-2xl text-center font-bold leading-relaxed ' . (!empty($card->class) ? $card->class : '');
$class = 'text-2xl text-center leading-relaxed ' . (!empty($card->class) ? $card->class : '');
return col
(
@@ -59,6 +59,7 @@ class overviewBlock extends wg
return div
(
setClass('cards flex w-1/2'),
setStyle(array('margin-top' => '-20px')),
$cards
);
}
@@ -104,6 +105,7 @@ class overviewBlock extends wg
h::ul
(
setClass('flex justify-around items-end w-full'),
setStyle(array('height' => '60px')),
$bars
)
),