Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
YSHOP2-712: Themes - A few settings to add (#369)
Browse files Browse the repository at this point in the history
## JIRA Ticket

[YSHOP2-712](https://youcanshop.atlassian.net/browse/YSHOP2-712)

## QA Steps

- [ ] `pnpm i`
- [ ] `pnpm dev`

## Note

Leave empty when you have nothing to say


[YSHOP2-712]:
https://youcanshop.atlassian.net/browse/YSHOP2-712?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
adildev101 authored Jul 25, 2023
1 parent 9cd5cc7 commit 577a931
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion assets/desktop-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
}
.yc-slider__desktop .content * {
background-color: transparent !important;
color: white !important;
}
.yc-slider__desktop .content > div {
max-width: 30rem;
Expand Down
1 change: 0 additions & 1 deletion assets/mobile-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}
.yc-slider__mobile .content * {
background-color: transparent !important;
color: white !important;
}
.yc-slider__mobile .content > div {
max-width: 30rem;
Expand Down
14 changes: 14 additions & 0 deletions sections/desktop-slider.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
background-color: {{ section.settings.slider_overlay_background_color.hex }};
}

.section-slider-{{ id }} .yc-slider__desktop .caption > * {
color: {{ section.settings.caption_text_color.hex }};
}

.section-slider-{{ id }} .yc-slider__mobile .caption > * {
color: {{ section.settings.caption_text_color.hex }};
}

{% endstyle %}

{{ 'splide.min.css' | asset_url | stylesheet_tag }}
Expand Down Expand Up @@ -91,6 +99,12 @@
"type": "paragraph",
"content": "ℹ️ These settings will be applied to desktop devices."
},
{
"type": "color",
"id": "caption_text_color",
"label": "Caption text color",
"default": "#000"
},
{
"type": "color",
"id": "slider_overlay_background_color",
Expand Down
1 change: 0 additions & 1 deletion styles/desktop-slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

* {
background-color: transparent !important;
color: white !important;
}

& > div {
Expand Down
1 change: 0 additions & 1 deletion styles/mobile-slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
align-items: center;
* {
background-color: transparent !important;
color: white !important;
}

& > div {
Expand Down

0 comments on commit 577a931

Please sign in to comment.