styling images

This commit is contained in:
lopar 2019-01-12 21:54:43 +02:00
parent 0776b425b3
commit af5baf8a6d

View File

@ -150,7 +150,7 @@ abstract class Item
echo <<<IMG echo <<<IMG
<img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->img}" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25); <img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->img}" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
padding: 7px; display: inline-block; background-repeat: no-repeat; padding: 7px; display: inline-block; background-repeat: no-repeat;
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');"> background-color: {$bg_color}; background-image: radial-gradient(circle, {$border_color}, {$bg_color});">
IMG; IMG;
} }