46 lines
955 B
Plaintext
46 lines
955 B
Plaintext
<div class="flex-column-center badge-icon-container">
|
|
<div class="img-container" title="{{ badgename }}">
|
|
<img src="{{ badgeimg }}">
|
|
</div>
|
|
{% if showname %}
|
|
<div class="badge-name">{{ badgename }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<style>
|
|
.badge-icon-container {
|
|
gap: 10px;
|
|
width: calc(20% - 16px);
|
|
}
|
|
.badge-icon-container > .img-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #fbf2e5;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 0;
|
|
padding-bottom: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.badge-icon-container > .img-container > img {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
position: absolute;
|
|
top: 5%;
|
|
}
|
|
|
|
.badge-icon-container > .badge-name {
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.badge-icon-container {
|
|
width: calc(33% - 16px);
|
|
}
|
|
}
|
|
</style> |