-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
114 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.ibexa-details { | ||
&:not(:first-child) { | ||
margin-top: calculateRem(40px); | ||
} | ||
|
||
&__items { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
&__item { | ||
flex-basis: 25%; | ||
padding: calculateRem(8px) calculateRem(8px) calculateRem(8px) 0; | ||
|
||
.ibexa-label { | ||
margin-top: calculateRem(8px); | ||
margin-bottom: calculateRem(4px); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,3 +108,4 @@ | |
@import 'list-search'; | ||
@import 'search-links-form'; | ||
@import 'custom-url-form'; | ||
@import 'details'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/bundle/Resources/views/themes/admin/ui/component/details/details.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="ibexa-details"> | ||
{% block details_header %} | ||
{% if headline is defined %} | ||
<div class="ibexa-details__header"> | ||
{% include '@ibexadesign/ui/component/table/table_header.html.twig' with { | ||
headline, | ||
} %} | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
{% block details_items %} | ||
<div class="ibexa-details__items"> | ||
{% for item in items %} | ||
<div class="ibexa-details__item"> | ||
<div class="ibexa-details__item-label ibexa-label">{{ item.label }}</div> | ||
<div class="ibexa-details__item-content">{{ item.content }}</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endblock %} | ||
</div> |