Added shared macros template with shared style

master
Felix Stupp 3 years ago
parent dedefbe4d6
commit 2bba9d21b9
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,16 +1,11 @@
{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = collection.title %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
</style>
{{ macros.shared_style() }}
</head>
<body>
<a href="/collection">&lt;- back to list</a>

@ -1,16 +1,11 @@
{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = collection_list | length | string + " Collections known" %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
</style>
{{ macros.shared_style() }}
</head>
<body>
<h1>{{ title }}</h1>

@ -0,0 +1,19 @@
{% macro shared_style() %}
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }
.button {
padding: .1rem .2rem;
margin: 0 .1rem;
background-color: lightcoral;
border-radius: .3rem;
}
</style>
{% endmacro %}

@ -1,16 +1,11 @@
{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = element.title %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
</style>
{{ macros.shared_style() }}
</head>
<body>
<a href="/media">&lt;- back to list</a>

@ -1,26 +1,11 @@
{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = media_list | length | string + " Videos known" %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }
.button {
padding: .1rem .2rem;
margin: 0 .1rem;
background-color: lightcoral;
border-radius: .3rem;
}
</style>
{{ macros.shared_style() }}
</head>
<body>
<h1>{{ title }}</h1>

Loading…
Cancel
Save