Skip to content

Commit

Permalink
EMMR-107 Final adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Dec 1, 2023
1 parent a529a86 commit 4be9fdf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ id: paragraph.emmr_annotation.field_annotation_body
field_name: field_annotation_body
entity_type: paragraph
bundle: emmr_annotation
label: Annotation
label: 'Annotation Description'
description: ''
required: false
translatable: false
Expand Down
2 changes: 1 addition & 1 deletion configuration/filter.format.unb_libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ filters:
status: true
weight: 0
settings:
allowed_html: '<br> <p> <h2> <h3> <h4> <h5> <h6> <strong> <em> <s> <sub> <sup> <blockquote> <a href class id> <ul> <ol start> <li> <hr> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption> <img src alt height width data-caption data-align> <trxnin> <trxnrep> <trxnmar> <span class="trxn-caret trxn-text trxn-replace trxn-retext trxn-margin trxn-number"><trxn>'
allowed_html: '<br> <p> <h2> <h3> <h4> <h5> <h6> <strong> <em> <s> <sub> <sup> <blockquote> <a href class id> <ul> <ol start> <li> <hr> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption> <img src alt height width data-caption data-align> <trxnin> <trxnrep> <trxnmar> <span class="trxn-caret trxn-text trxn-replace trxn-retext trxn-margin trxn-number"> <trxn>'
filter_html_help: '0'
filter_html_nofollow: '0'
3 changes: 2 additions & 1 deletion custom/modules/emmr_core/emmr_core.module
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ function emmr_core_preprocess_node(&$variables) {
}

// Highlight alternative spellings.
foreach ($annos_alt as $val) {
dump($annos_alt);
foreach ($annos_alt as $i => $val) {
$pattern = '/(\b\Q' . $val[1] . '\E\b)/mi';
$anno_id = 'top-' . $val[0];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,9 @@
<div class="col-md-8" id="recipe-trans">
{{ content.field_recipe_transcription }}
</div>

{% if content.field_annotations['0'] %}
<div class="col-md-2" id="recipe-anno">
{{ content.field_annotations }}
</div>
{% endif %}
<div class="col-md-2" id="recipe-anno">
{{ content.field_annotations }}
</div>
</div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion custom/themes/emmr_lib_unb_ca/src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,13 @@ body > div.dialog-off-canvas-main-canvas > div > div > div > div > nav > ul
font-weight: 500;
}

#recipe-anno {
#recipe-anno:has(div) {
border-left: 2px solid #e5e5e5;

trxnmar {
display: block;
}

.field--items {
padding-top: 1em;
}
Expand Down

0 comments on commit 4be9fdf

Please sign in to comment.