1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +02:00

docs: use background-size to set pixel backgrounds for course banners

This commit is contained in:
Thomas Heartman 2024-01-31 16:53:21 +09:00
parent d8234140a6
commit 4c3c4a9e2f
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78
2 changed files with 4 additions and 8 deletions

View File

@ -443,12 +443,13 @@ html[data-theme='light'] .course-banner-container {
}
.course-banner-container.beginners {
background-image: url('/img/unleash-academy/beginner-pixels-l.svg');
background-image: url('/img/unleash-academy/beginner-pixels.svg');
background-size: 108px;
}
.course-banner-container.advanced {
/* todo: rewrite this to use the large advanced pixels */
background-image: url('/img/unleash-academy/beginner-pixels-l.svg');
background-image: url('/img/unleash-academy/advanced-pixels.svg');
background-size: 108px;
}
.course-banner-container > * + * {

View File

@ -1,5 +0,0 @@
<svg width="108" height="108" viewBox="0 0 108 108" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.2">
<path fill-rule="evenodd" clip-rule="evenodd" d="M108 0H35.3793V14.8966H52.1379V37.2414H35.3793V72.6207H48.414V57.7246H70.7588V72.6207H108V0ZM96.8276 26.0703H74.4828V48.4151H96.8276V26.0703ZM0.000137329 18.6211H24.207V42.828H0.000137329V18.6211ZM70.7586 85.6543H93.1034V107.999H70.7586V85.6543ZM35.3794 80.0703H13.0346V102.415H35.3794V80.0703Z" fill="#817AFE"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 492 B