Skip to content
Snippets Groups Projects
Commit c75640bf authored by Anoop Singh's avatar Anoop Singh
Browse files

Issue #3455131: Choosing "Inline" for labels in manage display, has no effect

parent ff4e9912
No related branches found
Tags 7.x-1.4
1 merge request!4Issue #3455131: Choosing "Inline" for labels in manage display, has no effect
Pipeline #215434 passed
......@@ -202,3 +202,28 @@ strong {
font-size: 24px;
}
}
.align-items-start {
align-items: start;
}
.align-items-center {
align-items: center;
}
.align-items-end {
align-items: end;
}
.justify-content-start {
justify-content: start;
}
.justify-content-center {
justify-content: center;
}
.justify-content-end {
justify-content: end;
}
.justify-content-sa {
justify-content: space-around;
}
.justify-content-sb {
justify-content: space-between;
}
\ No newline at end of file
......@@ -7,3 +7,20 @@
.flex-user-profile .field {
margin-bottom: 10px;
}
.field--label-inline .field-title,
.field--label-inline .field {
float: left; /*LTR*/
}
.field--label-inline .field-title,
.field--label-inline > .field__item,
.field--label-inline .field {
padding-right: 0.5em;
}
[dir="rtl"] .field--label-inline .field-title,
[dir="rtl"] .field--label-inline .field {
padding-left: 0.5em;
padding-right: 0;
}
.field--label-inline .field-title::after {
content: ':';
}
\ No newline at end of file
......@@ -38,6 +38,14 @@
* @ingroup themeable
*/
#}
{%
set classes = [
'field',
'field--name-' ~ field_name|clean_class,
'field--type-' ~ field_type|clean_class,
'field--label-' ~ label_display,
]
%}
{%
set title_classes = [
'field-title',
......@@ -47,18 +55,18 @@
{% if label_hidden %}
{% if multiple %}
<div{{ attributes.addClass('field') }}>
<div{{ attributes.addClass(classes, 'field') }}>
{% for item in items %}
<div{{ item.attributes.addClass('field-item') }}>{{ item.content }}</div>
{% endfor %}
</div>
{% else %}
{% for item in items %}
<div{{ attributes.addClass('field') }}>{{ item.content }}</div>
<div{{ attributes.addClass(classes, 'field') }}>{{ item.content }}</div>
{% endfor %}
{% endif %}
{% else %}
<div{{ attributes.addClass('field') }}>
<div{{ attributes.addClass(classes, 'field') }}>
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{% if multiple %}
<div>
......
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