<section class="cizgizaman bg-gray">
@{
int card124Col = 6;
int card124CategoryOrderNumber = 3;
if (Partial.isCategoryOrderNumber(card124CategoryOrderNumber))
{
IEnumerable<Post>
card124Posts = Partial.PostsOrderNumber(card124CategoryOrderNumber, 0, card124Col, Partial.Order.OrderBy, true, lang);
Category card124PostCategory = Partial.Category(card124CategoryOrderNumber, lang);
int card124Count = Convert.ToInt32(Math.Ceiling(card124Posts.Count() / Convert.ToDouble(card124Col)));
<div class="home-page-blog">
<div class="blog-content">
<div class="container">
<div class="text-center">
<h1>@card124PostCategory.CategoryTitle.HtmlEncode()</h1>
<h2><small>@card124PostCategory.CategoryContent.HtmlEncode()</small></h2>
</div>
<div class="row">
<div class="col-md-12">
<ul class="blog-list">
@foreach (Post comPost in card124Posts.Skip(0).Take(card124Col))
{
<li class="blog-item">
<div class="kutu">
<div class="kenarlik">
<a href="@Partial.PostLink(comPost.PostID)">
<div class="p-2">
<h3>@comPost.PostTitle.HtmlEncode()</h3>
<p>@Partial.PostShortContent(comPost.PostID, 140)</p>
</div>
</a>
</div>
</div>
</li>
}
</ul>
</div>
</div>
</div>
</div>
</div>
}
}
</section>
/******** Companentin altına ekle *****/
<style>
/******** cizgizaman basla *****/
.cizgizaman .home-page-blog .kutu {
background: #FFFFFF;
margin-bottom: 10px;
}
.cizgizaman .home-page-blog li.blog-item {
list-style-type: none;
}
.cizgizaman .home-page-blog .blog-content {
margin: 0 auto;
width: 100%;
}
.cizgizaman .home-page-blog .blog-title {
position: relative;
display: inline-block;
margin: 0 0 25px;
padding: 9px 24px;
border: 1px solid #c6d1de;
text-transform: uppercase;
font-weight: normal;
font-size: 22px;
line-height: 1;
}
.cizgizaman .home-page-blog .blog-title:after {
position: absolute;
bottom: -25px;
left: 50%;
margin-left: -1px;
width: 1px;
height: 25px;
background: #c6d1de;
content: "";
}
.cizgizaman .home-page-blog .kenarlik {
padding: 0px 20px;
text-align: left;
border: none;
}
@@media all and (min-width: 481px) and (max-width: 768px) {
.cizgizaman .home-page-blog .blog-item {
margin: 0 auto;
max-width: 100%;
width: 480px;
}
}
@@media all and (max-width: 768px) {
.cizgizaman .home-page-blog .blog-list {
margin: 0;
padding: 0;
outline: none;
text-decoration: none;
}
}
@@media all and (min-width: 769px) {
.cizgizaman .home-page-blog .blog-content .text-content {
padding: 5px;
}
.cizgizaman .home-page-blog .blog-list {
position: relative;
overflow: hidden;
padding: 30px 0 50px;
}
.cizgizaman .home-page-blog .blog-list:before {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
margin-left: -1px;
width: 1px;
content: "";
background:#000;
}
.cizgizaman .home-page-blog .blog-item {
position: relative;
clear: both;
margin: -55px 0 0;
width: 50%;
}
.cizgizaman .home-page-blog .blog-item:first-child {
margin: 0;
}
.cizgizaman .home-page-blog .blog-item:before {
position: absolute;
top: 32px;
width: 0;
height: 0;
border-style: solid;
content: "";
}
.cizgizaman .home-page-blog .blog-item:after {
position: absolute;
top: 34px;
width: 15px;
height: 15px;
border-radius: 50%;
background: #FFFFFF;
content: "";
border: 2px solid #27100b;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n+1) {
float: left;
padding: 0 25px 0 0;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n+1) .kenarlik {
text-align: right;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n+1):before {
right: 16px;
border-width: 9px 0 9px 9px;
border-color: transparent transparent transparent #fff;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n+1):after {
right: -7px;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n) {
float: right;
padding: 0 0 0 25px;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n):before {
left: 16px;
border-width: 9px 9px 9px 0;
border-color: transparent #fff transparent transparent;
}
.cizgizaman .home-page-blog .blog-item:nth-child(2n):after {
left: -8px;
}
}
/******** cizgizaman bitir *****/
</style>
http://www.azizcetin.av.tr/tr
Sosyal Ağ