Use external style file

This commit is contained in:
metalune 2021-03-24 18:52:46 +01:00
parent 3692b57942
commit 5a84312706
4 changed files with 13 additions and 1 deletions

6
static/style.css Normal file
View file

@ -0,0 +1,6 @@
body {
max-width: 800px;
margin: 10px auto;
padding-left: 5px;
padding-right: 5px;
}

View file

@ -2,13 +2,15 @@
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{% block head %}
<title>{% block full_title %}{% block title %}{% endblock %} - SimpleerTube{% endblock %}</title>
{% endblock %}
</head>
<!-- I know that inline CSS is not .. the best, but I'll move it to an external file for sure! definitely! -->
<body style="max-width: 800px; margin: 10px auto; padding-left: 5px; padding-right: 5px">
<body>
<form action="/{{ domain }}/search" method="POST">
<label for="query"><b>{{ instance_name }}</b></label>
<input type="text" name="query" id="query" placeholder="Search" value="{{ search_term }}"/>

View file

@ -2,6 +2,8 @@
<html>
<head>
<title>SimpleerTube - Search</title>
<link rel="stylesheet" href="/static/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<form action="/search" method="POST">

View file

@ -2,6 +2,8 @@
<html>
<head>
<title>SimpleerTube - Search Results</title>
<link rel="stylesheet" href="/static/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<form action="/search" method="POST">