Remove Inline Styles in Favor of the Stylesheet

Should fix https://github.com/nelmio/NelmioApiDocBundle/issues/1770
This commit is contained in:
Christopher Davis 2022-05-16 08:56:52 -05:00
parent 0220f641ed
commit 49bad6743c
2 changed files with 7 additions and 1 deletions

View File

@ -289,3 +289,9 @@ text-align:center;
.swagger-ui .errors-wrapper hgroup h4 {
font-family: sans-serif !important;
}
#swagger-ui-logos {
position: absolute;
width:0;
height:0;
}

View File

@ -25,7 +25,7 @@ file that was distributed with this source code. #}
</head>
<body>
{% block svg_icons %}
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="swagger-ui-logos">
<defs>
<symbol viewBox="0 0 20 20" id="unlocked">
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>