rdrew 2 weeks ago
parent
commit
f1216e8ed7
  1. 7
      css/components/islandora_mods.css
  2. 49
      templates/content/node--islandora-object.html.twig

7
css/components/islandora_mods.css

@ -351,10 +351,13 @@ details.views-view-newspaper-group li.views-row {
} }
@media (min-width: 68.75rem) { @media (min-width: 68.75rem) {
/* 1100px */ /* 1100px */
.accordion-view > .view-content,
.media-download > .view-content { .media-download > .view-content {
columns: 2; columns: 2;
} }
/* .accordion-view > .view-content, */
/* .media-download > .view-content { */
/* columns: 2; */
/* } */
} }
.media-download details.views-view-newspaper-group summary { .media-download details.views-view-newspaper-group summary {
background-color: #d3d3d3; background-color: #d3d3d3;
@ -422,7 +425,7 @@ form#views-exposed-form-newspaper-directory-page-1 {
.node--type-islandora-object .field .field__label { .node--type-islandora-object .field .field__label {
font-family: var(--font-sans); font-family: var(--font-sans);
font-size: var(--font-size-base); font-size: var(--font-size-base);
flex: 0 0 175px; flex: 0 0 230px;
} }
.node--type-islandora-object .field .field__item { .node--type-islandora-object .field .field__item {

49
templates/content/node--islandora-object.html.twig

@ -0,0 +1,49 @@
{% set layout = layout ? 'layout--' ~ layout|clean_class %}
{%
set classes = [
'node',
'node--type-' ~ node.bundle|clean_class,
layout ? 'grid-full',
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
]
%}
<details>
<summary>About</summary>
<article{{ attributes.addClass(classes) }}>
<header class="{{ layout }}">
{{ title_prefix }}
{% if label and not page %}
<h2{{ title_attributes.addClass('node__title') }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% endif %}
{{ title_suffix }}
{% if display_submitted %}
<div class="node__meta">
{% if author_picture %}
<div class="node__author-image">
{{ author_picture }}
</div>
{% endif %}
<span{{ author_attributes }}>
{{ 'By'|t }} {% apply spaceless %}{{ author_name }}{% endapply %}, {{ date }}
</span>
{{ metadata }}
</div>
{% endif %}
</header>
<div{{ content_attributes.addClass('node__content', layout) }}>
{# Comments not part of content, so they won't inherit .text-content styles. #}
{{ content|without('comment') }}
</div>
{% if content.comment %}
<div id="comments" class="{{ layout }}">
{{ content.comment }}
</div>
{% endif %}
</article>
</details>
Loading…
Cancel
Save