mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-09 03:54:08 +00:00
Include base stylesheet via link instead of style
Instead of using <style> with import, set an explicit link like we do for other stylesheets. This will make it possible to turn on a content security policy for CSS.
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
{%endfor%}
|
||||
<link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" />
|
||||
{%endif%}
|
||||
<style type="text/css" media="screen" title="Normal Text">@import url("/dyncss/base.css?{{gitrev}}");</style>
|
||||
<link rel="stylesheet" type="text/css" href="/dyncss/base.css?{{gitrev}}">
|
||||
{%block extrahead%}{%endblock%}
|
||||
</head>
|
||||
<body>
|
||||
|
@ -18,7 +18,7 @@
|
||||
{%endfor%}
|
||||
<link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" />
|
||||
{%endif%}
|
||||
<style type="text/css" media="screen" title="Normal Text">@import url("/dyncss/base.css?{{gitrev}}");</style>
|
||||
<link rel="stylesheet" type="text/css" href="/dyncss/base.css?{{gitrev}}">
|
||||
{%block extrahead%}{%endblock%}
|
||||
</head>
|
||||
<body>
|
||||
|
Reference in New Issue
Block a user