ECサイト用パーツ

商品サムネイル表示

タブレット表示 スマホ表示

パーツ設置費用

8,000

費用メモ

1点あたり 1,000円

CSS

.item__list__thumbnail__type1 .flexBox {
	margin: 0 -20px;
}

.item__list__thumbnail__type1 article {
	margin: 0 20px 40px;
	width: -webkit-calc(100% / 4 - 40px);
	width: calc(100% / 4 - 40px);
}
.item__list__thumbnail__type1 article:nth-last-child(1),
.item__list__thumbnail__type1 article:nth-last-child(2),
.item__list__thumbnail__type1 article:nth-last-child(3),
.item__list__thumbnail__type1 article:nth-last-child(4) {
	margin-bottom: 0;
}

.item__list__thumbnail__type1 article a {
	display: block;
}

.item__list__thumbnail__type1 article figure {
	margin-bottom: 10px;
	padding-top: 100%;
	position: relative;
	width: 100%;
}
.item__list__thumbnail__type1 article figure img {
	object-fit: cover;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
}

.item__list__thumbnail__type1 article p {
	font-size: 14px;
	line-height: 1.8;
}
@media screen and (max-width: 800px) {
	.item__list__thumbnail__type1 .flexBox {
		margin: 0 -2vw;
	}
	.item__list__thumbnail__type1 article {
		margin: 0 2vw 5vw;
		width: -webkit-calc(100% / 4 - 4vw);
		width: calc(100% / 4 - 4vw);
	}
	.item__list__thumbnail__type1 article figure {
		margin-bottom: 1vw;
	}
	.item__list__thumbnail__type1 article p {
		font-size: 1.8vw;
	}
}
@media screen and (max-width: 540px) {
	.item__list__thumbnail__type1 .flexBox {
		margin: 0 -2.5vw;
	}
	.item__list__thumbnail__type1 article {
		margin: 0 2.5vw 8vw;
		width: -webkit-calc(100% / 4 - 5vw);
		width: calc(100% / 2 - 5vw);
	}
	.item__list__thumbnail__type1 article:nth-last-child(1),
	.item__list__thumbnail__type1 article:nth-last-child(2),
	.item__list__thumbnail__type1 article:nth-last-child(3),
	.item__list__thumbnail__type1 article:nth-last-child(4) {
		margin-bottom: 8vw;
	}
	.item__list__thumbnail__type1 article figure {
		margin-bottom: 2vw;
	}
	.item__list__thumbnail__type1 article p {
		font-size: 3.4vw;
	}
}

HTML

<section class="item__list__thumbnail__type1">
	<div class="flexBox">
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
		<article>
			<a class="box" href="">
				<figure>
					<img src="/wp/wp-content/uploads/2021/03/thumb-dammy-image5.jpg">
				</figure>
				<p>てきすとてきすとてきすとてきすとてきすとてきすとてきすと</p>
			</a>
		</article>
	</div>
</section>