Components
63
Accordion Items Basic Hero Basic Map Benefits Grid Contained Content Content Form Content Image Content Parallax Image Cookie Table Cta Blocks Events Example Featured Items Grid Featured Post Flockler Embed Gated Content Hero Slider Image Image Video Content Key Features Key Stats Large Hero Latest Careers Latest Posts List Grid Live Data Location Stack Logo Carousel Market Education Search News Filter News Grid Package Tables Accordion Parallax Benefit Tiles Pdf Footer Post Search Product Buttons Product Data Table Product Finder Cta Product Search Product Spec Search Quote Quote Carousel Regions Banner Related Posts Section Anchors Settle For More Banner Single Column Content Small Cta Banner Speaker Grid Speaker Overview Speakers Split Content Statistic Tiles Statistics Carousel Tabbed Content Table Team Carousel Title Title Content Vacancy Browser Values Video Video Hero

Latest Careers

Field
Field Type
Field Name
Instructions
Block Data
tab
Overline
text
overline
Heading Type
select
heading_type
Heading Text
text
heading_text
Button Type
select
button_button_type
Button Color
select
button_button_color
Button Link
link
button_button_link
Background Image
image
background_img
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/variables";
@import "../../resources/scss/util/mixins";

.block-latest-careers {
	color: $white !important;
	overflow: hidden;
	position: relative;

	&:after{
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(2,8,48,0.5) 0%, rgba(2,8,48,0) 100%);
	}

	&__wrapper {
		position: relative;
		z-index: 1;
	}

	.heading{
		max-width: 600px;
		line-height: 1.5;
	}

	.careers {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		margin-top: 58px;

		.career {
			align-items: center;
			background-color: $white;
			color: $primary;
			gap: 0.25rem;
			display: flex;
			padding: 20px 20px 20px 32px;
			font-size: rem-calc(18);
			flex-wrap: wrap;

			@include bp($md) {
				gap: 1.5rem;
				flex-wrap: nowrap;
			}

			&__title,
			&__location {
				flex-basis: 65%;
				@include bp($md) {
					flex-basis: 0;
				}
			}

			&__title {
				font-weight: 700;
				@include bp($md) {
					flex-basis: 35%;
				}
			}

			&__location {
				position: relative;
				padding-left: calc(12px + 6px);
				font-size: rem-calc(14);
				
				&:before {
					content: "";
					position: absolute;
					background-image: url(/wp-content/themes/traditiondata/assets/icons/map-marker-alt.svg);
					background-repeat: no-repeat;
					background-size: contain;
					top: 50%;
					height: 16px;
					left: 0;
					transform: translateY(-50%);
					width: 12px;
					
					@include bp($md){
						height: 19px;
						width: 14px;
					}
				}
				
				@include bp($md) {
					flex-grow: 1;
					font-size: rem-calc(18);
					padding-left: calc(14px + 8px);
				}
			}

			&__button {
				position: absolute;
				right: 20px;
				@include bp($md) {
					right: 0;
					position: relative;
				}
				.button,
				.btn {
					margin: 0;
				}
			}
		}
	}
}
var LatestCareers = class LatestCareers {
	/**
	 * 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-latest-careers');
		this.init();
	}

	/**
	 * LatestCareers function to run class logic
	 * Can access `this.block`
	 */
	init() {
		this.blocks.forEach((block) => {
		});
	}
}

new LatestCareers();
This component is not currently used on any pages.
There are is no readme file with this component.