diff --git a/templates/shortcodes/row.html b/templates/shortcodes/row.html index 81d76f4..643881d 100644 --- a/templates/shortcodes/row.html +++ b/templates/shortcodes/row.html @@ -62,7 +62,9 @@ Parameters: {% endif %} {% if "invert-color" in style %} - {% set row_class = row_class ~ " text-white " %} + + {% set row_class = row_class ~ " text-white lg:text-white " %} + {% endif %} {% else %} @@ -74,6 +76,7 @@ Parameters: {% set anchor_link = anchor %} {% endif %} + {% set styles = "" %} {% set div_class = " " %} @@ -81,7 +84,12 @@ Parameters: {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover; background-position: center;" %} {% if "#desktop" in bgPath %} {% set div_class = " !bg-[length:0px_0px] !bg-no-repeat lg:!bg-cover " %} - {% set row_class = row_class | replace(from='text-white', to='') %} + {% set row_class = row_class | replace(from='text-white', to='text-black') %} + {% if "invert-color" in style %} + {% if "#desktop" in bgPath %} + {% set row_class = row_class ~ " lg:text-white " %} + {% endif %} + {% endif %} {% endif %} {% endif %} {% if bgStyle %} @@ -108,13 +116,6 @@ Parameters:
- {% set claim = "yo there is no img" %} - {% if "img" in column %} - {% set claim = "yo there iis img" %} - {% endif %} - {{claim}} - - {% if "{% mermaid() %}" in column %} {% set mermaid_section = column | safe | markdown | split(pat="{% mermaid() %}") %} {% set mermaid_content = mermaid_section[1] | striptags | replace(from="–", to="--")%}