Commit f9027b33a724f2edf046a138b264fcda1bd68a23

Authored by Marcel Kawski
1 parent dbfd4589

Remove redundant CSS classes and IDs

collector/storage/static/storage/css/document.css
... ... @@ -44,15 +44,9 @@ body {
44 44 }
45 45  
46 46 .main-actions {
47   - text-align: center;
48 47 margin: 30px auto;
49 48 }
50 49  
51   -.add-chunk {
52   - text-align: center;
53   -}
54   -/*TODO change for text-align-center class*/
55   -
56 50 .text-align-center {
57 51 text-align: center;
58 52 }
... ... @@ -68,10 +62,6 @@ body {
68 62 border-radius: .25rem;
69 63 }
70 64  
71   -#subdoc-list-table {
72   - text-align: center;
73   -}
74   -
75 65 thead tr:first-child {
76 66 background: var(--table-color);
77 67 color: #fff;
... ...
collector/storage/templates/storage/annotation.html
... ... @@ -66,7 +66,7 @@
66 66 </div>
67 67 {% endfor %}
68 68 {% endif %}
69   - <div class="main-actions">
  69 + <div class="main-actions text-align-center">
70 70 <a class="btn btn-info"
71 71 href="{% url 'download_source' document.id 'annotation' %}">
72 72 Pobierz źródło
... ... @@ -103,7 +103,7 @@
103 103 <p>Poddokumenty:</p>
104 104 </div>
105 105  
106   - <table class="data-table doc-table" id="subdoc-list-table">
  106 + <table class="data-table doc-table text-align-center">
107 107 <thead>
108 108 <tr>
109 109 <th class="col-doc-name">Nazwa-ID</th>
... ... @@ -336,7 +336,7 @@
336 336 <p>Treść:</p>
337 337 </div>
338 338 {% if chunks %}
339   - <div class="add-chunk">
  339 + <div class="text-align-center">
340 340 {% if user.is_authenticated %}
341 341 <i class="add-chunk-between material-icons button add" data-id="{% url 'add_chunk_between' document.id %}"
342 342 title="Dodaj sekcję tutaj">add</i>
... ... @@ -385,7 +385,7 @@
385 385 {% endfor %}
386 386 </tbody>
387 387 </table>
388   - <div class="add-chunk">
  388 + <div class="text-align-center">
389 389 {% if user.is_authenticated %}
390 390 <i class="add-chunk-between material-icons button add" data-id="{% url 'add_chunk_between' document.id chunk.pk %}"
391 391 title="Dodaj sekcję tutaj">add</i>
... ...
collector/storage/templates/storage/document.html
... ... @@ -66,7 +66,7 @@
66 66 </div>
67 67  
68 68 {% if user.is_authenticated %}
69   -<div class="main-actions">
  69 +<div class="main-actions text-align-center">
70 70 <button class="reprocess-document btn btn-primary" type="button" data-id="{% url 'reprocess_document' document.id %}">Przetwórz</button>
71 71 </div>
72 72 {% endif %}
... ...
collector/storage/templates/storage/review.html
... ... @@ -49,7 +49,7 @@
49 49 {% endfor %}
50 50 {% endif %}
51 51  
52   - <div class="main-actions">
  52 + <div class="main-actions text-align-center">
53 53 <a class="btn btn-info"
54 54 href="{% url 'download_source' document.id 'review' %}">
55 55 Pobierz źródło
... ... @@ -86,7 +86,7 @@
86 86 <p>Poddokumenty:</p>
87 87 </div>
88 88  
89   - <table class="data-table doc-table" id="subdoc-list-table">
  89 + <table class="data-table doc-table text-align-center">
90 90 <thead>
91 91 <tr>
92 92 <th class="col-doc-name">Nazwa-ID</th>
... ...