firefox bug
parent
e2080f36d5
commit
04e60e2109
|
@ -62,19 +62,17 @@
|
|||
{% for scheme in settings.color_schemes -%}
|
||||
{% assign scheme_classes = scheme_classes | append: ', .color-' | append: scheme.id %}
|
||||
{% if forloop.index == 1 -%}
|
||||
:root,
|
||||
:root,
|
||||
{%- endif %}
|
||||
.color-{{ scheme.id }} {
|
||||
--color-background: {{ scheme.settings.background.red }},
|
||||
{{ scheme.settings.background.green }},
|
||||
{{ scheme.settings.background.blue }};
|
||||
{% if scheme.settings.background_gradient != empty %}
|
||||
--gradient-background: {{ scheme.settings.background_gradient }};
|
||||
{% else %}
|
||||
--gradient-background: {{ scheme.settings.background }};
|
||||
{% endif %}
|
||||
--color-background: {{ scheme.settings.background.red }},{{ scheme.settings.background.green }},{{ scheme.settings.background.blue }};
|
||||
{% if scheme.settings.background_gradient != empty %}
|
||||
--gradient-background: {{ scheme.settings.background_gradient }};
|
||||
{% else %}
|
||||
--gradient-background: {{ scheme.settings.background }};
|
||||
{% endif %}
|
||||
|
||||
{% liquid
|
||||
{% liquid
|
||||
assign background_color = scheme.settings.background
|
||||
assign background_color_brightness = background_color | color_brightness
|
||||
if background_color_brightness <= 26
|
||||
|
@ -84,43 +82,21 @@
|
|||
else
|
||||
assign background_color_contrast = background_color | color_darken: 25
|
||||
endif
|
||||
%}
|
||||
%}
|
||||
|
||||
--color-foreground: {{ scheme.settings.text.red }},
|
||||
{{ scheme.settings.text.green }},
|
||||
{{ scheme.settings.text.blue }};
|
||||
--color-background-contrast: {{ background_color_contrast.red }},
|
||||
{{ background_color_contrast.green }},
|
||||
{{ background_color_contrast.blue }};
|
||||
--color-shadow: {{ scheme.settings.shadow.red }},
|
||||
{{ scheme.settings.shadow.green }},
|
||||
{{ scheme.settings.shadow.blue }};
|
||||
--color-button: {{ scheme.settings.button.red }},
|
||||
{{ scheme.settings.button.green }},
|
||||
{{ scheme.settings.button.blue }};
|
||||
--color-button-text: {{ scheme.settings.button_label.red }},
|
||||
{{ scheme.settings.button_label.green }},
|
||||
{{ scheme.settings.button_label.blue }};
|
||||
--color-secondary-button: {{ scheme.settings.background.red }},
|
||||
{{ scheme.settings.background.green }},
|
||||
{{ scheme.settings.background.blue }};
|
||||
--color-secondary-button-text: {{ scheme.settings.secondary_button_label.red }},
|
||||
{{ scheme.settings.secondary_button_label.green }},
|
||||
{{ scheme.settings.secondary_button_label.blue }};
|
||||
--color-link: {{ scheme.settings.secondary_button_label.red }},
|
||||
{{ scheme.settings.secondary_button_label.green }},
|
||||
{{ scheme.settings.secondary_button_label.blue }};
|
||||
--color-badge-foreground: {{ scheme.settings.text.red }},
|
||||
{{ scheme.settings.text.green }},
|
||||
{{ scheme.settings.text.blue }};
|
||||
--color-badge-background: {{ scheme.settings.background.red }},
|
||||
{{ scheme.settings.background.green }},
|
||||
{{ scheme.settings.background.blue }};
|
||||
--color-badge-border: {{ scheme.settings.text.red }},
|
||||
{{ scheme.settings.text.green }},
|
||||
{{ scheme.settings.text.blue }};
|
||||
--payment-terms-background-color: rgb({{ scheme.settings.background.rgb }});
|
||||
}
|
||||
--color-foreground: {{ scheme.settings.text.red }},{{ scheme.settings.text.green }},{{ scheme.settings.text.blue }};
|
||||
--color-background-contrast: {{ background_color_contrast.red }},{{ background_color_contrast.green }},{{ background_color_contrast.blue }};
|
||||
--color-shadow: {{ scheme.settings.shadow.red }},{{ scheme.settings.shadow.green }},{{ scheme.settings.shadow.blue }};
|
||||
--color-button: {{ scheme.settings.button.red }},{{ scheme.settings.button.green }},{{ scheme.settings.button.blue }};
|
||||
--color-button-text: {{ scheme.settings.button_label.red }},{{ scheme.settings.button_label.green }},{{ scheme.settings.button_label.blue }};
|
||||
--color-secondary-button: {{ scheme.settings.background.red }},{{ scheme.settings.background.green }},{{ scheme.settings.background.blue }};
|
||||
--color-secondary-button-text: {{ scheme.settings.secondary_button_label.red }},{{ scheme.settings.secondary_button_label.green }},{{ scheme.settings.secondary_button_label.blue }};
|
||||
--color-link: {{ scheme.settings.secondary_button_label.red }},{{ scheme.settings.secondary_button_label.green }},{{ scheme.settings.secondary_button_label.blue }};
|
||||
--color-badge-foreground: {{ scheme.settings.text.red }},{{ scheme.settings.text.green }},{{ scheme.settings.text.blue }};
|
||||
--color-badge-background: {{ scheme.settings.background.red }},{{ scheme.settings.background.green }},{{ scheme.settings.background.blue }};
|
||||
--color-badge-border: {{ scheme.settings.text.red }},{{ scheme.settings.text.green }},{{ scheme.settings.text.blue }};
|
||||
--payment-terms-background-color: rgb({{ scheme.settings.background.rgb }});
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
{{ scheme_classes | prepend: 'body' }} {
|
||||
|
@ -129,14 +105,12 @@
|
|||
}
|
||||
|
||||
:root {
|
||||
--font-body-family: {{ settings.type_body_font.family }},
|
||||
{{ settings.type_body_font.fallback_families }};
|
||||
--font-body-family: {{ settings.type_body_font.family }}, {{ settings.type_body_font.fallback_families }};
|
||||
--font-body-style: {{ settings.type_body_font.style }};
|
||||
--font-body-weight: {{ settings.type_body_font.weight }};
|
||||
--font-body-weight-bold: {{ settings.type_body_font.weight | plus: 300 | at_most: 1000 }};
|
||||
|
||||
--font-heading-family: {{ settings.type_header_font.family }},
|
||||
{{ settings.type_header_font.fallback_families }};
|
||||
--font-heading-family: {{ settings.type_header_font.family }}, {{ settings.type_header_font.fallback_families }};
|
||||
--font-heading-style: {{ settings.type_header_font.style }};
|
||||
--font-heading-weight: {{ settings.type_header_font.weight }};
|
||||
|
||||
|
@ -207,9 +181,7 @@
|
|||
--drawer-shadow-blur-radius: {{ settings.drawer_shadow_blur }}px;
|
||||
|
||||
--spacing-sections-desktop: {{ settings.spacing_sections }}px;
|
||||
--spacing-sections-mobile: {% if settings.spacing_sections < 24 %}{{ settings.spacing_sections }}
|
||||
{% else %}{{ settings.spacing_sections | times: 0.7 | round | at_least: 20 }}
|
||||
{% endif %}px;
|
||||
--spacing-sections-mobile: {% if settings.spacing_sections < 24 %}{{ settings.spacing_sections }}{% else %}{{ settings.spacing_sections | times: 0.7 | round | at_least: 20 }}{% endif %}px;
|
||||
|
||||
--grid-desktop-vertical-spacing: {{ settings.spacing_grid_vertical }}px;
|
||||
--grid-desktop-horizontal-spacing: {{ settings.spacing_grid_horizontal }}px;
|
||||
|
@ -226,10 +198,8 @@
|
|||
--text-boxes-shadow-blur-radius: {{ settings.text_boxes_shadow_blur }}px;
|
||||
|
||||
--buttons-radius: {{ settings.buttons_radius }}px;
|
||||
--buttons-radius-outset: {% if settings.buttons_radius > 0 %}{{ settings.buttons_radius | plus: settings.buttons_border_thickness }}
|
||||
{% else %}0{% endif %}px;
|
||||
--buttons-border-width: {% if settings.buttons_border_opacity > 0 %}{{ settings.buttons_border_thickness }}
|
||||
{% else %}0{% endif %}px;
|
||||
--buttons-radius-outset: {% if settings.buttons_radius > 0 %}{{ settings.buttons_radius | plus: settings.buttons_border_thickness }}{% else %}0{% endif %}px;
|
||||
--buttons-border-width: {% if settings.buttons_border_opacity > 0 %}{{ settings.buttons_border_thickness }}{% else %}0{% endif %}px;
|
||||
--buttons-border-opacity: {{ settings.buttons_border_opacity | divided_by: 100.0 }};
|
||||
--buttons-shadow-opacity: {{ settings.buttons_shadow_opacity | divided_by: 100.0 }};
|
||||
--buttons-shadow-visible: {% if settings.buttons_shadow_opacity > 0 %}1{% else %}0{% endif %};
|
||||
|
@ -243,12 +213,10 @@
|
|||
--inputs-border-opacity: {{ settings.inputs_border_opacity | divided_by: 100.0 }};
|
||||
--inputs-shadow-opacity: {{ settings.inputs_shadow_opacity | divided_by: 100.0 }};
|
||||
--inputs-shadow-horizontal-offset: {{ settings.inputs_shadow_horizontal_offset }}px;
|
||||
--inputs-margin-offset: {% if settings.inputs_shadow_vertical_offset != 0 and settings.inputs_shadow_opacity > 0 %}{{ settings.inputs_shadow_vertical_offset | abs }}
|
||||
{% else %}0{% endif %}px;
|
||||
--inputs-margin-offset: {% if settings.inputs_shadow_vertical_offset != 0 and settings.inputs_shadow_opacity > 0 %}{{ settings.inputs_shadow_vertical_offset | abs }}{% else %}0{% endif %}px;
|
||||
--inputs-shadow-vertical-offset: {{ settings.inputs_shadow_vertical_offset }}px;
|
||||
--inputs-shadow-blur-radius: {{ settings.inputs_shadow_blur }}px;
|
||||
--inputs-radius-outset: {% if settings.inputs_radius > 0 %}{{ settings.inputs_radius | plus: settings.inputs_border_thickness }}
|
||||
{% else %}0{% endif %}px;
|
||||
--inputs-radius-outset: {% if settings.inputs_radius > 0 %}{{ settings.inputs_radius | plus: settings.inputs_border_thickness }}{% else %}0{% endif %}px;
|
||||
|
||||
--variant-pills-radius: {{ settings.variant_pills_radius }}px;
|
||||
--variant-pills-border-width: {{ settings.variant_pills_border_thickness }}px;
|
||||
|
@ -337,7 +305,7 @@
|
|||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
||||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
||||
})(window, document, "clarity", "script", "lvd5xzm4d8");
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<!-- Render CSS content -->
|
||||
{% render 'shx-feedback-banner'
|
||||
|
|
Loading…
Reference in New Issue