HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/resources/sass/4-Layouts/_layouts.form.scss
$l-form-element-min-width: 180px;


// modifier for less spacing between rows
.l-form--dense {
	.l-form__row {
		& + .l-form__row {
			margin-top: space(1);
		}
	}
}


.l-form__title {
	margin-top: space(-2);
}


.l-form__body {
	// when it is not the first item we need some more spacing
	// to offset from the title that likely precedes this
	.l-form__header + & {
		margin-top: space(2.5);
	}
}


.l-form__row {
	& + & {
		margin-top: space(2);
	}
}


// modifier for split row with double inputs when enough space is available
.l-form__row--split {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-top: space(-2);
	margin-right: space(-2);

	// Direct children
	& > * {
		flex-grow: 1;
		flex-basis: $l-form-element-min-width;
		margin-top: space(2);
		margin-right: space(2);
	}

	.l-form__divided-item-small {
		flex-basis: calc(12% - 16px);
		min-width: 100px;
	}

	// --dense AND --split modifiers used together
	&.l-form__row--dense {
		margin-top: space(-0.5);

		// Direct children
		& > * {
			margin-top: space(0.5);
		}
	}
}


.l-form__footer {
	margin-top: space(4);
}


// A hidden wrapper for honey pot stuff
.l-form__pot {
	opacity: 0;
	position: absolute;
	top: 0;	left: 0; height: 0; width: 0;
	z-index: -1;
}


.l-form__row--grid {
	display: grid;
	//grid-column-gap: space(2);

	&[data-grid-template-columns="3-2"] {
		grid-template-columns: 3fr 2fr;
	}
	&[data-grid-template-columns="2-3"] {
		grid-template-columns: 2fr 3fr;
	}
	&[data-grid-template-columns="3-1-1"] {
		grid-template-columns: 3fr 1fr 1fr;
	}
	&[data-grid-template-columns="2-1-2"] {
		grid-template-columns: 2fr 1fr 2fr;
	}

	& > * {
		display: block; // In IE grid items can't be inline
		grid-row: 1;

		// All but exclude the first
		&:nth-child(n+2) {
			margin-left: space(1);
		}
		// All but exclude the last
		&:nth-last-child(n+2) {
			margin-right: space(1);
		}


		&:nth-child(1) {
			grid-column: 1;
		}
		&:nth-child(2) {
			grid-column: 2;
		}
		&:nth-child(3) {
			grid-column: 3;
		}
	}
}