diff --git a/assets/css/screen.css b/assets/css/screen.css index 769a44a7..b4185bd6 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -2262,6 +2262,20 @@ unless a heading is the very first element in the post content */ font-family: var(--font-mono); } +/* Public Preview Fading Effect for Last Paragraph */ +.fadeout-content p:last-child { + -webkit-mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%); + mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%); + margin-bottom: 1.5em; /* Ensure consistent spacing */ +} + +/* Reset other paragraphs to prevent unintended effects */ +.fadeout-content p:not(:last-child) { + -webkit-mask-image: none; + mask-image: none; + margin-bottom: 1.5em; /* Ensure normal paragraph spacing */ +} + /* 16. Cards /* ---------------------------------------------------------- */ diff --git a/partials/content-cta b/partials/content-cta new file mode 100644 index 00000000..f4b2e3be --- /dev/null +++ b/partials/content-cta @@ -0,0 +1,24 @@ +{{{html}}} +
+
+ {{{html}}} +
+
+
+ {{#has visibility="paid"}} +

This content is for paying subscribers only

+ {{/has}} + {{#has visibility="members"}} +

This content is for subscribers only

+ {{/has}} + {{#has visibility="tiers"}} +

This content is for subscribers on the following tiers only: {{tiers}}

+ {{/has}} + {{#if @member}} + Upgrade your account + {{else}} + Subscribe +

Already member? Sign in

+ {{/if}} +
+