Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Web elements
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
	box-sizing: border-box;
}

body {
	margin: 0px;
	background-color: #fff;
}

img {
	max-width: 100%;
}

/**Typeo CSS End**/
.categories-scn, .categories-scn * {
	--page-width: 1330px;
	--base-fm: 'Rubik', sans-serif;
	--title-size: 35px;
	--base-size: 16px;
	--white-clr: #ffffff;
	--theme-clr: #1ea69a;
	--lightgrey-clr: #F1F3F8;
}

.topcate-tag {
	text-align: center;
	display: inherit;
	margin-bottom: 20px;
	color: var(--theme-clr);
}

.categories-scn h2 {
	margin: 0px;
	font-size: var(--title-size);
	text-align: center;
	display: block;
}

.page-width {
	max-width: var(--page-width);
	padding: 0 15px;
	margin: auto;
	width: 100%;
}

.categories-scn {
	width: 100%;
	padding: 50px 0px;
	color: var(--base-size);
	font-family: var(--base-fm);
}

.cate-img img {
	height: auto;
	transition: 0.5s all;
}

.categories-list {
	display: flex;
	flex-flow: row wrap;
	width: 100%;
	margin-top: 40px;
}

.categories-list .cate-item {
	width: 25%;
	text-align: center;
	padding: 10px;
}

.cate-item .cate-img {
	width: 60px;
}

.cate-name {
	font-size: 18px;
	text-decoration: none;
	color: #000;
	padding-left: 10px;
	display: inline-block;
	width: calc(100% - 60px);
	transition: 0.5s all;
	text-align: left;
}

.categories-list .cate-item a {
	text-decoration: none;
	display: flex;
	width: 100%;
	flex-flow: row wrap;
	align-items: center;
	background-color: var(--lightgrey-clr);
	padding: 10px 15px;
	min-height: 110px;
	position: relative;
}

.categories-list .cate-item a:after {
	content: '';
	position: absolute;
	left: 0px;
	bottom: 0px;
	transition: 1s all;
	width: 0;
	height: 2px;
	background-color: var(--theme-clr);
}

.categories-list .cate-item:hover a:after {
	width: 100%;
}

@media(max-width:1200px) {
	.categories-list {
		margin-top: 20px;
	}

	.categories-scn h2 {
		font-size: calc(var(--title-size) - 8px);
	}

	.categories-list .cate-item {
		padding: 4px;
	}

	.topcate-tag {
		margin-bottom: 10px;
	}

	.cate-item .cate-img {
		width: 40px;
	}

	.categories-list .cate-item a {
		padding: 5px 5px;
		min-height: 80px;
	}

	.cate-name {
		padding-left: 5px;
		font-size: 15px;
		width: calc(100% - 40px);
	}

}

@media(max-width:767px) {
	.categories-scn {
		padding: 40px 0px;
	}

	.categories-list .cate-item {
		width: 50%;
	}

}

Related Web Elements