diff options
| author | Alban Gruin | 2017-01-23 09:13:46 +0100 | 
|---|---|---|
| committer | Alban Gruin | 2017-01-23 09:13:46 +0100 | 
| commit | 7c6b159442ee91c16201d296fe4cd11d7c724589 (patch) | |
| tree | df86c52444c8e9441c8252fecbbd2f2f160e343e | |
| parent | f2717d6a04d5c463a5b5e8aa41001c0589d3b4c5 (diff) | |
Amélioration du css
| -rw-r--r-- | templates/index.html | 27 | ||||
| -rw-r--r-- | templates/timetable.html | 2 | 
2 files changed, 18 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html index b839951..5fe6678 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,33 +16,40 @@ h1, h2, h3 {      line-height: 1.2em;  } -h1 a, h3 a { -    color: #31363b; +a {      text-decoration: none;  } -h1 a:hover, h1 a:focus, h3 a:hover, h3 a:focus { +a:hover, a:focus {      text-decoration: underline;  } +h1 a, h3 a { +    color: #31363b; +} +  .content {      max-width: 50em;      margin: 0 auto;  } -@media print { -    body, .content { -        max-width: none; -    } -} -  li {      line-height: 1.2em;      margin-bottom: 5px;  }  li.course { -     margin-bottom: 20px; +    margin-bottom: 20px; +} + +@media print { +    body, .content { +        max-width: none; +    } + +    header, footer, a.subscribe { +        display: none; +    }  }      </style>    </head> diff --git a/templates/timetable.html b/templates/timetable.html index 74a7bbb..28f6005 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -11,4 +11,4 @@            <li class="course"><b>{{ course.name }}</b>, de {{ course.begin|date:"H:i" }} à {{ course.end|date:"H:i" }}{% if course.rooms.all|length > 0 %}<br /><em>Salle{% if course.rooms.all|length > 1 %}s{% endif %} {% for room in course.rooms.all %}{{ room }} {% endfor %}</em>{% endif %}</li>{% endfor %}          </ul>        </section>{% endfor %} -      <p><a href="{% url "subscribe" timetable.slug year week group.slug %}">S'abonner à cet emploi du temps</a></p>{% endblock %} +      <p><a class="subscribe" href="{% url "subscribe" timetable.slug year week group.slug %}">S'abonner à cet emploi du temps</a></p>{% endblock %}  | 
