Skip to content
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

Add settings to change custom gate content separately #11

Merged
merged 2 commits into from Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion common/common.scss
Expand Up @@ -11,17 +11,19 @@
}
}
.custom-gate-content {
text-align: #{$custom_gate_content_position};
text-align: #{$custom_gate_image_position};
img {
width: #{$custom_gate_image_width};
height: auto;
margin-bottom: 0.75em;
}
h2 {
color: #{$custom_gate_big_text_color};
text-align: #{$custom_gate_big_text_position};
}
p {
color: #{$custom_gate_little_text_color};
text-align: #{$custom_gate_little_text_position};
}
}
}
Expand Down
28 changes: 21 additions & 7 deletions settings.yml
Expand Up @@ -70,13 +70,6 @@ custom_gate_enabled:
type: bool
default: false
description: "Enable it if you want to customize the modal."
custom_gate_content_position:
default: center
type: enum
choices:
- left
- right
description: "Custom gate content position."
custom_gate_image:
type: upload
default: ""
Expand All @@ -85,6 +78,27 @@ custom_gate_image_width:
type: string
default: "150px"
description: "The uploaded image width. You can use px, % etc, e.g. 100% will add a full modal width (minus padding) image."
custom_gate_image_position:
default: center
type: enum
choices:
- left
- right
description: "Custom gate image position."
custom_gate_big_text_position:
default: center
type: enum
choices:
- left
- right
description: "Custom gate big text (h2) position."
custom_gate_little_text_position:
default: center
type: enum
choices:
- left
- right
description: "Custom gate little text (p) position."
custom_gate_big_text_color:
type: string
default: "var(--primary)"
Expand Down