Browse Source

Revert "Fix missing tfoot styling" (#1794)

This reverts commit 1ab403459f806750049371f74a8e4d6f80f9cc6a.
Paweł Kuna 1 year ago
parent
commit
02d6287f6b
3 changed files with 5 additions and 29 deletions
  1. 0 20
      src/pages/_includes/ui/table.html
  2. 1 1
      src/pages/tables.html
  3. 4 8
      src/scss/ui/_tables.scss

+ 0 - 20
src/pages/_includes/ui/table.html

@@ -86,25 +86,5 @@
 		</tr>
 		{% endfor %}
 		</tbody>
-		{% if include.footer %}
-		<tfoot>
-			<tr>
-				<th>Name</th>
-				<th>Title</th>
-	
-				{% unless include.avatars %}
-				<th>Email</th>
-				{% endunless %}
-	
-				<th>Role</th>
-	
-				{% if include.nowrap %}
-				<th></th>
-				{% endif %}
-	
-				<th class="w-1"></th>
-			</tr>
-		</tfoot>
-		{% endif %}
 	</table>
 </div>

+ 1 - 1
src/pages/tables.html

@@ -16,7 +16,7 @@ menu: base.tables
 
 	<div class="col-12">
 		<div class="card">
-			{% include ui/table.html card=true stripped=true offset=5 footer=true %}
+			{% include ui/table.html card=true stripped=true offset=5 %}
 		</div>
 	</div>
 

+ 4 - 8
src/scss/ui/_tables.scss

@@ -1,6 +1,5 @@
 .table {
-  thead,
-  tfoot {
+  thead {
     th {
       color: $table-th-color;
       background: $table-th-bg;
@@ -27,8 +26,7 @@
 }
 
 .table-transparent {
-  thead,
-  tfoot {
+  thead {
     th {
       background: transparent;
     }
@@ -64,8 +62,7 @@
       @include media-breakpoint-down($breakpoint) {
         display: block;
 
-        thead,
-        tfoot {
+        thead {
           display: none;
         }
 
@@ -148,8 +145,7 @@ Table sort
 }
 
 .table-borderless {
-  thead th,
-  tfoot th {
+  thead th {
     background: transparent;
   }
 }