Skip to content

Commit

Permalink
feat: improve taxonomy component layout
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Sep 17, 2024
1 parent 00494d7 commit 89f7820
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<div class="Taxonomy">
<table class="font-xs table table-striped table-sm">
<tr>
<td>
<b>Groupe taxonomique</b>
</td>
<td>{{ taxon?.classe }}</td>
</tr>
<tr>
<td>
<b>Ordre</b>
</td>
<td>{{ taxon?.ordre }}</td>
</tr>
<tr>
<td>
<b>Famille</b>
</td>
<td data-qa="synthese-obs-detail-taxo-familly">{{ taxon?.famille }}</td>
</tr>
<h5 class="Taxonomy__subtitle">Classification</h5>
<table class="Classification font-xs table table-striped table-sm">
<tbody>
<tr>
<td class="Classification__name">Groupe taxonomique</td>
<td class="Classification__value">{{ taxon?.classe }}</td>
</tr>
<tr>
<td class="Classification__name">Ordre</td>
<td class="Classification__value">{{ taxon?.ordre }}</td>
</tr>
<tr>
<td class="Classification__name">Famille</td>
<td
class="Classification__value"
data-qa="synthese-obs-detail-taxo-familly"
>
{{ taxon?.famille }}
</td>
</tr>
</tbody>
</table>

<!-- <h5 class="underlined underlined-sm main-color">Attribut(s) Taxonomique(s) locaux</h5>
Expand All @@ -33,7 +35,7 @@
</tr>
</table> -->

<h5 class="underlined underlined-sm main-color">Statuts</h5>
<h5 class="Taxonomy__subtitle">Statuts</h5>
<table
class="font-xs table table-sm"
*ngIf="taxon?.status; else noStatus"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
.Taxonomy {
display: flex;
flex-flow: column;
justify-content: flex-start;
row-gap: 0.5rem;

&__subtitle {
text-decoration: underline;
text-decoration-color: currentColor;
text-underline-offset: 0.4rem;
text-decoration-thickness: 2px;
}
.Classification {
&__name {
font-weight: bold;
white-space: nowrap;
}
&__value {
width: 100%;
padding-left: 1rem;
}
}
}

0 comments on commit 89f7820

Please sign in to comment.