<commit_before>$module-width: 22.5em;
$module-width-small: 19em;
$module-width-extrasmall: 16em;
$metadata-width: 30em;
$metadata-width-small: 20em;

@mixin prop-metadata-width($prop, $add:0) {
	@include layout-type(small) { #{$prop}: $metadata-width-small + $add; }
	@include layout-type(normal) { #{$prop}: $metadata-width + $add; }
}

@mixin prop-module-width($prop, $add:0) {
	@include layout-type(extrasmall) { #{$prop}: $module-width-extrasmall + $add; }
	@include layout-type(small) { #{$prop}: $module-width-small + $add; }
	@include layout-type(normal) { #{$prop}: $module-width + $add; }
}

@mixin column {
	&> h2 {
		text-align: center;

		&> em.help {
			font-size: 0.7em;
			color: #AAA;
		}
	}

	&> ul {
		padding-left: 2em;
		list-style-type: square;
	}
}

@mixin error-background-opacity($opacity) {
	background-color: rgba(255, 51, 0, $opacity);
}

@mixin module {
	@include ellipsis;
	padding: 0.125em 0;
	border-top: 1px dashed #888;
	line-height: 2em;
	
	&:first-child {
		border-top: none;
	}
	
	&> img:first-child {
		height: 2em;
		margin-right: 0.125em;
		image-rendering: optimizeSpeed;
		image-rendering: optimize-contrast;
	}
}

@mixin module-top-corner-link {
	display: inline;
	position: absolute;
	right: 0;
	top: 0;
	height: 1em;
	line-height: 1em;
	
	&:active, &:focus {
		outline: 0;
	}
	
	&> img {
		height: 1em;
	}
}

@mixin module-bottom-corner-info {
	display: inline;
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 0.8em;
	line-height: 1em;
	height: 1em;
	opacity: 0.4;
}

@mixin module-list-togglable {
	@include prop-module-width(width);
	display: inline-block;
	vertical-align: top;
	margin: 0 2em 2em 0;

	&> ul {
		list-style-type: none;
		padding: 0;
		margin-top: 0.125em;

		&> li {
			@include module;

			&.unused {
				color: #888;
			}

			&> a.toggle {
				display: none;
			}

			&> span.range {
				@include module-bottom-corner-info;
			}
		}
	}

	&.stateful > ul > li {
		padding-right: 1em;
		position: relative;

		&> a.toggle {
			@include module-top-corner-link;
		}
	}

	&> h3 {
		border-bottom: 1px solid #888;
		padding-left: 0.25em;
		margin-bottom: 0;
		position: relative;

		&> small.capacity, &> strong {
			position: absolute;
			right: 0.125em;
			bottom: 0;
			color: #888;

			&> span {
				display: inline-block;
				margin-left: 2em;

				&> img:first-child {
					vertical-align: bottom;
					height: 1.5em;
					margin-right: 0.25em;
				}
			}
		}
	}
}

@mixin drone-list {
	width: auto;
	display: block;
	overflow: hidden;
	
	&> div#inspace, &> div#inbay {
		width: 50%;

		&#inbay {
			float: left;
			padding-right: 1em;
		}

		&#inspace {
			margin-left: 50%;
			padding-left: 1em;
		}

		&> h4 {
			margin: 0.5em 0 0.25em 0;
			padding-left: 0.25em;
			border-bottom: 1px solid #CCC;
		}

		&> ul {
			margin: 0;
			padding: 0;
			list-style-type: none;
		}

		&> ul > li {
			@include module;

			display: inline-block;
			border: none;
			width: auto;
			margin-right: 2em;

			&> img:first-child {
				margin-right: 0.5em;
			}

			&[data-count] {
				cursor: move;
			}
		}
	}
}

div#fittags > ul, ul.tags {
    margin: 0;
	padding: 0;
	margin-top: 0.15em;
	list-style-type: none;

	&> li {
		display: inline-block;
		border: 1px solid #CCC;
		border-radius: 1em;
		font-size: 0.8em;
		font-family: $mono-font;
		padding: 0.1em 0.5em;
		background-color: #F8F8F8;
	}
}

span.fitname {
	text-decoration: underline;
	font-weight: bold;

	&> img {
		height: 1em;
	}
}

div#metadatabox {
	@include column;

	float: left;
	@include prop-metadata-width(width);

	&> p#fitdesc {
		margin-left: 1em;
	}

	&> ul > li > ul > li > a {
		&.active {
			text-decoration: none;
			color: black;
			font-weight: bold;
		}

		&:focus {
			outline: 0;
		}
	}
}

div#computed_attributes > section {
	padding-left: 1em;

	&> h4 {
		padding-left: 0.5em;
		border-bottom: 1px solid #CCC;
		margin: 1em 0 0 0;
		position: relative;
		cursor: pointer;

		&:before {
			content: '▾';
			padding-right: 0.25em;
		}

		&> small {
			position: absolute;
			right: 0;
			bottom: 0;
			font-size: 0.9em;
			color: #888;
		}
	}

	&.hidden > h4:before {
		content: '▸';
	}

	&:first-child > h4 {
		margin-top: 0;
	}

	&> div {
		background-color: #F4F4F8;
		padding: 0.125em 0.25em;
	}

	&> div > p {
		display: inline-block;
		vertical-align: middle;
		margin: 0.25em 2em 0 0;
		padding: 0.125em;
		line-height: 1em;

		&> img {
			height: 2em;

			&+ span {
				display: inline-block;
				vertical-align: middle;

				&> img {
					height: 1em;
				}
			}
		}	
	}

	&> div > ul {
		list-style-type: square;
		margin: 0;
		padding-left: 1.25em;

		&> li.export {
			font-size: 0.8em;

			&> ul {
				padding-left: 1.25em;
			}
		}
	}
}

div#computed_attributes > section > div > table#resists {
	border-collapse: collapse;
	margin: 0;
	width: 100%;

	&> tbody > tr > td, &> thead > tr > td, &> thead > tr > th#ehp {
		text-align: right;
	}

	&> thead > tr > th:first-child {
		width: 3em;
	}

	&> thead > tr > th#ehp {
		width: 4em;
	}

	&> tbody > tr > th > img, &> thead > tr > td > img {
		height: 2em;
	}

	&> tbody > tr > td > div {
		position: relative;
		width: 100%;
		padding-bottom: 1px;

		&> span.bar {
			position: absolute;
			bottom: 0;
			right: 0;
			height: 2px;
			background-color: black;
		}
	}

	&> tbody > tr {
		&> td.emresist > div > span.bar { background-color: #2685C6; }
		&> td.thermalresist > div > span.bar { background-color: #C62626; }
		&> td.kineticresist > div > span.bar { background-color: #A3A3A3; }
		&> td.explosiveresist > div > span.bar { background-color: #C68526; }
	}

	&> thead > tr > th#ehp {
		font-weight: normal;
		font-size: 0.666em;

		&> strong {
			font-size: 1.5em;
		}
	}
}

.overflow6 { @include error-background-opacity(0.6); }
.overflow5 { @include error-background-opacity(0.5); }
.overflow4 { @include error-background-opacity(0.4); }
.overflow3 { @include error-background-opacity(0.3); }
.overflow2 { @include error-background-opacity(0.2); }
.overflow1 { @include error-background-opacity(0.1); }
<commit_msg>Fix: be consistent, always use 32px-wide type icons.<commit_after>$module-width: 22.5em;
$module-width-small: 19em;
$module-width-extrasmall: 16em;
$metadata-width: 30em;
$metadata-width-small: 20em;

@mixin prop-metadata-width($prop, $add:0) {
	@include layout-type(small) { #{$prop}: $metadata-width-small + $add; }
	@include layout-type(normal) { #{$prop}: $metadata-width + $add; }
}

@mixin prop-module-width($prop, $add:0) {
	@include layout-type(extrasmall) { #{$prop}: $module-width-extrasmall + $add; }
	@include layout-type(small) { #{$prop}: $module-width-small + $add; }
	@include layout-type(normal) { #{$prop}: $module-width + $add; }
}

@mixin column {
	&> h2 {
		text-align: center;

		&> em.help {
			font-size: 0.7em;
			color: #AAA;
		}
	}

	&> ul {
		padding-left: 2em;
		list-style-type: square;
	}
}

@mixin error-background-opacity($opacity) {
	background-color: rgba(255, 51, 0, $opacity);
}

@mixin module {
	@include ellipsis;
	padding: 0.125em 0;
	border-top: 1px dashed #888;
	line-height: 2em;
	
	&:first-child {
		border-top: none;
	}
	
	&> img {
		height: 32px;
		width: 32px;
		margin-right: 0.125em;
	}
}

@mixin module-top-corner-link {
	display: inline;
	position: absolute;
	right: 0;
	top: 0;
	height: 1em;
	line-height: 1em;
	
	&:active, &:focus {
		outline: 0;
	}
	
	&> img {
		height: 1em;
	}
}

@mixin module-bottom-corner-info {
	display: inline;
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 0.8em;
	line-height: 1em;
	height: 1em;
	opacity: 0.4;
}

@mixin module-list-togglable {
	@include prop-module-width(width);
	display: inline-block;
	vertical-align: top;
	margin: 0 2em 2em 0;

	&> ul {
		list-style-type: none;
		padding: 0;
		margin-top: 0.125em;

		&> li {
			@include module;

			&.unused {
				color: #888;
			}

			&> a.toggle {
				display: none;
			}

			&> span.range {
				@include module-bottom-corner-info;
			}
		}
	}

	&.stateful > ul > li {
		padding-right: 1em;
		position: relative;

		&> a.toggle {
			@include module-top-corner-link;
		}
	}

	&> h3 {
		border-bottom: 1px solid #888;
		padding-left: 0.25em;
		margin-bottom: 0;
		position: relative;

		&> small.capacity, &> strong {
			position: absolute;
			right: 0.125em;
			bottom: 0;
			color: #888;

			&> span {
				display: inline-block;
				margin-left: 2em;

				&> img:first-child {
					vertical-align: bottom;
					height: 1.5em;
					margin-right: 0.25em;
				}
			}
		}
	}
}

@mixin drone-list {
	width: auto;
	display: block;
	overflow: hidden;
	
	&> div#inspace, &> div#inbay {
		width: 50%;

		&#inbay {
			float: left;
			padding-right: 1em;
		}

		&#inspace {
			margin-left: 50%;
			padding-left: 1em;
		}

		&> h4 {
			margin: 0.5em 0 0.25em 0;
			padding-left: 0.25em;
			border-bottom: 1px solid #CCC;
		}

		&> ul {
			margin: 0;
			padding: 0;
			list-style-type: none;
		}

		&> ul > li {
			@include module;

			display: inline-block;
			border: none;
			width: auto;
			margin-right: 2em;

			&> img:first-child {
				margin-right: 0.5em;
			}

			&[data-count] {
				cursor: move;
			}
		}
	}
}

div#fittags > ul, ul.tags {
    margin: 0;
	padding: 0;
	margin-top: 0.15em;
	list-style-type: none;

	&> li {
		display: inline-block;
		border: 1px solid #CCC;
		border-radius: 1em;
		font-size: 0.8em;
		font-family: $mono-font;
		padding: 0.1em 0.5em;
		background-color: #F8F8F8;
	}
}

span.fitname {
	text-decoration: underline;
	font-weight: bold;

	&> img {
		height: 1em;
	}
}

div#metadatabox {
	@include column;

	float: left;
	@include prop-metadata-width(width);

	&> p#fitdesc {
		margin-left: 1em;
	}

	&> ul > li > ul > li > a {
		&.active {
			text-decoration: none;
			color: black;
			font-weight: bold;
		}

		&:focus {
			outline: 0;
		}
	}
}

div#computed_attributes > section {
	padding-left: 1em;

	&> h4 {
		padding-left: 0.5em;
		border-bottom: 1px solid #CCC;
		margin: 1em 0 0 0;
		position: relative;
		cursor: pointer;

		&:before {
			content: '▾';
			padding-right: 0.25em;
		}

		&> small {
			position: absolute;
			right: 0;
			bottom: 0;
			font-size: 0.9em;
			color: #888;
		}
	}

	&.hidden > h4:before {
		content: '▸';
	}

	&:first-child > h4 {
		margin-top: 0;
	}

	&> div {
		background-color: #F4F4F8;
		padding: 0.125em 0.25em;
	}

	&> div > p {
		display: inline-block;
		vertical-align: middle;
		margin: 0.25em 2em 0 0;
		padding: 0.125em;
		line-height: 1em;

		&> img {
			height: 2em;

			&+ span {
				display: inline-block;
				vertical-align: middle;

				&> img {
					height: 1em;
				}
			}
		}	
	}

	&> div > ul {
		list-style-type: square;
		margin: 0;
		padding-left: 1.25em;

		&> li.export {
			font-size: 0.8em;

			&> ul {
				padding-left: 1.25em;
			}
		}
	}
}

div#computed_attributes > section > div > table#resists {
	border-collapse: collapse;
	margin: 0;
	width: 100%;

	&> tbody > tr > td, &> thead > tr > td, &> thead > tr > th#ehp {
		text-align: right;
	}

	&> thead > tr > th:first-child {
		width: 3em;
	}

	&> thead > tr > th#ehp {
		width: 4em;
	}

	&> tbody > tr > th > img, &> thead > tr > td > img {
		height: 2em;
	}

	&> tbody > tr > td > div {
		position: relative;
		width: 100%;
		padding-bottom: 1px;

		&> span.bar {
			position: absolute;
			bottom: 0;
			right: 0;
			height: 2px;
			background-color: black;
		}
	}

	&> tbody > tr {
		&> td.emresist > div > span.bar { background-color: #2685C6; }
		&> td.thermalresist > div > span.bar { background-color: #C62626; }
		&> td.kineticresist > div > span.bar { background-color: #A3A3A3; }
		&> td.explosiveresist > div > span.bar { background-color: #C68526; }
	}

	&> thead > tr > th#ehp {
		font-weight: normal;
		font-size: 0.666em;

		&> strong {
			font-size: 1.5em;
		}
	}
}

.overflow6 { @include error-background-opacity(0.6); }
.overflow5 { @include error-background-opacity(0.5); }
.overflow4 { @include error-background-opacity(0.4); }
.overflow3 { @include error-background-opacity(0.3); }
.overflow2 { @include error-background-opacity(0.2); }
.overflow1 { @include error-background-opacity(0.1); }

{'fraction_non_alphanumeric': 0.17243669572436696, 'fraction_numerical': 0.0402656704026567, 'mean_word_length': 2.7271039603960396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 195, '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': '5485935', 'n_tokens_mistral': 6083, 'n_tokens_neox': 5072, 'n_words': 1055}