Fix CSS and CSP

This commit is contained in:
spikecodes 2020-12-19 22:25:00 -08:00
parent a754d42b9e
commit 3594b6d41f
2 changed files with 19 additions and 3 deletions

View File

@ -63,6 +63,7 @@ a:not(.post_right):hover {
} }
#about { #about {
padding-top: 20px;
background: #151515; background: #151515;
} }
@ -268,7 +269,7 @@ small {
margin-top: 1em; margin-top: 1em;
border-radius: 5px; border-radius: 5px;
display: flex; display: flex;
/* border: 2px solid var(--foreground); */ font-size: 15px;
} }
.comment_left, .comment_right { .comment_left, .comment_right {
@ -279,7 +280,7 @@ small {
.comment_left { .comment_left {
text-align: center; text-align: center;
min-width: 50px; min-width: 50px;
padding: 5px; padding: 5px 0px;
align-items: center; align-items: center;
} }
@ -374,6 +375,21 @@ small {
background: black; background: black;
} }
/* Code */
pre {
background: var(--outside);
padding: 20px;
margin-top: 10px;
border-radius: 5px;
box-shadow: var(--black-contrast);
}
code {
font-family: monospace;
font-size: 14px;
}
/* Tables */ /* Tables */
table { table {

View File

@ -3,7 +3,7 @@
<head> <head>
{% block head %} {% block head %}
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self';"> <meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline';">
<meta name="description" content="View on Libreddit, an alternative private front-end to Reddit."> <meta name="description" content="View on Libreddit, an alternative private front-end to Reddit.">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />