Some style fixes

This commit is contained in:
2022-11-02 17:32:01 +03:00
parent da163a9dba
commit 2d868195e7
3 changed files with 23 additions and 7 deletions
@@ -7,6 +7,9 @@ div.calendarpage {
h2.year { h2.year {
text-align: center; text-align: center;
padding-bottom: 10px;
border-bottom: 1px solid black;
margin-bottom: 20px;
} }
table.month, table.month th, table.month td { table.month, table.month th, table.month td {
@@ -33,7 +36,7 @@ table.month th.subtitle {
font-weight: normal; font-weight: normal;
} }
table.month td a { table.month a {
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
@@ -42,14 +45,21 @@ table.month td.current a {
color: white; color: white;
} }
div.calendar, div.calendar {
div.calendar-events, column-width: 350px;
div.calendar-error { }
div.calendar-events {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
justify-content: space-around; justify-content: space-around;
} }
div.calendar-events > p,
div.calendar-error > p {
text-align: center;
}
table.month { table.month {
margin: 10px; margin: 10px;
width: 350px; width: 350px;
@@ -14,7 +14,7 @@
<div class="calendarpage"> <div class="calendarpage">
{% if type == 'year' %} {% if type == 'year' %}
<h1 class="title">Календарь</h1> <h1 class="title">Календарь</h1>
<h2 class="year">{{year_data.number}}</h2> <h2 class="year">Год {{year_data.number}}</h2>
<div class="calendar"> <div class="calendar">
{% for month in month_data %} {% for month in month_data %}
@@ -25,7 +25,7 @@
</div> </div>
{% elif type == 'day' %} {% elif type == 'day' %}
<h1 class="title">Календарь — События</h1> <h1 class="title">Календарь — События</h1>
<h2 class="year">Год {{year_data.number}}, {{month_data.name}}, день {{day}}-й</h2> <h2 class="year">Год {{year_data.number}}, {{month_data.name}}{% if not month_data.is_oneday %}, день {{day}}-й{% endif %}</h2>
<div class="calendar-events"> <div class="calendar-events">
{% if events.count == 0 %} {% if events.count == 0 %}
@@ -1,7 +1,13 @@
<div class="month"> <div class="month">
<table class="month"> <table class="month">
<tr> <tr>
<th colspan="10" class="title">{{month.name}}</th> <th colspan="10" class="title">
{% if not month.is_oneday %}
{{month.name}}
{% else %}
<a href="{{year_data.number}}/{{month.number}}/{{1}}">{{month.name}}</a>
{% endif %}
</th>
</tr> </tr>
{% if month.folkname %} {% if month.folkname %}
<th colspan="10" class="subtitle">{{month.folkname}}</th> <th colspan="10" class="subtitle">{{month.folkname}}</th>