Global Elements
2
Footer Header Services Strip Services Tabs
Components
36
Card Carousel Cards Grid Content Overlap Content Strip Cta Bar Featured Article Featured Blocks Featured Expert Featured Pods Featured Tabs Form Block Full Screen Carousel Full Width Content Heading Strip Hero Hero Featured Links List Location Tabs Logo Carousel Map Block People Grid Quote Block Reviews Carousel Reviews Tabs Service Tiles Services Strip Services Tabs Staggered Content Sticky Accordion Sticky List Sub Navigation Team Carousel Team Filters Team Strip Tile Carousel Tile Grid

Cta Bar

Speak to an expert

Field
Field Type
Field Name
Instructions
Block Data
tab
Heading Type
select
heading_type
Heading Text
text
heading_text
Icon
select
icon
Link
link
link
Block Meta
tab
ID
text
block_id
Block Classes
text
block_classes
Block Theme
select
block_theme
Background Colors
select
background_colors
Padding Top
select
padding_top
Padding Bottom
select
padding_bottom
Margin Top
select
margin_top
Margin Bottom
select
margin_bottom

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

.block-cta-bar {
	background-color: $navy;
	color: $white;
	padding: rem-calc(24 0);

	.single-post &,
	.single-news & {
		background-color: $blue;
	}

	.heading {
		color: $white;
		margin-bottom: 0;
		@include fluid-type(24, 32);
		margin-bottom: rem-calc(10);

		@include bp($lg) {
			margin-bottom: rem-calc(0);
		}
	}

	&__link {
		color: $white;
		font-weight: 700;
		text-decoration: none;
		@include fluid-type(20, 28);
		transition: all 0.3s ease-out;

		&:before {
			width: rem-calc(40);
			height: rem-calc(40);
		}

		&:hover {
			color: $orange;
		}
	}
}
// class Example {
// 	/**
// 	 * Create and initialise objects of this class
// 	 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor
// 	 * @param {object} block
// 	 */
// 	constructor() {
// 		this.blocks = document.querySelectorAll('.block-example');
// 		this.init();
// 	}

// 	/**
// 	 * Example function to run class logic
// 	 * Can access `this.block`
// 	 */
// 	init() {
// 		this.blocks.forEach((block) => {
// 			console.log("🚀 ~ file: Example.js ~ line 20 ~ Example ~ init ~ this.block", block);
// 		});
// 	}
// }

// new Example();

Animation / States

  • On link hover, any icon included will scale up slowly.

External Libraries

None

Notes (Design / Dev / SEO)

No notes.