I have a custom module on this page: The Key Elements of a Successful Executive Visibility Program
This one here:
that when I color green the text in the rich text filed it is over writing the anchor CSS and turning it from red to green. I have worked around this issue for now by only coloring the text outside of the link but I think there should be a real fix for this but it is beyond me.
Here is the HTML of the custom module:
<div class="blog-insert-containter">
<div class="blog-insert-horiz-rule">
<hr style="height:1px;border-width:0;color:#2392a2;background-color:#2392a2">
</div>
<div class="blog-insert-icon-text-container">
<div class="blog-insert-icon-container">
<div class="blog-insert-icon">
{% if module.insert_image.src %}
{% set sizeAttrs = 'width="{{ module.insert_image.width }}" height="{{ module.insert_image.height }}"' %}
{% if module.insert_image.size_type == 'auto' %}
{% set sizeAttrs = 'width="{{ module.insert_image.width }}" height="{{ module.insert_image.height }}" style="max-width: 100%; height: auto;"' %}
{% elif module.insert_image.size_type == 'auto_custom_max' %}
{% set sizeAttrs = 'width="{{ module.insert_image.max_width }}" height="{{ module.insert_image.max_height }}" style="max-width: 100%; height: auto;"' %}
{% endif %}
{% set loadingAttr = module.insert_image.loading != 'disabled' ? 'loading="{{ module.insert_image.loading }}"' : '' %}
{% set href = module.graphic_link.url.href %}
{% if module.graphic_link.url.type is equalto "EMAIL_ADDRESS" %}
{% set href = "mailto:" + href %}
{% endif %}
<a href="{{ href|escape_url }}"
{% if module.graphic_link.open_in_new_tab %}target="_blank"{% endif %}
{% if module.graphic_link.rel %}rel="{{ module.graphic_link.rel|escape_attr }}"{% endif %}
>
<img src="{{ module.insert_image.src }}" alt="{{ module.insert_image.alt }}" {{ loadingAttr }}></a>
{% endif %}
</div>
</div>
<div class="blog-insert-text-container">
<div class="blog-insert-text">
{% inline_rich_text field="insert_text" value="{{ module.insert_text }}" %}
</div>
</div>
</div>
<div class="blog-insert-horiz-rule">
<hr style="height:1px;border-width:0;color:#2392a2;background-color:#2392a2">
</div>
</div>
and Here is the CSS:
.blog-insert-containter {
display: flex;
flex-direction: column;
width: 100%;
height: auto;
}
.blog-insert-horiz-rule {
margin-bottom: 15px;
margin-top: 15px;
}
.blog-insert-icon-text-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 80%;
height: auto;
}
.blog-insert-icon-container {
display: flex;
justify-content: center;
align-items: center;
width: 20%;
}
.blog-insert-icon {
display: flex;
width: 92px;
height: auto;
object-fit: cover;
}
.blog-insert-text-container {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
}
.blog-insert-text {
}
@media screen and (max-width: 450px) {
.blog-insert-containter {
display: flex;
flex-direction: column;
width: 100%;
height: auto;
}
.blog-insert-horiz-rule {
margin-bottom: 15px;
margin-top: 15px;
}
.blog-insert-icon-text-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: auto;
}
.blog-insert-icon-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.blog-insert-icon {
display: flex;
width: 92px;
height: auto;
object-fit: cover;
}
.blog-insert-text-container {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
}
There is probably a simple fix but it is alluding me at the moment so any help that can by given would be appreciated.
