Skip to content

Commit

Permalink
Adds color and style options for mulitcolumn link
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Scheele committed Sep 18, 2024
1 parent c1efeb2 commit 8805df1
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion sections/multicolumn.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@
width: calc(50% - {{ section.settings.horizontal_spacing_mobile }}px / 2);
}
}

.colored-link {
color: {{ section.settings.link_color }};
}

.styled-link {
text-decoration: {{ section.settings.link_style }} !important;
}
{% endif %}
{%- endstyle -%}

Expand Down Expand Up @@ -264,7 +272,7 @@
{%- endif -%}
{%- if block.settings.link_label != blank -%}
<a
class="{% if link_type == 'button' %}button {{button_type}}{% else %}link animate-arrow{% endif %}"
class="{% if link_type == 'button' %}button {{ button_type }}{% else %}link colored-link styled-link animate-arrow{% endif %}"
{% if block.settings.link == blank %}
role="link" aria-disabled="true"
{% else %}
Expand Down Expand Up @@ -436,6 +444,28 @@
"default": "link",
"label": "Link Type"
},
{
"type": "color",
"id": "link_color",
"label": "Link color",
"default": "#000000"
},
{
"type": "select",
"id": "link_style",
"label": "Link style",
"options": [
{
"value": "underline",
"label": "Underline"
},
{
"value": "none",
"label": "None"
}
],
"default": "none"
},
{
"type": "select",
"id": "button_type",
Expand Down

0 comments on commit 8805df1

Please sign in to comment.