I’m trying to make the icon sizes in my panel display larger:
I’ve been following the advice given to similar problems in the past, but so far the solutions haven’t worked for me. I’ve created an assets/css/custom-panel.css with this code:
.k-items[data-layout="cards"] .k-item-image .k-icon {
--icon-size: 64px;
}
.k-items[data-layout="cardlets"] .k-item-image .k-icon {
--icon-size: 48px;
}
which I direct to in config/config.php:
<?php
return [
'panel' => [
'css' => 'assets/css/custom-panel.css'
]
];
And this is my site.yml, which sets the icons:
title: Site
options:
title: false
sections:
Pages:
type: pages
status: listed
layout: cardlets
create: false
image:
query: page.icon
icon: "{{ page.icon.or('📝') }}"
back: blue-700
color: white
unlisted:
label: Unlisted pages
type: pages
status: unlisted
But my icons always stay the same size.
