Skip to content
Snippets Groups Projects
Commit cf36cd3e authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

improve badges and tables

parent 19dab41c
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ $small-font-size: 70%; ...@@ -7,6 +7,7 @@ $small-font-size: 70%;
// Badges // Badges
$badge-font-size: 0.7em; $badge-font-size: 0.7em;
$badge-font-weight: 500;
// Tables; // Tables;
$table-border-color: var(--background-color-primary); $table-border-color: var(--background-color-primary);
...@@ -47,19 +48,21 @@ $info: #0a8299; ...@@ -47,19 +48,21 @@ $info: #0a8299;
table-layout: fixed; table-layout: fixed;
} }
& > :not(:first-child) { &.sortable {
border-top: none; thead {
} tr {
border-left: 1px solid var(--text-primary-color);
&.sortable thead { }
tr {
border-left: 1px solid var(--text-primary-color); th {
border-right: 1px solid;
border-top: 1px solid;
border-bottom: 1px solid;
}
} }
th { & > :not(:first-child) {
border-right: 1px solid; border-top: none;
border-top: 1px solid;
border-bottom: 1px solid;
} }
} }
tbody tr > * { tbody tr > * {
......
<template> <template>
<div class="table-responsive" v-if="certifs.length > 0"> <div class="table-responsive" v-if="certifs.length > 0">
<BtnSearch v-model="search" class="col" v-if="certifs.length > 5" /> <BtnSearch v-model="search" class="px-2 pt-2" v-if="certifs.length > 5" />
<table class="table table-striped table-hover table-fixed sortable"> <table class="table table-striped table-hover table-fixed sortable">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</th> </th>
<td class="text-right py-1"> <td class="text-right py-1">
<BadgeDate :date="certif.expires_on" styleDate="short" /> <BadgeDate :date="certif.expires_on" styleDate="short" />
<span class="badge badge-secondary" v-if="certif.pending">{{ <span class="badge bg-secondary" v-if="certif.pending">{{
$t("traitement") $t("traitement")
}}</span> }}</span>
</td> </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment