cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
                <!-- Template for portfolio
      Design - http://ykallio.ru/
      Coding - http://syrygina.ru/
  -->
<link href="https://fonts.googleapis.com/css?family=Fira+Sans+Condensed|Lato&amp;subset=cyrillic" rel="stylesheet"> 
<!--[if lte IE 9]>
		<link rel="stylesheet" type="text/css" href="http://new.syrygina.ru/projects/grid/ie.css" />
<![endif]-->
<div class="content">
	<header class="header">
		<div class="logo">
			<div class="logo-icon"></div>
			Tanya Sыrыgina
		</div>	
		<div class="links">
			<a href="#" title="About">Кто я</a>
			<a href="#" title="Blog">Знания</a>
		</div>
	</header>
	<div class="clear-ie"></div>
<main class="portfolio">
		<div class="portfolio-item portfolio-item-1">
			<div class="portfolio-item_info font-dark">
				<a href="#" class="portfolio-item_link">Часы</a>
				<div class="portfolio-item_descr">
					js <span class="mobile-item_date">июнь 2017</span>
				</div>
				<div class="portfolio-item_date">июнь<br>2017</div>
			</div>	
			<div class="portfolio-item_image">
				<img src="http://new.syrygina.ru/projects/files/clock.png" alt="Clock">
			</div>
		</div>
		<div class="portfolio-item portfolio-item-2">	
			<div class="portfolio-item_image">
				<img src="http://new.syrygina.ru/projects/files/gm.png" alt="Galamart">
			</div>
			<div class="portfolio-item_info font-light">
				<a href="#" class="portfolio-item_link">Галамарт</a>
				<div class="portfolio-item_descr">
				верстка сайта, написание скриптов, подключение плагинов <span class="mobile-item_date">март 2017</span>
			</div>
				<div class="portfolio-item_date">март<br>2017</div>
			</div>
		</div>
		<div class="portfolio-item portfolio-item-3">	
			<div class="portfolio-item_info font-light">
				<a href="#" class="portfolio-item_link">Траки</a>
				<div class="portfolio-item_descr">
					верстка адаптивного сайта, написание скриптов, подключение, кастомизация плагинов <span class="mobile-item_date">декабрь 2016</span>
				</div>
				<div class="portfolio-item_date">декабрь<br>2016</div>
			</div>
			<div class="portfolio-item_image">
				<img src="http://new.syrygina.ru/projects/files/tr.png" alt="Trucks">
			</div>
		</div>
		<div class="portfolio-item portfolio-item-4">	
			<div class="portfolio-item_image">
				<img src="http://new.syrygina.ru/projects/files/ed.png" alt="Everyday">
			</div>
			<div class="portfolio-item_info font-dark">
				<a href="#" class="portfolio-item_link">Everyday</a>
				<div class="portfolio-item_descr">
					верстка адаптивного сайта, написание скриптов <span class="mobile-item_date">август 2016</span>
				</div>
				<div class="portfolio-item_date">август<br>2016</div>
			</div>
		</div>
		<div class="portfolio-item portfolio-item-5">
			<div class="portfolio-item_info font-light">
				<a href="#" class="portfolio-item_link">Aтом</a>
				<div class="portfolio-item_descr">
					верстка шаблона для Themeforest <span class="mobile-item_date">май 2016</span>
				</div>
				<div class="portfolio-item_date">май<br>2016</div>
			</div>	
			<div class="portfolio-item_image">
				<img src="http://new.syrygina.ru/projects/files/atom.png" alt="Aтом">
			</div>
		</div>
	</main>
</div>
            
          
!
            
              :root, html *{
	box-sizing: border-box;
}
html, body{
	background: #f1f1f1;
	color: #333;
	min-width: 320px;
}
.header{
	display: flex;
	display: -ms-flexbox;
	align-items: center;
	-ms-flex-align: center;
	justify-content: space-between;
	-ms-flex-pack: justify;
	height: 100px;
	padding: 0 30px;
	width: 100%;
}
	.logo{
		font: 30px 'Fira Sans Condensed', sans-serif;
		letter-spacing: 3px;
		text-transform: uppercase;
	}
	.logo-icon{
		position: relative;
		border: 5px solid #a7d9cd;
		border-radius: 50%;
		height: 48px;
		width: 48px;
		margin-right: 12px;
		display: inline-block;
		vertical-align: middle;
	}
	.logo-icon:before{
		position: absolute;
		content: '';
		width: 18px;
		height: 18px;
		border: 5px solid #a7d9cd;	
		border-radius: 50%;
		top: 5px;
		left: 5px;	
	}
	.logo-icon:after{
		position: absolute;
		content: '';
		width: 8px;
		height: 8px;
		background-color: #a7d9cd;
		border-radius: 50%;
		top: 15px;
		left: 15px;	
	}
	.links{}
	.links:after{
		content: '';
		display: inline-block;
		vertical-align: middle;
		width: 32px;
		height: 32px;
		background-color: #a7d9cd;
		border-radius: 50%;
	}
	.links a{
		display: inline-block;
		vertical-align: middle;
		margin-right: 40px;
		font: 20px 'Fira Sans Condensed', sans-serif;
		color: #333;
		text-transform: uppercase;
		letter-spacing: 1px;
		text-decoration: none;
		transition: opacity 0.2s ease;
	}
	.links a:hover{
		opacity: 0.7;
	}
.content{
	display: flex;
	display: -ms-flexbox;
	flex-direction: column;
	-ms-flex-direction: column;
	align-items: center;
	-ms-flex-align: center;
	justify-content: flex-start;
	-ms-flex-pack: start;
	padding-bottom: 50px;
}


.portfolio-item{}
	.portfolio-item_link{
		font: 20px 'Fira Sans Condensed', sans-serif;
		letter-spacing: 2px;
		margin-bottom: 20px;
		text-decoration: none;
		color: inherit;
		border-bottom: 1px solid;
		display: inline-block;
		text-transform: uppercase;
		transition: opacity 0.2s ease;
	}
	.portfolio-item_link:hover{
		opacity: 0.7;
	}
	.portfolio-item_descr{
		margin-bottom: 30px;
		font: 15px/1.6 Lato, sans-serif;
	}
	.portfolio-item_date,
	.mobile-item_date{
		font: 15px/1.33 Lato, sans-serif;
	}
	.portfolio-item_image{
		border-radius: 5px;
		display: flex;
		display: -ms-flexbox;
		align-items: center;
		-ms-flex-align: center;
	    position: relative;
	    z-index: 10;
	}
	.portfolio-item_image img{
		border-radius: 5px;
	}
	.portfolio-item_image,
	.portfolio-item_info{
		transition: box-shadow 0.2s ease;
	}
	.portfolio-item:hover .portfolio-item_image,
	.portfolio-item:hover .portfolio-item_info{
		box-shadow: 0px 10px 30px 0 rgba(0, 0, 0, 0.2);
	}
.font-dark{
	color: #333;
}
	.font-dark .portfolio-item_link{
		border-bottom-color: rgba(0,0,0,0.2);
	}
	.font-dark .portfolio-item_date,
	.font-dark .mobile-item_date{
		color:  rgba(0,0,0,0.25);
	}
.font-light{
	color: #fff;
}
	.font-light .portfolio-item_link{
		border-bottom-color: rgba(255,255,255,0.2);
	}
	.font-light .portfolio-item_date,
	.font-light .mobile-item_date{
		color:  rgba(255,255,255,0.25);
	}
/* not grid */
.portfolio{
	display: flex;
	display: -ms-flexbox;
	flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	justify-content: space-around;
	-ms-flex-pack: justify;
	align-items: center;
	-ms-flex-align: center;
}
	.portfolio-item{
		align-items: stretch;
		-ms-flex-align: stretch;
		margin: 0 5% 30px;
	}
	.portfolio-item .portfolio-item_image{
		height: auto;
	}
	.portfolio-item .portfolio-item_info{
		height: auto;
		margin: 10px 0;
		padding: 20px;
	}
	.portfolio-item-3 .portfolio-item_info,
	.portfolio-item-4 .portfolio-item_info{
		margin: 0;
	}
	.portfolio-item-3,
	.portfolio-item-4{
		align-items: center;
		-ms-flex-align: center;
	}
/* /not grid */
.portfolio-item-1{
	display: flex;
	display: -ms-flexbox;
	justify-content: flex-end;
	-ms-flex-pack: end;
	align-items: stretch;  
	-ms-flex-align: stretch;
}
	.portfolio-item-1 .portfolio-item_info{
		background-color: #efe100;
		border-radius: 5px 0 0 5px;
	}
	.portfolio-item-1 .portfolio-item_image{
		background-color: #000000;
		padding: 0 10px;
	}
.portfolio-item-2{
	display: flex;
	display: -ms-flexbox;
	justify-content: flex-start;
	-ms-flex-pack: start;
	align-items: stretch;  
	-ms-flex-align: stretch;
}
	.portfolio-item-2 .portfolio-item_info{
		background-color: #333;
		border-radius: 0 5px 5px 0;
		max-width: 300px;
	}
	.portfolio-item-2 .portfolio-item_image{
		background-color: #ff7400;
		padding: 0 10px;
	}
.portfolio-item-3{
	display: flex;
	display: -ms-flexbox;
	flex-direction: column;
	-ms-flex-direction: column;
	justify-content: flex-start;
	-ms-flex-pack: start;
	align-items: center; 
	-ms-flex-align: center;
}
	.portfolio-item-3 .portfolio-item_info{
		background-color: #ea5739;
		border-radius: 5px 5px 0 0;
		max-width: 250px;
	}
	.portfolio-item-3 .portfolio-item_image{
		background-color: #333;
	}
	.portfolio-item-3 .portfolio-item_date,
	.portfolio-item-3 .mobile-item_date{
		color:  rgba(254,254,254,0.4);
	}
.portfolio-item-4{
	display: flex;
	display: -ms-flexbox;
	flex-direction: column;
	-ms-flex-direction: column;
	justify-content: flex-start;
	-ms-flex-pack: start;
	align-items: center; 
	-ms-flex-align: center;
}
	.portfolio-item-4 .portfolio-item_info{
		background-color: #ffbb00;
		border-radius: 0 0 5px 5px;
		max-width: 320px;
	}
	.portfolio-item-4 .portfolio-item_image{
		background-color: #333;
	}
.portfolio-item-5{
	display: flex;
	display: -ms-flexbox;
	justify-content: flex-start;
	-ms-flex-pack: start;
	align-items: center; 
	-ms-flex-align: center;
}
	.portfolio-item-5 .portfolio-item_info{
		background-color: #273141;
		border-radius: 5px 0 0 5px;
		max-width: 215px;
	}
	.portfolio-item-5 .portfolio-item_image{
		background-color: #0279E4;
	}
.mobile-item_date{
	display: none;
}

/*@supports (display: grid) or (display: -ms-grid){*/
	.portfolio{
		display: grid;
		display: -ms-grid;
		grid-template-columns: repeat(19, 80px);  
		grid-template-rows: repeat(7, 100px);
		-ms-grid-columns: (80px)[19];
		-ms-grid-rows: (100px)[7];
	}	
	.portfolio-item{
		margin: 0;
	}
	.portfolio-item-1{
		grid-column: 6 / 11;
		grid-row: 1 / 3;
		-ms-grid-column: 6;
		-ms-grid-column-span: 5;
		-ms-grid-row: 1;
		-ms-grid-row-span: 2;
	}
	.portfolio-item-2{
		grid-column: 13 / 19;
		grid-row: 1 / 4;
		-ms-grid-column: 13;
		-ms-grid-column-span: 6;
		-ms-grid-row: 1;
		-ms-grid-row-span: 3;
	}
	.portfolio-item-3{
		grid-column: 1 / 5;
		grid-row: 2 / 8;
		-ms-grid-column: 1;
		-ms-grid-column-span: 4;
		-ms-grid-row: 2;
		-ms-grid-row-span: 6;
	}
	.portfolio-item-4{
		grid-column: 6 / 11;
		grid-row: 4 / 8;
		-ms-grid-column: 6;
		-ms-grid-column-span: 5;
		-ms-grid-row: 4;
		-ms-grid-row-span: 4;
	}
	.portfolio-item-5{
		grid-column: 12 / 20;
		grid-row: 5 / 7;
		-ms-grid-column: 12;
		-ms-grid-column-span: 8;
		-ms-grid-row: 5;
		-ms-grid-row-span: 2;
	}
	@media(max-width:1600px){
		.portfolio{
			grid-template-columns: repeat(15, 80px);
			grid-template-rows: repeat(10, 100px);
			-ms-grid-columns: (80px)[15];
			-ms-grid-rows: (100px)[10];
		}
		.portfolio-item-1{
			grid-column: 1 / 5;
			grid-row: 1 / 3;
			-ms-grid-column: 1;
			-ms-grid-column-span: 4;
			-ms-grid-row: 1;
			-ms-grid-row-span: 2;
		}
		.portfolio-item-2{
			grid-column: 11 / 16;
			grid-row: 1 / 4;
			-ms-grid-column: 11;
			-ms-grid-column-span: 5;
			-ms-grid-row: 1;
			-ms-grid-row-span: 3;
		}
		.portfolio-item-3{
			grid-column: 1 / 5;
			grid-row: 3 / 10;
			-ms-grid-column: 1;
			-ms-grid-column-span: 4;
			-ms-grid-row: 4;
			-ms-grid-row-span: 8;
		}
		.portfolio-item-4{
			grid-column: 6 / 10;
			grid-row: 2 / 6;
			-ms-grid-column: 6;
			-ms-grid-column-span: 4;
			-ms-grid-row: 2;
			-ms-grid-row-span: 4;
		}
		.portfolio-item-5{
			grid-column: 7 / 15;
			grid-row: 7 / 9;
			-ms-grid-column: 7;
			-ms-grid-column-span: 8;
			-ms-grid-row: 7;
			-ms-grid-row-span: 2;
		}
		
		.portfolio-item-2 .portfolio-item_info{
			max-width: 240px;
		}
	}
	@media(max-width:1300px){
		.portfolio{
			grid-template-columns: repeat(12, 80px);  
			grid-template-rows: repeat(12, 100px);
			-ms-grid-columns: (80px)[12];
			-ms-grid-rows: (100px)[12];
		}
		.portfolio-item-1{
			grid-column: 1 / 6;
			grid-row: 1 / 3;
			-ms-grid-column: 1;
			-ms-grid-column-span: 5;
			-ms-grid-row: 1;
			-ms-grid-row-span: 2;
		}
		.portfolio-item-2{
			grid-column: 7 / 12;
			grid-row: 1 / 4;
			-ms-grid-column: 7;
			-ms-grid-column-span: 4;
			-ms-grid-row: 1;
			-ms-grid-row-span: 3;
		}
		.portfolio-item-3{
			grid-column: 2 / 6;
			grid-row: 4 / 10;
			-ms-grid-column: 2;
			-ms-grid-column-span: 4;
			-ms-grid-row: 4;
			-ms-grid-row-span: 6;
		}
		.portfolio-item-4{
			grid-column: 6 / 12;
			grid-row: 5 / 9;
			-ms-grid-column: 6;
			-ms-grid-column-span: 6;
			-ms-grid-row: 5;
			-ms-grid-row-span: 4;
		}
		.portfolio-item-5{
			grid-column: 4 / 13;
			grid-row: 11 / 13;
			-ms-grid-column: 4;
			-ms-grid-column-span: 9;
			-ms-grid-row: 11;
			-ms-grid-row-span: 2;
		}
	}
	@media(max-width:1000px){
		.portfolio{
			grid-template-columns: repeat(18, 40px);  
			grid-template-rows: repeat(26, 50px);
			-ms-grid-columns: (40px)[18];
			-ms-grid-rows: (50px)[26];
		}
		.portfolio-item-1{
			grid-column: 4 / 14;
			grid-row: 1 / 5;
			-ms-grid-column: 4;
			-ms-grid-column-span: 10;
			-ms-grid-row: 1;
			-ms-grid-row-span: 4;
		}
		.portfolio-item-2{
			grid-column: 1 / 11;
			grid-row: 6 / 11;
			-ms-grid-column: 1;
			-ms-grid-column-span: 10;
			-ms-grid-row: 6;
			-ms-grid-row-span: 5;
		}
		.portfolio-item-3{
			grid-column: 12 / 19;
			grid-row: 6 / 19;
			-ms-grid-column: 12;
			-ms-grid-column-span: 7;
			-ms-grid-row: 6;
			-ms-grid-row-span: 13;
		}
		.portfolio-item-4{
			grid-column: 2 / 11;
			grid-row: 12 / 21;
			-ms-grid-column: 2;
			-ms-grid-column-span: 9;
			-ms-grid-row: 12;
			-ms-grid-row-span: 9;
		}
		.portfolio-item-5{
			grid-column: 2 / 17;
			grid-row: 22 / 27;
			-ms-grid-column: 2;
			-ms-grid-column-span: 15;
			-ms-grid-row: 22;
			-ms-grid-row-span: 5;
		}
	}
/*}*/
@media(max-width:800px){	
	.links{
		display: none;
	}	
	.portfolio{
		display: flex;
		display: -ms-flexbox;
		flex-direction: column;
		-ms-flex-direction: column;
	}
	.portfolio-item .portfolio-item_info{
		margin: 10px 0;
		min-width: 130px;
		max-width: 200px;
	}
	.portfolio-item{
		margin-bottom: 30px;
		max-width: 100%;
		align-items: stretch; 
		-ms-flex-align: stretch;
	}
	.portfolio-item-1 .portfolio-item_image,
	.portfolio-item-2 .portfolio-item_image,
	.portfolio-item-1 .portfolio-item_info,
	.portfolio-item-2 .portfolio-item_info{
		height: auto;
	}
	.portfolio-item-3 img,
	.portfolio-item-4 img,
	.portfolio-item-5 img{
		object-fit: cover;
		height: 100%;
		width: 100%;
	}
	.portfolio-item-3{
		flex-direction: row;
		-ms-flex-direction: row;
		justify-content: flex-end;
		-ms-flex-pack: end;
		align-items: stretch; 
		-ms-flex-align: stretch;
	}
	.portfolio-item-3 .portfolio-item_info{
		border-radius: 5px 0 0 5px;
	}
	.portfolio-item-4{
		flex-direction: row;
		-ms-flex-direction: row;
	}
	.portfolio-item-4 .portfolio-item_info{
		border-radius: 0 5px 5px 0;
	}
	.portfolio-item-4 .portfolio-item_image{
		background-color: #333;
	}
	.portfolio-item .portfolio-item_info{
		width: auto;
	}
}

@media(max-width:500px){
	.header{
		padding: 0 10px;
		height: 90px;
	}
	.logo{
		font-size: 25px;
		letter-spacing: 2px;
	}
	.portfolio{
		display: block;
		width: 100%;
	}
	.portfolio-item{
		display: block;
		position: relative;
		padding-top: 20px;
	}
	.portfolio-item .portfolio-item_image{
		position: absolute;
		height: 240px;
		width: calc(100% - 20px);
		top: 0;
		left: 10px;
		justify-content: center;
		-ms-flex-pack: center;
	}
	.portfolio-item .portfolio-item_info{
		border-radius: 5px;
		width: 100%;
		max-width: none;
		height: auto;
		padding-top: 240px;
		margin: 0;
	}
	.portfolio-item_descr{
		margin-bottom: 10px;
	}
	.portfolio-item_date{
		display: none;
	}
	.mobile-item_date{
		display: inline;
	}
	.links a:hover,
	.portfolio-item_link:hover{
		opacity: 1;
	}
	.portfolio-item:hover .portfolio-item_image,
	.portfolio-item:hover .portfolio-item_info{
		box-shadow: none;
	}
}
            
          
!
999px
Loading ..................

Console