moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
61 stars 54 forks source link

Feature: Setting for the activity icon size #76

Open ralf-krause opened 2 years ago

ralf-krause commented 2 years ago

It would be nice to have a setting for the activity icon size and the activity type. Otherwise we must set this in the scss field.

.activityiconcontainer { width: 30px; height: 30px; }
.activitytitle .text-uppercase { display: none; }
lucaboesch commented 2 years ago

View your proposal https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/74, @ralf-krause it would be even wise to have a possibility to set a activity icon size for activity icons appearing in the block drawer. Independently from the size of the icon in the content area. What do you think? Have you ever heard of that request by any of your customers?

Best, Luca

abias commented 1 year ago

In scss/moodle/variables.scss, there are these variables:

$activity-iconcontainer-height: 50px;
$activity-iconcontainer-width: 50px;

I think these can be leveraged to solve this feature request.

ralf-krause commented 1 year ago

The icons are squares so the need only the setting of one dimension in the Boost Union settings. I think that also the text for the activity type should be removable as I wrote in the top of this issue.

.activityiconcontainer { width: 30px; height: 30px; }
.activitytitle .text-uppercase { display: none; }
abias commented 11 months ago

Please note: In Moodle 4.3, there has been a change.

See https://github.com/moodle/moodle/blob/d76e211be6ae65fe3982ad97f3fe5c879a7b2daa/theme/boost/upgrade.txt#L5 where it says:

The $activity-iconcontainer-height and $activity-iconcontainer-width variables have been changed from 50px to 52px.