From 9f88b2c7b876ea4b55d65dfbc077dbba0c4249fd Mon Sep 17 00:00:00 2001 From: Ruslan Ignatov Date: Mon, 11 Jul 2022 23:50:21 +0300 Subject: [PATCH] Some CSS fixes --- .../static/faerun_calendar/css/main.css | 14 ++- .../templates/faerun_calendar/index.html | 12 ++- .../templates/faerun_calendar/month.html | 100 +++++++++--------- links/static/links/css/main.css | 12 +++ links/templates/links/index.html | 8 +- main/static/main/css/main.css | 7 ++ main/templates/main/index.html | 2 +- main/templates/main/pagetemplate.html | 5 +- 8 files changed, 102 insertions(+), 58 deletions(-) create mode 100644 links/static/links/css/main.css diff --git a/faerun_calendar/static/faerun_calendar/css/main.css b/faerun_calendar/static/faerun_calendar/css/main.css index 9e58cbc..4390a3d 100644 --- a/faerun_calendar/static/faerun_calendar/css/main.css +++ b/faerun_calendar/static/faerun_calendar/css/main.css @@ -1,5 +1,8 @@ -h1 { - text-align: center; +div.calendarpage { + margin: 10px; + padding: 10px; + border: 1px solid black; + border-radius: 20px; } table.month, table.month th, table.month td { @@ -27,9 +30,14 @@ table.month th.subtitle { font-weight: normal; } +div.month { + display: inline-flex; + flex-direction: row; + justify-content: space-between; +} + table.month { margin: 10px; - float: left; width: 300px; max-width: 300px; border-radius: 10px; diff --git a/faerun_calendar/templates/faerun_calendar/index.html b/faerun_calendar/templates/faerun_calendar/index.html index fa1ec69..cc3a8f3 100644 --- a/faerun_calendar/templates/faerun_calendar/index.html +++ b/faerun_calendar/templates/faerun_calendar/index.html @@ -1,13 +1,19 @@ {% extends 'main/pagetemplate.html' %} +{% load static %} + +{% block additional_css %} + +{% endblock %} + {% block pagetitle %} Календарь {% endblock %} {% block content %}
-

Календарь

- {% include 'faerun_calendar/calendar.html' %} -
+

Календарь

+ {% include 'faerun_calendar/calendar.html' %} + {% endblock %} diff --git a/faerun_calendar/templates/faerun_calendar/month.html b/faerun_calendar/templates/faerun_calendar/month.html index 5708516..9dd9a39 100644 --- a/faerun_calendar/templates/faerun_calendar/month.html +++ b/faerun_calendar/templates/faerun_calendar/month.html @@ -1,51 +1,53 @@ - - - - - {% if subtitle %} - - {% endif %} - {% if oneday != 1 %} - - - - - - - - - - - - - - - - - - - - - - {% if title == "Миртул" %} - - {% else %} - +
+
{{title}}
{{subtitle}}
12345678910
11121314151617181919
+ + + + {% if subtitle %} + {% endif %} + {% if oneday != 1 %} + + + + + + + + + + + + + + + + + + + + + + {% if title == "Миртул" %} + + {% else %} + + {% endif %} - - - - - - - - - - - - - - - {% endif %} -
{{title}}
{{subtitle}}
12345678910
1112131415161718191920
21222324252627282930
\ No newline at end of file + 20 + + + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + + {% endif %} + + diff --git a/links/static/links/css/main.css b/links/static/links/css/main.css new file mode 100644 index 0000000..7b62797 --- /dev/null +++ b/links/static/links/css/main.css @@ -0,0 +1,12 @@ +div.linkspage { + margin: 10px; + padding: 10px; + border: 1px solid black; + border-radius: 20px; +} + +ul { + list-style-type: none; + margin: 0; + padding: 0; +} diff --git a/links/templates/links/index.html b/links/templates/links/index.html index facc8f5..3d4aebc 100644 --- a/links/templates/links/index.html +++ b/links/templates/links/index.html @@ -1,12 +1,18 @@ {% extends 'main/pagetemplate.html' %} +{% load static %} + +{% block additional_css %} + +{% endblock %} + {% block pagetitle %} Полезные ссылки {% endblock %} {% block content %}
-

Полезные ссылки

+

Полезные ссылки