a11y: use dl/dt/dd for profile data (#74066)
This commit is contained in:
parent
d5a1cf8ec3
commit
ba0003a857
|
@ -376,7 +376,7 @@ div.widget label {
|
|||
}
|
||||
}
|
||||
|
||||
#profile span.label {
|
||||
#profile .label {
|
||||
color: $font-color;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ main {
|
|||
}
|
||||
}
|
||||
|
||||
#profile .field .label {
|
||||
#profile .label {
|
||||
color: $tertiary-color;
|
||||
}
|
||||
|
||||
|
|
|
@ -512,15 +512,13 @@ div.column.account-management {
|
|||
|
||||
div#profile {
|
||||
column-count: 2;
|
||||
div.field {
|
||||
.label {
|
||||
border-top: 1px solid #d2d2d2;
|
||||
padding-top: 0.5ex;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
span.label {
|
||||
color: #5caac2;
|
||||
break-after: avoid;
|
||||
}
|
||||
div.value {
|
||||
.value {
|
||||
color: #929292;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ div.widget label {
|
|||
}
|
||||
}
|
||||
|
||||
#profile span.label {
|
||||
#profile .label {
|
||||
color: $font-color;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -410,7 +410,7 @@ div#nav #nav-button.toggled + ul li {
|
|||
}
|
||||
|
||||
/* Account management */
|
||||
#profile span.label {
|
||||
#profile .label {
|
||||
display: block;
|
||||
color: $red;
|
||||
font-size: inherit;
|
||||
|
|
|
@ -571,15 +571,13 @@ div#sidebar + div#columns-wrapper > div.a2-block {
|
|||
|
||||
div#profile {
|
||||
column-count: 2;
|
||||
div.field {
|
||||
.label {
|
||||
border-top: 1px solid #d2d2d2;
|
||||
padding-top: 0.5ex;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
span.label {
|
||||
color: #5caac2;
|
||||
break-after: avoid;
|
||||
}
|
||||
div.value {
|
||||
.value {
|
||||
color: #535353;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,11 +52,11 @@
|
|||
{% endblock %}
|
||||
{% block profile-data %}
|
||||
<div id="profile" class="cell--body">
|
||||
{% if attributes %}
|
||||
{% for attribute in attributes %}
|
||||
<div class="field">
|
||||
<span class="label">{{ attribute.attribute.label|capfirst }}</span>
|
||||
<div class="value">
|
||||
<dl>
|
||||
{% if attributes %}
|
||||
{% for attribute in attributes %}
|
||||
<dt class="label">{{ attribute.attribute.label|capfirst }}</dt>
|
||||
<dd class="value">
|
||||
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
|
||||
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
|
||||
<ul>
|
||||
|
@ -65,16 +65,14 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if LAST_LOGIN %}
|
||||
<div class="field">
|
||||
<span class="label">Dernière connexion</span>
|
||||
<div class="value">{{ LAST_LOGIN }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if LAST_LOGIN %}
|
||||
<dt class="label">Dernière connexion</dt>
|
||||
<dd class="value">{{ LAST_LOGIN }}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block profile-bottom %}{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue