Added CSS file
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
@@ -1,23 +1,16 @@
|
|||||||
|
{% load static %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Calendar</title>
|
<title>Calendar</title>
|
||||||
<style>
|
|
||||||
table.month, table.month th, table.month td {
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
|
||||||
border: 1px solid black;
|
<link rel="stylesheet" href="{% static 'faerun_calendar/css/main.css' %}">
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
table.month {
|
|
||||||
margin: 10px;
|
|
||||||
float: left;
|
|
||||||
width: 250px;
|
|
||||||
max-width: 250px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Календарь</h1>
|
<h1>Календарь</h1>
|
||||||
{% extends 'faerun_calendar/calendar.html' %}
|
{% include 'faerun_calendar/calendar.html' %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
<table class="month">
|
<table class="month">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="10">{{title}}</th>
|
<th colspan="10" class="title">{{title}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if subtitle %}
|
{% if subtitle %}
|
||||||
<tr>
|
<th colspan="10" class="subtitle">{{subtitle}}</th>
|
||||||
<td colspan="10">{{subtitle}}</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if oneday != 1 %}
|
{% if oneday != 1 %}
|
||||||
<tr>
|
<tr>
|
||||||
@@ -29,7 +27,12 @@
|
|||||||
<td>16</td>
|
<td>16</td>
|
||||||
<td>17</td>
|
<td>17</td>
|
||||||
<td>18</td>
|
<td>18</td>
|
||||||
|
{% if title == "Миртул" %}
|
||||||
|
<td class="current">19</td>
|
||||||
|
{% else %}
|
||||||
<td>19</td>
|
<td>19</td>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<td>20</td>
|
<td>20</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user