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/slenders.komma.pro/resources/sass/site/4-Layouts/_layouts.grid.scss
/*==========================================================================
 * Card grid
 *
 * The card grid layout is a stacked list if items on small viewports
 * When enough room is available it will put 2 items on a row
 * The maximum number of items in a row is 3, then it wraps to the next row.
 * ========================================================================== */


/**
 * Magic numbers to make the gutter a percentage value so it scales nicely
 * Value is based on the largest possible width of the container,
 * with the negative margin on the component taken into account
 */

$l-grid-gutter: 			90px; 		// translates to max. half of 100px (50px)

.l-grid {
	margin: auto;
}

@include mq($max: 650) {
	.l-grid__item {
		margin: 0 auto;
		width: 100%;
		max-width: 440px;
		@include owl(6vh);
	}
}


@include mq(650) {
	.l-grid {
		@include flex(flex-start, flex-start, $flex-wrap: wrap, $gutter: $l-grid-gutter);
	}

	.l-grid__item {
		width: calc(50% - #{$l-grid-gutter});
		margin: #{$l-grid-gutter / 2};

		@include mq(1100) {
			width: calc(33.33% - #{$l-grid-gutter});
		}
	}
}