-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update template CSS variables #1091
Changes from 41 commits
766d320
227ffe7
640f1dd
ee84459
2055496
c4a45f0
00ae007
31dcc63
2ea4756
8681a5a
810b429
e769b89
0175d42
91524b0
5f42ace
e178756
9f8fdb3
8387c7f
8fe9ac2
9fd8434
c1f1376
5cfd35a
2349416
48d60e8
183dfca
112cc4b
ff0b590
72a68a5
5e97b2e
8b6cfc1
3d0580d
259b99f
f375286
0b47eb1
0089907
ec8d982
cc24607
2db95b6
f46b337
f0858c2
91e1420
f04b9cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,9 +63,46 @@ | |
--gradient-base-accent-1: {% if settings.gradient_accent_1 != blank %}{{ settings.gradient_accent_1 }}{% else %}{{ settings.colors_accent_1 }}{% endif %}; | ||
--gradient-base-accent-2: {% if settings.gradient_accent_2 != blank %}{{ settings.gradient_accent_2 }}{% else %}{{ settings.colors_accent_2 }}{% endif %}; | ||
|
||
--media-padding: {{ settings.media_padding }}px; | ||
--media-border-opacity: {{ settings.media_border_opacity | divided_by: 100.0 }}; | ||
--media-border-width: {{ settings.media_border_thickness }}px; | ||
--media-radius: {{ settings.media_radius }}px; | ||
--media-shadow-opacity: {{ settings.media_shadow_opacity | divided_by: 100.0 }}; | ||
--media-shadow-horizontal-offset: {{ settings.media_shadow_horizontal_offset }}px; | ||
--media-shadow-vertical-offset: {{ settings.media_shadow_vertical_offset }}px; | ||
--media-shadow-blur-radius: {{ settings.media_shadow_blur }}px; | ||
|
||
--page-width: {{ settings.page_width | divided_by: 10 }}rem; | ||
--page-width-margin: {% if settings.page_width == '1600' %}2{% else %}0{% endif %}rem; | ||
|
||
--card-image-padding: {{ settings.card_image_padding | divided_by: 10.0 }}rem; | ||
--card-corner-radius: {{ settings.card_corner_radius | divided_by: 10.0 }}rem; | ||
--card-text-alignment: {{ settings.card_text_alignment }}; | ||
--card-border-width: {{ settings.card_border_thickness | divided_by: 10.0 }}rem; | ||
--card-border-opacity: {{ settings.card_border_opacity | divided_by: 100.0 }}; | ||
--card-shadow-opacity: {{ settings.card_shadow_opacity | divided_by: 100.0 }}; | ||
--card-shadow-horizontal-offset: {{ settings.card_shadow_horizontal_offset | divided_by: 10.0 }}rem; | ||
--card-shadow-vertical-offset: {{ settings.card_shadow_vertical_offset | divided_by: 10.0 }}rem; | ||
--card-shadow-blur-radius: {{ settings.card_shadow_blur | divided_by: 10.0 }}rem; | ||
|
||
--badge-corner-radius: {{ settings.badge_corner_radius | divided_by: 10.0 }}rem; | ||
|
||
--popup-border-width: {{ settings.popup_border_thickness }}px; | ||
--popup-border-opacity: {{ settings.popup_border_opacity | divided_by: 100.0 }}; | ||
--popup-corner-radius: {{ settings.popup_corner_radius }}px; | ||
--popup-shadow-opacity: {{ settings.popup_shadow_opacity | divided_by: 100.0 }}; | ||
--popup-shadow-horizontal-offset: {{ settings.popup_shadow_horizontal_offset }}px; | ||
--popup-shadow-vertical-offset: {{ settings.popup_shadow_vertical_offset }}px; | ||
--popup-shadow-blur-radius: {{ settings.popup_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; | ||
|
||
--grid-desktop-vertical-spacing: {{ settings.spacing_grid_vertical }}px; | ||
--grid-desktop-horizontal-spacing: {{ settings.spacing_grid_horizontal }}px; | ||
--grid-mobile-vertical-spacing: {{ settings.spacing_grid_vertical | divided_by: 2 }}px; | ||
--grid-mobile-horizontal-spacing: {{ settings.spacing_grid_horizontal | divided_by: 2 }}px; | ||
|
||
--text-boxes-border-opacity: {{ settings.text_boxes_border_opacity | divided_by: 100.0 }}; | ||
--text-boxes-border-width: {{ settings.text_boxes_border_thickness }}px; | ||
--text-boxes-radius: {{ settings.text_boxes_radius }}px; | ||
|
@@ -75,12 +112,13 @@ | |
--text-boxes-shadow-blur-radius: {{ settings.text_boxes_shadow_blur }}px; | ||
|
||
--buttons-radius: {{ settings.buttons_radius }}px; | ||
--buttons-border-width: {{ settings.buttons_border_thickness }}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-horizontal-offset: {{ settings.buttons_shadow_horizontal_offset }}px; | ||
--buttons-shadow-vertical-offset: {{ settings.buttons_shadow_vertical_offset }}px; | ||
--buttons-shadow-blur-radius: {{ settings.buttons_shadow_blur }}px; | ||
--buttons-border-offset: {% if settings.buttons_radius > 0 or settings.buttons_shadow_opacity > 0 %}0.3{% else %}0{% endif %}px; | ||
|
||
--inputs-radius: {{ settings.inputs_radius }}px; | ||
--inputs-border-width: {{ settings.inputs_border_thickness }}px; | ||
|
@@ -90,13 +128,13 @@ | |
--inputs-shadow-vertical-offset: {{ settings.inputs_shadow_vertical_offset }}px; | ||
--inputs-shadow-blur-radius: {{ settings.inputs_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; | ||
|
||
--grid-desktop-vertical-spacing: {{ settings.spacing_grid_vertical }}px; | ||
--grid-desktop-horizontal-spacing: {{ settings.spacing_grid_horizontal }}px; | ||
--grid-mobile-vertical-spacing: {{ settings.spacing_grid_vertical | divided_by: 2 }}px; | ||
--grid-mobile-horizontal-spacing: {{ settings.spacing_grid_horizontal | divided_by: 2 }}px; | ||
--variant-pills-radius: {{ settings.variant_pills_radius }}px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with variants. They seem to only exist in the product page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe variant pills can exist in a featured-product section on the password page as well |
||
--variant-pills-border-width: {{ settings.variant_pills_border_thickness }}px; | ||
--variant-pills-border-opacity: {{ settings.variant_pills_border_opacity | divided_by: 100.0 }}; | ||
--variant-pills-shadow-opacity: {{ settings.variant_pills_shadow_opacity | divided_by: 100.0 }}; | ||
--variant-pills-shadow-horizontal-offset: {{ settings.variant_pills_shadow_horizontal_offset }}px; | ||
--variant-pills-shadow-vertical-offset: {{ settings.variant_pills_shadow_vertical_offset }}px; | ||
--variant-pills-shadow-blur-radius: {{ settings.variant_pills_shadow_blur }}px; | ||
} | ||
{% endstyle %} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with popup. Do we need it? It seems to be only used in the cart, search, filter, footer, product page and header which dont exist in the password page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The featured product section add-to-cart should in theory trigger a cart notification, which is a popup, but that functionality is currently not working on password page. Opening an issue #1144
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the reason it doesn't work is because technically if a site is password protected, it means we cant access the other pages. So even though we allow merchants to add any section to the password page, it's not encouraged to add the featured product (?). So I am not sure if I would consider that an issue
cc @melissaperreault @Oliviammarcello
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, @nicklepine might have more context on that one, I don't remember. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sofiamatulis given the site is behind a password, adding to cart from a featured product section should not work on the password page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the
-popup
variables from password page f04b9cd