You've already forked AstralRinth
forked from didirus/AstralRinth
Reduce duplication of Forge logo using svg <use>
This uses svg <use href="#..."> to avoid having to duplicate the logo at every use. Surprisingly this just works with the current theme css, and doesn't require any changes.
This commit is contained in:
@@ -31,13 +31,7 @@
|
||||
<div class="loader-icons">
|
||||
{{#contains this.keywords "forge"}}
|
||||
<div class="loader-forge" title="Forge">
|
||||
<svg viewBox="0 0 120 66.7" class="forge">
|
||||
<path d="M91.6,16.7l-37.8-1.9l46.2,0v-3.7H47.8l0,7.8v6.2c0,0.1-1.5-9.1-1.9-11.7h-4.1v6.8v6.2
|
||||
c0,0.1-1.8-10.9-1.9-12.3c-10.4,0-27.9,0-27.9,0c1.9,1.6,12.4,10.6,19.9,14.3c3.7,1.8,8.3,1.9,12.4,2c2.1,0.1,4.2,0.2,5.8,1.8
|
||||
c2.3,2.2,2.8,5.7,0.8,8.3c-1.9,2.6-7.3,3.2-7.3,3.2L39,49.1v6.4h10.3l0.3-6.3l8.9-6.3c-0.9,0.8-3.1,2.8-6.2,7.7
|
||||
c-0.7,1.1-1.3,2.3-1.7,3.5c2.2-1.9,6.8-3.2,12.2-3.2c5.3,0,9.9,1.3,12.1,3.2c-0.4-1.2-1-2.4-1.7-3.5c-3.2-4.9-5.3-6.9-6.2-7.7
|
||||
l8.9,6.3l0.3,6.3h9.6v-6.4l-4.5-5.5c0,0-6.7-0.4-8.4-3.2C67.7,32.6,74.8,20.4,91.6,16.7z"/>
|
||||
</svg>
|
||||
<svg class="forge" viewbox="0 0 120 66.7"><use href="#forge" xlink:href="#forge"/></svg>
|
||||
</div>
|
||||
{{/contains}}
|
||||
{{#contains this.keywords "fabric"}}
|
||||
|
||||
@@ -26,6 +26,16 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<svg display="none">
|
||||
<symbol viewBox="0 0 120 66.7" id="forge">
|
||||
<path d="M91.6,16.7l-37.8-1.9l46.2,0v-3.7H47.8l0,7.8v6.2c0,0.1-1.5-9.1-1.9-11.7h-4.1v6.8v6.2
|
||||
c0,0.1-1.8-10.9-1.9-12.3c-10.4,0-27.9,0-27.9,0c1.9,1.6,12.4,10.6,19.9,14.3c3.7,1.8,8.3,1.9,12.4,2c2.1,0.1,4.2,0.2,5.8,1.8
|
||||
c2.3,2.2,2.8,5.7,0.8,8.3c-1.9,2.6-7.3,3.2-7.3,3.2L39,49.1v6.4h10.3l0.3-6.3l8.9-6.3c-0.9,0.8-3.1,2.8-6.2,7.7
|
||||
c-0.7,1.1-1.3,2.3-1.7,3.5c2.2-1.9,6.8-3.2,12.2-3.2c5.3,0,9.9,1.3,12.1,3.2c-0.4-1.2-1-2.4-1.7-3.5c-3.2-4.9-5.3-6.9-6.2-7.7
|
||||
l8.9,6.3l0.3,6.3h9.6v-6.4l-4.5-5.5c0,0-6.7-0.4-8.4-3.2C67.7,32.6,74.8,20.4,91.6,16.7z"/>
|
||||
</symbol>
|
||||
</svg>
|
||||
|
||||
<a href="#" class="back-to-top" id="backToTop">
|
||||
<img src="/static/images/icon/up.svg" alt="up">
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user