add basic styles.css sheet

This commit is contained in:
koksnuss 2020-04-22 17:59:38 +02:00
parent c8c402e221
commit 568395de2a
2 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,56 @@
/* encoding: utf-8
Copyright (C) 2020 willipink.eu
Author Moritz Münch moritzmuench@mailbox.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
body {
margin: 10px;
border: 0px;
padding: 0px;
font-family: Open Sans;
}
a, a:visited, a:active {
text-decoration: none;
color: black;
}
table {
margin: 0px 0px 30px 0px;
border: 0px;
padding: 0px;
border-collapse: collapse;
width: 500px;
}
table td { padding: 5px; }
table > thead > tr > td {
border-bottom: 2px solid black;
background-color: #9fc5e8;
font-weight: bold;
}
table > tbody > tr > td {
border: 1px solid black;
}
table > tbody > tr:nth-of-type(odd) { background: white; }
table > tbody > tr:nth-of-type(even) { background: lightblue; }

View File

@ -21,7 +21,8 @@
<html>
<head>
<meta charset="utf-8">
<title>Münzsammlung</title>
<title>Münzsammlung</title> {% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'coinc/styles.css' %}">
</head>
<body>{% if countrys %} {% for country in countrys %}
{% show_country country %} {% endfor %} {% else %}