fix: svg logo

This commit is contained in:
Tobias Reisinger 2020-01-09 01:20:05 +01:00
parent 188bac429d
commit 857d46a903
4 changed files with 78 additions and 12 deletions

View file

@ -1,8 +1,3 @@
.navbar-brand svg
{
height: 40px;
}
body, wrapper
{
min-height: 100vh;
@ -69,3 +64,12 @@ footer
column-count: 6;
}
}
.navbar-brand
{
font-size: 1em;
}
.navbar-brand img
{
height: 3em;
}

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" viewBox="0 0 504 140" clip-rule="evenodd"><path d="M235.83 71.56h-7.98c-1.2 0-2.2 1-2.2 2.2V89.1l-.15.13c-4.7 3.96-10.64 6.14-16.72 6.14-14.36 0-26.04-11.68-26.04-26.04s11.68-26.04 26.04-26.04c5.58 0 10.92 1.76 15.44 5.1.87.66 2.1.57 2.86-.2l5.7-5.7c.44-.44.67-1.05.63-1.68-.02-.62-.32-1.2-.82-1.6-6.76-5.35-15.2-8.3-23.8-8.3-21.18 0-38.42 17.23-38.42 38.4 0 21.2 17.24 38.42 38.42 38.42 10.93 0 21.4-4.7 28.7-12.9.35-.4.55-.93.55-1.47v-19.6c0-1.22-.98-2.2-2.2-2.2M502.8 34.44c-.4-.6-1.1-.98-1.84-.98h-8.7c-.87 0-1.66.52-2 1.32l-24.5 56.84-24.9-56.85c-.36-.8-1.15-1.3-2.02-1.3h-8.72c-.74 0-1.44.36-1.84.98-.4.62-.48 1.4-.17 2.1l30.2 68.85c.34.8 1.13 1.32 2 1.32h11c.88 0 1.67-.53 2.02-1.33l29.66-68.87c.3-.68.22-1.47-.2-2.1"/><path d="M388.68 34.77c-.35-.8-1.14-1.32-2-1.32h-11c-.88 0-1.67.53-2.02 1.33L344 103.64c-.3.68-.22 1.47.18 2.08.4.62 1.1 1 1.84 1h8.7c.86 0 1.66-.53 2-1.33l24.5-56.86 24.9 56.86c.36.8 1.15 1.32 2.02 1.32h8.72c.74 0 1.44-.38 1.84-1 .4-.62.47-1.4.17-2.1l-30.2-68.85zM309.2 81.52l.47-.22c8.68-4.2 14.28-13.1 14.28-22.67 0-13.88-11.3-25.18-25.17-25.18H266.9c-1.2 0-2.2 1-2.2 2.2v68.86c0 1.23 1 2.22 2.2 2.22h8c1.2 0 2.2-1 2.2-2.2V45.8h21.68c7.05 0 12.8 5.75 12.8 12.8 0 5.9-4 11-9.73 12.42-1.04.26-2.07.4-3.07.4h-7.98c-.83 0-1.6.46-1.96 1.2-.38.73-.3 1.62.2 2.3l22.6 30.87c.42.58 1.08.92 1.78.92h9.9c.84 0 1.6-.47 1.97-1.2.37-.75.3-1.64-.2-2.3l-15.9-21.7zM107.2 80.97c-7.26-4.8-11.4-8.85-15.02-16.1-2.47 4.97-8.24 12.37-17.96 18.2-4.86 15.1-27.96 44-35.43 39.9-2.22-1.2-2.64-2.8-2.15-4.45.54-4.13 9.08-13.62 9.08-13.62s.18 2 2.92 6.18c-3.6-11.2 5.96-25.03 8.5-29.73 3.98-1.27 4.27-6.4 4.27-6.4.26-7.9-3.28-13.63-6.7-17.05 2.46 3 3.25 7.54 3.37 11.7v.02c0 .47 0 .93 0 1.4-.12 3.43-1.16 8.18-3.38 8.18v.03c-2.28-.1-5.1.4-7.63 1.18l-5.6 1.34s2.98-.13 4.6 1.25c-1.8 2.9-5.78 6.53-10.22 8.58-6.45 3-8.3-2.96-5.03-6.84.8-.94 1.62-1.74 2.38-2.4-.5-.5-.8-1.2-.88-2.06 0 0 0 0 0-.02-.46-1.97-.2-4.54 2.6-8.62.54-.86 1.2-1.75 2-2.65.02-.04.04-.07.07-.1.03-.04.07-.08.1-.12.02-.02.04-.04.06-.06.2-.23.42-.45.64-.67 3.34-3.4 8.6-6.96 16.9-10.15C64.4 43.68 67.94 41 67.94 41c1.07-1.1 2.94-2.45 3.63-2.8-5.05-8.77-6.07-21.15-4.75-24.5-.1.2-.2.38-.3.57.5-1.14.83-1.5 1.34-2.1 1.38-1.64 6.06-2.5 7.74.96.9 1.84 1.06 4.23 1.03 6.02-3.7-.2-7.06 4.04-7.06 4.04s3.07-1.46 6.88-1.5c0 0 1 .9 2.28 2.56-1.7 3.2-4.52 10.02-2.5 17.16.35 1.4.86 2.62 1.5 3.65.02.05.04.1.07.14.05.07.1.13.14.2 3.37 5.06 9.54 5.66 9.54 5.66-2.9-1.45-5.27-3.76-6.8-6.56-.82-1.5-1.3-2.77-1.6-3.77-1.64-6.3.77-10 2.14-12.47 3.17-4.9 8.95-7.9 15.15-7.18 8.72 1 14.97 8.86 13.98 17.57-.6 5.32-3.78 9.72-8.15 12.12 1.05 2.84-.07 6.28-.07 6.28 2.64 3.32 2.76 5.23 2.67 7-3.36-.55-6.62 1.7-6.62 1.7s6.48-1.53 10.24 1.82c2.44 2.64 4.08 5 5.05 6.77 1.4 2.5 7.86 2.68 7.12 7.2-.74 4.5-5.68 4.53-13.4-.57M69.56 0C31.15 0 0 31.15 0 69.57c0 38.42 31.15 69.57 69.57 69.57 38.42 0 69.57-31.15 69.57-69.57C139.14 31.15 108 0 69.57 0M73.8 51.7c.8-.82.8-2.14 0-2.95-.82-.82-2.14-.82-2.95 0-.82.8-.82 2.13 0 2.94.8.8 2.13.8 2.95 0M66.45 53.15c-.82.8-.82 2.13 0 2.95.8.8 2.13.8 2.94 0 .8-.82.8-2.14 0-2.95-.82-.8-2.14-.8-2.95 0"/><path d="M79.23 54.23c-1.27-1.27-3.34-1.27-4.6 0l-2.72 2.7c-1.27 1.3-1.27 3.35 0 4.63l3 2.97c1.26 1.28 3.32 1.28 4.6 0l2.7-2.7c1.28-1.28 1.28-3.35 0-4.62l-2.97-2.97zM95.76 41.44c-2.15-2.57 1.87-7.25 4.4-4.46 4.64 5.15-2.25 7.04-4.4 4.46m9.24 2.7c3.45-6.56-1.42-10.4-4.77-13.53-5.36-5.03-10.7-7.2-16.8-.23-6.1 6.98-2.24 15.07 3.35 19.06 5.58 4 14.78 1.25 18.22-5.3"/></svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

58
images/ro-logo.svg Normal file
View file

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg3845"
width="476"
height="684"
viewBox="0 0 476 684"
sodipodi:docname="RO_Logo.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14">
<metadata
id="metadata3851">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3849" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1420"
id="namedview3847"
showgrid="false"
inkscape:zoom="1.2694841"
inkscape:cx="412.03517"
inkscape:cy="384.64419"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg3845" />
<path
style="fill:#000000;stroke-width:1.33333337"
d="M 200.66667,678.80891 C 160.60919,668.34204 133.51161,652.23356 100.65594,619.35632 77.014887,595.69976 63.330412,575.89949 44.090723,537.51132 26.987053,503.38505 18.263419,475.93529 9.4994921,428.66667 1.2262046,384.04432 -1.2228691,347.59612 1.2123227,305.33333 c 2.0623149,-35.7915 3.55841,-46.87169 9.4517003,-70 C 26.730859,172.2788 50.894913,119.69908 81.093256,82.082997 101.76225,56.336993 128.28138,34.079255 152.66667,22.010792 208.15297,-5.4497957 262.39269,-5.1783704 317.24641,22.834379 356.42172,42.840465 390.46187,75.906759 417.27371,120 c 18.22404,29.97023 39.63408,84.71933 47.22817,120.77049 1.86573,8.85711 5.27989,32.85711 7.58703,53.33334 3.63449,32.2569 4.0872,39.98986 3.38938,57.89617 -2.12681,54.57539 -16.23826,129.25169 -30.10894,159.33333 -2.02886,4.4 -4.44982,10.4 -5.37991,13.33334 -2.64936,8.35542 -9.38037,21.09037 -23.30625,44.0949 -14.62291,24.15599 -23.8919,35.75494 -46.78367,58.54371 -18.00536,17.92436 -24.67544,22.36664 -58.12547,38.71164 -27.03697,13.21132 -36.43694,15.33712 -71.10738,16.08088 -24.49898,0.52556 -25.81639,0.41724 -40,-3.28889 z m 54.66666,-20.28699 C 272.81309,656.37984 287.88747,651.65407 306,642.63808 380.50851,605.54951 433.68935,512.85572 447.50272,396 c 3.09048,-26.14421 3.09048,-73.85579 0,-100 C 437.08637,207.88175 404.81044,133.78645 355.85548,85.607052 338.88303,68.903469 325.04021,58.839695 306,49.361925 260.81655,26.870672 216.46464,26.592012 171.33333,48.515827 104.08656,81.182859 53.694693,158.75627 33.519641,260.66667 27.899848,289.05397 26.094483,309.80207 26.094483,346 c 0,53.03208 5.720502,90.62073 20.798886,136.66667 16.57736,50.62346 40.670115,91.62077 72.478901,123.33333 16.40164,16.35201 32.67097,28.08731 51.96106,37.48023 28.46644,13.86114 54.94398,18.60242 84,15.04169 z M 359.49304,532.98503 c -7.97884,-15.5751 -24.66115,-44.92492 -37.07181,-65.22183 l -22.56483,-36.90347 -11.84111,-8.11012 c -6.51261,-4.46057 -12.09937,-7.65401 -12.41502,-7.09654 -0.31566,0.55748 -6.07436,17.57237 -12.79715,37.81086 -7.75513,23.34632 -13.83708,39.35683 -16.63817,43.79935 -6.84055,10.84911 -21.62266,24.97599 -30.81511,29.44924 l -8.01651,3.901 -22,-1.29139 C 148.47979,527.15883 148,526.98681 148,515.93777 c 0,-3.47358 5.68112,-70.99946 12.62472,-150.05752 6.9436,-79.05805 12.49345,-143.87318 12.33301,-144.03362 -0.16044,-0.16044 -16.19142,-3.09143 -35.6244,-6.5133 -19.43298,-3.42186 -35.46047,-6.34936 -35.61665,-6.50553 -0.36966,-0.36967 2.4585,-26.70795 2.92207,-27.21283 0.19443,-0.21176 51.13622,8.9291 113.20398,20.313 75.01188,13.75802 114.52251,21.56208 117.8372,23.275 10.86823,5.61632 22.57952,21.38464 27.23435,36.6689 2.45381,8.05717 2.70484,11.29976 2.01277,26 -0.90013,19.11988 -5.23378,52.99957 -8.2648,64.61266 -1.33566,5.11751 -7.78953,17.65555 -18.68469,36.29912 -9.15432,15.66468 -16.64423,29.19402 -16.64423,30.0652 0,0.87118 9.54323,16.63658 21.20718,35.03422 14.6685,23.13678 25.97368,43.00485 36.66666,64.43916 8.50272,17.04389 15.4595,31.46232 15.4595,32.04094 0,0.81346 -18.96792,11.02191 -20.35539,10.95519 -0.1712,-0.008 -6.83941,-12.75823 -14.81824,-28.33333 z m -147.0632,-32.8173 c 15.52364,-14.72529 31.14191,-48.98234 38.16481,-83.7105 3.9578,-19.57131 4.09916,-18.94398 -5.92798,-26.30643 C 239.9,386.65088 236,383.46267 236,383.06591 c 0,-0.9355 12.32341,-20.39924 12.91572,-20.39924 0.24765,0 12.11472,8.75284 26.37127,19.45076 14.25654,10.69792 26.55109,19.06133 27.32122,18.58536 2.13247,-1.31794 15.24199,-24.09231 21.9751,-38.176 8.59549,-17.97926 11.20972,-29.63104 13.55449,-60.4134 2.33535,-30.65846 1.66204,-36.08516 -5.51791,-44.47332 -2.47713,-2.89398 -7.43304,-6.52187 -11.01312,-8.06198 -5.77574,-2.48466 -121.14565,-23.88802 -122.24421,-22.67868 -0.21679,0.23866 -2.58391,25.63392 -5.26027,56.43392 -2.67634,30.8 -8.47638,92.81786 -12.88894,137.81747 -4.41258,44.9996 -7.66104,82.17928 -7.21883,82.62151 1.18468,1.18466 21.81644,2.53613 28.00548,1.83448 3.79728,-0.43051 6.80117,-1.997 10.42984,-5.43906 z"
id="path3859"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

@ -1,9 +1,14 @@
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
<a href="{{ home_url }}" class="navbar-brand mr-10">
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.name }}" />
{% else %}
{% include('@images/grav-logo.svg') %}
{% endif %}
<div class="float-left">
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.name }}" />
{% else %}
{% include('@images/ro-logo.svg') %}
{% endif %}
</div>
<div class="ml-2 float-right">
Reitanlage<br>Oranienburg
</div>
</a>