diff --git a/faerun_calendar/static/faerun_calendar/css/main.css b/faerun_calendar/static/faerun_calendar/css/main.css new file mode 100644 index 0000000..9e58cbc --- /dev/null +++ b/faerun_calendar/static/faerun_calendar/css/main.css @@ -0,0 +1,36 @@ +h1 { + text-align: center; +} + +table.month, table.month th, table.month td { + border: 1px solid white; + border-collapse: collapse; + padding: 5px; + background: gainsboro; +} + +table.month th { + text-align: center; +} + +table.month td { + text-align: right; +} + +table.month td.current { + background: dimgrey; + color: white; +} + +table.month th.subtitle { + font-style: italic; + font-weight: normal; +} + +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 b977875..21aa548 100644 --- a/faerun_calendar/templates/faerun_calendar/index.html +++ b/faerun_calendar/templates/faerun_calendar/index.html @@ -1,23 +1,16 @@ +{% load static %} + Calendar - + + +

Календарь

- {% extends 'faerun_calendar/calendar.html' %} + {% include 'faerun_calendar/calendar.html' %} diff --git a/faerun_calendar/templates/faerun_calendar/month.html b/faerun_calendar/templates/faerun_calendar/month.html index 39ac52f..5708516 100644 --- a/faerun_calendar/templates/faerun_calendar/month.html +++ b/faerun_calendar/templates/faerun_calendar/month.html @@ -1,11 +1,9 @@ - + {% if subtitle %} - - - + {% endif %} {% if oneday != 1 %} @@ -29,7 +27,12 @@ + {% if title == "Миртул" %} + + {% else %} + {% endif %} +
{{title}}{{title}}
{{subtitle}}
{{subtitle}}
16 17 18191920