@import "../css/_mixins.scss";
@import "../css/_theme-vars.scss";
@import "../css/_admin-colors.scss";

#trx_addons_theme_panel_section_skins.trx_addons_section_mode_thumbs .trx_addons_image_block_inner {
	.trx_addons_image_block_image {
		height: 0;
		padding-top: 66.67%;
	}
	.trx_addons_image_block_title + .trx_addons_image_block_description {
		margin-top: 0.25em;
	}
}
#trx_addons_theme_panel_section_skins.trx_addons_section_mode_list {
	@media (min-width: 480px) {
		.trx_addons_image_block_wrap {
			@include flex-justify-content(space-between);
		}
		.trx_addons_image_block {
			width: 48% !important;
		}
		.trx_addons_image_block_inner {
			@include flex-direction(column);
		}
		.trx_addons_image_block_image {
			@include box(100%, 120px);
		}
		.trx_addons_image_block_footer {
			padding: 1em 0 0 0;

			.trx_addons_image_block_link {
				font-size: 14px;
			}
			.trx_addons_image_block_description {
				margin-bottom: 0.25em;
			}
			.trx_addons_image_block_link + .trx_addons_image_block_link {
				margin-top: 0;
			}
			.trx_addons_image_block_link_delete_skin {
				margin-top: 0;
				order: 5;
				color: #b33836;
			}
			.trx_addons_image_block_link_delete_skin:hover {
				color: #802826;
			}
		}		
	}
	@media (min-width: 768px) {
		.trx_addons_image_block_wrap {
			@include flex-justify-content(flex-start);
		}
		.trx_addons_image_block {
			width: 50% !important;
			padding: 0 1em 1em 0;
		}
		.trx_addons_image_block_inner {
			@include flex-direction(row);
		}
		.trx_addons_image_block_image {
			@include box(130px, 110px);
		}
		.trx_addons_image_block_footer {
			padding: 0 0 0 1em;
		}
	}
	@media (min-width: 1280px) {
		.trx_addons_image_block {
			width: 33.3333% !important;
		}
	}
	@media (min-width: 1440px) {
		.trx_addons_image_block {
			width: 25% !important;
		}
	}
	@media (min-width: 1680px) {
		.trx_addons_image_block {
			width: 20% !important;
			padding: 0 1.5em 1.5em 0;
		}
		.trx_addons_image_block_footer {
			padding-left: 1em;
		}
	}
}
.trx_addons_image_block_link_delete_skin {
	#trx_addons_theme_panel_section_skins.trx_addons_section_mode_list & span[data-tooltip-text],
	#trx_addons_theme_panel_section_skins.trx_addons_section_mode_thumbs & .trx_addons_image_block_link_caption {
		display: none;
	}
}

.pathfinder_upgrade_skins_button[disabled],
.pathfinder_upgrade_skins_button[disabled]:hover,
.pathfinder_upgrade_skins_button[disabled]:focus {
	color: #aaa;
	cursor: not-allowed;
}
.pathfinder_upgrade_skins_status_wrap {
	text-align: center;
	font-size: 1.5em;
}
.pathfinder_upgrade_skins_status:before {
	font-family: $theme_icons;
	display: inline-block;
	vertical-align: top;
}
.pathfinder_upgrade_skins_status_progress:before {
	content: '\e969';
	color: $accent_color;
	@include animation(spin 2s infinite linear);
}
.pathfinder_upgrade_skins_status_success:before {
	content: '\e986';
	color: $success_color;
}
.pathfinder_upgrade_skins_status_error:before {
	content: '\e987';
	color: $error_color;
}

/* Change proportions of the skins image */
#update-skins-table .plugins .plugin-title img {
	width: 94px;
	height: 64px;
}
