Commit 4101729cc4b73d0e5ab6dd7189e3d0e83e9b5f5d
1 parent
0110a008
Center text in navigation anchor tags with icons
Showing
3 changed files
with
18 additions
and
4 deletions
collector/storage/static/storage/css/document.css
... | ... | @@ -361,4 +361,18 @@ ul.legend { |
361 | 361 | |
362 | 362 | .order { |
363 | 363 | margin-left: 20px; |
364 | +} | |
365 | + | |
366 | +.nav-text { | |
367 | + font-size: 20px; | |
368 | + line-height: 88px; | |
369 | +} | |
370 | + | |
371 | +.nav-button { | |
372 | + display: inline-flex; | |
373 | + vertical-align: top; | |
374 | +} | |
375 | + | |
376 | +.nav-anchor:hover { | |
377 | + text-decoration: none; | |
364 | 378 | } |
365 | 379 | \ No newline at end of file |
... | ... |
collector/storage/templates/storage/annotation.html
... | ... | @@ -13,8 +13,8 @@ |
13 | 13 | |
14 | 14 | {% if document.parent %} |
15 | 15 | <div class="container"> |
16 | - <a href="{% url 'annotation' document.parent.id %}"> | |
17 | - <span class="material-icons nav-button">arrow_back_ios</span> | |
16 | + <a href="{% url 'annotation' document.parent.id %}" class="nav-anchor"> | |
17 | + <i class="material-icons nav-button">arrow_back_ios</i> | |
18 | 18 | <span class="nav-text">Wróć do dokumentu głównego</span> |
19 | 19 | </a> |
20 | 20 | </div> |
... | ... |
collector/storage/templates/storage/review.html
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | |
8 | 8 | {% if document.parent %} |
9 | 9 | <div class="container"> |
10 | - <a href="{% url 'review' document.parent.id %}"> | |
10 | + <a href="{% url 'review' document.parent.id %}" class="nav-anchor"> | |
11 | 11 | <span class="material-icons nav-button">arrow_back_ios</span> |
12 | 12 | <span class="nav-text">Wróć do dokumentu głównego</span> |
13 | 13 | </a> |
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | |
16 | 16 | {% else %} |
17 | 17 | <div class="container"> |
18 | - <a href="{% url 'document_list' %}"> | |
18 | + <a href="{% url 'document_list' %}" class="nav-anchor"> | |
19 | 19 | <span class="material-icons nav-button">arrow_back_ios</span> |
20 | 20 | <span class="nav-text">Wróć do listy dokumentów</span> |
21 | 21 | </a> |
... | ... |