Correction de mise en forme flex

This commit is contained in:
oca 2024-12-23 11:56:32 +01:00
parent 46de36182b
commit 0ffea56aaa
3 changed files with 112 additions and 91 deletions

View File

@ -27,13 +27,13 @@
<fieldset> <fieldset>
<legend>Filtrer les vélos</legend> <legend>Filtrer les vélos</legend>
<dl> <dl>
{{:input name="type" type="select" label="Type de vélo" options=$types}} {{:input name="type" type="select" label="Type de vélo" options=$types default_empty="Tous les types de vélo"}}
</dl> </dl>
<dl> <dl>
{{:input name="genre" type="select" label="Genre de cadre" options=$genres}} {{:input name="genre" type="select" label="Genre de cadre" options=$genres default_empty="Tous les genres de cadre"}}
</dl> </dl>
<dl> <dl>
{{:input name="roues" type="select" label="Taille de roue" options=$roues}} {{:input name="roues" type="select" label="Taille de roue" options=$roues default_empty="Toutes les tailles de roue"}}
</dl> </dl>
</fieldset> </fieldset>
</div> </div>
@ -61,13 +61,15 @@
<span class="label">{{$etiquette}}</span> <span class="label">{{$etiquette}}</span>
<div class="properties"> <div class="properties">
<ul> <ul>
<li class="date-entree">entré en stock {{$date_entree|relative_date}} </li>
<li class="numero-unique">numéro unique : {{$id|intval}} </li>
<li>Type : {{$type}}</li> <li>Type : {{$type}}</li>
<li>Taille : {{$roues}}</li> <li>Taille : {{$roues}}</li>
<li>Cadre : {{$genre}}</li> <li>Cadre : {{$genre}}</li>
<li>Modèle : {{$modele}}</li> <li>Modèle : {{$modele}}</li>
<li>Prix : {{$prix}} €</li> <li>Prix : {{$prix}} €</li>
<li class="date-entree">entré en stock {{$date_entree|relative_date}} </li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -4,4 +4,4 @@ author = "Charlie, de Mines de Rayons"
author_url = "https://git.minesderayons.fr" author_url = "https://git.minesderayons.fr"
restrict_section = null restrict_section = null
restrict_level = "none" restrict_level = "none"
web = false restrict_details = "Ce module affiche une page pour tous les utilisateurs même non loggués, disponible à l'adresse `site/m/velos_a_vendre/`"

View File

@ -1,19 +1,18 @@
.filters { .filters fieldset {
fieldset {
display:flex; display:flex;
dl { flex-wrap: wrap;
gap: 10px;
}
.filters fieldset dl {
flex: 1 150px; flex: 1 150px;
min-width: 200px; min-width: 200px;
} }
}
}
.container { .container {
position: relative; position: relative;
flex: 1; flex: 1;
min-width: 200px; min-width: 200px;
border: solid 1px black; border: solid 1px rgb(var(--gTextColor));
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
overflow: hidden; overflow: hidden;
@ -40,7 +39,7 @@
display: block; display: block;
object-fit: cover; object-fit: cover;
width: 100%; width: 100%;
height: 100px; height: 125px;
} }
.placeholder { .placeholder {
@ -58,8 +57,6 @@
.label { .label {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
left: 0;
right: 0;
color: black; color: black;
text-align: center; text-align: center;
border-color: black; border-color: black;
@ -67,14 +64,24 @@
border-bottom: solid 1px; border-bottom: solid 1px;
background-color: yellow; background-color: yellow;
min-width: 5em; min-width: 5em;
width: 100%;
min-height: 2ex; min-height: 2ex;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
z-index: 1; z-index: 1;
position: absolute;
top: 0.75em;
left: -1.25em;
transform: rotate(-45deg);
font-weight: bold;
} }
li.date-entree { .properties li{
padding-left:0.5em;
}
.properties li:last-child{
padding-bottom:1em;
}
.properties li.date-entree {
display: block; display: block;
position: absolute; position: absolute;
bottom: 1.5em; bottom: 1.5em;
@ -83,3 +90,15 @@ li.date-entree {
font-size: x-small; font-size: x-small;
color: gray; color: gray;
} }
li.numero-unique {
display: block;
position: absolute;
padding-left:0px;
margin-bottom: -10px;
left: 10px;
font-size: x-small;
color: gray;
transform: rotate(90deg);
top: 125px;
transform-origin: left;
}