<commit_before>.contentItemList {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 -20px -20px;
}

.contentItem {
	background-color: $wcfContentBackground;
	border-radius: 3px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
	display: flex;
	flex-direction: column;
	margin: 0 0 20px 20px;
	position: relative;
	overflow: hidden;
}

.contentItemSingleColumn {
	flex: 0 0 100%;
}

.contentItemMultiColumn {
	flex: 0 0 calc(50% - 20px);
	max-width: calc(50% - 20px); /* IE 11 */
}

.contentItemLink {
	flex: 1 auto;
}

.contentItemContent {
	padding: 10px;
}

.contentItemContentTruncate {
	max-height: 150px;
	overflow: hidden;
	position: relative;
	
	&::after {
		background-image: linear-gradient(to top, $wcfContentBackground, transparent);
		bottom: 0;
		content: "";
		height: 30px;
		left: 0;
		pointer-events: none;
		position: absolute;
		right: 0;
		/* The `top` value is important, because it prevents the last line from being affected
		   when the content isn't too long. */
		top: 120px;
	}
}

.contentItemImage {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 10px;
	position: relative;
}

.contentItemImageSmall {
	min-height: 75px;
}

.contentItemImageLarge {
	min-height: 150px;
}

.contentItemBadges,
.contentItemOptions {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
}

.contentItemOptions {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
}

.contentItemBadge,
.contentItemOption {
	flex: 0 auto;
	
	&:not(:first-child) {
		margin-top: 5px;
	}
}

.contentItemBadge {
	border: 1px solid currentColor;
}

.contentItemOption.button {
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.contentItemLabels {
	margin-bottom: 5px;
}

.contentItemCategory {
	color: $wcfContentDimmedText;
	text-transform: uppercase;
	
	@include wcfFontSmall;
}

.contentItemTitle {
	color: $wcfContentHeadlineLink;
	
	@include wcfFontHeadline;
	@include wcfFontBold;
	
	&:hover {
		color: $wcfContentHeadlineLinkActive;
	}
}

.contentItemDescription {
	color: $wcfContentText;
	margin-top: 10px;
}

.contentItemContentLinks {
	padding: 0 10px 10px 10px;
}

.contentItemMeta {
	align-items: center;
	border-top: 1px solid $wcfContentBorderInner;
	color: $wcfContentDimmedText;
	display: flex;
	flex: 0 auto;
	padding: 10px;
	
	.icon {
		color: inherit;
	}
}

.contentItemMetaImage {
	flex: 0 auto;
	margin-right: 10px;
}

.contentItemMetaContent {
	flex: 1 auto;
	font-size: 12px;
}

.contentItemMetaAuthor {
	color: $wcfContentText;
	
	a,
	a:hover {
		color: inherit;
	}
}

.contentItemMetaIcons {
	display: flex;
	flex: 0 auto;
	margin-left: 10px;
}

.contentItemMetaIcon {
	flex: 0 auto;
	
	&:not(:first-child) {
		margin-left: 10px;
	}
}

.contentItemImagePreview {
	border-radius: 3px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
	margin-bottom: 10px;
	max-width: 100%;
}

.contentItemImagePreviewButtons {
	display: flex;
	flex-wrap: wrap;
	margin-left: -10px;
	
	> .button {
		flex: 0 auto;
		margin-left: 10px;
	}
	
	> .innerError {
		flex: 0 0 100%;
		margin-left: 10px;
	}
}

@include screen-lg {
	/* There are no sidebars, use a three column layout. */
	.content:first-child:last-child {
		.contentItemMultiColumn {
			flex: 0 0 calc(100% / 3 - 20px);
			max-width: calc(100% / 3 - 20px); /* IE 11 */
		}
	}
}

@include screen-md {
	/* The sidebar, if any, is not adjacent to the content, use a three column layout. */
	.contentItemMultiColumn {
		flex: 0 0 calc(100% / 3 - 20px);
		max-width: calc(100% / 3 - 20px); /* IE 11 */
	}
}

@include screen-xs {
	/* There is not enough space to fit two columns. */
	.contentItemList {
		display: block;
	}
	
	.contentItemMultiColumn {
		max-width: none;
	}
}
<commit_msg>Fixed margins in content item lists<commit_after>.contentItemList {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 -20px -20px;
}

.contentItem {
	background-color: $wcfContentBackground;
	border-radius: 3px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
	display: flex;
	flex-direction: column;
	margin: 0 0 20px 20px;
	position: relative;
	overflow: hidden;
}

.contentItemSingleColumn {
	flex: 0 0 calc(100% - 20px);
	max-width: calc(100% - 20px); /* IE 11 */
}

.contentItemMultiColumn {
	flex: 0 0 calc(50% - 20px);
	max-width: calc(50% - 20px); /* IE 11 */
}

.contentItemLink {
	flex: 1 auto;
}

.contentItemContent {
	padding: 10px;
}

.contentItemContentTruncate {
	max-height: 150px;
	overflow: hidden;
	position: relative;
	
	&::after {
		background-image: linear-gradient(to top, $wcfContentBackground, transparent);
		bottom: 0;
		content: "";
		height: 30px;
		left: 0;
		pointer-events: none;
		position: absolute;
		right: 0;
		/* The `top` value is important, because it prevents the last line from being affected
		   when the content isn't too long. */
		top: 120px;
	}
}

.contentItemImage {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 10px;
	position: relative;
}

.contentItemImageSmall {
	min-height: 75px;
}

.contentItemImageLarge {
	min-height: 150px;
}

.contentItemBadges,
.contentItemOptions {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
}

.contentItemOptions {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
}

.contentItemBadge,
.contentItemOption {
	flex: 0 auto;
	
	&:not(:first-child) {
		margin-top: 5px;
	}
}

.contentItemBadge {
	border: 1px solid currentColor;
}

.contentItemOption.button {
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.contentItemLabels {
	margin-bottom: 5px;
}

.contentItemCategory {
	color: $wcfContentDimmedText;
	text-transform: uppercase;
	
	@include wcfFontSmall;
}

.contentItemTitle {
	color: $wcfContentHeadlineLink;
	
	@include wcfFontHeadline;
	@include wcfFontBold;
	
	&:hover {
		color: $wcfContentHeadlineLinkActive;
	}
}

.contentItemDescription {
	color: $wcfContentText;
	margin-top: 10px;
}

.contentItemContentLinks {
	padding: 0 10px 10px 10px;
}

.contentItemMeta {
	align-items: center;
	border-top: 1px solid $wcfContentBorderInner;
	color: $wcfContentDimmedText;
	display: flex;
	flex: 0 auto;
	padding: 10px;
	
	.icon {
		color: inherit;
	}
}

.contentItemMetaImage {
	flex: 0 auto;
	margin-right: 10px;
}

.contentItemMetaContent {
	flex: 1 auto;
	font-size: 12px;
}

.contentItemMetaAuthor {
	color: $wcfContentText;
	
	a,
	a:hover {
		color: inherit;
	}
}

.contentItemMetaIcons {
	display: flex;
	flex: 0 auto;
	margin-left: 10px;
}

.contentItemMetaIcon {
	flex: 0 auto;
	
	&:not(:first-child) {
		margin-left: 10px;
	}
}

.contentItemImagePreview {
	border-radius: 3px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
	margin-bottom: 10px;
	max-width: 100%;
}

.contentItemImagePreviewButtons {
	display: flex;
	flex-wrap: wrap;
	margin-left: -10px;
	
	> .button {
		flex: 0 auto;
		margin-left: 10px;
	}
	
	> .innerError {
		flex: 0 0 100%;
		margin-left: 10px;
	}
}

@include screen-lg {
	/* There are no sidebars, use a three column layout. */
	.content:first-child:last-child {
		.contentItemMultiColumn {
			flex: 0 0 calc(100% / 3 - 20px);
			max-width: calc(100% / 3 - 20px); /* IE 11 */
		}
	}
}

@include screen-md {
	/* The sidebar, if any, is not adjacent to the content, use a three column layout. */
	.contentItemMultiColumn {
		flex: 0 0 calc(100% / 3 - 20px);
		max-width: calc(100% / 3 - 20px); /* IE 11 */
	}
}

@include screen-xs {
	/* There is not enough space to fit two columns. */
	.contentItemList {
		display: block;
	}
	
	.contentItemMultiColumn {
		max-width: none;
	}
}

{'fraction_non_alphanumeric': 0.13735255570117955, 'fraction_numerical': 0.04967234600262123, 'mean_word_length': 3.5694610778443114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7551264', 'n_tokens_mistral': 3426, 'n_tokens_neox': 2955, 'n_words': 761}