Components
51
Accordion Items Article Selection Author Info Basic Carousel Basic Hero Basic Map Pull Out blog Contact Content Accordion Content Carousel Content Image Cta Cta Bar Cta Blocks Cta Collage Event Content Events Grid Example Find Firm Firm Search Firms By Town Gated Content Download Carousel Guides Hero History Hero Homepage Image Content Cta Image List Content Industries Job Content Job Listings Local Firm Carousel Our Firms Carousel pages Partners Partners Slider People Listing Post Carousel Post Feed Pullquote Wrap section Service List Split Content Stats Tax Guides Team Grid Title Logos Two Column Video Video Carousel Video Old

Gated Content Download

There are no ACF fields assigned to this component.

				
@import "../../resources/scss/util/variables";
@import "../../resources/scss/util/mixins";

body.single-post,
body.single-intelligence {
	.block-gated-content-download {
		&__item {
			picture {
				max-height: 100%;
			}

			&__content {
				@include bp($sm) {
					flex-basis: 70%;
				}
			}
		}
	}
}

.block-gated-content-download {
	&__item {
		--text-color: $white;

		background-color: $tertiary-purple;

		display: flex;
		flex-direction: column;

		position: relative;

		@include bp($sm) {
			flex-direction: row;
			flex-wrap: nowrap;
			align-items: center;
			justify-content: flex-start;
		}

		picture {
			display: none;

			@include bp($sm) {
				align-self: stretch;
				overflow: hidden;
				display: flex;
				max-width: rem-calc(220);
			}

			@include bp($lg) {
				max-height: rem-calc(310);
			}

			img {
				object-fit: cover;
			}
		}
	}

	&__content {
		max-width: rem-calc(600);
		padding: rem-calc(24);

		@include bp($sm) {
			flex-basis: 70%;
		}

		@include bp($md) {
			padding: rem-calc(16 32);
		}

		.excerpt {
			@include fluid-type(14, 16);
			line-height: 1.5;
			text-wrap: balance;
		}

		span {
			strong {
				font-weight: 500;
			}
		}
	}

	p.block-gated-content-download__content-title {
		color: $white;
		@include fluid-type(24, 32);
		text-wrap: balance;
		line-height: 1.2;
		margin-bottom: 1rem;

		span {
			font-weight: bold;
		}
	}

	&__content-excerpt {
		color: $white;
		@include fluid-type(16, 16);
		line-height: 1.5;
		text-wrap: balance;
		margin-bottom: 1.5rem;

		@include bp($md) {
			margin-bottom: 2rem;
		}
	}
}
There are no JavaScript files with this component.
{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 2,
    "name": "strategiq/gated-content-download",
    "title": "Gated Content Download",
    "description": "Example block to be used as a template",
    "category": "strategiq",
    "icon": "strategiq",
    "acf": {
        "mode": "edit",
        "renderTemplate": "block-gated-content-download.php"
    },
    "supports": {
        "anchor": true,
        "align": false,
        "color": {
            "background": false,
            "text": false,
            "gradients": false
        },
        "spacing": {
            "padding": [
                "top",
                "bottom"
            ],
            "margin": [
                "top",
                "bottom"
            ]
        }
    },
    "example": {
        "attributes": {
            "mode": "preview",
            "data": {
                "heading_type": "h2",
                "heading_text": "Example - Gated Content Download",
                "content": "This is some example content to represent what the content will look like"
            }
        }
    },
    "style": ["file:../../assets/css/gated-content-download/block-gated-content-download.css"]
}
This component is not currently used on any pages.
There are no readme files with this component.